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
 
Function to convert lowercase to uppercase in QTP Pls anybody can give the answer.. Thanks in advance... Navis1
For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in  3
I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..  2
what is the difference between window command and dialog command  1
Idid my qtp course in 2007 june in mind Q i for got to use this tool ,i want to mention in my resume about this ,how can i rectify this ,pls give me any idea . Quest2
What is difference between QTP 8.2 Obect Repository and QTP 9.2 object Repository? Nokia1
What does it mean when a check point is in red color? what do u do?  1
In automation testing Can we retest virtual object in the application after getting new version from the developers, is there any property will change for that object or it won't.? Siemens1
When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.  1
I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm? I used the add fn also.. BirlaSoft3
in real time when we are creating the script by default it is going to save in action object repository or not any way my question is in one of my interviewer said that in real time the default object repository is action object repository and by using quick test plus they are going to merge is it correct i said that by selecting the object repository as shared one in selecting the test>>settings>>resources but she is not convinced what is the correct one DigiTech1
What is the difference between QTP 8.2 and QTP 9.2  1
In an interview what r the questions asked in qtp related project? pls any answer this question?  1
in Qtp,how to display user name and pwd (script)in data table(global sheet).  2
qtp script for recording and running the application.need script for short cut keys like f3,f4 etc.how to write script for recording?  1
Hello Everybody, Please tell me can we create Test Plan in QTP? This I am asking irrespective to integrating with Test Director.I mean is there any option to create Test Plan in QTP itself. Thanks, Gaytri  4
I am not able to record yahoomail browser.its giving error like "The browser Application can't be launched .Posssibly the URL is wrong" So anyone can tell me what setting i have to do in qtp??  1
what is the difference between Table checkpoint and Database checkpoint in QTP Ordain-Solutions2
Which Databases supports for QTP? CTS2
Explain script generated at the time of setting runtime property?  1
 
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