This is Ajay i have few douts if anybody know pls give me
reply.

1. 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 / amarendra kothuru

Small change in Answer for third question

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.
Ans: The below code that will verify whether the Item exist
in the combobox or not. i.e. the given city Hyderabad exist
in the CityList combobox or not.

CityName = "Hyderabad"
Result = 0
all_items = Browser("Cities").Page("Cities").WebList
("CityList").GetROProperty("all items")
For Each aitem In all_items
If aitem = CityName Then
Reporter.ReportEvent micPass, "City is
Found
in the List", "Passed"
Result = 1
Exit For
End If
Next
If Result = 0 Then
Reporter.ReportEvent micFail, "City is not Found in
the
List", "Failed"
End If

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1384


What are the main differences of qtp and win runner?

605


Explain quicktest professional (qtp) testing process?

541


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2533


What is quick test pro?

598






I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1528


How can get count of list box?

646


Where is the Bitmap checkpoint information stored?

1771


What is QTP and the use of QTP in TD?

606


How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?

707


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1596


In qtp, how you can get the last character from a string?

560


what is meant by source control?

1700


Explain the parameter in qtp?

588


Is virtual object supported in low level recording mode?

631