ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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.
 Question Submitted By :: Litan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
write script for that...
 
Is This Answer Correct ?    0 Yes 0 No
Litan
 
  Re: 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
# 2
let me know answer
 
Is This Answer Correct ?    0 Yes 0 No
Abd
 
 
 
  Re: 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
# 3
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 0 No
Swarup
 
  Re: 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
# 4
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 ?    0 Yes 0 No
Sivareddy
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable. Apex7
How to connect to data base?  2
what is the main process in QTP? Ordain-Solutions2
how many types of actions r there? what r they? explain? pls give any one answer? IBM1
using descriptive programming how to close all opend browsers? Satyam5
How to record & run on Japanese language application using english version of QTP ??? ABC3
Qtp Automation Engineer , Can he login in VSS? What purpose he login In VSS? But Some companys are using CVS AND VSS ? some are Have log in in VSS Some Not login(not accessing) into VSS, not login persons are working on CVS? my doubt is, can Qtp automation engineer have loin in VSS or not? Where he store QTp Script? CTC3
what are the qtp tester responsibilities?  1
Define QTP ? TCS4
how to write testcases for web based insurance,from the script by using qtp.  1
what are recovery management techiniques?  1
plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?  1
how can i prepare for QTP(8.2) to face interview ? give over view details?  42
How you automate test scripts Novartis1
How many tables r created during the recording in QTP?  1
How do we call Library Files(.vbs) in the Test Script Thanks in Advance... US-Technology4
I am not finding pages and links in object spy on web testing. I am only getting window and winobject. where is the problem? thanks  1
what is memory leakage? ITC-Infotech8
Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If  1
How to test the mandatory fields in QTP? SoftSolve1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com