QTP指南中Flight的例子
上一篇 /
下一篇 2011-02-16 09:39:02
/ 个人分类:QTP
依照Tutorial的描述操作如下步骤:
1. Record Test
2. Add CheckPoints
A. Checking Objects
B. Checking Pages
C. Checking Text
D. Checking Tables
3. Parameterizing Test
A. Add Parameter Values to a Data Table
B. Modifying Steps Affected by Parameterization
4. Create Output Value
Creating an Output Value
5. Using Regular Expression
Working with Regular Expressions
Testing your own application – getting started
Procedure outlined
1. Plan your test
Decide how to organize your test
Which operations to record
Decide how to store the objects in your test
You can store the objects for each action in its corresponding local object repository, or you Can store the objects for each action in shared object repository, you can also use the same shared object repository for multiple actions. If you are new to testing, you may want to use a local object repository for each action. This is the default setting, and all objects are automatically added to the local repository of each action. If you are familiar with testing, it is probably most efficient to work in the shared object repository mode. In this mode, you can use shared object repository for one or more actions. This means that object information is kept in one central location. When the objects in your application change, you can update then in one location for multiple actions in multiple tests.
2. Recoded your test
3. Enhance your recorded test
Add checkpoint
Parameters
Create output values
Use regular expressions
You can further enhance your test with programming and conditional and loop statements, which Add logic to your test!
4. Debug your test
Debug your test to check that it operations smoothly and without interruption.
5. Run your test
Run your test on your application or web site to check that the application functions as expected.
6. Analyze the test results
Examine the result of your test to pinpoint defects in your application
7. Report defects
If you have quality center installed, you can submit any defects discovered to a
quality center database.
收藏
举报
TAG: