Can regular expressions be used for object identification in QTP?

Can regular expressions be used for object identification in QTP?

In QTP, regular expressions can be used for object identification both in Object Repository as well as in Descriptive Programming. Using (.*) Regular Expression with Descriptive Programming Approach

What is the use of backslash in QTP?

In QTP, regular expressions can be used for object identification both in Object Repository as well as in Descriptive Programming. Using Backslash Character (): A backslash can be used for two purposes. Firstly, when used with a special character, the special character is treated as a literal character.

What is a regular expression?

“In computing, a regular expression, also referred to as regex or regexp, provides a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters.“.

How to change the last digit to a regular expression in QTP?

UFT (QTP) provides an easy way to change the last digit to a regular expression. We will use the regular expression .* to match any character zero or more times. Check the illustration below When using inline descriptive programming technique, the same example above can be written as

What is regular expression in VB Script/UFT (formerly QTP)?

A regular expression is a string that describes or matches a set of strings. It is often called a pattern as it describes a set of strings. In this article we are going to discuss about using Regular expressions in VB Script/UFT (formerly QTP).

What can be done with regular expressions?

This was a simple example of what can be done with regular expressions. In QTP/VB Script, we can use regular expressions to deal with dynamic property values in object repository OR in descriptive programming OR while creating checkpoints with varying values.

author

Back to Top