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.

only run a block of sahi code if the sahi script is first called by another script

nickleusnickleus Members
edited April 2013 in Sahi - Open Source
in short:
you have 2 sahi scripts:
sahi_script1.sah
sahi_script2.sah

if script 1 calls script 2, then run the block of code in script 2.
if script 2 is called directly, by itself, then don't run the block of code.

here's my solution:
http://nickhumphreyit.blogspot.no/2013/04/sahi-run-block-of-code-only-if-script.html
Sign In or Register to comment.