Forum Discussion
Hi Dhirendra,
> when running the same using vbs file in silent mode
I believe that this means that your .vbs file is started by the scheduler and is running unattended without any user desktop.
If the above is correct, then this is the expected behavior: your user form is opened, but it cannot be displayed as there is no user desktop. Because the form is opened as modal, it blocks test execution and there are no means to close the form because of the absent desktop. This is generic Windows behavior - no UI is allowed in the code that is executed unattended.
The only solution is either not to display the form when code is running unattended or execute it only in the active user session that has an associated desktop.
- dhirendranaga8 years agoOccasional Contributor
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
- AlexKaras8 years agoChampion Level 3
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
Related Content
- 13 years ago
- 4 years ago
- 5 years ago
Recent Discussions
- 2 hours ago