This is a very handy reusable maven project that uses Selenium Webdriver and Java.
- Parallel Execution
- Customer Annotation
- Cross browser testing
- Page Object Model pattern
- Test Data Driven Framework
- ExtentLogger, Base64ImageScreenshot
- PropertyFileReader, ExcelReaderUtil, JsonReader, DataProviderUtil
- TestNGListeners, MethodInterceptor, FailedTestRetry, AnnotationTransformer
1. git clone https://github.com/sadabnepal/selenium-java-testng.git
2. Navigate to selenium-java-testng
3. Open the project in any IDE
4. Open testdata.xlsx from src/test/resources/excel
5. In RUNNERMANAGER sheet Select yes for the test case you want to execute
6. In DATA sheet select test methods, test data, browser, execution count and save the file
7. Execute testng.xml as TestNG Suite
- Reports are saved under {PROJECT_ROOT_FOLDER}/extent-output/datetime_index.html
Spark Report
This complete framework is built by following Testing Mini Bytes Youtube channel. Do checkout his awesome videos.