How to extract Test status from the Result folder?

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... 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...

How to report HTML in test results?

1 Star2 Stars3 Stars4 Stars5 Stars (4)
Loading ... 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...

Capturing desktop Screenshot to QC if a Test or Component Fails

1 Star2 Stars3 Stars4 Stars5 Stars (6)
Loading ... 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...

How to access the status of current Test?

1 Star2 Stars3 Stars4 Stars5 Stars (1)
Loading ... 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...

Exporting data table every N iterations

1 Star2 Stars3 Stars4 Stars5 Stars (2)
Loading ... 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...

Custom Checkpoints

1 Star2 Stars3 Stars4 Stars5 Stars (9)
Loading ... 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...

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner

  2. Most Viewed


  3. Sitemap

    open all | close all
  4. Most Rated

  5. Translator

    English flagItalian flagKorean flagChinese (Simplified) flagPortuguese flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
    Croat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flag
    Slovak flagSlovenian flagUkrainian flagVietnamese flag           
    By N2H

Your Ad Here