javarcpgui-testingjubulaeclipse-rcptt

How to inject parameter in Jubula or RCP Testing Tool?


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?


Solution

  • I found a way for the RCP Testing Tool: https://www.eclipse.org/rcptt/documentation/faq/pass-value/

    1. Add the parameter you want to include in your test to the aut vm arguments like -DpropertyName=propertyValue
    2. Use the ECP function get-java-property "propertyName" to get the value of the passed property