简体   繁体   English

SRC & TEST文件夹下Cucumber + Maven + POM项目的目录结构

[英]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.

相关问题 在src / test / resources下的Maven项目中创建文件夹 - Creating folder in maven project under the src/test/resources maven项目目录结构中目标中的classes文件夹 - classes folder in target in maven project directory structure 导入 Maven 项目正在改变 src/test/resource 结构 - Importing Maven project is changing src/test/resource structure 将项目打开为pom.xml时,在intellij中添加src / it / java作为测试文件夹 - add src/it/java as test folder in intellij when opening project as pom.xml Spring Maven项目结构pom.xml - Spring Maven project structure pom.xml 如何排除Maven中src文件夹下的一个package? - How to exclude a package under a src folder in Maven? Maven pom.xml如何在非标准项目结构中识别出Testng测试用例? - How maven pom.xml identifies the testng test cases in a non-standard project structure? Eclipse项目和Maven pom文件不在同一目录中 - Eclipse project and Maven pom file not in same directory 如何在maven项目的Cucumber测试中运行GlassFish和Selenium? - How can I run GlassFish and Selenium under the Cucumber test in maven project? 使用 Maven/POM.xml 将“target/bla/bla/bla”中生成的文件夹移动到“src\main\java\com\demo\project” - Move a folder generated inside “target/bla/bla/bla” to “src\main\java\com\demo\project” using Maven/POM.xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM