SlideShare a Scribd company logo
Troubleshooting with QTP





What is Troubleshooting?
How to Troubleshoot?
Debugging








Step Commands
Pausing a Run Session
Setting Breakpoints
Removing Breakpoints
Using the Debug Viewer

Session Wrap-Up

pgorantla.blogspot.com
Troubleshooting with QTP



While working on software applications the user generally
faces conditions whereby the operation performed on
concerned application comes to a stall due to certain error that
occurs in the process.



It becomes necessary to identify these conditions and corrective
measures are taken to avoid these conditions for proper flow of
the test run.



In QTP we have the Debug Viewer that helps to find the exact
location of occurrence while running the test and also in loop
structures.



One of the troubleshooting technique available in QTP is
Recovery Scenarios as this helps in maintaining the flow of test
run.
pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP



In QTP you have the option of the Debug viewer which also helps in
finding the conditions where error can occur.



The user can run the test in the debug mode by using the F11 key.



This helps to check smooth run of the created test, without errors in
syntax or logic.



This can also carried out by inserting breakpoints within the test.



This makes use of the Step commands which are;




Step Into: Used to run only the current line of the active test or component.
Step Out: Used only after using Step Into to enter a action. It runs to the end of
the called action, then returns to the calling action and pauses the run session.
Step Over: To use this option either click Debug > Step Over button, or press
F10 to run only the current step in the active test or component.

pgorantla.blogspot.com
Troubleshooting with QTP



Pausing a Run Session







You can temporarily suspend a run session by choosing Debug > Pause button.
A paused test or component stops running when all previously interpreted steps
have
been run.
To resume running a paused test or component, choose Test > Run or Component
>
Run. The run continues from the point it was suspended.

Setting Breakpoints



By setting a breakpoint, you can stop a run session at a pre-determined place in a
test or component.
You can use breakpoints to:
 suspend a run session and inspect the state of your site or application
 mark a point from which to begin stepping through a test or component using the step

commands



To set a breakpoint choose Debug > Insert/Remove Breakpoint, press F9.

Removing a Breakpoint


To remove all breakpoints, choose Debug > Clear All Breakpoints/F9.
pgorantla.blogspot.com
Troubleshooting with QTP



The Debug viewer pane can be used to view, set, or modify the
current
value of objects or variables in your test or components.



The Debug Viewer pane is positioned below the Data Table
and Active
Screen.



The Debug viewer tabs are used to display the values of
variables and
objects in the main script of the current action, or in a selected
subroutine.



The Debug viewer consists of three different tabs namely;




Watch Expressions Tab
Variables Tab
Command Tab

pgorantla.blogspot.com
Troubleshooting with QTP



Watch Expressions Tab





Variables Tab






This tab to view the current value of any variable that has an
expression assigned to it.
If the value of the object or variable changes when you continue to run
the test or component, the value in the Watch Expressions tab is
updated.

Use the Variables tab to view the current value of all variables, in the
current action or selected subroutine, identified up to the point where
the test or component stopped.
If the value of a variable changes when the run continues, the value in
the Variables tab is updated.

Command Tab




Use the Command tab to execute a line of script in order to set or
modify the current value of a variable or VBScript object in your test
or component.
When the run continues, QTP uses the value that you set.
pgorantla.blogspot.com
Troubleshooting with QTP



Scenario


User runs a multiplication program. It has an expression for the intresult
variable which the user inserts in the Watch Expression tab and the
corresponding values for this variable goes on incrementing as the program
is executed. The initial value for the being 1 and the final value being 15.

pgorantla.blogspot.com
Troubleshooting with QTP



Scenario


For the same program if we try to check the variable tab in the Debug
Viewer we get the all the variables that have been used in it inserted. The
values for these variables keep on changing while the program gets
executed. The initial value for intCnt, intSubcnt and intresult all have their
initial values as 1 and the final value being 3, 5 and 15 respectively.

pgorantla.blogspot.com
Troubleshooting with QTP



Scenario




While running the script the amount of time taken to load an
particular page is more than the estimated time hence the
corresponding error occurs stating that the object cannot be
found.

Possible Causes


As stated in the above conditions, this error can also occur if the
property value has changed for that object.



But over here if you observe then in the Active Screen we see
“Page cannot be displayed” error which occurs if the
corresponding page is not loaded or the server has timed out.
pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP



Scenario




While running certain scripts if parameters are not properly declared
in the script then we get the error given below.

Possible causes


This can be a case where in the Keyword View the parameter is not set
and the script is run.



