Micro Focus QTP (UFT) Forums
Value entered through datasheet mismatch with the dropdown values... - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Value entered through datasheet mismatch with the dropdown values... (/Thread-Value-entered-through-datasheet-mismatch-with-the-dropdown-values)



Value entered through datasheet mismatch with the dropdown values... - vibhakhandelwal - 08-08-2011

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.



RE: Value entered through datasheet mismatch with the dropdown values... - Saket - 08-08-2011

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.


RE: Value entered through datasheet mismatch with the dropdown values... - vibhakhandelwal - 08-08-2011

Thanks Saket ...Smile