one ok button and one text box is there.when i click on ok
button in that text box one no. will display from 1 to 100
randomley.if that is not 100 when we click on ok button
again ,again another text box ll created with another no.
we will continue this till the text box created and
displays 100.and when its 100 ok button should disabled.
remember thet no will display not seriely ,it displays
randomley,and each time new text box will created.
Answer Posted / sivareddy
Swarup - its ok, but i would want modify ur script. It
seems not proper for our testing point of view...well, here
it is to go
Dim a, Max
//max = InputBox ("Enter Maximum limint of Number")
for i =1 to 100
Dialog("Text:=DialogWindow").Activate
Dialog ("Text:= Dialog Window").WinButton("Text:= OK").Click
a= Dialog("Text:= DialogWindow").WinEdit("Attached Text:=
st=Dialog("Text:=DialogWindow").WinButton
("Text:=OK").getROproperty("visible")
If ((a=100 AND st=='True')OR (a<>100 AND st<> 'True')then
msgbox "test pass")
elsif (a=100 AND st='False')
msgbox "test fail"
endif
if (a==100)
exit the script run
endif
Next
Please check it out....and mail me if any suggestion to
onegole@gmail.com
by - Siva Reddy, Sr.QA Analyst
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Explain how qtp identifies object?
How does qtp identify gui object?
How many types of recording modes are there?
how many maximum number of virtual users we can create?
What is parameter in qtp?
In qtp, explain what is qrs file?
What are the various types of Actions in UFT?
How is a Step generator used in UFT?
How to use the object spy in quicktest professional 8.0 version?
Can any suggest me what is exposure testing?
Describe function procedure in vbscript.
how interviews will be on QTP?
Hi Samrat, Thank u very much, what u said it is right.
Explain about the test fusion report of quicktest professional (qtp)?
what you mean by artifact,milestone...