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

How to fetch web elements count from Google Page which contains letter "e"

4 Answers  


I want to know how to execute the descriptive programming in qtp for the webedit object which does not contain attached text property. but i have checked it with name and html id property. Even though it is not executing. it is giving error in object's physical description.

2 Answers  


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


can u explain relative path architecture framework in qtp?

0 Answers   Mindlance,


How to open a new test using QTP?

1 Answers  






What is Virtual Object? Plz Explain me with an example?

2 Answers   Ordain Solutions,


After coming to know that QTP could not identify non-standard objects, we set those non-standard objects as virtual objects using Virtual object wizard. But how can we identify that qtp could not identify non-standard objects?

6 Answers  


what is the difference between DATA TABLE and DATA SET?

2 Answers   Accenture,


hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


hai friends i already ask this question but when i post the question the alignment goes wrong .....my question is we have a WEB TABLE ....assume that web table having 3 row's and 3 column here in 2nd row 3rd column having VISIT FACEBOOK link...now i want to check the VISIT FACEBOOK link is available or not ..if it's there i want to click the link ...then how to find the web table row or column count ....don't write the excel or data table script here friends .....consider that it's a WEB TABLE do a favour ...thank's

3 Answers  


What are objects? how do you select the unknow object?

3 Answers  


Check point what is how many types of checkpoint and explain

3 Answers   Accenture,


Categories