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.

firefox

alamoonalamoon Members
edited November -1 in Sahi - Open Source
hallo,
i have a problem with starting a script with a batch:
when i start the batch, a browser opens with tree tabs:
1 opens: http://documents/Downloads/sahi_20090902/sahi/browser/ff/profiles/sahi2threadNo
2: http://settings/alami/My
3: http://and/

what is the problem here?

Comments

  • narayannarayan Administrators
    Can you share how you are invoking this? Looks like some incorrect spacing issues.
  • batch:
    java -cp C:\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner ./search.suite "C:\Program Files\Mozilla Firefox\firefox.exe" http://sahi.co.in/demo/ default localhost 9999 3 firefox.exe "-profile C:/Documents and Settings/alami/My Documents/Downloads/sahi_20090902/sahi/browser/ff/profiles/sahi2threadNo -no-remote-p"

    suite:
    C:\Documents and Settings\alami\My Documents\Downloads\sahi_20090902\sahi\scripts\geothermie.sah http://www.geothermie.de

    thank you
  • narayannarayan Administrators
    Hi Alamoon,

    1) Move Sahi into a folder without spaces in its path (like C:\Sahi\), so that you will not have to handle spaces in profile paths to escape from these kind of errors.
    2) It should be sahi$threadNo instead of sahi2threadNo.

    Regards,
    Narayan
  • hallo,
    i did the changes you said:
    today is much better :-), the browser starts with default site (google.de)
    and don't start the script!
  • another question:
    in the batch file:
    waht does : http://sahi.co.in/demo/ means?
  • narayannarayan Administrators
    Hi Alamoon,

    Please have a look at http://sahi.co.in/w/Running+multiple+tests+in+batch+mode to see what the various parameters are.

    Regards,
    Narayan
  • <testName.sah> <absolute url or url relative to the baseurl>

    in the second tag i have to give the path of the script? i dont have any url my scripts are local located
  • when i start the batc, a nwe browser is open with default website, in the command line i see that the script i running but nothing happns on the browser
  • narayannarayan Administrators
    Please have a look at sahi/userdata/scripts/demo.suite and sahi/userdata/bin/ff_batch.bat to understand how this works.
Sign In or Register to comment.