Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3241928
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:15:20+00:00 2026-05-17T18:15:20+00:00

I have a run.haml file where I run a test suit. Everything works just

  • 0

I have a run.haml file where I run a test suit. Everything works just fine but I want to display the text “Starting test suite: #{params[‘run’]}” immediately after user clicks the link that leads him to this haml.

the link clicked tells haml what suit needs to be executed

%a(href="run?run=#{file}")

Right now everything is displayed after the test suit run finishes. The run.haml page is being loaded till the script finishes.

  • how does the haml processing flow work?
  • can I start processing the job after the page starts rendering?
  • can I display some text in a browser and then let call the test suit?

It takes minutes to finish the run of the test suit.


    !!!  
    %html  
      %head  
        %title Running  
      %body
        = "Starting test suite: #{params['run']}"
        - output = %x[cd C:\\Program Files\\TestPro\\TestPro Automation Framework410 && ant -lib lib -f "C:\\Program Files\\TestPro\\TestPro Automation Framework410\\Output Files\\builds\\#{params['run']}.xml"]
        -#The result is
        %br
        = output.split("\n")[-2,2].join("<BR>")
        = "<br/>"*2
        %a(href="/")back to suits list
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:15:20+00:00Added an answer on May 17, 2026 at 6:15 pm

    Well, look — my thought here is that it’s not rendering everything (for whatever reason) until that function call returns.

    If that’s the case, you’ll want to process the result of that function separately from loading the test harness page — so, you’ll want to invoke the test suite either with

    • an Ajax call or,
    • a separate worker thread

    That choice depends on the length of time the function (generally) takes to run — so, depending on the complexity, it may be a good candidate for something like BackgrounDRb, run_later or delayed_job, or even a custom daemon.

    Finally, you may find this example of using Sinatra with delayed_job helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed active admin on my development machine and it works fine. But
I have run this Perl code: #!/usr/bin/perl print content-type: text/html \n\n; print Hello World.\n;
I have run a few using batch jobs, but, I am wondering what would
I have run into a situation where I want to ensure that a compound
Just briefly, I have run into a dreaded 2(n) queries problem. If n =
I have a HAML template that I want to render and optionally provide a
I have test app written on ruby, using Sinatra+Sequel. config.ru: require './main' run Sinatra::Application
In haml, I have something like this: #profile #photo #bio But what hapens is
I have run into a peculiar problem. Some HTML text on my page becomes
I have run into a problem with Eclipse Indigo, attempting to start up my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.