Forum Discussion
Hm-m...
And the command-line for TestExecute contains the /silent parameter, right?
As per description of the /silent parameter - it tries to close all dialog windows using the default button. Have you defined default button for your User Form? If it is not defined, does it help if you define one?
Hi Alex,
No silent parameter is used in the vbs file to trigger TestExecute.
And OK button of Modal userform is configured, and the requirement is to provision values to testxboxes on userform and then proceed with execution. But the modal userform itself is not getting displayed.
Sample vbs file is as below
Dim objWshell
Set objWshell = CreateObject("Wscript.Shell")
objWshell = """C:\Program Files (x86)\SmartBear\TestExecute 12\Bin\TestExecute.exe"" ""C:\SampleProjectSuite\SampleProject.Suite.pjs"" /p:""SampleProject"" /r """" /exit /timeout 7200", 0 ,true
Regards
Dhirendra
- AlexKaras7 years agoChampion Level 3
Hi Dhirendra,
a) Why not to use just a .cmd command file with this command:
"C:\Program Files (x86)\SmartBear\TestExecute 12\Bin\TestExecute.exe" "C:\SampleProjectSuite\SampleProject.Suite.pjs" /p:"SampleProject" /r /exit /timeout 7200
b) If, for some reason you really need to use .vbs, then the code must be like this:
Dim objWshell
Set objWshell = CreateObject("Wscript.Shell")
objWshell.Run """"C:\Program Files (x86)\SmartBear\TestExecute 12\Bin\TestExecute.exe"" ""C:\SampleProjectSuite\SampleProject.Suite.pjs"" /p:""SampleProject"" /r /exit /timeout 7200"", 1, true
Related Content
- 12 years agolphilippe_macau
- 3 years agoLee_M
- 4 years agosivakarthik
Recent Discussions
- 5 hours agovladd1