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
what is the frame work in J-meter?
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..
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
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?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
What is the use of text output value in quicktest professional?
Explain how you can find length of array in qtp?
What is difference between design time and run time data table?
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
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
Shall we add Local Repository to shared object repository,if yes,how we add
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...
What is throw object?
What is the process of synchronizing qtp and aut?
What is difference between run time object and test object?