What will be the test script in QTP to test a ComboBox
where a user has to select more than two items????
Answers were Sorted based on User's Feedback
Answer / raj kumar
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 ? | 18 Yes | 6 No |
Answer / unknown
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 ? | 5 Yes | 3 No |
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 ? | 2 Yes | 2 No |
Answer / anil
@ maheshbabu
If want to search an object based on the value from the
dropdown list? For ex: I've a item "one" in the dropdown
list, I want to see if one is existing in the dropdown
list, if yes then i want to perform some action, else say
one does not exist.
how to write code for this in qtp?
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramp@oracle
systemutil.Run"path"
Dialog("Title:=Login").WinEdit("AttachedText:=Agent Name:").Set "chaitanya"
Dialog ("Title:=Login").WinEdit("AttachedText:=Password:").Set "mercury"
Dialog ("Title:=Login").winbutton("Text:=OK").Click
Window ("Title:=Flight Reservation").close
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / madhavi
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 | 3 No |
Answer / saravanaraja
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 | 2 No |
Answer / xxxx
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 ? | 3 Yes | 10 No |
After creating testcases, how do you start testing in QTP? what methodology will follow?
7 Answers Actran, American Well,
Which scripting language used by quicktest professional?
How we can add actions in the test using QTP?
How can we count the no of rows are available in a data table ?
Is it possible to change the name of a test object. I mean when we are recording the script for an object (for Ex: Username is a text field which has value "Babu",i am recording that). Then the Name of the object will become "Babu" in object repository. If i want to change "babu" as "xxxxx" .. is it possible to do? Pls help me in this .. if you didn't understand the question, pls let me know.
Hi,All How to create a link in excel sheet using qtp
Do we get any issues if we run the testscript on different browsers? what are the options we need to st in QTP?
I am having major problems with some DB Table Checkpoints I add to my script. I 35 web based applications recorded and each has DB Table Checkpoints insert but only 1 script isn't recognizing the DB Table Checkpoints for some reason. I've checked the DB connections and the info in the Library Functions and still only this one script out of 35 doesn't recognize the DB Table Checkpoints. Can someone please help me figure out why only this one script out of 35 that's hitting the same database is having a problem.
Write a script to delete the a specific row (say 3rd) in a webtable.
I know the Basic QTP. But I wanted to learn descriptive programming in QTP. Without Object Repository how we can develop a script? I wanted to do one real time project using QTP. If you know this type of training is available in pune then let me know the address.
How will you check that your test cases covered all the requirements?
can u pls explain me About Driver script.