I want to test my RCP application with GUI tests. I've found two possible tools: Jubula and RCP Testing Tool.
Does anybody know, how to inject parameters into the tests, so that I can use one test case with multiple inputs?
I want to test my RCP application with GUI tests. I've found two possible tools: Jubula and RCP Testing Tool.
Does anybody know, how to inject parameters into the tests, so that I can use one test case with multiple inputs?
I found a way for the RCP Testing Tool: https://www.eclipse.org/rcptt/documentation/faq/pass-value/
-DpropertyName=propertyValue
get-java-property "propertyName"
to get the value of the passed propertyYou can add parameters to parameter contexts, unite it to super context, add context to test case and then use it as $parametername in test case script.
In RCPTT if a test case refers to more that one supercontext, then all possible combinations of tuples from these supercontexts will be used.
There are good examples in the mentioned documentation.
You have to use the Data Set feature. It's basically a table with each row meaning a separate cycle of the same Test Case repeated.
The columns of the table are named after the parameters of the Test Cases.
You can also use Excel files (.xls) as Data Set source.