0% found this document useful (0 votes)
64 views41 pages

In The Manual Testing Concurrency Is Not Possible (Measure The Response Time Exactly) - Sanity or Smoke To Test The Major Functionalities

Automation testing provides advantages over manual testing such as allowing for concurrency and parameterization. Some test cases that can be automated include positive test cases and regression testing when new functionality is added. However, not all test cases can be automated, such as integration, usability, exploratory, and negative test cases or those requiring manual intervention. Quick Test Professional (QTP) is a functional automation testing tool that supports recording and playback of tests on Windows applications. It uses an add-in architecture to support various technologies and has features such as checkpoints, data-driven testing, and debugging.

Uploaded by

mur2hy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views41 pages

In The Manual Testing Concurrency Is Not Possible (Measure The Response Time Exactly) - Sanity or Smoke To Test The Major Functionalities

Automation testing provides advantages over manual testing such as allowing for concurrency and parameterization. Some test cases that can be automated include positive test cases and regression testing when new functionality is added. However, not all test cases can be automated, such as integration, usability, exploratory, and negative test cases or those requiring manual intervention. Quick Test Professional (QTP) is a functional automation testing tool that supports recording and playback of tests on Windows applications. It uses an add-in architecture to support various technologies and has features such as checkpoints, data-driven testing, and debugging.

Uploaded by

mur2hy
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 41

why we go for Automation?

In the manual testing concurrency is not possible (measure the response time exactly).  Sanity or smoke to test the major functionalities.


Advantages:
Parameterization: To test the same application with multiple sets of data  Regression Testing: whenever the new functionality is added to the existing functionality at that time, the existing functionality we have to identify the existing sanity test cases and then automated it.  Concurrency is possible


Disadvantages:
  

It is expensive Skill and expertise person should required If the automation plan is not properly maintained or developed, it will consume more time than the manual.

What kind of test cases is automated?


 Parameterization  We

type of test cases

can automate positive test cases.

What not to be automated?




Integration types of test cases (web services, Net Banking)  Usability  Exploratory/ad hoc types of test cases  A test case which is having manual intervention  Negative test cases

QTP
       

QTP Stands for Quick Test Professional QTP Launched in 2002 (Nov). By Mercury Interactive. Later taken over by HP, in 2007. After acquiring by HP company has released 9.5 version which was not clicked. QTP is an Object Based Testing Tool. QTP is for functional and Regression Testing. It follows Keyword driven approach. It supports Windows Operating Environment only. It supports GUI based and Web based Applications Automation, does not support CUI (Command user interface) Applications. It has multilingual support. (It supports English, Chinese, Japanese, Korean, etc languages with respect to license.)

Technologies Supported
1.

Standard Windows applications Web objects / Applications ActiveX controls Visual Basic applications

2.

3.

4.

Version History of QTP


         

Astra Quick test (Mother tool of QTP) 1.0 to 5.0 Quick Test Professional 5.6 Nov 2002 6.5 2003 8.0 2004 8.2, 8.3 2005 9.0,9.1-2006 9.2- 2007 mercury interactive 9.5 2008 H.P 10.00 2009 January

Tools are classified into three types.


1.

Functional tools (QTP, Win runner, Silk Test etc) Management Tools (Test Director/Quality Centre) Performance tools (Load Runner, Silk performer)

2.

3.

AddAdd-in Architecture


Enables QTP to provide support for multiple technologies.  Add-ins are software that need to be installed on a system that has QTP. It then becomes integrated with the QTP environment.  QTP is sold with the ability to understand a few technologies, add-ins provide QTP with the ability to understand additional technologies  Users are able to select the specific add-ins for the technologies they are testing thereby reducing the memory footprint of QTP

  

QTP supports almost all industry leading technologies, but by default it does not support, with respect to add in license it supports. Default Add- ins of QTP are: - Activex - Visual basic - Web. Other available Add Ins are: .Dot NET, Java, People soft, Siebel, TE (Terminal Emulators), SAP for GUI, Sap for Web, Oracle Apps, Web Services etc. During QTP launching it shows Add in manger dialog box, Add in Manger lists out all available Add Ins in the company. User needs to select appropriate Add Ins for his application or AUT. One can select more than one Add Ins also; if we select unnecessary Add Ins QTP performance will be reduced.

QTP Automation Process:


