SlideShare a Scribd company logo
1 of 7
Actions in QTP – The Basics
By Chandrika
What you would read in this PPT:
 What are QTP Actions.
 What are the different types of QTP actions.
 How actions access data from QTP data tables.
 How to call actions in your QTP scripts.
What is a QTP Action?
QTP Action is a placeholder or a component in which you can write your
scripts or code.
You can write your code in QTP actions in the same way you do in a
function library or scripted business component.
Just like functions, actions also help to divide your test script into logical
units or business flows.
In fact, a QTP test script is itself a collection of one or more actions.
Whenever you create a new test case, an action will also be created
automatically for that test case.
What is a QTP Action – contd..
Each test case in QTP consists of one or more actions and the flow of the
test case is determined by the order of action calls.
Example: Consider a scenario where you
login to gmail >> send an email >> logout from gmail
This scenario can be scripted by adding 3 actions in a QTP test script as –
What is a QTP Action – contd..
Modularization provided by actions is similar to what is there with
functions. Only difference is the implementation.
.. is similar to ..
Different Types of QTP Actions
QTP actions can be classified into the following different types -
Different Types of QTP Actions
NOTE: QTP documentation doesn’t specify an action type as ‘Internal’. We have just extended the ‘External
Action’ type to come up with ‘Internal Action’.
Different Types of QTP Actions – contd..
QTP actions can be classified into the following different types -
Reusable Actions : These are the actions
that can be called multiple times by –
- the same test in which it is stored, and
- by other external tests also.
Non-Reusable Actions : These are the
actions that can be called only once and
that too in the test where they are stored.
These can’t be called from external tests.
Internal Actions : With reference to a
QTP test case, an internal action is one
that is stored within that test case.
This action can be reusable as well as
non-reusable.
External Actions : With reference to a
QTP test case, an external action is one
that is stored in some other test case.
External actions should be reusable
otherwise it can’t be used outside the
test case.

More Related Content

What's hot

QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5Akash Tyagi
 
Pluggable Pipelines
Pluggable PipelinesPluggable Pipelines
Pluggable Pipelinessetitesuk
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2Akash Tyagi
 
QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3Akash Tyagi
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestionsyoummr
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.tjdhans
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorialtjdhans
 
SP_Homework_3
SP_Homework_3SP_Homework_3
SP_Homework_3adios
 
Qtp certification questions and answers
Qtp certification questions and answersQtp certification questions and answers
Qtp certification questions and answersRamu Palanki
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point PresentationSVRTechnologies
 
Refactoring: Improving the design of existing code
Refactoring: Improving the design of existing codeRefactoring: Improving the design of existing code
Refactoring: Improving the design of existing codeKnoldus Inc.
 
Presenter deck icenium hol
Presenter deck   icenium holPresenter deck   icenium hol
Presenter deck icenium holDhananjay Kumar
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP FrameworkAnish10110
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentationtechgajanan
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentationRamu Palanki
 
Types of storage class specifiers in c programming
Types of storage class specifiers in c programmingTypes of storage class specifiers in c programming
Types of storage class specifiers in c programmingAppili Vamsi Krishna
 
Traits: Introduction to Define Shared Behavior
Traits: Introduction to Define Shared BehaviorTraits: Introduction to Define Shared Behavior
Traits: Introduction to Define Shared BehaviorKnoldus Inc.
 

What's hot (20)

QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5
 
Pluggable Pipelines
Pluggable PipelinesPluggable Pipelines
Pluggable Pipelines
 
QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2QTP Automation Testing Tutorial 2
QTP Automation Testing Tutorial 2
 
QTP AUTOMATION TESTING SYLLABUS
QTP AUTOMATION TESTING SYLLABUSQTP AUTOMATION TESTING SYLLABUS
QTP AUTOMATION TESTING SYLLABUS
 
Qtp faqs
Qtp faqsQtp faqs
Qtp faqs
 
QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3QTP Automation Testing Tutorial 3
QTP Automation Testing Tutorial 3
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
 
SP_Homework_3
SP_Homework_3SP_Homework_3
SP_Homework_3
 
Qtp certification questions and answers
Qtp certification questions and answersQtp certification questions and answers
Qtp certification questions and answers
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point Presentation
 
Refactoring: Improving the design of existing code
Refactoring: Improving the design of existing codeRefactoring: Improving the design of existing code
Refactoring: Improving the design of existing code
 
Presenter deck icenium hol
Presenter deck   icenium holPresenter deck   icenium hol
Presenter deck icenium hol
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP Framework
 
Qtp Presentation
Qtp PresentationQtp Presentation
Qtp Presentation
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
 
FUNCTION CPU
FUNCTION CPUFUNCTION CPU
FUNCTION CPU
 
Types of storage class specifiers in c programming
Types of storage class specifiers in c programmingTypes of storage class specifiers in c programming
Types of storage class specifiers in c programming
 
Traits: Introduction to Define Shared Behavior
Traits: Introduction to Define Shared BehaviorTraits: Introduction to Define Shared Behavior
Traits: Introduction to Define Shared Behavior
 

Similar to Qtp actions-the-basics

Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginnersRamu Palanki
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtpRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questionsRamu Palanki
 
Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTPBugRaptors
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questionskspanigra
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Write unit test from scratch
Write unit test from scratchWrite unit test from scratch
Write unit test from scratchWen-Shih Chao
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basicmedsherb
 
Unit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxUnit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxShantanuDharekar
 

Similar to Qtp actions-the-basics (20)

Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questions
 
Qtp basics
Qtp basicsQtp basics
Qtp basics
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Write unit test from scratch
Write unit test from scratchWrite unit test from scratch
Write unit test from scratch
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
 
Unit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptxUnit 5 Activity and Activity Life Cycle.pptx
Unit 5 Activity and Activity Life Cycle.pptx
 

Qtp actions-the-basics

  • 1. Actions in QTP – The Basics By Chandrika
  • 2. What you would read in this PPT:  What are QTP Actions.  What are the different types of QTP actions.  How actions access data from QTP data tables.  How to call actions in your QTP scripts.
  • 3. What is a QTP Action? QTP Action is a placeholder or a component in which you can write your scripts or code. You can write your code in QTP actions in the same way you do in a function library or scripted business component. Just like functions, actions also help to divide your test script into logical units or business flows. In fact, a QTP test script is itself a collection of one or more actions. Whenever you create a new test case, an action will also be created automatically for that test case.
  • 4. What is a QTP Action – contd.. Each test case in QTP consists of one or more actions and the flow of the test case is determined by the order of action calls. Example: Consider a scenario where you login to gmail >> send an email >> logout from gmail This scenario can be scripted by adding 3 actions in a QTP test script as –
  • 5. What is a QTP Action – contd.. Modularization provided by actions is similar to what is there with functions. Only difference is the implementation. .. is similar to ..
  • 6. Different Types of QTP Actions QTP actions can be classified into the following different types - Different Types of QTP Actions NOTE: QTP documentation doesn’t specify an action type as ‘Internal’. We have just extended the ‘External Action’ type to come up with ‘Internal Action’.
  • 7. Different Types of QTP Actions – contd.. QTP actions can be classified into the following different types - Reusable Actions : These are the actions that can be called multiple times by – - the same test in which it is stored, and - by other external tests also. Non-Reusable Actions : These are the actions that can be called only once and that too in the test where they are stored. These can’t be called from external tests. Internal Actions : With reference to a QTP test case, an internal action is one that is stored within that test case. This action can be reusable as well as non-reusable. External Actions : With reference to a QTP test case, an external action is one that is stored in some other test case. External actions should be reusable otherwise it can’t be used outside the test case.