In the Expert View if the parameter is not defined but called upon in
the script.



The expressions used are improper.



It becomes necessary that the user uses breakpoints or debugs the
script where he has defined certain variables or has certain
expressions declared initially before running the script as this will
help him reduce the error.
pgorantla.blogspot.com
Troubleshooting with QTP

pgorantla.blogspot.com
Troubleshooting with QTP

Q & A….

pgorantla.blogspot.com
Troubleshooting with QTP







Troubleshooting helps the user to identify the
glitches while operating with QTP.
Debugging helps to identify the exact location
where the glitch has occurred.
Debug viewer has an option to change the values
for the variables used in the test.

pgorantla.blogspot.com

More Related Content

What's hot

Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Qtp testing
Qtp testingQtp testing
Qtp testing
Ramu Palanki
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
rosaleenm
 
Stamp Project presentation at OW2con'17
Stamp Project presentation at OW2con'17Stamp Project presentation at OW2con'17
Stamp Project presentation at OW2con'17
STAMP Project
 
Qtp Tutorials
Qtp TutorialsQtp Tutorials
Qtp Tutorials
techgajanan
 
Qtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.comQtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.com
onsoftwaretest
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
Ramu Palanki
 
How to push a react js application in production and sleep better
How to push a react js application in production and sleep betterHow to push a react js application in production and sleep better
How to push a react js application in production and sleep better
Emanuele Rampichini
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
Pravinsinh
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
Ramu Palanki
 
Intro to junit
Intro to junitIntro to junit
Intro to junit
Rakesh Srivastava
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
sasidhar
 
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
OW2
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
mehramit
 
Qtp tutorials
Qtp tutorialsQtp tutorials
Qtp tutorials
Ramu Palanki
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point Presentation
SVRTechnologies
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
Ramu Palanki
 

What's hot (18)

Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Qtp testing
Qtp testingQtp testing
Qtp testing
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Ppt Qtp
Ppt QtpPpt Qtp
Ppt Qtp
 
Stamp Project presentation at OW2con'17
Stamp Project presentation at OW2con'17Stamp Project presentation at OW2con'17
Stamp Project presentation at OW2con'17
 
Qtp Tutorials
Qtp TutorialsQtp Tutorials
Qtp Tutorials
 
Qtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.comQtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.com
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
 
How to push a react js application in production and sleep better
How to push a react js application in production and sleep betterHow to push a react js application in production and sleep better
How to push a react js application in production and sleep better
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
 
Intro to junit
Intro to junitIntro to junit
Intro to junit
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
STAMP: Software Testing Amplification in DevOps, Etienne Sauvage, OW2con'17
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Qtp tutorials
Qtp tutorialsQtp tutorials
Qtp tutorials
 
QTP Power Point Presentation
QTP Power Point PresentationQTP Power Point Presentation
QTP Power Point Presentation
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 

Similar to Troubleshooting with QTP

Recovery Scenario in QTP
Recovery Scenario in QTPRecovery Scenario in QTP
Recovery Scenario in QTP
Praveen Gorantla
 
QTP 9.2
QTP 9.2QTP 9.2
Qtp 9.2 tutorials
Qtp 9.2 tutorialsQtp 9.2 tutorials
Qtp 9.2 tutorials
medsherb
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
Kuldeep Sharma
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive Programming
Kuldeep Sharma
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programming
medsherb
 
QTP_PRESENTATION_Andy
QTP_PRESENTATION_AndyQTP_PRESENTATION_Andy
QTP_PRESENTATION_Andy
Kumar Jaiswal Aditya
 
6) debugging and testing
6) debugging and testing6) debugging and testing
6) debugging and testing
techbed
 
OLT open script
OLT open script OLT open script
OLT open script
Sujay Raghuraj
 
360 view on Load and Performance Testing
360 view on Load and Performance Testing360 view on Load and Performance Testing
360 view on Load and Performance Testing
MaheshShri1
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
techgajanan
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
chandrasekhar
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
techgajanan
 
Lesson 4...Bug Life Cycle
Lesson 4...Bug Life CycleLesson 4...Bug Life Cycle
Lesson 4...Bug Life Cycle
bhushan Nehete
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
Ramu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
Ramu Palanki
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
Siddhartha Parida
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
medsherb
 
Qtp training session V
Qtp training session VQtp training session V
Qtp training session V
Aisha Mazhar
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.
Jaya Priya
 

Similar to Troubleshooting with QTP (20)

Recovery Scenario in QTP
Recovery Scenario in QTPRecovery Scenario in QTP
Recovery Scenario in QTP
 