1. 

Prepare the Automation Test Plan:

Should not start until the manual testing is stable  The test script should be run each and every build  The test script should be run on supported browsers  If our project/product/application having localization setup with localization

2. Identify Objects  Logical Name/ Class Name  Physical Description/ Properties 3. Start recording  Writing Scripts

4.Edit / enhance the scripts  Validation 5.Run the scripts  Either individually or batch 6.Log the bugs and report the results

QTP - Main Window

QTP - Main Window Test Pane:


 Test Pane contains two labs to view the tests,

- Keyword View - Expert View


Keyword View:


Quick Test Pro displays your test in the form of a collapsible, icon based tree Quick Test Pro displays the source code (VB Script) of the tests in this view.

Expert View:


QTP - Main Window

QTP - Main Window

Data Table : Data table assists in Parameterizing the tests Debug Viewer Pane : It assists in debugging tests with the help of Watch Expressions, Variables, and Command.

Quick Test Pro Commands Quick Test Pro Commands : The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar. File Tool bar : File tool bar contains buttons for managing the test.

Quick Test Pro Commands

Test Tool bar : Test tool bar contains buttons for the commands used when creating or maintaining the tests

Quick Test Pro Commands

Debug Tool Bar :


It contains buttons for commands used when debugging the steps in the tests

Quick Test Pro Commands

Action Tool Bar : To view all actions in the test flow or to view the details of a selected action

QTP Recording Modes


In QTP there are 3 recording modes available for preparing Tests. 1. Normal/ Standard recording
2.

Analog Recording Low level Recording

3.

Normal /Standard Recording


 It

is the default recording mode in QTP in which it will record the standard GUI operations. (Default Recording Mode)

Navigation:
 Automation  Select

> Record option on automation

Or Record

toolbar Or  Use short cut key (F3)

Steps for preparing a Test (Through Recording):


1. 2. 3. 4.

Put AUT in base state Select Record Option It shows Record and Run Settings, Select type of Environment (Windows or Web) Select Record Option

(It shows two Options : I. Record and Run Test on any open window based applications II. Record and Run only on If we select first option it records on any opened application on Desktop. If we select Second option, it asks for the path of the AUT, After Providing the path it records only on that particular application.)

5.Click OK 6.Perform actions on AUT 7.Stop recording. 8.Save the Test

Analog Recording
 It

will record only Keyboard and Mouse Operations. will record non standard GUI operations.

 It  It

is more helpful for to verify the digital signatures

Navigation
 Automation

Menu Analog Recording

Start Recording

Or ALT + Shift + F3

Steps for preparing a TEST (Through Analog Recording):


1. 2. 3. 4.

Launch AUT (or we can launch AUT through QTP) Select Record option Automation>Analog Recording Analog Recording Settings Dialog box opens

(In this Dialog box two options available. 1.Record relative to the screen 2.Record relative to the following window
 

If we select first option QTP records User operations with respect to Desktop coordinates. If we select Second option, we have to show the window (AUT), after showing the Window it records with respect to that window co-ordinates.)

5. Select any one option in the dialog box and click Start
Analog record. 6. It records User actions 7. Stop Recording

Low Level Recording




It records some operations on Non-supported environments apart from Normal operations. This mode records at the object level and records all run time objects as window or winobject Test objects. Use Low Level Recording for recording in an environment not recognized by QTP.

Navigation
 Keep

tool under recording mode > Low Level Recording

 Automation

Steps for preparing a TEST (through Low Level Recording):


Launch AUT (or we can launch AUT through QTP)  Select Record option  Automation> Low Level Recording  Perform options on AUT  Stop Recording  Save the Test


Check Points
Check Point is a verification point that compares the current value of the specified property with the expected value for that property. (It is a validation point to compare the actual and expected value.)
     

Standard Check Point Text/ Text Area Check Point Bitmap Check point Database Check Point XML Check Point Accessibility Check Point/ Web Checkpoint

Standard Check Point


It will verify standard GUI operations

Text Area Check Point


It will verify the selected text as a paragraph or a page or more than one page.

Text Check Point


It will verify the selected text or word within the line. 1) Checked Text 2) Text Before 3) Text After

Bitmap Check Point


It will verify the part of the image/bitmap or complete image/bitmap

Database Check Point


You want to verify the content of data base

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy