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.
Navigate to a webpage using the login credentials from command line
Can sahi script take the command line arguments, I want to do run something like mysah.sah http://gmail.com "chrome" "tim" "pass"
What should be there in mysah.sah to read the command line arguments
is there something similar to the below in SAHI?
public static void Main(string[] args) {
for(int i = 0; i < args.Length; i++)
{
Console.WriteLine("Arg[{0}] = [{1}]", i, args);
}
}
What should be there in mysah.sah to read the command line arguments
is there something similar to the below in SAHI?
public static void Main(string[] args) {
for(int i = 0; i < args.Length; i++)
{
Console.WriteLine("Arg[{0}] = [{1}]", i, args);
}
}
Best Answer
-
You can use the testrunners "initJS" parameter for such things. http://sahipro.com/w/Running+multiple+tests+in+batch+mode
