qtp testing
Embed Size (px)
DESCRIPTION
TRANSCRIPT

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.

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

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

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.

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

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

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

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

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

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

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

Test Cases not to be Automated
For more QTP Scripts, www.ramupalanki.com12
One Time TestingAD HOC TestingASAP TestingTesting without predictable Results

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

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.

QTP Basics
For more QTP Scripts, www.ramupalanki.com15
Analog RecordingLow - Level RecordingShort KeysRecord and Run SettingsWeb and Windows based Recording

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