18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Is it possible t run script without having to give url and set
Hi ,
I m able to run the scripts fine with sahi OS. But I want to run the script directly without having to give a start url in the controller. Sahi supports javascript , so can we do something like:
var $oIE = new ActiveXObject("internetexplorer.application");
$oIE.Navigate("www.google.com");
$oIE.visible = true;
I want to just start my script with minimal manual intervention. is it possible ?
I m able to run the scripts fine with sahi OS. But I want to run the script directly without having to give a start url in the controller. Sahi supports javascript , so can we do something like:
var $oIE = new ActiveXObject("internetexplorer.application");
$oIE.Navigate("www.google.com");
$oIE.visible = true;
I want to just start my script with minimal manual intervention. is it possible ?
Answers
have a look at http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
you can start tests from command line like this
Regards
Wormi
Yes it is possible to run from cmd.. Thanks
but you have to give the script name and url as parameters.
I want a way to have these parameters fetched from an excel file, where the rest of test data will be present (given by the user).
Any suggestions , how I can do this ? Also testrunner.bat will work when the proxy is up and ready (clicking sahi dashboard), so I would like a way where this can also be done.
my idea is that we can script a vbs file, which will invoke sahi dashboard and also testrunner.bat.
Any idea you can give me with this ?
Any suggestion is highly appreciated
But with some script magic it's totally possible to:
* start sahi
* get an 2Darray of values from an excel script
* read first line, $name and $url
* start testrunner with parameter -test $name and -baseUrl $baseUrl
* read next and repeat
* kill sahi
You better ask a programmer using windows about the magic.
If you want to pass some Excel values to the script per command line, you can use the -initJS parameter on the testrunner. When you got something running, please share your script here, others might find it helpful.
Regards
Wormi