we want to start our java application (the system under test) after executing the sequence-before-suite. And stop the application before the sequence-after-suite.
Is there an easy way to do so?
We found the chapter 12.5 Java in the documentation, but we are not sure how to implement this in the citrus-context.xml . We get the error message "invalid content was found starting with element 'java' ".
We also searched a solution with a simple command line execute ' java ...jar', but we can't find any command line executer.
thanks for your answer. I would like to start the program in the end of the before-suite. But I don't know how. We write the Testcases and the config in xml, not in java. That's why I don't know how to implement the suggested solutions from stackoverflow. Do you know?
You can call your custom Java code in the beforeSuite method then. Of course your classes must be part of the Citrus project either by adding a Maven dependency or by adding the classes to the src/main/java directly.