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
What will be the test script in QTP to test a ComboBox 
where a user has to select more than two items????
 Question Submitted By :: Prasad
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 1
If i am correct, then this is a special type of combobox 
where a dropdown list appears after we enter a input, for 
eg, after we enter des, then immediatly a drop down list 
appears for this combox with all the options whose test has 
des in them, we can selecet an option from this list just 
like a drop down list and we can select one one option. 
even i am looking for a qtp script which can do this 
operation. :-(
 
Is This Answer Correct ?    2 Yes 1 No
Madhavi
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 2
Hey Prasad,
 I think you can't select more that one item in the
combobox, it may be list box or something else
 
Is This Answer Correct ?    3 Yes 2 No
Unknown
 
 
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 3
Look at it might be useful for you

Browser("XXXX").page("page1").WebEdit("editbox").set "dsgagfdsa"
value1=Browser("XXXX").page("page1").WebEdit("editbox").GetROProperty("Text")
Browser("XXXX").page("page1").webButton("Button1").click

Browser("XXXX").page("page2").WebList("List1").select value1
 
Is This Answer Correct ?    2 Yes 5 No
Xxxx
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 4
This is the correct Answar

browser(":: IRCTC :: - Plan My").Page(":: IRCTC :: - Plan My").WebList("day").Select(#1)
browser(":: IRCTC :: - Plan My").Page(":: IRCTC :: - Plan My").WebList("day").ExtendSelect(#2)
 
Is This Answer Correct ?    7 Yes 1 No
Raj Kumar
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 5
Hi This Mahesh 


I am sending the Descriptive Progarme see below

Function selectWebItem(webListName,ItemName,webItemIndexVal)
ClearDialogs()	
	 strHandle = Window
("RegExpWndClass:=IEFrame","index:=0" ).GetROProperty
("hWnd")
	Set gobjBrowser = Browser("hWnd:=" & strHandle)
	        
	Set gobjPage = gobjBrowser.Page("index:=1")
	gobjPage.Sync
	Set objDescription = Description.Create()
	objDescription("Class Name").Value = "WebList"
	objDescription("html tag").Value = "SELECT"
	objDescription("name").Value = webListName
       

	 If  gobjPage.WebList(objDescription).exist(0)  Then
		gobjPage.WebList(objDescription).select 
ItemName
     else
		objDescription
("index").value=webItemIndexVal
		 If  gobjPage.WebList(objDescription).exist
(0)   Then
				 gobjPage.WebList
(objDescription).select ItemName
          else
			  testPassCntr=testPassCntr+1	
		   
        End if 
    End If
End Function
 
Is This Answer Correct ?    1 Yes 0 No
Maheshbabu.t
 
  Re: What will be the test script in QTP to test a ComboBox where a user has to select more than two items????
Answer
# 6
we cant select more than one value in Combo Box. 
Example: go and check in Ms-Word (Font Selection Combo Box)
 
Is This Answer Correct ?    0 Yes 0 No
Saravanaraja
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what is batch run ? HCL4
what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.??? GE1
HI. AnyBody can explain Automation Testing Framework...Generally wht do we Intiate before going to start Automation testing process... Anybody can explain.......Thanks in advacne... HCL1
What is SQL injection? CTS2
Can we test GUI of the application using QTP.? How.?If possible briefly explain process.? Wipro1
How do u do batch testing in WR & is it possible to do in QTP, if so explain? Crea1
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.  2
Explain script generated after applying database check point?  2
Tell me the QTP Advantages and Disadvatages ?  1
What is the Difference Between Quick Test Pro and Quick test professional? Infotech5
how you have used object libraries? plzzzzz do answer  1
How i can use and create Library functions in QTP and what is the proces .  2
I have 14 itmes in a drop down that are associated with an account And these items change with different accounts I want to be able to define it by and index number or any other id so if I enter 2 in my Global excel sheet it selects the 2nd item from the drop down - is this possible? Rogers4
how qtp identifies objects of application. Intel5
QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?  1
1.How recognize QTP Dyanamic Image? (suppose tha wedpage contains 3 logos..1 square 2.circle 3.rectangel)there changing at same position how to capture that) Synechron3
How to get data from excel sheet to the script? write the script. Liquid-Hub6
what are the different data driven types?  6
What is Object Spy?  7
What are the types of Object Repository’s in QTP? Crea1
 
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 © 2009  ALLInterview.com.  All Rights Reserved.

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