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 / swarup

Hey try this...

Its going to work

Dim a, Max
max = InputBox ("Enter Maximum limint of Number")
For i= 1 to max
Dialog("Text:=DialogWindow").Activate
Dialog ("Text:= Dialog Window").WinButton("Text:= OK").Click
a= Dialog("Text:= DialogWindow").WinEdit("Attached Text:=
TextField:").GetVisibleText
If a <> 100 Then
Next
else
Dialog ("Text:= Dialog Window").WinButton("Text:= OK").
checkproperty (Object (OK) disabled)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is keyword driven testing in qtp?n how is it useful?

1481


Explain different types of action in qtp?

563


Define object spy ?

554


What do you mean by iteration?

618


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

493






How to record a qtp script ?

544


Have you done batch testing in qtp? If yes how you are doing?

495


What ate the Technologies supported by QTP?

636


How will internal and external links be validated and updated? how often?

633


How many types of actions are there in quicktest professional (qtp)?

522


Explain the views in the QTP GUI?

608


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1546


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

2880


How you debug your script?

556


How can you send user defined messages to test report?

575