Micro Focus QTP (UFT) Forums

Full Version: Value entered through datasheet mismatch with the dropdown values...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I am using mercury windows based flight application.
I have parameretised values for FlyTo field. hence i am entering values from the datasheet. I have a list of values out of which one of the value is Invalid i.e. that value do not exists in FlyTo Dropdown.
Now when i run my script, QTP throws an error and test stops there.

Suggest me as to how i should handle the situation wherein if the value i enter through datasheet do not exists in Dropdown then QTP handles this and carry on with the next value.
This should not be the case for dropdowns. QTP will always throw the exception if it does not find the item in dropdown, always check the item exists before setting it.
Thanks Saket ...Smile