Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: How to run one test.

...

Code Block
languagebash
titlelaunch uitests
..../magnolia-integration-tests/tests mvn clean install -P ui-tests,jetty6-standalone
Run only the tests in one class
Code Block
languagebash
titlelaunch uitests for one class
..../magnolia-integration-tests/tests mvn clean install -P ui-tests,jetty6-standalone -DfailIfNoTests=false -Dtest=MyTestClass

(Note that this will also trigger the crawling after the test, it would be nice to figure out a command that runs one class, but does not trigger the crawling.)

Run only one test
Code Block
languagebash
titlelaunch uitests for one test
..../magnolia-integration-tests/tests mvn clean install -P ui-tests,jetty6-standalone -DfailIfNoTests=false -Dtest=MyTestClass#myTest

 

Manual run

If you want to run the ui tests manually from within your IDE you can start the author and public tests instance with

Code Block
languagebash
titlelaunch uitests
..../magnolia-integration-tests/tests mvn clean install -P manual-tests,jetty6-standalone

Once this is running, then you can simply run or debug with JUnit in your IDE as you would a normal unit test.

Outlook

  • Execute tests with different browsers (Firefox, Chrome, Safari, Ie, ...) an different OS's (OSX, Unix, Windows, iOs, ...) simulating different devices (e.g. ipad as well).

...