somebody please say me why we go for using regular
expressions,actions.what is the main and exact use of this
in real time applications.real time testers pls answer my
question with example if u can
Answers were Sorted based on User's Feedback
Answer / sri
Regular expressions will be useful when you know the object
properties are dynamic and they change frequently.
For example in aweb page you know logical name of an object
changes ,like say CompanyStocks to CompanyMf
For the same you can specify as Company.* under Logical
Name.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sks
hello ,
When you run script for today's date(20/10/2009)and you
will get the result for that particular scnerio , when you
excute the same scipt next day (21/10/2009) you may get an
errror so inorder to handle this exception we go for
regular expression .
For the same you can specify as Datefield.*
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shankar.majji
When an object in our application changes its state or
value then we can use Regular Expressions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / akshar jain
say the name of the browser is "create fill in the blanks" &
another browser name is "edit fill in the blanks",but the
objects are same in both the things so u can use one object
repository for both the pages by making it regular
expression like .*fill in.*
| Is This Answer Correct ? | 0 Yes | 0 No |
I have a list box which contains duplicate values e.g. A,A,A,B,B,B,C,C,C.Now write a code in qtp to test the list box . Scenario #1 : I have to check whether any values are there? Scenario #2 : If duplicate values are there,then how many time it is getting duplicated? Svenario #3 : how can I test presence of items in list box ommiting duplicate values?
why you have standardized functions? plzzz guys with real time exp. do answer
Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?
What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example
why was automation used in the project?
Deal All, Recently i face one interview question in one company. str="test12@#3456" In This i want to print like special character and numeric ,word in one script please tell me how to write the code for this Thanks Balaji
Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.
How to retrieve the object properties at runtime without the usage of GetROProperty?
After geting the modules where we generate the script ie in qtp or notpad ?
How you can decide which type of object repository you have to use?
How can the expected image for a bitmap checkpoint be recaptured in QTP
what kind of erros can be handled with the using QTP?