It is possible to filter/select test cases within the search path by defining test case names (-t “test name”) or by tags (-i “run tag” -e “ignore tag”).
I’d like to select tests by a test plan supplied by another tool (Jama, in our case).
A list of test case names and Jama global ids can be downloaded from a specific Jama test plan and stored in a json file. The test cases within the Robot scripts have the same names and should also have a reference to the Jama global id within the [Documentation] section.
So, I want to load the json file and check each test case within the search path against the set of test case names and global ids. If a test case name and global id is not on that list, I want to remove it from the execution plan (like if it had a tag that is excluded with the -e parameter). There should be a warning (on console and within output.xml and log.html), if only the test case name or the global id is on that list.
Is there a way to deploy such a filter method on startup?
Thanks in advance!