Running Test Sets from TestDirector 8.0 in QuickTest Pro 6.5 (SAP)
When we run an individual test in QuickTest Pro, after the first failure occurs, we get a pop-up and we can stop the script. So far, so good.
However, if we run the same script from TestDirector (in a Test Set), the test keeps on running after finding a failure.
!! This despite the following setting in the QuickTest Pro script:
Test > Settings... > Run > When error occurs during test run "pop up message box" or "stop run".
This can cause a delay of 1 hour, as QuickTest Pro continues with the script until the end, although the SAP screen keeps 'stuck' on the place where the failure occurred (e.g. unexpected pop-up in SAP).
How can we assure that if test script 'A' fails, QTP immediately stops running this test script and continues with the next one from the Test Set?
We just scheduled 100 tests overnight, and found out in the morning that only 20 scripts ran, because of all these delays.
(x-posted in QuickTest Pro)
Re: Running Test Sets from TestDirector 8.0 in QuickTest Pro 6.5 (SAP)
A colleague found the solution in the Mercury knowledge database #30348:
Problem Description: How to make a QTP 6.5 script stop running if a failure occurs.
In QuickTest Professional 6.5, there is the option (Test -> Settings) to make the test stop running if a failure occurs. However, if the user runs this script from TestDirector, that setting is ignored. How can the user make TestDirector recognize this setting?
Solution: Modify the registry to enable QTP 6.5 to stop running on failure
On the QuickTest Professional machine:
1. Go to Start -> Run and enter regedit.
2. Navigate to HKEY_LOCAL_MACHINE/Software/Mercury/QuickTest Professional/Mic Test.
3. On the right side, modify the value of OnReplayErrorRemote from "Skip" to "Stop" (without the quotes.
4. Repeat Step 3 for the registry key HKEY_CURRENT_USER/Software/Mercury/QuickTest Professional/Mic Test/OnReplayErrorRemote.
5. Reboot the machine.