QTP 9.2
QTP 9.2QTP 9.2
QTP 9.2
 
Qtp 9.2 tutorials
Qtp 9.2 tutorialsQtp 9.2 tutorials
Qtp 9.2 tutorials
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive Programming
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programming
 
QTP_PRESENTATION_Andy
QTP_PRESENTATION_AndyQTP_PRESENTATION_Andy
QTP_PRESENTATION_Andy
 
6) debugging and testing
6) debugging and testing6) debugging and testing
6) debugging and testing
 
OLT open script
OLT open script OLT open script
OLT open script
 
360 view on Load and Performance Testing
360 view on Load and Performance Testing360 view on Load and Performance Testing
360 view on Load and Performance Testing
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Lesson 4...Bug Life Cycle
Lesson 4...Bug Life CycleLesson 4...Bug Life Cycle
Lesson 4...Bug Life Cycle
 
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
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
 
Qtp training session V
Qtp training session VQtp training session V
Qtp training session V
 
QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.QTP Tutorial Slides Presentation.
QTP Tutorial Slides Presentation.
 

More from Praveen Gorantla

File System Object in QTP
File System Object in QTPFile System Object in QTP
File System Object in QTP
Praveen Gorantla
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
Praveen Gorantla
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
Praveen Gorantla
 
VB Script Overview
VB Script OverviewVB Script Overview
VB Script Overview
Praveen Gorantla
 
Regular Expressions in QTP
Regular Expressions in QTPRegular Expressions in QTP
Regular Expressions in QTP
Praveen Gorantla
 
Dynamic Content in QTP
Dynamic Content in QTPDynamic Content in QTP
Dynamic Content in QTP
Praveen Gorantla
 
Business Process Testing
Business Process TestingBusiness Process Testing
Business Process Testing
Praveen Gorantla
 
QTP Basics-2
QTP Basics-2QTP Basics-2
QTP Basics-2
Praveen Gorantla
 
QTP with QualityCenter
QTP with  QualityCenterQTP with  QualityCenter
QTP with QualityCenter
Praveen Gorantla
 
Virtual objects
Virtual objectsVirtual objects
Virtual objects
Praveen Gorantla
 
2.regular expressions
2.regular expressions2.regular expressions
2.regular expressions
Praveen Gorantla
 
1.qtp basics
1.qtp basics1.qtp basics
1.qtp basics
Praveen Gorantla
 

More from Praveen Gorantla (12)

File System Object in QTP
File System Object in QTPFile System Object in QTP
File System Object in QTP
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
 
VB Script Overview
VB Script OverviewVB Script Overview
VB Script Overview
 
Regular Expressions in QTP
Regular Expressions in QTPRegular Expressions in QTP
Regular Expressions in QTP
 
Dynamic Content in QTP
Dynamic Content in QTPDynamic Content in QTP
Dynamic Content in QTP
 
Business Process Testing
Business Process TestingBusiness Process Testing
Business Process Testing
 
QTP Basics-2
QTP Basics-2QTP Basics-2
QTP Basics-2
 
QTP with QualityCenter
QTP with  QualityCenterQTP with  QualityCenter
QTP with QualityCenter
 
Virtual objects
Virtual objectsVirtual objects
Virtual objects
 
2.regular expressions
2.regular expressions2.regular expressions
2.regular expressions
 
1.qtp basics
1.qtp basics1.qtp basics
1.qtp basics
 

Recently uploaded

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 

Recently uploaded (20)

Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 

