Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to Switch case- Multi Select with value match
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
You can either use an Excel Sheet (I prefer this) or QTP's DataTable and store the value in a variable, and compare/match that value in column B and retrieve its corresponding value from column A and use that instead. This only requires a simple Loop.

Something in the lines of this:

Code:
Column A     Column B

Alabama        AL
Alaska         AK
...            ...
...            ...
Wyoming        WY

So, all you have to do is match the value that you retrieve from the form, compare it with the value in Column B, and retrieve the value from its corresponding row in Column A.
Reply


Messages In This Thread
RE: Alternative to Switch case- Multi Select with value match - by Anshoo Arora - 06-05-2008, 06:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question what is the shortcut key used to switch between keyword view and expert view in qtp. shaileshanand86 5 11,286 02-13-2019, 03:58 AM
Last Post: zia003
  type mis match vishnu 2 4,201 01-14-2012, 12:12 PM
Last Post: vishnu
Rolleyes How to select multiple choices from Multi-Select weblist blavanya 3 9,541 01-03-2012, 05:55 PM
Last Post: shivu.hanu
  Not Invoked particular Test Case kotaramamohana 6 3,986 12-30-2011, 05:39 PM
Last Post: ravi.gajul
  FOR loop with nested CASE wheelercha 2 3,231 12-12-2009, 10:45 PM
Last Post: upadhyay40

Forum Jump:


Users browsing this thread: 1 Guest(s)