Full Answer
What is descriptive programming in QTP?
Descriptive programming is used to write the script based on ordinal identifiers, which will enable QTP to act on those objects when two or more objects have the same properties.
Why is descriptive programming used in UFT?
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.
What is static descriptive programming?
Static Descriptive Programming A static method is when you try to access an object by using a set of properties and values directly in a VB statement. Syntax: TestObject(“Property name1:=property value”,”property name 2:=property value”,…. n)
What is descriptive programming in selenium?
Descriptive Programming: It is also known as Programmatic Description. In this method we write scripts using VBScript language where object properties are directly coded instead of storing it object repository.
What is virtual object in UFT?
A virtual object in UFT is used to identify an object when UFT can't recognize it using objects standard class. UFT doesn't recognize an object if it is a custom or non-standard class object.
What is hybrid framework in UFT?
A hybrid framework is a combination of Data Driven Framework (DDF) and Keyword Driven Framework (KDF) where several test cases with several inputs can be executed in the same test.
What is smart identification in UFT?
Smart Identification is a mechanism to identify the objects in Object Repository when the normal mechanism fails. It is applicable only for Web Applications. This mechanism is used by UFT to identify objects at Run time.
What is an action in UFT?
Actions in UFT are units within the test that divide the flow of one test into logical sections. A GUI Test can be divided into multiple actions, to make it more modular, understandable, and efficient tests.
What is SetTOProperty UFT?
SetTOProperty: To set the test object property during run time. This is only temporary change do not affect the values stored in the test object repository.
What is aut in testing?
Automated ultrasonic testing is a family of ultrasonic testing methods that use mechanized means to drive the ultrasonic scanning equipment around the part being tested. Automated ultrasonic testing may also incorporate computer software that can aid the technician when detecting discontinuities.
How do you write a descriptive program?
How to write Descriptive Programming?By giving description in form of the string arguments. ( also known as inline Descriptive Programming or static Descriptive Programming) ... By creating properties collection object for the description. (also known as dynamic Descriptive Programming)
What language does selenium use for scripting?
Scripts are recorded in Selenese, a special test scripting language for Selenium.
What is Descriptive Programming?
Descriptive Programming (also known as Programmatic Description) provides a way to perform operations on objects that are not present in object repository.
When and Where to use Descriptive Programming?
Listed below are some of the situations where Descriptive Programming can be considered useful:
How to write Descriptive Programming?
It should be noted that Descriptive Programming can be used across technologies and add-ins in UFT One (QTP). It is not limited to a particular technology. In the examples that follow, we will use web based objects.
Using Regular Expressions in Descriptive Programming
Both the forms described above support usage of Regular Expressions by default. Check our regular expressions guide if you wish to learn about them in detail.
Using Ordinal identifiers in Descriptive Programming
You can also use any of the three ordinal identifiers (index, location, creationtime) in Descriptive Programming. If you have 2 username boxes one below the other in mercury demo app, they can be written as –
UFT Insight with Descriptive Programming
UFT provides ImgSrc property to use in an Insight object in Descriptive Programming. Inline method of DP uses “property:=value” pair. In case of Insight object, property can be ImgSrc with values as the image location on a file system (or an ALM path).
Some important points to note with Descriptive Programming
When using Descriptive Programming from a specific point within a test object hierarchy, you must continue to use Descriptive Programming from that point onward within the same statement.