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.

Answers were Sorted based on User's Feedback



one ok button and one text box is there.when i click on ok button in that text box one no. will di..

Answer / litan

write script for that...

Is This Answer Correct ?    4 Yes 1 No

one ok button and one text box is there.when i click on ok button in that text box one no. will di..

Answer / abd

let me know answer

Is This Answer Correct ?    4 Yes 1 No

one ok button and one text box is there.when i click on ok button in that text box one no. will di..

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

one ok button and one text box is there.when i click on ok button in that text box one no. will di..

Answer / abc

for i=1 to 100
Dialog("aaa").WinButton("OK").Click
a=Dialog("aaa").WinEdit("Name").Winbutton
("OK").getroproperty("visible")
If a.Exist then
Reporter.reportevent 1,"WinButton","WinButton Exist"
Else
Reporter.reportevent 0,"WinButton","WinButton does not
Exist"
End If
Next

Is This Answer Correct ?    1 Yes 2 No

one ok button and one text box is there.when i click on ok button in that text box one no. will di..

Answer / kishore

for i = 1 to 100
Dialog("xyz").winbutton("ok").click
a = dialog("xyz").winedit("name").getvisibletext(" ")
if a<>100 then
steps
else
exitrun
dialog("Login").WinButton("OK").CheckProperty(OK , disabled)

next

Is This Answer Correct ?    0 Yes 3 No

one ok button and one text box is there.when i click on ok button in that text box one no. will di..

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

More QTP Interview Questions

what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

0 Answers  


how to capture tool tip in QTP and which check point is needed

2 Answers   Syntel,


Can we test the Word Document using QTP Tool? We should test the page size,page set up, paragraph indentation and spacing, font size of the the character int the page.

1 Answers  


what are the limitations of automation testing?

2 Answers   TCS,


How can i count "spaces" in any sentence or a string if suppose " It is a Testing question" Here we have 4 gaps(spaces) Is there any function to find out spaces between words

5 Answers   iGate, Livetek,






How do we edit the script in QTP. Anybody can explain in detail..Thanks in advacne...

3 Answers   IBM,


what is frame work?

2 Answers   Wipro,


What is the Limitations of Testing ?

4 Answers   TCS,


I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible

0 Answers  


What's QuickTest Window?

1 Answers  


How do we retrieve the content from a text box in a web page

2 Answers  


How will you load few objects in Active Screen?

1 Answers  


Categories