简体   繁体   English

Java:Maven项目:独特的测试自动化架构

[英]Java: Maven project: Distinct test automation architecture

Hello stackoverflowers! 你好stackoverflowers!

I have a question to test automation (Selenium) specialists with several years experience: What is the best/distinct test automation architecture/structure of files in Java (Maven) project? 我有一个问题要测试具有数年经验的自动化(Selenium)专家: Java(Maven)项目中最佳/独特的测试自动化体系结构/文件结构是什么? Example structures are provided below. 下面提供示例结构。

UI view of a system: 系统的UI视图:

3 pages: home, registration, accounts. 3页:主页,注册,帐户。


1.1.1. 1.1.1。 "Home" page has search bar with "First name" field and "Search" button. “主页”页面具有带有“名字”字段和“搜索”按钮的搜索栏。

1.1.2. 1.1.2。 "Accounts" page has the same type of search bar as "Home" page has, but with "First name", "Last name" fields and "Search" button. “帐户”页面具有与“主页”页面相同的搜索栏类型,但是带有“名字”,“姓氏”字段和“搜索”按钮。


1.2.1. 1.2.1。 "Registration" page has "button1" to open "modal window1", which has 2 radio buttons. “注册”页面具有“ button1”以打开“模式窗口1”,该窗口具有2个单选按钮。

1.2.2. 1.2.2。 "Accounts" page has "button2" to open "modal window2", which has the same 2 radio buttons as "modal window1" has and 1 "Code" field. “帐户”页面具有“ button2”以打开“模式窗口2”,该窗口具有与“模式窗口1”相同的2个单选按钮和1个“代码”字段。


Structures: 结构:

1. 1。

  • System 系统
    • home
      • home Page Objects 主页对象
        • "First name" field “名字”字段
        • "Search" button “搜索”按钮
    • registration 注册
      • registration Page Objects 注册页面对象
        • "button1" “BUTTON1”
        • radio button 1 单选按钮1
        • radio button 2 单选按钮2
    • accounts 账户
      • accounts Page Objects 帐户页面对象
        • "First name" field “名字”字段
        • "Search" button “搜索”按钮
        • "Last name" field “姓氏”字段
        • "button2" “按钮2”
        • radio button 1 单选按钮1
        • radio button 2 单选按钮2
        • "Code" field “代码”字段

2. 2。

  • System 系统
    • Forms 形式
      • Forms Page Objects 表单页面对象
        • "button1" “BUTTON1”
        • "button2" “按钮2”
    • Search bars 搜索栏
      • Search bars Page Objects 搜索栏页面对象
        • "First name" field “名字”字段
        • "Last name" field “姓氏”字段
        • "Search" button “搜索”按钮
    • Modal windows 模态窗
      • Modal windows Page Objects 模态窗口页面对象
        • radio button 1 单选按钮1
        • radio button 2 单选按钮2
        • "Code" field “代码”字段

Which of these 2 architectures/structures is the better/more distinct one? 这2种架构/结构中的哪一种更好/更独特?

Thanks in advance for a suggestion! 在此先感谢您的建议!

You can use NoraUi framework (Gherkin > Cucumber > Java (Step/page/Selenium)). 您可以使用NoraUi框架(Gherkin> Cucumber> Java(步骤/页面/硒))。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM