|
1 | | -# Automation Framework Selenium Java with TestNG building by Anh Tester (VERSION 1.2) |
| 1 | +# Automation Framework Selenium Java with TestNG building by Anh Tester (VERSION 1.3) |
2 | 2 |
|
3 | | -**SOME FEATURES IN VERSION 1.2** |
| 3 | +**SOME FEATURES IN VERSION 1.3** |
4 | 4 | 1. Run the parallel test case |
5 | 5 | 2. Read Object web element from a properties file |
6 | 6 | 3. Extent Report |
|
9 | 9 | 6. Logfile |
10 | 10 | 7. Record video and Screenshot test case for failed |
11 | 11 | 8. Read data test form Excel file (xlsx, csv, json,...) with class define fields (param: Client client) |
12 | | -9. Base function in the library (WebUI, Utils,...) ...etc.. (wait, dynamic xpath,...) |
| 12 | +9. Base function in the package: utils, helpers |
13 | 13 | 10. Read data from Json file |
| 14 | +11. Main Keyword: WebUI (call common function) |
14 | 15 |
|
15 | 16 |
|
16 | 17 | ## **SYSTEM REQUIREMENTS** |
@@ -118,16 +119,31 @@ Note: enabled Allow less secure apps |
118 | 119 | - Create function with annotaion **DataSupplier** on ***src/main/java/anhtester/com/utils/DataProviderUtils.java*** |
119 | 120 | - Call the name of **DataSupplier** above in the test cases as DataProvider of TestNG |
120 | 121 |
|
121 | | -**9. Base function in library** |
| 122 | +**9. Base function in the package** |
122 | 123 |
|
123 | | -- **WebUI.** call any method you need =)) |
124 | | -- And ..etc.. on ***src/main/java/anhtester/com*** |
125 | | -(It is static method) |
| 124 | +- ***src/main/java/anhtester/com/utils*** |
| 125 | +- ***src/main/java/anhtester/com/helpers*** |
126 | 126 |
|
127 | 127 | **10. Read data from JSON file** |
128 | 128 |
|
| 129 | + |
129 | 130 | - **JsonUtils** class select the json file path and call **"get"** method with **key** |
130 | 131 |
|
| 132 | +**11. Main Keyword: WebUI** |
| 133 | + |
| 134 | +- WebUI class is main keyword in Framework. It contains common functions |
| 135 | +- How to use: WebUI.function_name |
| 136 | +- Example: WebUI.setWindowSize(1024, 768), WebUI.screenshotElement(By by, String elementName),... |
| 137 | + |
| 138 | +**12. Call function to using sample** |
| 139 | +- All in one package: src/test/java/anhtester/com/projects/website/crm/testcases |
| 140 | +``` |
| 141 | ++ ClientTest |
| 142 | ++ SignInTest |
| 143 | ++ TestHandle |
| 144 | ++ TestSimpleCode |
| 145 | +``` |
| 146 | + |
131 | 147 |
|
132 | 148 | ## Project structure |
133 | 149 |
|
@@ -249,6 +265,10 @@ AutomationFrameworkSelenium |
249 | 265 | ┗ 📜README.md |
250 | 266 | ``` |
251 | 267 |
|
| 268 | + |
| 269 | +## I shall write document for my Framework. Coming soon... |
| 270 | + |
| 271 | + |
252 | 272 | # Copyright 2022 Anh Tester |
253 | 273 |
|
254 | 274 | > Anh Tester Blog: https://anhtester.com/ |
|
0 commit comments