
Loading ...
QTP test results are stored in form of XML which can be read the Test Result viewer that comes with QTP or the QTP-QC Add-in. Viewing every report individually through the Test results viewer does not help much when you bulk # of tests to be executed. Information like the Name of the Test, Status, [...]
Register or Login to read the full article...
Tags used -
Extract, Failed, Passed, read, Results, status, Summary, Test, TestResults, Warnings, XML

Loading ...
HTML gives a variety of ways to represent the information in Reports. The native QTP reporting does not support any direct method of reporting HTML text. There are certain workarounds that can be used to report HTML text
Method 1
This using the Reporter.ReportEvent with few special tags in the text being reported. The below code demonstrated [...]
Register or Login to read the full article...
Tags used -
color, HTML, Plain, report, Reportevent, Result, Results, Table, test result, test results, text

Loading ...
Capturing screenshots to QC in test result can quickly eat up all the space on the QC Server. This makes it sensible to capture images only in case a Test has failed. This can allow easy debugging of Test Cases to see what error had occurred when the test failed. Adding this functionality to your [...]
Register or Login to read the full article...
Tags used -
Add, Attach, BPT, Business Components, Business Process Testing, capture, Component, CurrentRun, desktop, Error, failure, file, images, QC, Results, run, screencapture, Screenshot, Terminate, Test, test lab, test result

Loading ...
To access status of the test QTP provides the RunStatus property. The value of this property is the worst case status of the current test. This property can be used to take special measure based on the status of the test.
Select Case Reporter.RunStatus
Case micFail
[...]
Register or Login to read the full article...
Tags used -
Accessing, end, ends, execute, Execution, Reporter, Result, Results, run, RunStatus, status, Test

Loading ...
It is recommended to export the results of a test with huge iterations periodically. This minimizes the loss of results in case QTP or the system crashes. In this article we will look at a method which will export the data table after specified no. of iterations.
‘Global counter for iterations
Dim iAfterIterations
iAfterIterations = 0
‘Author: Tarun Lalwani
‘Website: [...]
Register or Login to read the full article...
Tags used -
crash, DataTable, Export, Iterations, Results, test results

Loading ...
QTP checkpoints are very limiting when it comes to maintenance and transport of the same across scripts. It is always best to avoid QTP checkpoints whenever possible and create your own checkpoint routines that does the work. This article will give a brief introduction on how create custom checkpoints or how to simulate checkpoint validations [...]
Register or Login to read the full article...
Tags used -
Checkpoint, Custom, Reporter, Reportevent, Results, Test