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                      
tip   SiteMap shows list of All Categories in this site.
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
How will u find that how many List boxes( and check boxes) 
are present in one particular window
 Question Submitted By :: Rajesh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 1
very intresting question,but i never found in QTP my 
experience .pls tell me if any one knows
 
Is This Answer Correct ?    0 Yes 0 No
Softwaretester4u
[EDS]
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 2
Hi,

    try this code...


set odesc = discription.create

odesc("Class Name").value ="WinCheckBox"
odesc("native class").value="Button"

set checkboxcount= window("<window name>").childobjects
(odesc)

counts=checkboxcount.count

msgbox counts

  u will get number in msgbox.

         please ping me if there is any feedback.
 
Is This Answer Correct ?    4 Yes 0 No
Nanda
 
 
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 3
Hi,

    try this code... i did some spelling mistake in above 
answer..pls change that..

discription=description
 
Is This Answer Correct ?    4 Yes 0 No
Nanda
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 4
hi,
 i tried this script. it's working fine but not giving
appropriate checkbox in the application
 
Is This Answer Correct ?    0 Yes 0 No
Akila
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 5
Hi,
then do some modification..

Just remove line Odesc("nativeclass") = "Button"

I think it will work now

If any queries..

nanda.dreddy@gmail.com
 
Is This Answer Correct ?    1 Yes 0 No
Nanda
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 6
Set oPageObject = Browser("browsername").Page
("pagename").Object
	Set oTableObject = oPageObject.getElementsByTagName
("list")
	iTotalTbl = oTableObject.length
 
Is This Answer Correct ?    0 Yes 0 No
Venkatesh
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 7
'Counting total number of lists

Set Odesc= Description.Create
Odesc("htmltag").value= Input
Set linkcollection= Browser("").page("").childobjects(Odesc)
Itemcount=linkcollection.count()
msgbox Itemcount
 
Is This Answer Correct ?    0 Yes 0 No
Ramya
 
  Re: How will u find that how many List boxes( and check boxes) are present in one particular window
Answer
# 8
HI Every bodey,---

Any object present in the page is known as childobject.
Ex:-Link,Web Edit,Check Box,Web button,List box,etc...

If u want to coun the Listboxes (or)Check boxes you can
write below script.

---------CODE----------

set ochbox=description.create
ochbox("micclass").value="checkbox"

set chobj=Browser().Page().childobjects(ochbox)
n=chobj.count

msgbox n  '(here you can get how many check boxes there in a
page)

for i=o to n-1
val1=chobj(i).getroproperty("innertext","name")
msgbox val1
next
-----------End---------
In the same way we can find Links,Webbuttons,Listboxes,etc..

Any doubts----mail to----mskalyan.smile@gmail.com
 
Is This Answer Correct ?    0 Yes 0 No
Kalyan
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.  1
In QTP, As a first step wht we will do before going to start a Automation....when it will be decided that we have to go for a Automatio..and who will decide to go for Automation. Any body can pls let me know.. Thanks in Advance..  1
Have you performed Debugging and how did you?  2
I have written some scripts in QTP by using older version, but I want to run them in latest version. Is there any process to do that.If so can anyone explain me?  1
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable Livetek3
regular expression Wipro2
How do we Access, retriew and edit the runtime objects in Automation Testing using QTP IBM3
What is the use of Accessibility check point? BirlaSoft8
can we enable smart identification for test object  3
Anybody can tell me what are the common roles and responsibilites of a Automation Test engineer IBM1
A question was asked in a company-suppose, I am testing a website on QTP, all the time a new title bar is appeared on next page. Trying to use regular expression under key word driven testing but expert view is also appearing unchanged and error is also generating, do you have any best resolution for that kindly explain in detail. please dont give example of yahoomail, that is unable to clear my doubt.  2
what is difference between normal mode and fast mode?  1
When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)  1
Please Clarify if smartidentfication is used at runtime when qtp does not recogonize the objects Ordain-Solutions2
anyone can explian about types of "Triggere Events" in QTP  1
WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT Wipro2
How can we record an edit box in the Web application ? Kanbay3
How we can add actions in the test using QTP? BirlaSoft4
Use of environment variables?  3
What is iteration? How it is related to Test Results in QTP?  2
 
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