We now have quite a few automation scripts which are using the same element. We are having problems when updating the version of the element to remember which of all the automation scripts are using this element. We try to update the dummy version in all the automation scripts we can remember but inevitably we try to run an automation script and get the wrong dummy version error.
Almost all of our updates to the protocol would not affect the automation scripts, most versions of the protocol is backwards-compatible.
Is there a way to not have to enter the version that a dummy uses so that it always uses a specific element, no matter the protocol version of that element?
Or just list all automation scripts using a specific element/protocol as a dummy?
Or maybe be able to mark a version as compatible with other versions? So if an automation script uses version 1.1 and we update the element to 1.2 but mark it as backwards-compatible with 1.1 then the automation script don't throw an error?
You could use a script parameter instead of a script dummy.
The user would then manually have to enter the element name (no dropdown).
But you could use the script parameter value in an engine.findelement(elementname) call.
Note, that you'll have to check the protocol name of the element in your script to make sure the user didn't pass on an element using an incompatible protocol.
If you really want to have a dropdown, you could create an interactive automation script, although that will require some more effort. (check out this recent kata video).