Hello! i am having two comboboxes.Each having 10 items in
it.when i select first item in first combobox,it is not
similar in the second combobox.for ex in first combo if it
is Hyderabad,in second it should be some chenai or some
other item .Write a VBSCRIPT for that?
Answer Posted / rayudu
suppose in our flight reservation window "Fly from"
and "Fly To" comboboxes values should not be same.ok.
In taht situation below code will give all fail status
because Our flight reservation window has both values same
Just understand the code and implement it on ur application
SystemUtil.Run "C:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","C:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "rayudu"
Dialog("Login").WinEdit
("Password:").SetSecure "49192ea21d0ec541ad12119e494c01ba2bb
d510b"
Dialog("Login").WinButton("OK").Click
a=window("Flight Reservation").WinComboBox("Fly
From:").GetROProperty("items count")
b=window("Flight Reservation").WinComboBox("Fly
From:").GetROProperty("all items")
a1=window("Flight Reservation").WinComboBox("Fly
To:").GetROProperty("items count")
b1=window("Flight Reservation").WinComboBox("Fly
To:").GetROProperty("all items")
spl=split(b,vblf)
spl1=split(b1,vblf)
For i=0 to a-1
val=spl(i)
msgbox val
val1=spl1(i)
msgbox val1
If val=val1 Then
reporter.ReportEvent micFail,"Step1","Test case is
fail"
Else
reporter.ReportEvent micPass,"Step1","Test case is
pass"
End If
Next
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Difference between copy to action and call to action?
Can anybody let me know how to test the Drag and drop feature of the column in a .net application...eg..i hav to test the drag and drog feature of a table(swftable) in a application..plze help!!
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
What is keyword view?
What is the default object synchronization timeout in qtp?
Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
How would you directly trigger javascript in a test?
What is a checkpoint? How many check points are there in qtp?
Explain about business process component? types and usage?
Is it possible to split an action? How?
Explain different type of event trigger option.
how to do the batch testing in test director using manual testing procedure?
What is the virtual object?
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?