Troubleshooting with QTP

  • 1.
  • 2. Troubleshooting with QTP    What is Troubleshooting? How to Troubleshoot? Debugging       Step Commands Pausing a Run Session Setting Breakpoints Removing Breakpoints Using the Debug Viewer Session Wrap-Up pgorantla.blogspot.com
  • 3. Troubleshooting with QTP  While working on software applications the user generally faces conditions whereby the operation performed on concerned application comes to a stall due to certain error that occurs in the process.  It becomes necessary to identify these conditions and corrective measures are taken to avoid these conditions for proper flow of the test run.  In QTP we have the Debug Viewer that helps to find the exact location of occurrence while running the test and also in loop structures.  One of the troubleshooting technique available in QTP is Recovery Scenarios as this helps in maintaining the flow of test run. pgorantla.blogspot.com
  • 8. Troubleshooting with QTP  In QTP you have the option of the Debug viewer which also helps in finding the conditions where error can occur.  The user can run the test in the debug mode by using the F11 key.  This helps to check smooth run of the created test, without errors in syntax or logic.  This can also carried out by inserting breakpoints within the test.  This makes use of the Step commands which are;    Step Into: Used to run only the current line of the active test or component. Step Out: Used only after using Step Into to enter a action. It runs to the end of the called action, then returns to the calling action and pauses the run session. Step Over: To use this option either click Debug > Step Over button, or press F10 to run only the current step in the active test or component. pgorantla.blogspot.com
  • 9. Troubleshooting with QTP  Pausing a Run Session     You can temporarily suspend a run session by choosing Debug > Pause button. A paused test or component stops running when all previously interpreted steps have been run. To resume running a paused test or component, choose Test > Run or Component > Run. The run continues from the point it was suspended. Setting Breakpoints   By setting a breakpoint, you can stop a run session at a pre-determined place in a test or component. You can use breakpoints to:  suspend a run session and inspect the state of your site or application  mark a point from which to begin stepping through a test or component using the step commands   To set a breakpoint choose Debug > Insert/Remove Breakpoint, press F9. Removing a Breakpoint  To remove all breakpoints, choose Debug > Clear All Breakpoints/F9. pgorantla.blogspot.com
  • 10. Troubleshooting with QTP  The Debug viewer pane can be used to view, set, or modify the current value of objects or variables in your test or components.  The Debug Viewer pane is positioned below the Data Table and Active Screen.  The Debug viewer tabs are used to display the values of variables and objects in the main script of the current action, or in a selected subroutine.  The Debug viewer consists of three different tabs namely;    Watch Expressions Tab Variables Tab Command Tab pgorantla.blogspot.com
  • 11. Troubleshooting with QTP  Watch Expressions Tab    Variables Tab    This tab to view the current value of any variable that has an expression assigned to it. If the value of the object or variable changes when you continue to run the test or component, the value in the Watch Expressions tab is updated. Use the Variables tab to view the current value of all variables, in the current action or selected subroutine, identified up to the point where the test or component stopped. If the value of a variable changes when the run continues, the value in the Variables tab is updated. Command Tab   Use the Command tab to execute a line of script in order to set or modify the current value of a variable or VBScript object in your test or component. When the run continues, QTP uses the value that you set. pgorantla.blogspot.com
  • 12. Troubleshooting with QTP  Scenario  User runs a multiplication program. It has an expression for the intresult variable which the user inserts in the Watch Expression tab and the corresponding values for this variable goes on incrementing as the program is executed. The initial value for the being 1 and the final value being 15. pgorantla.blogspot.com
  • 13. Troubleshooting with QTP  Scenario  For the same program if we try to check the variable tab in the Debug Viewer we get the all the variables that have been used in it inserted. The values for these variables keep on changing while the program gets executed. The initial value for intCnt, intSubcnt and intresult all have their initial values as 1 and the final value being 3, 5 and 15 respectively. pgorantla.blogspot.com
  • 14. Troubleshooting with QTP  Scenario   While running the script the amount of time taken to load an particular page is more than the estimated time hence the corresponding error occurs stating that the object cannot be found. Possible Causes  As stated in the above conditions, this error can also occur if the property value has changed for that object.  But over here if you observe then in the Active Screen we see “Page cannot be displayed” error which occurs if the corresponding page is not loaded or the server has timed out. pgorantla.blogspot.com
  • 16. Troubleshooting with QTP  Scenario   While running certain scripts if parameters are not properly declared in the script then we get the error given below. Possible causes  This can be a case where in the Keyword View the parameter is not set and the script is run.  In the Expert View if the parameter is not defined but called upon in the script.  The expressions used are improper.  It becomes necessary that the user uses breakpoints or debugs the script where he has defined certain variables or has certain expressions declared initially before running the script as this will help him reduce the error. pgorantla.blogspot.com
  • 18. Troubleshooting with QTP Q & A…. pgorantla.blogspot.com
  • 19. Troubleshooting with QTP    Troubleshooting helps the user to identify the glitches while operating with QTP. Debugging helps to identify the exact location where the glitch has occurred. Debug viewer has an option to change the values for the variables used in the test. pgorantla.blogspot.com

Editor's Notes

  1. Briefly review the session agenda as indicated here. Currently we are in the “Prep Session Introduction” section, during which we will review basic information about this session, including how to use Centra to participate. Note: The Prep Session Introduction section should take no longer than 15 minutes.
  2. Spend a few moments answering participants’ questions about the agenda of this session or the Centra controls they will be using. Remind them to use the “Raise Hand” icon to ask a question.