QuickTest enables you to run script in 5 different ways.
· Normal
· Fast
· Maintenance Run Mode
· Update Run Mode
· Debug Mode
Normal Mode:
When you run a test in Normal Mode, QuickTest shows the execution marker at current step of executing. It will be useful for debugging the script.
If the script contains Actions/Components, displays the Action/Component and shows the execution marker at current step being executed.
You can specify time in milliseconds that QuickTest should wait before running each consecutive step (up to a maximum of 10000 ms).
For running Test Script in Normal Mode, you must have installed Microsoft Script Debugger in your computer.
Fast Mode:
When you run a test in Fast Mode, QuickTest runs test in without execution marker to the left of Keyword View or Expert View.
If the script contains Actions/Components, don’t expand the Action/Component that is being executed.
When running a test set from QC, tests are automatically run in Fast Mode, even if Normal Mode is selected.
Maintenance Run Mode:
When you run a test in Maintenance Run Mode, QuickTest runs your test, and then guides you through the process of updating your steps and Object Repository.
When the Maintenance Run Mode ends, the Maintenance Run Wizard provides a summary of the changes made to your test. The main Run Results viewer also contains a Maintenance Summary which displays details of the changes made to your test, including updated added objects, updated and commented steps, and a summary of changes to the Object Repository.
When you run a test in Maintenance Run Mode, QuickTest runs the test to update the set of identification properties used for object descriptions, the Active Screen images and values, and/or expected Check Point properties.
When you run test in Maintenance Run Mode, QuickTest always saves the updated objects in the Local Object Repository, even if the objects being updated were originally from Shared Object Repository. The next time you run the components, QuickTest uses the object from Local Object Repository, as the Local Object Repository has a higher priority than any shared object repositories.
After using the Maintenance Run Mode for updating the objects, you may want to use the Update from Local Repository option in the Object Repository Manager to merge the objects from local repository back to a shared object repository
Prerequisites:
· Must have the MicroSoft Script Debugger installed to run the test scripts in Maintenance Run Mode.
· You can run in Maintenance Run Mode only when QuickTest is set to use Normal Run Mode. QuickTest cannot run in Fast Mode.
· You cannot run tests in Maintenance Run Mode on applications that do not have a user interface, such as Web Services.
Update Run Mode:
When you run a test in Update Run Mode, QuickTest runs your test, and updates property sets used for Test Object descriptions, the Expected Check Point values, and the data available to retrieve in output points, and/or Active Screen images and values.
Debug Mode:
Step Into:
Command: Debug à Step Into or Step Into Button or F11 Function Key
Purpose: Run only current line of the active test or component. If the current line of the active test or component calls another action or a function, the called action or component is displayed in the QuickTest window, but it won’t execute. The test or component pauses at the first line of action or component.
Step Out:
Command: Debug à Step Out or Step Out Button or Shift + F11 Function Key
Purpose: Step Out command only after Step Into command to enter a action or component. Step out runs to the end of the called action or component, and then returns control to the called action and pauses the test run.
Step Over:
Command: Debug à Step Over or Step Over Button or F10 Function Key
Purpose: Step Over command runs entirely the current line in the active test or component. When the current step calls another action or component, the called action or component is executed in it entirety, but the called action or component is not displayed in the QuickTest Window.
Note:
· For executing script in Normal Mode or Fast Mode, you can set at Tools à Options à Run Tab.
· For running only part of the test, you can use Run from Step [Ctrl + F5] [Available in Automation Menu/Right Click at specific step in Script], Run To Step [Ctrl + F10] [Available in Debug Menu/Right Click at specific step in Script].
No comments:
Post a Comment