(…) automation module is the WebDriver based automation tests for testing UI. It depends on web war but there is no package dependency. I am deploying to tomcat using cargo maven plugin. I want to build web wars from source, on the fly just before running the automation tests, then deploy on tomcat and then run tests. I can do all these using ant build but unable to using maven
这绝对是可行的(而且我已经无数次这样做了).但是我不确定要了解您当前的项目结构(尤其是测试所在的位置).
这是我建议的结构:
.
├── functests
│?? ├── pom.xml // here we configure maven to run cargo & it tests
│?? └── src
│?? ?? └── it
│?? ?? ├── java
│?? ?? │?? └── ... // functional tests will go here
│?? ?? └── resources
├── pom.xml // aggregating pom
└── mywebapp // the application under test
├── pom.xml
└── src
?? ├── main
?? │?? ├── java
│ ├── resources
?? │?? └── webapp
?? └── test
├── java
?? └── resources
?