DP Part 4 - Common mistakes

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

DP Part 3 - Dummy properties

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

In our Last DP Part 1 article we saw how to convert an OR based script into a DP based script. But what we didn’t discuss was the micclass property we used for the Browser. This article will go over various aspects of properties and introduce some terms that I use for DP
micclass
micclass represent the [...]

Register or Login to read the full article...


    Support KnowledgeInbox (Why donate?)




    Your Email Address:



  1. Most Viewed


  2. Earn $$ with WidgetBucks!
  3. Sitemap

    open all | close all
  4. Most Downloaded

    • Screen Capture and Comparion API - Version 1.1.1 (425.5 KiB, 5,581 hits)
      You need to be a registered user to download this file.
    • QTP Clean uninstaller (26.4 KiB, 5,003 hits)
      You need to be a registered user to download this file.
    • VB to QTP API Converter (37.2 KiB, 4,389 hits)
      You need to be a registered user to download this file.
    • IE Helper setup (3.5 MiB, 4,131 hits)
      You need to be a registered user to download this file.
    • Dynamic Action Call Demo - Part 1 (40 KiB, 3,639 hits)
      You need to be a registered user to download this file.
  5. Most Rated

  6. 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
  7. Visitors Online



Your Ad Here