Skip to content

contribution for adding e2e testcase #2995

@xingchun-chen

Description

@xingchun-chen

follow the root issue: #1460

e2e is an end-to-end test, that is UI automated testing , an important means of black box testing, in order to avoid incorporating some defective code

e2e use framework: java+selenium+testng+maven
In order to reduce the maintenance cost in the later period, e2e adopts the design mode of POM, as shown below:
image

  1. Add test data under the data module
  2. Add element positioning under the locator module
  3. Add page operation method under the page module
  4. Add test cases under testcase module, testcase must start with test
  5. New test cases need to be added to testng.xml
  6. The common method of element operation in common/BrowserCommon

note:

  1. Local run needs to modify LOGIN_URL, driver.chromeDriver (local browser drive address) in config.properties
  2. Start the local browser to run the testcase, you can comment out chromeOptions.addArguments("--headless") in base/BaseDriver

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurenew featurehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions