SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Introduction to QTPIntroduction to QTP
By :- Vibrant Technologies
& Computers
What is QTPWhat is QTP
• QTP stands QuickTest Professional
• It is an automated testing tool provided by
HP/Mercury Interactive
• QTP integrates with other Mercury testing
solutions including:
o TestDirector/Quality Center
o WinRunner
o LoadRunner
• Utilizes an add-in architecture for compactness
and extensibility
Types of TestingTypes of Testing
• Manual
o Usage of steps defined within test cases to manually test the application
to ensure that it functions properly
• Automated
o Automation of the manual testing process to all unattended execution
and ensure repeatability
Benefits of Automated TestingBenefits of Automated Testing
• Speed
o Automated tests are fast and can execute at a speed
faster than a person can click
• Reliable
o The tests can perform the exact same steps every time
without concern about human error
• Repeatable
o You run the same test against multiple builds/versions of
an application
• Reusable
o Can be reused as a sub-part of different tests
What Should Be AutomatedWhat Should Be Automated
• Good candidates
o Tests executed for each build
o Business critical tests
o Tests that are difficult/tedious to perform manually
• Bad candidates
o Tests without predictable results
o Test that require variable input/responses from the
tester
o Tests that perform operations in multiple environments
QTP EnvironmentQTP Environment
• Windows
o C++, Visual Basic, Java, .NET
• Web
o Web Applications, Web services, Flash
• Other technologies
o SAP, Siebel, Oracle, Peoplesoft, ActiveX
Add-in ArchitectureAdd-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 Add-insQTP Add-ins
• When QTP is started, you should select only the add-ins
for technologies that are used with your application.
• Some of the available add-ins are
o ActiveX - For testing software written using ActiveX (also known
as COM) technology. This technology allows people to create
objects in one language and use those objects within other
languages/applications
o Visual Basic - For applications written in the Visual Basic
language
o Web - For testing web applications written in any language. In
web applications, we interact with the application though a
web browser and so the web application can be written in any
language.
Testing ProcessTesting Process
• Create Object Repository
• Create Tests
o Record
o Edit
• Insert checkpoints
• Insert synchronization points
• Insert output values
• Parameterize test
• Include VBScript code
• Debug test
• Run tests
What is a QTP TestWhat is a QTP Test
• It is called a test script but is actually a folder
containing several files
• Broken down into subparts known as 'Actions‘
• Internally represented using the VBScript
programming language
ActionsActions
• A test is broken into a series of ‘Actions’
o Actions can be renamed to reflect what they do
o Actions can be invoked multiple times within a test
o Actions can be marked as reusable so they can be called from other tests
• Only reusable actions can be called from other tests
Overview QTP ToolOverview QTP Tool
• Menus
• Toolbar
o Provides easy access to items on the menus
• Record & Run Settings
• Test Settings
• Tools
QTP Tool [Code Window]QTP Tool [Code Window]
• Provides a WYSIWYG editor to use in writing your test
script
o Keyboard view
• Provides an icon-based representation of the code being written. This
is often the easiest code view for non-programmers
o Expert View
• Provides a VBScript code based representation of the code being
written. This is the most flexible code
QTP Tool [Views]QTP Tool [Views]
• Active Screen
o Provides screenshots of all objects recorded and also supports object
highlighting
• Data Table
o Shows the data file that can be used to configure the application
• Debug Viewer
o Provides tools to debug code and view the value of variable/expression
during code execution
Create Object Repository [STEP 1]Create Object Repository [STEP 1]
• Intro to Object Oriented Programming
o Objects are a representation of every item found in an
application
o Objects are visual (e.g. Button, Textbox) and non-visual (e.g.
Dictionary, Reporter) elements within an application. Each
object has the following elements
• Properties, Methods & Events
o All objects must have a unique name and belong to a class.
o Objects are referenced in code using dot notation
objectName.Method()
ObjectsObjects
• Properties
o These are characteristics of the object e.g. the text
on a button. QTP uses this to recognize the object
• Methods
o These are built in functionality of the object. The
VBScript code that we write (or record) actually makes calls to the
methods of an object e.g. Reporter.ReportEvent()
Here ReportEvent is the method of the Reporter object
• Events
o These are what can be done to an object. This is used by
programmers to determine what an object does in response to an
action you perform. It is however unused in QTP.
QTP Object Identification ProcessQTP Object Identification Process
• Object Identification
o The tool determines what properties of objects are
recorded
• Object Spy
o Allows users to view the property of an object without
recording it
• Object Repository
o Holds information recorded about each object allowing
the test to identify the object during execution
Creating an Object RepositoryCreating an Object Repository
• Per Action
o An object repository is created for each action
o This means that multiple object repositories can be created per test
• Shared
o A single objected repository is used for multiple tests
CREATE TEST [STEP 2]CREATE TEST [STEP 2]
• Record Steps
• Edit
o Insert synchronization points
o Insert checkpoints
o Insert output values
o Parameterize values
o Include VBScript code
RecordRecord
• Read the outline of steps to perform
• Practice performing the steps to minimize error
• Choose record mode
o Context Sensitive
o Analog
o Low level
• RECORD
• Stop, Save test, playback
Edit TestEdit Test
• Insert synchronization points
o Used to slow down execution of a test script
• Checkpoints
o Used to check expected value of a step against the
actual value at a specific point during execution
• Insert output values
o Used to retrieve values from the AUT
• Insert Parameterization
o Allows you to store data in the data table
• Include VB Script code
o Last option. Very powerful.
Synchronization PointSynchronization Point
• Specific time
o Uses the wait function to pause the test for a specific amount of time [in
seconds]
• Until an event occurs
o Pauses until a specific property of an object has a specific value
CheckpointsCheckpoints
• Standard
o Checks multiple properties of a single object
• Text
o Checks part or all the text within an object
• Text Area
o Checks part or all the text within a text area object
• Bitmap
o Checks the visual layout of an entire object or a portion of the object
• Database
o Checks data in the database
• Accessibility
o Checks web content accessibility against W3C accessibility rules for
the disabled
• XML
o Checks files using XML rules
Output valuesOutput values
• Standard
o Stores a single property of an object in the data table
• Text
o Stores part or all the text of an object in the data table
• Text Area
o Stores the content of a text area in the data table
• Database
o Retrieves content from a database [using a SQL query] and stores
it in the data table
• XML
o Retrieves content from an XML file and store it in the data table
Parameterize DataParameterize Data
• Allows your test to read data from the data table.
• The data table is an Excel spreadsheet file editable from using
Excel or any other application that can edit a .xls document
• The DataTable is encapsulated in QTP in the DataTable object.
This object contains a sheet for every action in the test as well
as a globally accessible sheet known as the global sheet
• Each sheet in the DataTable contains several columns and
rows.
• The columns can be renamed by double-clicking on the
header of the column.
VBScript CodingVBScript Coding
• When the tools provided by QTP are not sufficient to test
an application, VBScript coding can be used.
• VBScript was created as a web programming language
by Microsoft and licensed by many companies for use in
their tools.
RecapRecap
• Checkpoints - check
• Synchronization points - wait
• Output values – retrieve information
• Parameterization – configuration data
• VBScript – adds programmable logic
ThankThank You !!!You !!!
For More Information click below link:
Follow Us on:
http://vibranttechnologies.co.in/qtp-classes-in-mumbai.html

Weitere ähnliche Inhalte

Was ist angesagt?

ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot FrameworkPekka Klärck
 
Implementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor DeryaginImplementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor DeryaginElixir Club
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestionsyoummr
 
Gatling overview
Gatling overviewGatling overview
Gatling overviewViral Jain
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'tsPekka Klärck
 
Reflection in Pharo: Beyond Smalltak
Reflection in Pharo: Beyond SmalltakReflection in Pharo: Beyond Smalltak
Reflection in Pharo: Beyond SmalltakMarcus Denker
 
Dynamically Composing Collection Operations through Collection Promises
Dynamically Composing Collection Operations through Collection PromisesDynamically Composing Collection Operations through Collection Promises
Dynamically Composing Collection Operations through Collection PromisesMarcus Denker
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test ProfessionalVitaliy Ganzha
 
New in Spring Framework 5.0: Functional Web Framework
New in Spring Framework 5.0: Functional Web FrameworkNew in Spring Framework 5.0: Functional Web Framework
New in Spring Framework 5.0: Functional Web FrameworkVMware Tanzu
 

Was ist angesagt? (18)

ATDD Using Robot Framework
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
 
Intro to junit
Intro to junitIntro to junit
Intro to junit
 
Robot framework and selenium2 library
Robot framework and selenium2 libraryRobot framework and selenium2 library
Robot framework and selenium2 library
 
LambdaTest
LambdaTestLambdaTest
LambdaTest
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Gatling
Gatling Gatling
Gatling
 
Implementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor DeryaginImplementing GraphQL API in Elixir – Victor Deryagin
Implementing GraphQL API in Elixir – Victor Deryagin
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
Introduction to Robot Framework
Introduction to Robot FrameworkIntroduction to Robot Framework
Introduction to Robot Framework
 
Gatling overview
Gatling overviewGatling overview
Gatling overview
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
 
Roslyn
RoslynRoslyn
Roslyn
 
Reflection in Pharo: Beyond Smalltak
Reflection in Pharo: Beyond SmalltakReflection in Pharo: Beyond Smalltak
Reflection in Pharo: Beyond Smalltak
 
Dynamically Composing Collection Operations through Collection Promises
Dynamically Composing Collection Operations through Collection PromisesDynamically Composing Collection Operations through Collection Promises
Dynamically Composing Collection Operations through Collection Promises
 
Variables in Pharo5
Variables in Pharo5Variables in Pharo5
Variables in Pharo5
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
QTP AUTOMATION TESTING SYLLABUS
QTP AUTOMATION TESTING SYLLABUSQTP AUTOMATION TESTING SYLLABUS
QTP AUTOMATION TESTING SYLLABUS
 
New in Spring Framework 5.0: Functional Web Framework
New in Spring Framework 5.0: Functional Web FrameworkNew in Spring Framework 5.0: Functional Web Framework
New in Spring Framework 5.0: Functional Web Framework
 

Ähnlich wie Qtp - Introduction to automation basics

QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptKalyan Chakravarthy
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
Qtp training session I
Qtp training session IQtp training session I
Qtp training session IAisha Mazhar
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2Akash Tyagi
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_materialVishwaprakash Sahoo
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professionalsunny.deb
 
Practical Software Testing Tools
Practical Software Testing ToolsPractical Software Testing Tools
Practical Software Testing ToolsDr Ganesh Iyer
 
Testing Tools Online Training.pdf
Testing Tools Online Training.pdfTesting Tools Online Training.pdf
Testing Tools Online Training.pdfSpiritsoftsTraining
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTPBugRaptors
 
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Sam Becker
 

Ähnlich wie Qtp - Introduction to automation basics (20)

Qtpppt1
Qtpppt1Qtpppt1
Qtpppt1
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Qtp - Introduction to synchronization
Qtp -  Introduction to synchronizationQtp -  Introduction to synchronization
Qtp - Introduction to synchronization
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Qtp training session I
Qtp training session IQtp training session I
Qtp training session I
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Practical Software Testing Tools
Practical Software Testing ToolsPractical Software Testing Tools
Practical Software Testing Tools
 
Testing Angular
Testing AngularTesting Angular
Testing Angular
 
Testing Tools Online Training.pdf
Testing Tools Online Training.pdfTesting Tools Online Training.pdf
Testing Tools Online Training.pdf
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8Test all the things! Automated testing with Drupal 8
Test all the things! Automated testing with Drupal 8
 

Mehr von Vibrant Technologies & Computers

Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Vibrant Technologies & Computers
 

Mehr von Vibrant Technologies & Computers (20)

Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5Buisness analyst business analysis overview ppt 5
Buisness analyst business analysis overview ppt 5
 
SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables  SQL Introduction to displaying data from multiple tables
SQL Introduction to displaying data from multiple tables
 
SQL- Introduction to MySQL
SQL- Introduction to MySQLSQL- Introduction to MySQL
SQL- Introduction to MySQL
 
SQL- Introduction to SQL database
SQL- Introduction to SQL database SQL- Introduction to SQL database
SQL- Introduction to SQL database
 
ITIL - introduction to ITIL
ITIL - introduction to ITILITIL - introduction to ITIL
ITIL - introduction to ITIL
 
Salesforce - Introduction to Security & Access
Salesforce -  Introduction to Security & Access Salesforce -  Introduction to Security & Access
Salesforce - Introduction to Security & Access
 
Data ware housing- Introduction to olap .
Data ware housing- Introduction to  olap .Data ware housing- Introduction to  olap .
Data ware housing- Introduction to olap .
 
Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.Data ware housing - Introduction to data ware housing process.
Data ware housing - Introduction to data ware housing process.
 
Data ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housingData ware housing- Introduction to data ware housing
Data ware housing- Introduction to data ware housing
 
Salesforce - classification of cloud computing
Salesforce - classification of cloud computingSalesforce - classification of cloud computing
Salesforce - classification of cloud computing
 
Salesforce - cloud computing fundamental
Salesforce - cloud computing fundamentalSalesforce - cloud computing fundamental
Salesforce - cloud computing fundamental
 
SQL- Introduction to PL/SQL
SQL- Introduction to  PL/SQLSQL- Introduction to  PL/SQL
SQL- Introduction to PL/SQL
 
SQL- Introduction to advanced sql concepts
SQL- Introduction to  advanced sql conceptsSQL- Introduction to  advanced sql concepts
SQL- Introduction to advanced sql concepts
 
SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data   SQL Inteoduction to SQL manipulating of data
SQL Inteoduction to SQL manipulating of data
 
SQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set OperationsSQL- Introduction to SQL Set Operations
SQL- Introduction to SQL Set Operations
 
Sas - Introduction to designing the data mart
Sas - Introduction to designing the data martSas - Introduction to designing the data mart
Sas - Introduction to designing the data mart
 
Sas - Introduction to working under change management
Sas - Introduction to working under change managementSas - Introduction to working under change management
Sas - Introduction to working under change management
 
SAS - overview of SAS
SAS - overview of SASSAS - overview of SAS
SAS - overview of SAS
 
Teradata - Architecture of Teradata
Teradata - Architecture of TeradataTeradata - Architecture of Teradata
Teradata - Architecture of Teradata
 
Teradata - Restoring Data
Teradata - Restoring Data Teradata - Restoring Data
Teradata - Restoring Data
 

Kürzlich hochgeladen

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Kürzlich hochgeladen (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

Qtp - Introduction to automation basics

  • 1.
  • 2. Introduction to QTPIntroduction to QTP By :- Vibrant Technologies & Computers
  • 3. What is QTPWhat is QTP • QTP stands QuickTest Professional • It is an automated testing tool provided by HP/Mercury Interactive • QTP integrates with other Mercury testing solutions including: o TestDirector/Quality Center o WinRunner o LoadRunner • Utilizes an add-in architecture for compactness and extensibility
  • 4. Types of TestingTypes of Testing • Manual o Usage of steps defined within test cases to manually test the application to ensure that it functions properly • Automated o Automation of the manual testing process to all unattended execution and ensure repeatability
  • 5. Benefits of Automated TestingBenefits of Automated Testing • Speed o Automated tests are fast and can execute at a speed faster than a person can click • Reliable o The tests can perform the exact same steps every time without concern about human error • Repeatable o You run the same test against multiple builds/versions of an application • Reusable o Can be reused as a sub-part of different tests
  • 6. What Should Be AutomatedWhat Should Be Automated • Good candidates o Tests executed for each build o Business critical tests o Tests that are difficult/tedious to perform manually • Bad candidates o Tests without predictable results o Test that require variable input/responses from the tester o Tests that perform operations in multiple environments
  • 7. QTP EnvironmentQTP Environment • Windows o C++, Visual Basic, Java, .NET • Web o Web Applications, Web services, Flash • Other technologies o SAP, Siebel, Oracle, Peoplesoft, ActiveX
  • 8. Add-in ArchitectureAdd-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
  • 9. QTP Add-insQTP Add-ins • When QTP is started, you should select only the add-ins for technologies that are used with your application. • Some of the available add-ins are o ActiveX - For testing software written using ActiveX (also known as COM) technology. This technology allows people to create objects in one language and use those objects within other languages/applications o Visual Basic - For applications written in the Visual Basic language o Web - For testing web applications written in any language. In web applications, we interact with the application though a web browser and so the web application can be written in any language.
  • 10. Testing ProcessTesting Process • Create Object Repository • Create Tests o Record o Edit • Insert checkpoints • Insert synchronization points • Insert output values • Parameterize test • Include VBScript code • Debug test • Run tests
  • 11. What is a QTP TestWhat is a QTP Test • It is called a test script but is actually a folder containing several files • Broken down into subparts known as 'Actions‘ • Internally represented using the VBScript programming language
  • 12. ActionsActions • A test is broken into a series of ‘Actions’ o Actions can be renamed to reflect what they do o Actions can be invoked multiple times within a test o Actions can be marked as reusable so they can be called from other tests • Only reusable actions can be called from other tests
  • 13. Overview QTP ToolOverview QTP Tool • Menus • Toolbar o Provides easy access to items on the menus • Record & Run Settings • Test Settings • Tools
  • 14. QTP Tool [Code Window]QTP Tool [Code Window] • Provides a WYSIWYG editor to use in writing your test script o Keyboard view • Provides an icon-based representation of the code being written. This is often the easiest code view for non-programmers o Expert View • Provides a VBScript code based representation of the code being written. This is the most flexible code
  • 15. QTP Tool [Views]QTP Tool [Views] • Active Screen o Provides screenshots of all objects recorded and also supports object highlighting • Data Table o Shows the data file that can be used to configure the application • Debug Viewer o Provides tools to debug code and view the value of variable/expression during code execution
  • 16. Create Object Repository [STEP 1]Create Object Repository [STEP 1] • Intro to Object Oriented Programming o Objects are a representation of every item found in an application o Objects are visual (e.g. Button, Textbox) and non-visual (e.g. Dictionary, Reporter) elements within an application. Each object has the following elements • Properties, Methods & Events o All objects must have a unique name and belong to a class. o Objects are referenced in code using dot notation objectName.Method()
  • 17. ObjectsObjects • Properties o These are characteristics of the object e.g. the text on a button. QTP uses this to recognize the object • Methods o These are built in functionality of the object. The VBScript code that we write (or record) actually makes calls to the methods of an object e.g. Reporter.ReportEvent() Here ReportEvent is the method of the Reporter object • Events o These are what can be done to an object. This is used by programmers to determine what an object does in response to an action you perform. It is however unused in QTP.
  • 18. QTP Object Identification ProcessQTP Object Identification Process • Object Identification o The tool determines what properties of objects are recorded • Object Spy o Allows users to view the property of an object without recording it • Object Repository o Holds information recorded about each object allowing the test to identify the object during execution
  • 19. Creating an Object RepositoryCreating an Object Repository • Per Action o An object repository is created for each action o This means that multiple object repositories can be created per test • Shared o A single objected repository is used for multiple tests
  • 20. CREATE TEST [STEP 2]CREATE TEST [STEP 2] • Record Steps • Edit o Insert synchronization points o Insert checkpoints o Insert output values o Parameterize values o Include VBScript code
  • 21. RecordRecord • Read the outline of steps to perform • Practice performing the steps to minimize error • Choose record mode o Context Sensitive o Analog o Low level • RECORD • Stop, Save test, playback
  • 22. Edit TestEdit Test • Insert synchronization points o Used to slow down execution of a test script • Checkpoints o Used to check expected value of a step against the actual value at a specific point during execution • Insert output values o Used to retrieve values from the AUT • Insert Parameterization o Allows you to store data in the data table • Include VB Script code o Last option. Very powerful.
  • 23. Synchronization PointSynchronization Point • Specific time o Uses the wait function to pause the test for a specific amount of time [in seconds] • Until an event occurs o Pauses until a specific property of an object has a specific value
  • 24. CheckpointsCheckpoints • Standard o Checks multiple properties of a single object • Text o Checks part or all the text within an object • Text Area o Checks part or all the text within a text area object • Bitmap o Checks the visual layout of an entire object or a portion of the object • Database o Checks data in the database • Accessibility o Checks web content accessibility against W3C accessibility rules for the disabled • XML o Checks files using XML rules
  • 25. Output valuesOutput values • Standard o Stores a single property of an object in the data table • Text o Stores part or all the text of an object in the data table • Text Area o Stores the content of a text area in the data table • Database o Retrieves content from a database [using a SQL query] and stores it in the data table • XML o Retrieves content from an XML file and store it in the data table
  • 26. Parameterize DataParameterize Data • Allows your test to read data from the data table. • The data table is an Excel spreadsheet file editable from using Excel or any other application that can edit a .xls document • The DataTable is encapsulated in QTP in the DataTable object. This object contains a sheet for every action in the test as well as a globally accessible sheet known as the global sheet • Each sheet in the DataTable contains several columns and rows. • The columns can be renamed by double-clicking on the header of the column.
  • 27. VBScript CodingVBScript Coding • When the tools provided by QTP are not sufficient to test an application, VBScript coding can be used. • VBScript was created as a web programming language by Microsoft and licensed by many companies for use in their tools.
  • 28. RecapRecap • Checkpoints - check • Synchronization points - wait • Output values – retrieve information • Parameterization – configuration data • VBScript – adds programmable logic
  • 29. ThankThank You !!!You !!! For More Information click below link: Follow Us on: http://vibranttechnologies.co.in/qtp-classes-in-mumbai.html