Web UI Unit Testing - fieldenms/tg GitHub Wiki
The following information on how to create and execute Web UI unit test has been moved from a comment on issue #106 to this wiki page to facilitate its accessibility.
Web UI unit test can be executed manually. In future these tests are planned to be put on maven runner to be used in CI tools.
- Domain extension.
- Create test entities in package
ua.com.fielden.platform.sample.domain
in thesrc/main/java
source root in theplatform-pojo-bl
. - In companion object implementations, provide the
createFetchProvider
method if necessary.
- Create test entities in package
- Db recreation.
- Use
ua.com.fielden.platform.web.test.server.PopulateDb
fromplatform-web-resources
. - Add domain population logic for testing if necesary.
- Use
- TG test server start.
- Use
ua.com.fielden.platform.web.test.server.Start
fromplatform-web-resources
. - Add any Web UI specific logic (i.e. masters, centres registration) to
ua.com.fielden.platform.web.test.server.WebApp
, if necessary.
- Use
- Web UI tests start.
- Visit
https://tgdev.com
and log in. - Visit
https://tgdev.com/resources/tests.html
, which will start running all tests.- See
platform-web-ui/src/main/web/ua/com/fielden/platform/web/tests.html
.
- See
- Visit