where do you define the objects as regular expression when
u are using regular expressions.
Answers were Sorted based on User's Feedback
Answer / mintu
There are situations when the Objects in the applications
are dynamic(having dynamic properties) and QTP fails to
recognize them. Such objects should be handles using
regular expressions.
We can define the objects using regular expression either
in the Object repository or in the code itself.
Example: the login page says" Welcome Mintu" in one login
and "Welcome guest" in another login. here we see that
Mintu and guest are two dynamic values. this needs to be
handled using regular expressions. say "Welcome .*"
here .* refers to any text appearing in the application.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rahul
You can use regular expressions when :
Defining the property values of an object.
Prameterize a step.
creating checkpoints with varying values.
For example,if a window titlebar's name change according to
file name,you can use a regular expression to identify a
window whose titlebar has the specific product
name,followed by HYPHEN,and then any other text.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devi
Regular Expressions: -
When ever the QTP is unable to identify the objects due
to the regular changes in the objects properties values
dynamically during the execution then to overcome this
problem one need to replace the corresponding property value
in the object repository with a suitable regular expression
Navigation:
• Open the object repository
• Select the desired object in the object hierarchy
• Select the desired property in the properties list
• Click on the constant value options button
• Replace the constant value with suitable regular expression
• Select the check box regular expression
• Click on ok
• Click on ok
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram polavarapu
if the object properties are changing dynamically then will
go for regular expressions
ex->inbox(19)
mails are not static so we have to use the regular expression
inbox\s\(\d*\)
| Is This Answer Correct ? | 0 Yes | 0 No |
Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this
hai there..this is chandu..i have a txt file which containing 1000 lines but at a time i want to retrieve 50 lines..after 50 lines i required to retrieve 51-100..like that i want...so could anybody help me in this...thanks in Advance..
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
write a qtp script to enter user name & password for flight reservation login page from excel sheet
how to test a java project throughqtp?while testing a vb project we generally do vb scripting. but while testing java project do we use java script .plz some one can send me the manual for it my email roy_samata@yahoo.com thanks in advance
Explain about datafile/verification of date file when file is not available in local system?
How to Synchronize the Browser at Field level? For example if you put Browser.sync(), its waiting upto for that Browser sync only. It should wait total Browser get upload with fields.
how do u import the test cases written in excel sheet to qtp? and how do u generate the script in qtp for the testcase in excel sheet? plzzzz do answer this question thanks in advance
Hi all, I am New to QTP . I am Now in critical situtaion. I want to know How to create our own object respository for our application. please say the answer with example.
How u prepare Test result summary in QTp?
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
what is the exact Diff. Between Test and Component in QTP?