110 likes | 241 Views
Create the Basic Test. USINGQTP65-STUDENT-01A. 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
E N D
Create the Basic Test USINGQTP65-STUDENT-01A
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
Lesson Objectives In this lesson, you will: • Set up the QuickTest environment for record and playback • Select the correct addins to load from the Addin Manager • Select the ActiveScreen capture level • Configure the record and run settings • Create a basic test from a manual test case • Playback a test • Save a test (two locations) • Set initial and end conditions in a test
Set Up the QuickTest Professional Work Environment What are the proper record and run settings I need to configure? What are the environments and objects in the application under test? Is it Windows, Web, SAP or Terminal Emulator? Does it use Java, ActiveX, plain HTML, Visual Basic? How much information should the test capture into the ActiveScreen? What are the available add-ins in the Add-in Manager that I need to select?
Instructor Demo and Discussion: Setup for recording a new test • Add-In Manager dialog • Record and Run Settings dialog • ActiveScreen Capture Level Setting dialog • Discuss the different icons and commands on the QuickTest Professional workspace Note: Screenshots of each topic are included in the student book.
Record User Actions Action1 Empty ActiveScreen Empty Tree View IMPORTANT: Follow the user actions listed in the test case. Make sure you have the correct sample data for a complete and successful transaction. Note: QuickTest has three recording modes. Analog and Low-level will be discussed in detail in Chapter 13.
Each selected step in the Tree View highlights the captured object in the ActiveScreen Test Step and Active Screen Each step comprises of the recorded object, the method (action performed on the object), and if applicable, the value entered through the action. “Fly From” Select “Los Angeles” Object method value entered
Tests can be saved into the file system or into TestDirector Saving Tests Connects to the standard Windows location Requires connection to an existing TestDirector project Requires a valid TestDirector user and password Speak with TD Admin to set up connections Requires a standard Windows location to store tests
Use the ‘Run’ button to begin playback from the top of the test. 1 Select the location of the test results - new results folder - temporary folder 2 Verify Correct Playback Check that no error messages appear
Viewing the Test Results Test Action0 Action1 Test results can be stored in their own location (for documentation) or in a temporary location that is overwritten each time the test is run (for debugging). Script.mts Res1 Res2
Open a record Submit Information Insert New Sale Update Record Edit information Input Data Update Record Best Practice: Setting Initial and End Conditions • During test planning, identify the starting and ending point for each test case. • Allows a test case to iterate successfully • Enables test case independence