Enhancing Your Test
Using QuickTest, you can include checkpoints that broaden the scope of your test. A checkpoint verifies that expected information is displayed in your application while the test is running. For example, in the course registration test described earlier, the user could have added a checkpoint that evaluated the property values of the Course Name edit box. Most checkpoints can be added to a test either while recording or after recording. Using QuickTest, you can: § Replace fixed values with parameters. § Add logic. § Create conditional or loop statements. | ![]() |
Debugging Your Test
After you create a test, you should check that it runs smoothly, without errors in syntax and logic. You control the test run in the following ways: § Using the step commands: Step Into, Step Out, and Step Over, to run a single step of a test. § Using the Pause command to temporarily suspend a test run. § Setting breakpoints to stop a test run at a pre-determined place. If QuickTest displays a run-error message during a test run, you can simply click the Debug button to suspend the test and debug it. | ![]() |
When you run a test, QuickTest opens the web site or application and performs the steps you recorded. QuickTest always runs a test from the first step, unless you specify otherwise. For example, you could choose these options: § Start your test run from a selected step § Enter parameters to run the test for each row in the data table § Run only certain data sets § Run your test until a specific point within the test A yellow arrow in the left margin of the Keyword View indicates the step that QuickTest is running. | ![]() |
Analyzing Test Results
As your test runs, QuickTest captures the results of each step. When QuickTest finishes running the test, the Test Results window opens. You examine the test results to pinpoint defects in your application. | ![]() |
Reporting Defects
You can print test results or, if you have Mercury Quality Center installed, you can report the defects you discover to a database. Mercury Quality Center is a software test management tool. A connection button from the Test Results window lets you add defects to a specific Quality Center project. | ![]() |
No comments:
Post a Comment