| || |
Dynamic radio options
I have radio options on the web application that I am testing. My tests are failing on the radio options as each time a test is run the radio options have a new value assigned to the object.
How do I get Quicktest to recognise the radio options each time I run a test, even when the value of each radio option changes dynamically?
Re: Dynamic radio options
How do you do it? This is always a good basis for answering this question...folks get wrapped up in the technical part, before the logical part.
For example, if you come to the page once, and the radio options are 1 2 and 3, but the next time you come, they are A B and C; you want to select 2 and C, respectively; how do YOU know that is what you want to select...build your QT solution on that. Is it based on something you did or something the application displayed previously? Then parameterize that, and link it to this selection...you can parameterize property values in the Object Repository, and this will work. Is it always the second from the top you want? Then edit the object repository to disregard title or label or whatever, and base your selection on index. In many cases, you know because you know (that is weak, but for the sake of quick discussion), and you again would need to parameterize the property in the OR and just stack up the values to look for and select as input data for the testcase.
If it is a LOT more complicated than this, you may need to look at descriptive programming, although I am not a big fan of that. Depends on whether the values alone are dynamic, or whether you have completely dynamic pages with little to no consistant content.