QTP
How to use Functions in QTP/UFT in 3 easy steps
If you have segments of code that you need to use several times in your tests, you may want to...
Descriptive programming is used to execute operations on an Object in the AUT whose definition is not stored in the Object Repository. Using this mechanism, you can bypass identification from the Object Repository and supply the Object Description in the statement itself.
An object name is simply used to map an object in script with its description in an object repository. Meaning if you change the object name in your script and object repository, the script should run. Watch the following video on this concept
Video Highlights
You can use Descriptive programming in two ways
In Static Method, for object identification, you specify an object's property in the following format
property:=values,
This format is called property value pair and is enclosed in inverted commas>
If your object uses multiple descriptions for identification, you can specify those using commas>
So in our case, the description for Agent Name becomes
"nativeclass:=Edit", "attached text:=Agent Name:"
The second method of doing the same action is using Dynamic Descriptive programming
In case your script uses the descriptive programming object candidate multiple times, it will be very tiresome to specify all the property value pairs for each statement
In such cases, you can make use of Description Class provided by QTP
The syntax for creating a description object is
Set MyDescription = Description.Create();
MyDescription("property").Value = "property-value";
This is the Dynamic Method
If you have segments of code that you need to use several times in your tests, you may want to...
QTP or UFT (Unified Functional Testing) Tool is a software Testing tool used for Automation...
Once the script is recorded, you need to REPLAY the script to ensure the test steps have recorded...
In this tutorial, we will use QTP (HP UFT) to create Data Driven Framework Keyword Driven...
Before Testing API, we need to know about API. An API ( Application Programming Interface ) is a...
This tutorial is going to provide insight into the keyword view and expert view of Micro Focus...