Maintaining list of class objects created

1 Star2 Stars3 Stars4 Stars5 Stars (5)
Loading ... Loading ...

At times, we might want to maintain a list of all objects which are created for an object. We will not discuss the situations where it would be required, but we will see how it’s done.
To store the list of object we can use the Dictionary objects. When we create classes object the first event [...]

Register or Login to read the full article...

Exist returns True even when the object does not exists

1 Star2 Stars3 Stars4 Stars5 Stars (5)
Loading ... Loading ...

Checking Exist property for a Test object might return True even when the object is not present on the screen. Though this is not an issue with QTP but there could be 2 possible reasons behind this. This article walks through both the reasons in details
Root Cause #1 - Smart identification being used to identify [...]

Register or Login to read the full article...

Implementing Callback in VBScript

1 Star2 Stars3 Stars4 Stars5 Stars (7)
Loading ... Loading ...

Callback is a function which is executed on completion of a registered event. VBScript is not a event driven language, which means we are limited in terms of events for which callback can be implemented.
This article will demonstrate how to implement a callback on finish/terminate event. This finish/terminate event could be one of the following

The [...]

Register or Login to read the full article...

DP Part 4 - Common mistakes

1 Star2 Stars3 Stars4 Stars5 Stars (14)
Loading ... Loading ...

This article would go over some common mistakes people make while using Descriptive Programming (DP) in QTP.
Using strings with Pattern
Let’s assume we want to click a link “Logout (Tarun)” on my web page. Two possible methods that can be used are
Method 1

Browser("miccclass:=Browser").Page("micclass:=Page").Link("text:=Logout (Tarun)").Click

Method 2

Set oDesc = Description.Create
oDesc("text").Value = "Logout (Tarun)"
Browser("miccclass:=Browser").Page("micclass:=Page").Link(oDesc).Click

Now both the above methods will [...]

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