write a qtp code to count the number of child objects in login
page and highlight it
Answers were Sorted based on User's Feedback
Answer / mudaseer
set childobj=dialog("text:=login).childobjects
msgbox childobj.count
for i=0 to childobj.count-1
childobj(i).highlight
next
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / prathyusha
set olink=Description.create
olink.add "micclass","text"
set olinkcol=B().P().Link().childobjects(olink)
msgbox olinkcol.count
for i=0 to olinkcol.count-1
olinkcol(i).HighLight
next
Is This Answer Correct ? | 0 Yes | 0 No |
I am new with QTP. Is anybody could tell me where I can find a good tutorial with lots of samples?
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c
In Keyword driven frame work you have write 30 test case for one scenario,in which 10 test cases are failed while executing.client asked you to execute only the failed test cases. HOw can you execute only failed test cases
How you perform smoke and sanity testing using qtp?
How does QTP identifies the object in the application?
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
What is descriptive programming?
How to test the mandatory fields in QTP?
How does qtp identify objects in the application?
Hi all, Recently i faced this question in infosys What is QTP architecture?? Is Architecuture and Framework are same?? Can someone please give clear understanding of this.
Lets say,flipkart website...in search button we have entered category[i.e watches] it displays some items...question is how to test price displayed each product is correct or not through qtp