[英]Directory Structure for Cucumber + Maven + POM project under SRC & TEST folder
I am looking for effective project Structure to manage it with POM, Cucumber(Feature and Step definition Files) under Maven's Src & test folders.我正在寻找有效的项目结构来使用 Maven 的 Src 和测试文件夹下的 POM、Cucumber(功能和步骤定义文件)来管理它。
What should be correct way to manage?正确的管理方式应该是什么? Where to use Maven's src and test folder.
在哪里使用 Maven 的 src 和 test 文件夹。
Please Share.请分享。 Thanks in Advance.
提前致谢。
Project Structure for a Maven project with Cucumber + POM带有 Cucumber + POM 的 Maven 项目的项目结构
base package contains Page object initialization class where it can be extended to all the page classes基础包包含页面对象初始化类,它可以扩展到所有页面类
browser package contains the browser factory class which contains the methods to invoke Chrome, Firefox, IE etc., browser 包包含浏览器工厂类,其中包含调用 Chrome、Firefox、IE 等的方法,
custom Exception package used to throw the custom messages用于抛出自定义消息的自定义异常包
features package contains the feature files功能包包含功能文件
pages package contains the page objects classes like login, home page with the relevant web elements and methods pages 包包含页面对象类,如登录、主页以及相关的 web 元素和方法
resources package contains the driver information, test data information, xml configuration, property file etc.,资源包包含驱动信息、测试数据信息、xml配置、属性文件等,
runner package contains the runner classes which is created in manual. runner 包包含在手册中创建的 runner 类。 Otherwise we can refer the same package for dynamic runner class creation in maven parallel plugin dependency.
否则,我们可以在 maven 并行插件依赖项中为动态运行器类创建引用相同的包。
steps package contains the step definition for each specific pages. steps 包包含每个特定页面的步骤定义。
utils package contains the utility classes like common utility, selenium utility, excel utility etc., utils 包包含实用程序类,如 common 实用程序、selenium 实用程序、excel 实用程序等,
Under target低于目标
cucumber - parallel contains the parallel execution report黄瓜 - 并行包含并行执行报告
cucumber-reports contains the normal execution report Cucumber-reports包含正常的执行报告
generated-test-sources contains the dynamic runner class files which is created during the run time for parallel execution. generate-test-sources包含在运行时为并行执行创建的动态运行器类文件。
功能文件不是 java 代码,应该在 src\\test\\resources 文件夹中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.