i have opend 2 gmails i am working with 1 gmail i want to
close other gmail by usig script.
2.i have 10 links in a page all of them have same
properties& names i want to click on 5link by using script.
3.i have one combobox in that i want to see all the
citynames in the combobox and i have to check weather
hyderabad is present or not.
4. size of objectrepository.
5.what r problems we get during writing the script.
6.is it possible to compare to excel sheets in qtp if
possible wht is the script.
7.example for lowlevelrecording
Answer Posted / sha
2. set Odesc=description.create
Odesc("miccalss").Value="Link"
set bro=Browser().Page().childobjects(Odesc)
Bro.count
for i=1 to 5
browser().Page().Bro(i).click
next
3. item=bro().Page().getroproperty("all items")
arr=split(item,";")
for i= 1 to ubound(arr)
if arr(i)="Hyderabad" then
reporter.reportevent micPass,Hyderabad,present
exitfor
Endif
next
4. Depends on the machine
5. Object properties will get change,Identifying the propery values etc
6.DataTable.Importsheet "path of excel file"sourcesheetname,Destination sheetname(global)
External sheet is in Global sheet and which u want to compare keep in action sheet then write if condition and check if get match with both global n action make it pass...
7.Signature
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a QTP script to enter a keyword in to Google search engine?
What is data driver in qtp?
Explain the concept of object repository & how qtp recognizes objects?
How does qtp identify the object in the application?
Have you used xml check point in your project?
how to disable the pop ups through QTP using a script
Explain different types of action in qtp?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What is the significance of “action 0” in qtp?
In qtp, how you can use xpath to identify objects?
what is the hierarchy to use properties in descriptive programming
Suppose I want fail that check point? How can you do that?
Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link
what is keyword driven testing in qtp?n how is it useful?
How to creating an output value using quicktest professional (qtp)?