18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

TestRunner batch mode with threads=5

vinu32vinu32 Members
edited November -1 in Sahi - Open Source
Hi -

OS Name - windows 7, 64bit
Browser Name - IE 8
Sahi build - 3.5

I am trying to execute a suite file from TestRunner with threads=5. The suite file looks like -

SD_CreateCase_2.sah https://staging.abc.com/index.do
CHIEFCreateCaseForRTRSvcs.sah https://staging.chief.com/member/login.php

Both the URLs are different and scripts are independent.

When i run this suite file with 5 threads it should open 2 IE8 and run them parallely. TestRunner does open 2 IE8 and navigates to the URL but only one script executes and it is invariably always the second one. The first one errors out with -
ERROR
Script did not start within 150 seconds. at Nov 16, 2011 10:05:28 AM

When i change the threads to 1, both the scripts run one after the other with no error.

can you please let me know if there are any other changes i need to make to run the scripts in parallel?

thanks
Vinod

Comments

  • Hi -

    Can someone please help me with this. I tried searching the forums and did not find a similar post.

    Thanks
    Vinod
  • narayannarayan Administrators
    Hi Vinod,

    Can you post the IE8 section of your browser_types.xml file? It looks like the browser options may be incorrect. It should look something like this:
        <browserType> 
            <name>ie</name>  
            <displayName>IE 8</displayName>
            <icon>ie.png</icon>
            <path>$ProgramFiles (x86)\Internet Explorer\iexplore.exe</path>  
            <options>-noframemerging</options>  
            <processName>iexplore.exe</processName>
            <useSystemProxy>true</useSystemProxy> 
            <capacity>5</capacity>  
        </browserType>
    

    Also open scripts/demo/demo.suite keep only the top two scripts and try running that suite file to see if there is a specific problem with either https sites or your scripts.

    Regards,
    Narayan
  • Hi Narayan -

    un-commenting <options>-noframemerging</options> did the trick. I was able to run all the test cases in parallel and SAHI works like a charm.

    thanks a lot for your help.
    Sahi Rocks!!
    Vinod
This discussion has been closed.