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 can we use regular expressions for a table in web page, each cell in table having unique identification, Now I want to count number of rows in table and enter data in all cells of the table?

1 Answers   CTS,


How exactly you start scripting in QTP? In the interview he was not satisfied with my answer.Please post what is correct answer.

2 Answers  


I've some problem in Descriptive programming plz help me. I've written in a click event code in Functional library when I run this flight reservation program It is not run. How to I write multiple click event in functional library. My program is this. I have associate an action with functional library. Public Function ClickButton(byval ApplicationName, byval WindowName, byval ObjectName, byref Comments) If Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Exist Then Dialog("text:=" &WindowName).Activate Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Click Elseif Window("text:="&ApplicationName).WinButton("text:=" &ObjectName).Exist Then Window("text:=" &ApplicationName).Activate Window("text:=" &ApplicationName).WinButton("text:=" &ObjectName).Click End if End Function

2 Answers   Amdocs,


any one can send me the concepts of qtp

0 Answers  


Tell me Three major differences between QTP & Winrunner?

5 Answers  






if you have the same application screen with 7 drop down boxes and approximately 70 values how do you test with QTP?

2 Answers   Ordain Solutions,


Tell me Three major differences between QTP & Winrunner?

2 Answers  


What is SQL injection?

2 Answers   CTS,


what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


what is difference between Mandatrary proparties and Assistive proparties? Explain

4 Answers  


what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".

3 Answers  


write a vb script to print even numbers from 1-50?

6 Answers   Logica CMG, Kclink Technologies,






Categories