How to use Regular Expressions in QTP? give an example.
Answer Posted / anil
Thanks Mr.Uday u explained beautyfully with an example. Can
u give another two more real time secnarios where we use RE.
| Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What are the various automation frameworks available in qtp?
Why do we use breakpoints in QTP?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
Mention what are the different types of recording modes in qtp? Which will be used when?
What is output value? How many types of output values are there in qtp?
How does qtp identify the object in the application?
What are the recording modes in qtp?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
how will you load the test cases in ddt?
wht type of User defined functions or Java Releated functions Do we write in VB scripting
when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next
Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri
What is QTP’s model for test creation?
How to check bitmap output value?
Have you done batch testing in qtp? If yes how you are doing?