简体   繁体   中英

Java: Maven project: Distinct test automation architecture

Hello 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? Example structures are provided below.

UI view of a system:

3 pages: home, registration, accounts.


1.1.1. "Home" page has search bar with "First name" field and "Search" button.

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. "Registration" page has "button1" to open "modal window1", which has 2 radio buttons.

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.


Structures:

1.

  • System
    • home
      • home Page Objects
        • "First name" field
        • "Search" button
    • registration
      • registration Page Objects
        • "button1"
        • radio button 1
        • radio button 2
    • accounts
      • accounts Page Objects
        • "First name" field
        • "Search" button
        • "Last name" field
        • "button2"
        • radio button 1
        • radio button 2
        • "Code" field

2.

  • System
    • Forms
      • Forms Page Objects
        • "button1"
        • "button2"
    • Search bars
      • Search bars Page Objects
        • "First name" field
        • "Last name" field
        • "Search" button
    • Modal windows
      • Modal windows Page Objects
        • radio button 1
        • radio button 2
        • "Code" field

Which of these 2 architectures/structures is the better/more distinct one?

Thanks in advance for a suggestion!

You can use NoraUi framework (Gherkin > Cucumber > Java (Step/page/Selenium)).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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