100 likes | 195 Views
Parameters and Data Driving. USINGQTP65-STUDENT-01A. Lesson Objectives. In this lesson, you will: Create an output value Parameterize input values Create a data-driven test Review useful Data Table functions. 1. 2. 3. 4. Plan. Create. Verify & Enhance. Integrate.
E N D
Parameters and Data Driving USINGQTP65-STUDENT-01A
Lesson Objectives In this lesson, you will: • Create an output value • Parameterize input values • Create a data-driven test • Review useful Data Table functions
1 2 3 4 Plan Create Verify & Enhance Integrate QuickTest Professional Workflow • Gather relevant • test information • What are the test requirements? • Where can I get data to use? • Create basic test • Record user actions • Verify successful playback • Enhance basic test • Insert checkpoints • Data drive the test • Integrate tests • Correlate data • Build Integration Test Scenarios
Parameterization Applies to Input and Output Data QuickTest Test Material: Value 1 Value 2 Value 3 : ..and so on Use different material values for each time the transaction is run. Purch Req Number: 99999999 99999011 Retrieve each purchase requisition number. Use parameters in QuickTest instead of manually testing multiple values and manually retrieving system values
Parameterization Makes Use of the Data Table Input and output values are stored in the Data Table
The Run-Time Data Table can be viewed in the test results after a test run. You will also find the Global and Local data sheets under the run-time data table. Under the Design Time Data Tables are two spreadsheets where you place or retrieve parameter data values: - Global Sheet - Local Sheet (Action1) Types of Data Table Run Time Data Table Design Time Data Table
Use an Output Parameter to Capture Data Which output method will I use, standard, text or text area? Retrieve this string of text from the application If you forget to add the output during recording, it can be inserted afterwards using the ActiveScreen window.
Create one data-driven test that uses a data source What is a Data-Driven Test? • Create a new test for each set of data?
The Data Table Has Spreadsheet Capabilities • Use spreadsheet functions, if needed, to create parameter values • Discussed in detail next chapter
Global Data Sheet Run settings apply to all actions if data is placed in the Global Data Sheet Local Data Sheet Run settings apply only to the action referred to by the Local Data Sheet Configuring Run Settings This setting may be used more in conjunction with multiple actions and test integration.