What are interactive tests?

Well they are test cases which run forever and require user interaction. These test cases usually run a web user interface integrated with Triplesec or run a Swing application. The user is expected to play around with the application testing it then end the test.

What is it good for?

Well you want to be able to make a change to a client application and test your changes against a full Triplesec instance without having to install Triplesec or have an instance always running for testing. This is a good way to do that.

Running interactive tests.

Not all projects in Triplesec contain interactive tests. Web applications and the swing applications in triplesec all contain interactive tests. For swing based applications interactive tests are run like so:

mvn -Dui test

Yeah you better be sober for this stuff (smile). Now to run interactive web applications you have to issue the same command after building and installing the module like so:

mvn clean install
mvn -Dui test

The reason why you have to do this is because for web applications the war file has to be built and installed into place for the interactive test to pick it up and install it.

  • No labels