SRC和amp;下的Cucumber + Maven + POM项目的目录结构TEST文件夹 [英] Directory Structure for Cucumber + Maven + POM project under SRC & TEST folder

查看:165
本文介绍了SRC和amp;下的Cucumber + Maven + POM项目的目录结构TEST文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有效的项目结构,以在Maven的Src& amp;中使用POM,Cucumber(功能和步骤定义文件)对其进行管理.测试文件夹.

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和test文件夹.

What should be correct way to manage? Where to use Maven's src and test folder.

请分享.提前致谢.

推荐答案

具有Cucumber + POM的Maven项目的项目结构

基本包包含Page对象初始化类,可以在其中将其扩展到所有页面类

base package contains Page object initialization class where it can be extended to all the page classes

浏览器软件包包含浏览器工厂类,该类包含调用Chrome,Firefox,IE等的方法,

browser package contains the browser factory class which contains the methods to invoke Chrome, Firefox, IE etc.,

自定义例外程序包,用于引发自定义消息

custom Exception package used to throw the custom messages

功能包包含功能文件

页面包包含页面对象类,例如登录名,具有相关Web元素和方法的主页

pages package contains the page objects classes like login, home page with the relevant web elements and methods

资源包包含驱动程序信息,测试数据信息,xml配置,属性文件等,

resources package contains the driver information, test data information, xml configuration, property file etc.,

运行程序包包含手动创建的运行程序类.否则,我们可以在maven并行插件依赖项中为动态运行器类创建引用相同的程序包.

runner package contains the runner classes which is created in manual. Otherwise we can refer the same package for dynamic runner class creation in maven parallel plugin dependency.

步骤包包含每个特定页面的步骤定义.

steps package contains the step definition for each specific pages.

utils软件包包含实用程序类,例如通用实用程序,硒实用程序,excel实用程序等,

utils package contains the utility classes like common utility, selenium utility, excel utility etc.,

低于目标

黄瓜-并行包含并行执行报告

黄瓜报告包含常规执行报告

generated-test-sources 包含动态运行程序类文件,该文件在运行时创建用于并行执行.

generated-test-sources contains the dynamic runner class files which is created during the run time for parallel execution.

这篇关于SRC和amp;下的Cucumber + Maven + POM项目的目录结构TEST文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