
Loading ...
Identifying objects correctly and robustly in an application is very important in Automation. In case you have automated any CRM application you might have noticed objects are recognized by a dynamic name
Browser("Browser").Page("Page").WebEdit("TS_EXTRA_FEILD40").Set "AAA"
Now after a build the code or object might change to
Browser("Browser").Page("Page").WebEdit("TS_EXTRA_FEILD42").Set "AAA"
These object changes are unpredictable and cause scripts to fail. Let’s assume [...]
Register or Login to read the full article...
Tags used -
CRM, Descriptive, Descriptive Programming, for, htmlfor, LABEL, Programming

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...
Tags used -
cannot, Class, Class Name, Common, Descriptive, Descriptive Programming, identify, micclass, Object

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...
Tags used -
Class Name, Descriptive, Descriptive Programming, micclass

Loading ...
This article discusses how we can convert an Object repository based script to DP based script. For this we will do a simple recording of entering some text on Google.com search text box and clicking the Google search button
The QTP generated script would look something like below
SystemUtil.Run "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
Browser("Browser").Page("Page").Sync
Browser("Browser").Navigate "http://www.google.com"
Browser("Browser").Page("Google").WebEdit("q").Set "KnowledgeInbox"
Browser("Browser").Page("Google").WebButton("Google Search").Click
All the names [...]
Register or Login to read the full article...
Tags used -
Convert, Descriptive, Descriptive Programming, Object, Object Repository, OR, Repository

Loading ...
Introduction
This document demonstrates the usage of Descriptive programming in QTP 8.20. It also discusses situations where Descriptive programming can be used. Using Descriptive Programming automation scripts can be created even if the application has not been developed.
Descriptive Programming
Whenever QTP records any action on any object of an application, it adds some description [...]
Register or Login to read the full article...
Tags used -
Descriptive, Descriptive Programming, Name, Programming, Regularexpression, Value