Qtp testing

16
What is Test Automation? For more QTP Scripts, www.ramupalanki.com 1 It emulates user actions on the Application Clicking on buttons, Selecting Menus Navigating Screens, Changing Views Adding Data, Extracting Data It makes sure those tasks are repeated in the same order, again and again. It provides speed and reliability to tedious and repetitive tasks.

description

 

Transcript of Qtp testing

Page 1: Qtp testing

What is Test Automation?

For more QTP Scripts, www.ramupalanki.com1

It emulates user actions on the ApplicationClicking on buttons, Selecting MenusNavigating Screens, Changing ViewsAdding Data, Extracting Data

It makes sure those tasks are repeated in the same order, again and again.It provides speed and reliability to tedious

and repetitive tasks.

Page 2: Qtp testing

What Will Test Automation Do?

For more QTP Scripts, www.ramupalanki.com2

It will avoid errors Humans will makeTypographical ErrorsSkipped/Missed TestsIt will record the results of the test accurately

It will establish a set of Reproducible StepsBe useful for Compatibility Testing

Using the same “build” in various environments To ensure consistent system response

Page 3: Qtp testing

What Will Test Automation Do?

For more QTP Scripts, www.ramupalanki.com3

Be useful for regression testingEnsuring previously fixed defects do not

reappear in later buildsHelp ensure the stability of the application

By placing it under various loadsChecking for undocumented changes

Will save time and reduce effort during the test cycle

Page 4: Qtp testing

Test Automation Will Not

For more QTP Scripts, www.ramupalanki.com4

Eliminate or Reduce Manual testersAutomation can not test for aestheticsCan not design test casesValidate the resultsReplace the business knowledge

Be a substitute for:Walkthroughs, inspections, adherence to

coding standards, Project Management and etc.

Page 5: Qtp testing

Test Automation Will Not

For more QTP Scripts, www.ramupalanki.com5

Find More “bugs”Test Cases find the bugsAutomated Test Scripts are only as good as

the test case they replicateThe process of automation adds nothing to

the test case

Page 6: Qtp testing

Keys to Successful Automation

For more QTP Scripts, www.ramupalanki.com6

What to automate must be clearly definedWhat scripts to execute and when in the

test cycle must be definedThe goals of the script must be clear

The automating of an existing manual script is no different than a programmer using a coding language to write programs for any other manual process must be recognized

Page 7: Qtp testing

Keys to Successful Automation

For more QTP Scripts, www.ramupalanki.com7

Therefore test automation needs to be treated like any other development projectDefine what to automateDesigning test automationWriting the scriptsTesting the scriptsMaintaining the scriptsUsing configuration management

Page 8: Qtp testing

Keys to Successful Automation

For more QTP Scripts, www.ramupalanki.com8

When strategizing for test automation, plan to achieve small successes and grow

Understanding testing tools are dependent upon consistency in the test environment

Build reusable codeWrite a function once that many scripts can

useDon’t depend on Capture Play back

Creates a series of inflexible scripts dedicated to 1 specific task

Page 9: Qtp testing

Useful Test Automation Features

For more QTP Scripts, www.ramupalanki.com9

Suite can execute Tests individually, or by groupsRun either a single test or batch a series of

test togetherSuite can execute unattendedCan be restarted from point of interruptionCan be paused, single stepped or resumedCan be executed remotely

Page 10: Qtp testing

Useful Test Automation Features

For more QTP Scripts, www.ramupalanki.com10

Dependencies between tests are specifiedTests cover specific functionality without

covering more than necessaryNarrowly defined tests help to focus on

specific failuresTests can be executed on new version of

product without major modificationsTest programs are reviewable

Page 11: Qtp testing

Test Cases to be Automated

For more QTP Scripts, www.ramupalanki.com11

Tests that need to be run for every buildTest that use multiple data valuesTests that need to be executed with

different browsersStatic PagesCritical Pages

Page 12: Qtp testing

Test Cases not to be Automated

For more QTP Scripts, www.ramupalanki.com12

One Time TestingAD HOC TestingASAP TestingTesting without predictable Results

Page 13: Qtp testing

Steps in Automated Testing

For more QTP Scripts, www.ramupalanki.com13

Plan the Automated TestRecord the user Actions on ApplicationRunning the ScriptAnalyzing the test ResultsReporting Defects

Page 14: Qtp testing

QTP 8.0

For more QTP Scripts, www.ramupalanki.com14

QTP is an advanced version of win-runner tool.

Is an powerful functional testing tool.QTP allows you to test on standard Web

objects, Activex controls and visual basic controls.

Supports Window and Web based Application.

Page 15: Qtp testing

QTP Basics

For more QTP Scripts, www.ramupalanki.com15

Analog RecordingLow - Level RecordingShort KeysRecord and Run SettingsWeb and Windows based Recording

Page 16: Qtp testing

QTP Test results

For more QTP Scripts, www.ramupalanki.com16

Analyze the test in Key – word viewAnalyze the test in Expert view Analyze the Test TreeAnalyze the Test ResultsActive ScreenTest Settings