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  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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
1.  I have asked the same question for the third time, but 
i am getting wrong answers.
Pls give me the script to count the number of edit boxes or 
checkboxes in an windows application screen.
In windows application childobject is not working, anyone 
very urgent
 Question Submitted By :: Subaash Patil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 1
SystemUtil.CloseProcessByName "flight4a.exe"

SystemUtil.Run "C:\Program Files\Mercury 
Interactive\QuickTest 
Professional\samples\flight\app\flight4a.exe"

Set oDesc=Description.Create
oDesc("micClass").value="WinEdit"

Set oChildern=dialog("regexpwndtitle:=Login").ChildObjects
(oDesc)

msgbox ochildern.count
 
Is This Answer Correct ?    0 Yes 0 No
Raju
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 2
i am getting correct answer. childobjects is working for 
windows apps.It is better to mention error description.

in ur coding u kept small c when getting the count as u 
mentioned above.

Set oDesc=Description.Create
oDesc("micClass").value="WinEdit"

Set oChildern=dialog("regexpwndtitle:=Login").ChildObjects
(oDesc)

msgbox oChildern.count
 
Is This Answer Correct ?    0 Yes 0 No
Hemakumar.m
 
 
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 3
which version are you using. if u are using 8.2 version the 
above code is not executed.  u can use above 8.2 version of 
QTP.
 
Is This Answer Correct ?    0 Yes 0 No
Nath T
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 4
i am using 9.5. for u i giving one more solution verify it.

Dim oDesc
Set oDesc=Description.Create()
oDesc("micclass").value="WinEdit"
iObjCount=0
For iIndex=0 To 100
If Dialog("regexpwndtitle:=Login").WinEdit
(oDesc,"index:="&iIndex).Exist(2) Then
iObjCount=iObjCount+1
Else
 Exit For
End If
Next
msgbox iObjCount
  
iObjCount gives editboxes count. u can keep what ever value 
u want for ending of for loop.But it must be greater than 
equal value,then only u can get correct number.
 
Is This Answer Correct ?    1 Yes 0 No
Hemakumar.m
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 5
Thanks a lot Hema Kumar, Nath, and Raju

I just had missed using the word SET in the code.

It is now working fine

Subaash Patil
 
Is This Answer Correct ?    0 Yes 0 No
Subaash Patil
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 6
Hi subhash

find the below simple code

Set objdes=Description.Create
objdes("micclass").value="WinEdit"
Set objchild=Window("text:=Flight Reservation").ChildObjects
(objdes)

c=objchild.count

msgbox c
 
Is This Answer Correct ?    0 Yes 0 No
Dimple
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 7
even i am facing the same problem what was faced by subash
 
Is This Answer Correct ?    0 Yes 0 No
Amrita
 
  Re: 1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent
Answer
# 8
i am also not getting the count it is showing o as result.please help me
 
Is This Answer Correct ?    0 Yes 0 No
Suganya
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Give me brief idea about QTP automation object model? TCS4
Hi All, I'm Akshaya here, could anybody please help me regarding how to import the excel sheet to run time datatable. But Pl. keep it in your knowledge is that excel sheet is opened. Thanks, Akshaya Madali 9823213538  4
1. Can anyone help me with recovery scenarios, each type with examples and also what is on error resume next?  1
Why we have to split actions in a test?  4
Explain about opening notepad in QTP and writing of test result in notepad?  4
What will be the test script in QTP to test a ComboBox where a user has to select more than two items???? L&T4
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?  1
In VSS, HoW the documents send to local folder? copy paste or any other? plz explain about VSS TOOL kit? Oracle2
can u tell me the the cost of automation tool QTP ? Sonata4
How u perform exception handling in QTp,what is other name for ths Lehman-Brothers1
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)  1
describe some problem that u had with automation testing tool?  3
hi Sudhananda reddy, in my resume, i written as , I Am working as a Test Engineer for xyz company. IS IT RIGHT OR WRONG? WHAT IS THE ACTUAL meaning of "IN XYZ COMPANY", "FOR XYZ COMPANY", "WITH XYZ COMPANY".  2
Question:how many types of repositories in QTP9.2?and explain??  3
In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.  3
What are the properties you would use for identifying a browser & page when using descriptive programming ?  2
what are the design objects in qtp Wipro2
how can i call reusable action in a function could any one explain me? Livetek2
How will you send values to a cell in a webtable using QTP?  2
how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.  3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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