Forum Discussion
Hi Alex,
Thank you for the information.
For ease of execution, we make use of vbs file to trigger the execution and not using scheduler.
And when we double click the vbs which has required line of code to open TestExecute with required properties, we expect the Modal pop-up to be displayed. But not being displayed. And we have dedicated desktop and we manually click the vbs file to trigger execution.
Pleas suggest.
Regards
Dhirendra
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?
- dhirendranaga8 years agoOccasional Contributor
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
- AlexKaras8 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
- 13 years ago
- 4 years ago
- 5 years ago
Recent Discussions
- 19 hours ago
- 20 hours ago
- 5 days ago