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
How to use Environment parameterization? Explain with an example.
What is optional step in qtp? How you can add optional step in qtp?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.
Can we create a qtp test from qc?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
Does Low-level recording capture mouse movements?
Is any limitation to xml checkpoints?
Explain how qtp identifies objects?
Explain about the test fusion report of quicktest professional (qtp)?
Discuss the QTP Environment?
how to download mercury qtp9.2 ny internet ?
Functions call by reference and call by value. i want the diff b/n these 2 and how will be the script for this?in which situation we use these 2..?pls explain me clearly
• What type of testing questions will be asked for 2+ yrs exp people in interview?
How to read a text file from QC using QTP. I would like to do something like this. But instead read a file from QC and NOT from my local drive. Set fso = CreateObject("Scripting.FileSystemObject") Set InputFile = fso.OpenTextFile("C:\test.txt", ForReading) Thanks