Micro Focus QTP (UFT) Forums

Full Version: Compare an Array and data from a column in webtable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I want to compare an array with another array which collects the values from a column in a webtable.

My basic doubt is how to kept the conditions while comparing them.
1) scenario 1:
If any of value is "Not started" in second array,the result shud be "In progress"

2)scenario 2
If all the value is "Approved" in second array(can have "Not Required" as a value),the result shud be "Complete"

Can somebody help in providing suggestions on how to code it?
My suggestion would be to put the information into an array and compare the array elements. Then you can have the exceptions in your 2 scenario's.