mdh
12 years agoContributor
Running a program with commandline parameters
I see there is two methods when running a WIN application from TC 10 Vb script:
1) TestedApps.WIN_Application.RunAs(domain,usr,psw,,"-parameter X -parameter Y")
2) TestedApps.WIN_Application_command_line_Parameter_X.Run
Both case 1 and 2 will work for me, BUT....
For 1: I would RELLY like to avoid defining my password in a script :-)
For 2: This will also work, but in the case where I need to verify 10+ different commandline parameters (or even worse combinations of those), I need to define a 'TestedApps' for each case.
So is there a way to run applications from script, where it's possible to use cmd line parameters without being forced to start the application as a specific user ?
1) TestedApps.WIN_Application.RunAs(domain,usr,psw,,"-parameter X -parameter Y")
2) TestedApps.WIN_Application_command_line_Parameter_X.Run
Both case 1 and 2 will work for me, BUT....
For 1: I would RELLY like to avoid defining my password in a script :-)
For 2: This will also work, but in the case where I need to verify 10+ different commandline parameters (or even worse combinations of those), I need to define a 'TestedApps' for each case.
So is there a way to run applications from script, where it's possible to use cmd line parameters without being forced to start the application as a specific user ?