- 2
- 0
- 约8.64千字
- 约 37页
- 2017-12-01 发布于福建
- 举报
Reusable and Multiple Actions Objectives After completing this chapter, you will be able to: Create multiple actions from a single action. Change the default action name to better describe the action. Define an action as reusable. Call a reusable action into a main test. Drive data using the global and local data sheets. Where are we? QuickTest Professional allows you to create a test with more than one action. You can create modular actions that can be used across several tests. Single Action Test Single Action Test QTP records all steps of the business process into a single action. By way of definition, Action refers to the QTP designation for a set of steps that you want to playback as a group. The figure* illustrates all three business processes (Log in, Create New Order and Logout) are recorded as a single Action. * Figure 8-2 A Tests with Multiple Actions A Tests with Multiple Actions Actions can be divided into logical sections, like the main sections of a transaction, or by specific business processes. When you create a new test, it contains one action. By dividing your tests into multiple actions, you can design more modular and efficient tests. Create A New Action Create A New Action You can create a test with multiple actions either while recording or after recording. Either way is efficient. Select INSERT?CALL TO NEW ACTION from the QuickTest main menu. The INSERT CALL TO NEW ACTION window appears. Modify An Action Name Modify An Action Name Once you have separated one action into multiple actions, give descriptive names to each action. Steps to modify an action name: Right-click on Action1 the Action Properties window appears. In the Action Properties window under the General tab enter a logical action name to modify the default Action name. Figure (8-5) illustrates changing Action1 to Login. This makes the test easier for others to understand when viewing the test from the keyword view tree. One Action Used Many Times One Action Used Many Times Whe
原创力文档

文档评论(0)