开发者

Maven structure for automated UI test

开发者 https://www.devze.com 2023-04-12 09:36 出处:网络
I have got to know that src/test/java is used for writing unit tests. I was wonde开发者_如何学运维ring if I should use same location for automated UI tests I write in Selenium.

I have got to know that src/test/java is used for writing unit tests. I was wonde开发者_如何学运维ring if I should use same location for automated UI tests I write in Selenium. And if so then should I be following structure as -

src/test/java

  com.mycompany.pageobjects - contains application page objects
  com.mycompany.uielements - contains UI elements of application
  com.mycompany.tests - contains selenium tests of application
  <some more packages>

src/test/resources - contains test data i.e. plain text, xml or properties files


You can use the same structure for UI Test via Selenium, but i would recommend them to name like XXXXIT.java for Integration Test which is executed by the Maven-Failsafe-Plugin in relationship with Selenium.

Furthermore i would recommend to have a separate module which contains the UI Integration Tests. This makes life easier. Take a look here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号