-
Notifications
You must be signed in to change notification settings - Fork 5k
contribution for adding e2e testcase #2995
Copy link
Copy link
Closed
Labels
Description
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:

- Add test data under the data module
- Add element positioning under the locator module
- Add page operation method under the page module
- Add test cases under testcase module, testcase must start with test
- New test cases need to be added to testng.xml
- The common method of element operation in common/BrowserCommon
note:
- Local run needs to modify LOGIN_URL, driver.chromeDriver (local browser drive address) in config.properties
- Start the local browser to run the testcase, you can comment out chromeOptions.addArguments("--headless") in base/BaseDriver
Reactions are currently unavailable