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.

Execute Python Script using Sahi

shobhitjainshobhitjain Members
edited November -1 in Sahi - Open Source
Hi Narayan,

I have written a python script for Page Load and Performance Testing .
Is it possible that i can run my script from a path in a command prompt using sahi.
So that i can combine my Random URL generator script in sahi with Page load time and performance of Each page.

Comments

  • SumitraSumitra Members
    Hi shobhitjain,

    There are 2 ways to run a python script using Sahi:

    1)You can use:

    _execute("py test.py [Arg1] [Arg2]");

    2) You can create a batch file(Eg:Test.bat) and include the python scripts in it.

    Now,you can run your python scripts using:

    _execute("Test.bat");

    Regards
    Sumitra
  • Thanks sumitra for the help
This discussion has been closed.