How to validate either one of two possible attributes
Posted: Sun Jun 19, 2016 12:39 pm
Hi there
I'm a beginner on Ranorex.
Not sure if this is possible. Here's the situation for our test kit. We have two printers. Plug one printer in and the name of the printer is shown at the bottom of the screen. I want to validate this UI element so that the test will pass if any one of the 2 printer names are shown at the bottom. Is it possible to do this under one test action by validating either one of two attributes against a UI element? I just want the test to look at the text.
If I create two separate test actions to validate the UI element for each name, then at least one of these tests is always going to fail because we can only plug in one printer. Eg test for printer A, test for printer B. One of these will fail so is it possible to check the text for either one of these values so that the test will pass if at least one of the text is showing.
Thanks
I'm a beginner on Ranorex.
Not sure if this is possible. Here's the situation for our test kit. We have two printers. Plug one printer in and the name of the printer is shown at the bottom of the screen. I want to validate this UI element so that the test will pass if any one of the 2 printer names are shown at the bottom. Is it possible to do this under one test action by validating either one of two attributes against a UI element? I just want the test to look at the text.
If I create two separate test actions to validate the UI element for each name, then at least one of these tests is always going to fail because we can only plug in one printer. Eg test for printer A, test for printer B. One of these will fail so is it possible to check the text for either one of these values so that the test will pass if at least one of the text is showing.
Thanks