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.

wrapper for driving the sahi scripts

balajicbalajic Members
edited December 2012 in Sahi Pro
Hi,
Is that possible to create a driver to execute the sahi scripts. Idea is to create execution environment where I can include all common libraries and global variables..which are not necessary to execute for every script..also it gives control over the execution...let me know the ways to achieve in sahi pro...

Best Answer

Answers

  • you can use _include API to call a sah or js file, which is having the global variables.
  • Hi kshitijitu,

    I appreciate your help.

    But to elaborate more, I would like to do something like customized wrapper for the test suite rather just saving all the test suite to be run from test.suite file.

    Thanks.

  • Hi,

    Please explore "CSV Files as Suites with Tags" from the following url:
    http://sahi.co.in/w/csv-files-as-suites-with-tags

    --
    Kshitij Gupta
  • Hi kshitij,

    Yep, I found it. I created a Driver.sah, where I included all the common global variables,libraries. Also wirtten the driver function in it to include the tests as.sah files, which inturn gets executed as expected. ;)

    Thanks again ;)
Sign In or Register to comment.