CHOOSE and SELECT in QTP
Bourchi, H.
bourchih@unive.nl
Fri, 26 Jan 2001 11:12:49 +0100
I did some tests yesterday...
And results of tests were ... surprising...
Check out the cobinations that i tested and processing durations.
------------------------------------
--------------------------------
test 1
access product_table
define product_choice char*1 = parm
;answer to prompt was A
choose product_item (case of product_choice &
when "A" :"A@" &
when "L" : "B@@")
Processing duration 5 minutes
------------------------------
test 2
access product_table
define product_choice char*1 = parm
;answer to prompt was L
choose product_item (case of product_choice &
when "A" :"A@" &
when "L" : "B@@")
Processing duration 92 minutes
------------------------
test 3
access product_table
define product_choice char*1 = parm
;answer to prompt was L
choose product_item (case of product_choice &
when "A" :"A@" &
WHEN "L" : "B@" to "z@")
Processing duration 92 minutes
------------------------
test 4
access product_table
define product_choice char*1 = parm
;answer to prompt was L
choose product_item (case of product_choice &
when "A" :"A@" &
WHEN "L" : "L@")
Processing duration 130 minutes!
-------------------------
test 5
access product_table
choose product_item "L@"
Processing duration 106 minutes!
----------------------
And in a SELECT constuction toke me just 16 minutes!
access product_table
select if product_item[1:1] <> "A"
--------------------
The theory of Chris (about key 0) seems very convincing, but i can't combine
it with results of my tests in case of A products.(In case of A product
CHOOSE was mutch faster then SELECT).
Anyway, I think I will try somthing with conditional compilation. Has
someone any example of CC in QTP? I will be thankful to receive it.
Regards,
Hamid Bourchi
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.