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.

Batch Run in Firefox

cragucragu Members
edited November -1 in Sahi - Open Source
My Firefox version is 3.0.4
When i run suite in firefox its always giving a alert "Firefox is already running but not responding....." if the given number of threads more than 1.

If the number of threads is 1 then this alert is not displaying. In the result all the scripts are getting failed with success rate 0% and error 1. I am getting the error script did not start within 2 minuties.

Kindly help me to rectify this

Comments

  • hi,

    see the last post by me in the following thread:
    http://www.sahi.co.in/forums/viewtopic.php?id=337

    I hope your problem is similar to that one and it helps you.

    Regards,
    Pankaj.
  • Thanks Pankaj.

    I am having the latest version of sahi. I didn't tried with ant. I am trying to run in command line. I had the same problem what priya mentioned in this post Post id=525. When running my batch it is creating the autoplay script and opening the browser. But it is not responding, only the blank page is displaying and finally i am getting the error in the result "script not started within 2 minutes".

    If the number of threads > 1 then only i am getting the alert for firefox means when it tries to open the more than 1 instance of the browser. If i need to work with the firefox profile, please explain me in detail step by step.

    I have tried in IE also. here also i am getting an alert stating that
    A Run time error occurred. Do you wish to Debug?
    Line: 33
    Error: Expected ';'

    Finally it displays a blank page and in the result i am getting the same error what i got for firefox "Script did not start within 2 minutes". Please help to resolve these issues.

    Looking forward your help

    Thanks in Advance..
    Ragu
  • Hi ragu,

    Can we have a look at your .bat file and the .suite file?
    Than we will be in a better position to say something.

    Regards,
    pankaj.
  • Sure..

    I was trying to post this at my last thread itself but it was not allowed

    When i am trying to include my script in the post i am getting the message

    New Members can not post links, images or email addresses until they become more active.

    I have tried with
    tag too...

    please let me know if anyother way

    Thanks
    Ragu
  • Thanks Narayan...

    Removing double quotes for the url from .suite file fixes the issue. Now when i run the suite with IE it works fine.

    But still i have issue with firefox. If i give number of threads more than 1, (for example number of threads = 2) then while running, when it opens the second instance of the browser i am getting the alert stating that "firefox is already running, but it is not responding.To open a new window, you must first close the existing firefox or restart the system." So all other instances of firefox except first one getting closed and my first test only running from the suite.

    Your help highly appreciated.

    Regards
    Ragu
  • Hi Ragu,

    Try this again:
    http://www.sahi.co.in/forums/viewtopic.php?id=337 (the last reply)
    see if it helps now. I had also faced the same issue.

    Regards,
    pankaj.
  • Thanks Narayan.....

    Now it works in both firfox and IE. Adding a new parameter firefox.exe after numer of thread in the .bat file fixed the issue.
  • narayannarayan Administrators
    I have updated the documentation on batch runners with the required information.
    http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
    java -cp ..\lib\ant-sahi.jar net.sf.sahi.test.TestRunner
         D:/sahi/scripts/demo/demo.suite 
         "C:\Program Files\Mozilla Firefox\firefox.exe" 
         http://machine_name:10000/demo/ default localhost 9999 3 firefox.exe
         "-profile D:\sahi\browser\ff\profiles\sahi$threadNo"
    
    Specifically, note that firefox.exe has been added after 3 and before "-profile ...".
    This parameter is used in killing the browser process properly. (Also have a look at processhelper.pid_kill_cmd in sahi.properties)
Sign In or Register to comment.