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.domainin thesrc/main/javasource root in theplatform-pojo-bl. - In companion object implementations, provide the
createFetchProvidermethod if necessary.
- Create test entities in package
- Db recreation.
- Use
ua.com.fielden.platform.web.test.server.PopulateDbfromplatform-web-resources. - Add domain population logic for testing if necesary.
- Use
- TG test server start.
- Use
ua.com.fielden.platform.web.test.server.Startfromplatform-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.comand 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