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.

Parallel Execution of a suite in Different machines

RamuRamu Members
edited November 2011 in Sahi - Open Source
Hi,
When i am executing suite in multiple machines using "drun" i am getting a message like on the target machine,

Here in saveFile
destFolder=C:\Users\sahi_pro\userdata\temp\scripts\copied
C:\Users\sahi_pro\userdata\temp\scripts\copied\copied.zip

Even though the suite exists in both the machines.
Please provide a solution for this...

Thanks in Advance,
Ramu...

Comments

  • Hi Ramu,

    Its not necessary that the suite you are running using "drun" should also be present on the multiple machine. Just make sure that Sahi is running on the multiple machines.

    "Here in saveFile
    destFolder=C:\Users\sahi_pro\userdata\temp\scripts\copied
    C:\Users\sahi_pro\userdata\temp\scripts\copied\copied.zip "

    This is an expected behaviour.

    Let me know if you are facing any problem.

    Regards
    Sumitra
  • Hi Sumitra,

    Thanks for your quick reply. And what i am saying is the test suite is not executing on the target machine. It is continuing its execution for all the testcases on the source machine only but nothing on the target except that message...

    Thanks,
    Ramu...
  • Hi Ramu,

    Check if you have mentioned the Target machine name correctly in drun.bat (i.e at step No 11: SET NODES=localhost:9999,machinename:9999).

    Also, check if Sahi is running on the Target Machine.

    Regards
    Sumitra
  • Hi Sumitra,

    I will check it out and let you know if i face any issues. Thankyou...

    Thanks,
    Ramu...
  • Hi Sumitra,
    Even i am facing the same problem like above..i have followed ths steps as u said still i am unable to run the scripts on multiple machines using ant file...
    ->file is copying in other machine..but not executing there(in source only scripts are running)
    ->i have edited drun.bat file too


    please do the needful..

    Regards,
    sneha
  • Hi Sneha,

    Kindly check the below url:

    http://sahi.co.in/w/running-tests-on-multiple-machines

    Check if this helps you to solve your issue.

    Regrads
    sumitra
  • Hi Sumitra,
    I have tried the same as mentioned above(url)...Scripts are copied to destination machine,but unable to execute in destination and it is working in local machine.


    Regards,
    Sneha M
  • Hi snecha,

    Are you trying to run the suite using drun.bat or through ant?

    Can you see if any error displayed on the Sahi console in both local machine and remote machine? If so, can you post it?

    Regards,
    Theeran.
  • Hi Theeran,
    I am trying to run the suite using ant file.In the destination machine the file is copying and it will show unzipping the copied file message in command prompt..

    Regards,
    Sneha M
  • I am having the same problem. I have adjusted drun.bat to be sure the machine name is there, the second host never goes beyond Unzipping.

    localhost
    C:\sahi_pro\userdata\bin>drun MainModules/General/btAllNavSearchSuite.sah https:
    //qad.brightree.net ie
    originFolder=../scripts/
    destFolder=temp/scripts/copied/
    nodes=localhost:9999,CatWin732-PC:9999
    ignorePattern=.*(svn|copied).*
    nodes=localhost:9999,CatWin732-PC:9999
    destFolder=temp/scripts/copied/
    originFolder=../scripts/
    ignorePattern=.*(svn|copied).*
    BasePath=C:/sahi_pro/userdata/scripts
    localhost:9999
    http://localhost:9999/_s_/dyn/pro/Synchronizer_saveFile?destFolder=temp%2Fscript
    s%2Fcopied%2F
    200
    CatWin732-PC:9999
    http://CatWin732-PC:9999/_s_/dyn/pro/Synchronizer_saveFile?destFolder=temp%2Fscr
    ipts%2Fcopied%2F
    200
    suite=temp/scripts/copied//MainModules/General/btAllNavSearchSuite.sah
    browserType=ie
    logsInfo=
    baseURL=https://qad.brightree.net
    host=localhost
    port=9999
    nodes=localhost:9999,CatWin732-PC:9999
    failedScriptsSuite=/last_failed_scripts.suite
    http://localhost:9999/_s_/dyn/in.co.sahi.command.Master_runDistributed?1=1&port=
    9999&host=localhost&nodes=localhost%3A9999%2CCatWin732-PC%3A9999&failedScriptsSu
    ite=%2Flast_failed_scripts.suite&logsInfo=&suitePath=temp%2Fscripts%2Fcopied%2F%
    2FMainModules%2FGeneral%2FbtAllNavSearchSuite.sah&baseURL=https%3A%2F%2Fqad.brig
    htree.net&browserType=ie&suite=temp%2Fscripts%2Fcopied%2F%2FMainModules%2FGenera
    l%2FbtAllNavSearchSuite.sah&suiteId=sahi_174546d708ca6040140b61903c4d66a0e9da
    ie: SUCCESS
    
    C:\sahi_pro\userdata\bin>
    
    

    second host:
    destFolder=C:\sahi_pro\userdata\temp\scripts\copied
    Unzipping: C:\sahi_pro\userdata\temp\scripts\copied\copied.zip
    

    I have verified the scripts do get extracted but they never seem execute... It actually copies EVERY script from my localhost to the remote host...

    Thanks in advance,

    Cathy
Sign In or Register to comment.