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.

Call another Sahi script without invoking/refreshing application URL.

nagarnagar Members
edited November -1 in Sahi - Open Source
Hi All,

Is this possible to call another sahi script within running script, without invoking/refreshing the application URL?

Suppse I create a user profile from Sahi script. Once it is created, I check whether profile has been created, using shell script (as per requirements).

Now, after testing the profile, I need to edit this profile using Sahi.
Generally, If I run edit script, again I need to login into the application and from user profile page, I can edit the profile.

Is there any way, to run edit script directly from the same page, where I tested the profile page using shell script?
I want to minimize the time, consumed in login process and further navigations.


regards,
nagar

Comments

  • globalwormingglobalworming Moderators
    edited November 2011
    Hi nagar

    you could use _execute() http://sahi.co.in/w/_execute to run your shell script. When it has finished, proceed with your Sahi script and you should not need a new login procedure.
    Please notice, that execute() takes a path relativ to your Sahi/bin directory, or the global path

    Regards
    Wormi
  • Thanks Wormi, for your kind reply.

    I'll check out this procedure.
Sign In or Register to comment.