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


Please Help Members By Posting Answers For Below Questions

how to evalute defects in QTP script?

1492


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

2530


Can any one tell me how to write a script for selecting open option in File menu of A word document.here you have to add objects to OR.try like that and give me the ans.i asked this question to so many but no one knows.if any one know the answer plz let me know

1409


Name the different types of recording modes?

580


Explain the difference between call to action and copy action?

524






what is the diff between manual test plan document and automation test plan doc.can u explain indetail.

1645


What is test object model in quicktest professional?

624


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1586


explain structured testing? plz guys with exp. do answer

1414


how many maximum number of virtual users we can create?

1572


Can any one send me the QTP Basic Coding Samples?

1614


can u explain relative path architecture framework in qtp?

1563


On what document base Descriptive programming is written if build is not yet ready ?

882


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

2740


Can any body please tell me the steps of keyword driven framework of QTP.

1570