INTERVIEW QUESTIONS
TESTING
AUTOMATED TESTING TOOLS
DETAILS
Question: What is regular expression in QTP?
Answer: Regular expressions enable Quick Test to identify objects and text strings with varying values.
You can use regular expressions when defining the properties of an object, the methods of an argument, when parameterizing a step, and when creating checkpoints with varying values.
A regular expression is a string that specifies a complex search phrase. By using special characters such as a period (.), asterisk (*), caret (^), and brackets ([ ]), you define the conditions of the search.
we can write the user defined in a notepad and save the file as .vbs and we then associate that to Test-Settings-Resources-Associate Library Files by clicking plus and select the .vbs file. In the script we can call the function with function name ().
|
Question:
What is regular expression in QTP?
Answer:
Regular expressions enable Quick Test to identify objects and text strings with varying values.
You can use regular expressions when defining the properties of an object, the methods of an argument, when parameterizing a step, and when creating checkpoints with varying values.
A regular expression is a string that specifies a complex search phrase. By using special characters such as a period (.), asterisk (*), caret (^), and brackets ([ ]), you define the conditions of the search.
we can write the user defined in a notepad and save the file as .vbs and we then associate that to Test-Settings-Resources-Associate Library Files by clicking plus and select the .vbs file. In the script we can call the function with function name (). Source: CoolInterview.com
Answered by: Kapil Sharma | Date: 6/6/2008
| Contact Kapil Sharma
Regular expressions are used when the objects value is dynamically changed. for example: In flight reservation window we record the script for open order, and to send the opened order as fax. in this condition the open order value is not the same for all, we give different values, here we use regular expression, here we are saying what ever the value may be if it is open order" " then execute it. Source: CoolInterview.com
Answered by: Sarathy C.R | Date: 7/1/2008
| Contact Sarathy C.R
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|