Test automation process

8
Test Automation Process 1. Planning 2. Generating the Tests 3. Enhancing the Tests 4. Debugging the Tests 5. Running the tests 6. Analyzing the Test Results 7. Reporting the Defects

description

Software Test Automation process with help of QTP

Transcript of Test automation process

Page 1: Test automation process

Test Automation Process

1. Planning 2. Generating the Tests3. Enhancing the Tests4. Debugging the Tests5. Running the tests6. Analyzing the Test Results7. Reporting the Defects

Page 2: Test automation process

Test Automation Process

Planning 1. Analyzing the AUT2. Implementation of Framework3. Selection of Test Cases for Automation4. Identification of Tool5. Collecting Test Data6. Tool setting configuration

TestCase ID Test Action Automated ExecuteTC_001 Login to App Yes YTC_002 Search Flights Yes YTC_003 Booking Ticket Yes YTC_004 Cancel Ticket Yes YTC_005 Reports No N

Page 3: Test automation process

Test Automation Process

Generating the Tests• OR Repository - Object Recognizaton• By Recording• Hand Coding AKA Descriptive Programming

Automation Code (Used QTP tool as a reference)'Launch ApplicationSystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe“, "","C:\Program Files\HP\QuickTest Professional\samples\flight\app\","open"'Enter UserNameDialog("Login").WinEdit("Agent Name:").Set "mercury"'Enter PasswordDialog("Login").WinEdit("Password:").Set "mercury"'Click okDialog("Login").WinButton("OK").Click'Exit ApplicationWindow("Flight Reservation").Close

Page 4: Test automation process
Page 5: Test automation process

Test Automation Process

Enhancing the Tests• Inserting check points• Inserting output values• Synchronization• Parameterization• Regular Expressions• Recovery Scenario (Exception

Handling)• Inserting flow control statements• Inserting transaction points• Adding User Defined Functions

Page 6: Test automation process
Page 7: Test automation process

Test Automation Process

Debugging the Tests• Watching variables• Step by step execution• Passing values to variables

Running the tests• Normal Execution• Batch Execution• Scheduled Execution

Analyzing the Test Results• Defining your own Results

Reporting the Defects• Report Manually, Report via Test Management tools (for

ex: Quality Center, TFS, etc.,)

Page 8: Test automation process