How to use Regular Expressions in QTP? give an example.
Answer Posted / umasankar
Regular expressions enable QuickTest to identify objects
and text strings with varying values.You can use regular
expressions only for values of type string.
You can use regular expressions when:
1) Defining the property values of an object in dialog
boxes or in programmatic descriptions.
2) Parameterizing a step.
3) Creating checkpoints with varying values.
Example:
your site may include a form in which the user inputs data
and clicks the Send button to submit the form. When a
required field is not completed, the form is displayed
again for the user to complete. When resubmitting the form,
the user clicks the Resend button. You can define the value
of the button's name property as a regular expression, so
that QuickTest ignores variations in the button name when
clicking the button.
| Is This Answer Correct ? | 34 Yes | 5 No |
Post New Answer View All Answers
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
By using QTP can we record any log files written by the application which is in execution?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
What is action split and the purpose of using this in qtp?
How to create scenario selector
what is description object?
how we implement share object repository in QTP 9.0 without using quality Centre , Explaine in brief
How to test login module with different username and password by using data driven testing in QTP?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
What are the automation metrice in your project?
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
Does QTP run in any environment?
If I give some thousand tests to execute in two days what do you do?