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 / manas jena

litle bit modify of answer if u ur using browser object
then creation time property should user
1. 2 gmail opened
ans

Browser("title:=.*gmail.*" "creationtime:=1" ).close

The first opened browser creation time will be 0,next
opened browser creation time is 1.

See ordinal identifier in QTP

3. ans:

you can use

Index or location property

Index work on left to right and location works top to buttom

example

Text Box 1: Text Box 2:


Text Box 3: Text Box 4:

Text Box 1: location=0
Text Box 2: location=2
Text Box 3: location=1
Text Box 4: location=3

'Text Box 1
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=0").Set "1"

'Text Box 3
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=1").Set "2"

'Text Box 2
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=2").Set "3"

'Text Box 4
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest","location:=3").Set "4"
--------------------------------------------------
Text Box 1: index=0
Text Box 2: index=1
Text Box 3: index=2
Text Box 4: index=3


'Text Box 1
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=0").Set "1"

'Text Box 2
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=1").Set "2"

'Text Box 3
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=2").Set "3"

'Text Box 4
Browser("title:=.*Descriptive.*").Page
("micclass:=Page").WebEdit
("name:=dpTest", "index:=3").Set "4"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the frame work in J-meter?

1701


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..

1809


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

2620


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1675


What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????

1821






What is the use of text output value in quicktest professional?

589


Explain how you can find length of array in qtp?

669


What is difference between design time and run time data table?

687


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1736


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1608


Shall we add Local Repository to shared object repository,if yes,how we add

6131


I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...

1807


What is throw object?

1829


What is the process of synchronizing qtp and aut?

654


What is difference between run time object and test object?

644