|
2 | 2 | [](https://opensource.org/licenses/Apache-2.0)
|
3 | 3 | [](https://github.com/anhtester/AutomationFrameworkSelenium/actions/workflows/maven.yml)
|
4 | 4 |
|
5 |
| -## Test Automation Framework Selenium Java with TestNG building by Anh Tester |
| 5 | +## Test Automation Framework using Selenium Java and TestNG building by Anh Tester |
| 6 | + |
| 7 | +### **💥Important**: when clone this repo, you should select '**Recursive**' to get all submodules |
6 | 8 |
|
7 | 9 | 🔆 **SOME FEATURES IN FRAMEWORK**
|
8 | 10 |
|
|
45 | 47 |
|
46 | 48 | **1. Run parallel the test case**
|
47 | 49 |
|
48 |
| -- Run test case in suite XML (**src/test/resources/suites/**) |
49 |
| -- Run test case from Maven pom.xml file |
| 50 | +- Run test cases in suite XML (**src/test/resources/suites/**) |
| 51 | +- Run test cases from Maven with setup in the pom.xml file |
50 | 52 | (**mvn clean test**)
|
51 | 53 |
|
52 | 54 | 
|
|
98 | 100 |
|
99 | 101 | 
|
100 | 102 |
|
101 |
| -**6. Write Log to file** |
| 103 | +**6. Write Logs to file** |
102 | 104 |
|
103 |
| -- Call class: Log.info , Log.pass, Log.error,... (**Log** is a custom global class from Log4j2) |
| 105 | +- Call class: LogUtils.info(), LogUtils.pass(), LogUtils.error(),... (**LogUtils** is a custom global class from Log4j2) |
104 | 106 | (**_import utils.com.anhtester.LogUtils.java_**)
|
105 | 107 |
|
106 | 108 | 
|
|
118 | 120 |
|
119 | 121 | **8. Read data test from Excel file**
|
120 | 122 |
|
121 |
| -- Create function with annotaion **DataProvider** on * |
122 |
| - *src/test/java/anhtester/com/projects/website/crm/dataprovider/DataProviderManager.java** |
123 |
| -- Read excel with Map and Hashtable |
| 123 | +- Create function with annotation **DataProvider** on **src/test/java/anhtester/com/projects/website/crm/dataprovider/DataProviderManager.java** |
| 124 | +- Read Excel file with Map and Hashtable |
124 | 125 |
|
125 | 126 | **9. Base function in the package**
|
126 | 127 |
|
|
129 | 130 |
|
130 | 131 | **10. Read data test from JSON file**
|
131 | 132 |
|
132 |
| -- **JsonUtils** class select the json file path and call **"get"** method with **key** |
| 133 | +- **JsonUtils** class selects the JSON file path and calls **"get"** method with **key** |
133 | 134 |
|
134 | 135 | **11. Main Keyword: WebUI**
|
135 | 136 |
|
136 |
| -- WebUI class is main keyword in Framework. It contains common functions |
| 137 | +- WebUI class is the main keyword in Framework. It contains common functions |
137 | 138 | - How to use: WebUI.function_name
|
138 | 139 | - Example: WebUI.setWindowSize(1024, 768), WebUI.screenshotElement(By by, String elementName),...
|
139 | 140 |
|
|
157 | 158 | ===How to get Token and start Bot===
|
158 | 159 |
|
159 | 160 | - Read blog: https://blog.devgenius.io/automation-of-reporting-2abe7f101801
|
160 |
| -- Copy Token of your Bot => Paste to TelegramManager class |
161 |
| -- Click your Bot => input **/start** to start your Bot |
| 161 | +- Copy Token of your Bot ⇒ Paste to TelegramManager class |
| 162 | +- Click your Bot ⇒ input **/start** to start your Bot |
162 | 163 |
|
163 | 164 | ===How to get ChatID===
|
164 | 165 |
|
165 |
| -- After starting your Bot, your use Postman and using your Token: |
166 |
| - Get: https://api.telegram.org/bot{token}/getUpdates => chat.id |
| 166 | +- After starting your Bot, you use Postman tools and using your Token: |
| 167 | + Get: https://api.telegram.org/bot{token}/getUpdates ⇒ chat.id |
167 | 168 | - Example: https://api.telegram.org/bot19468772:AAHtlc_BH8zlJAGDHuTJy3J72XumY5LxWcE/getUpdates
|
168 | 169 |
|
169 | 170 | ```
|
@@ -232,7 +233,6 @@ https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers
|
232 | 233 | Document DataFaker: https://www.datafaker.net/documentation/getting-started/
|
233 | 234 | or of Anh Tester blog: https://anhtester.com/blog/selenium-java/tao-du-lieu-gia-voi-datafaker
|
234 | 235 |
|
235 |
| - |
236 | 236 | ### 🔆 Project structure
|
237 | 237 |
|
238 | 238 | ```
|
@@ -589,7 +589,7 @@ or of Anh Tester blog: https://anhtester.com/blog/selenium-java/tao-du-lieu-gia-
|
589 | 589 |
|
590 | 590 | ### ⭐️ I will support your company if needed
|
591 | 591 |
|
592 |
| -## Copyright 2022-2024 Anh Tester |
| 592 | +## Copyright 2022-2025 Anh Tester |
593 | 593 |
|
594 | 594 | > Anh Tester Blog: https://anhtester.com/
|
595 | 595 |
|
|
0 commit comments