Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guedesrodriguezleonardo/selenium-java-junit
Web Automation testing framework using Selenium, JUnit and Java
https://github.com/guedesrodriguezleonardo/selenium-java-junit
java junit selenium selenium-java test-automation web-testing
Last synced: 6 days ago
JSON representation
Web Automation testing framework using Selenium, JUnit and Java
- Host: GitHub
- URL: https://github.com/guedesrodriguezleonardo/selenium-java-junit
- Owner: guedesrodriguezleonardo
- Created: 2023-06-05T22:58:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-03T13:18:21.000Z (9 months ago)
- Last Synced: 2024-03-03T17:26:34.406Z (9 months ago)
- Topics: java, junit, selenium, selenium-java, test-automation, web-testing
- Language: Java
- Homepage:
- Size: 6.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# selenium-java-junit âŠī¸
This project is an automated testing project that utilizes JUnit and Selenium to perform web application testing. The primary focus of this project is to test [adminces](http://cestore.ces.com.uy/adminces/), a platform developed by CES, this platform was created to enable students at the CES(Centro de Ensayos de Software) to conduct software testing activities.## Project structure
The project follows a structured organization to maintain code readability and separation of concerns. Key components include:
- đ Page Object Pattern: The project uses the Page Object Pattern to separate test logic from web page interaction. This approach enhances test maintainability and readability.
- đ Test Classes: Test cases are organized into JUnit test classes, each focusing on specific test scenarios.
## How to run
### Selecting the Browser:
You can specify the browser to be used for testing by editing the [config.properties](src\main\resources\config.properties) file in your project's resources directory. Here's how to set up different browsers:
- **To use Google Chrome:**
1. Uncomment the following lines in `config.properties`:
```properties
#Google Chrome Config
browser=Google Chrome
browserVersion= 117.0.5938.88 (64-bit)
```
2. Comment out other browser configurations by adding `#` at the beginning of each line, like this:
```properties
#Mozilla Firefox Config
#browser=Mozilla Firefox
#browserVersion= 117.0.1 (64-bit)
```- **To use Mozilla Firefox:**
1. Uncomment the following lines in `config.properties`:
```properties
#Mozilla Firefox Config
browser=Mozilla Firefox
browserVersion=
```
2. Comment out other browser configurations by adding `#` at the beginning of each line, like this:
```properties
#Google Chrome Config
#browser=Google Chrome
#browserVersion= 117.0.5938.88 (Official Build) (64-bit)
```Ensure you save the changes before running the tests. The selected browser will be used for test execution.
`Only one browser configuration should be uncommented, and the rest should be commented to avoid conflicts.`### Running Test Suites
1. Open IntelliJ IDEA, and ensure the project is loaded.
2. Locate the test suite within the project's ```src\test\java\uy\com\ces\suites``` directory.
3. Right-click on the test suite you wish to run.
4. Select "Run" from the context menu.
5. Examine the test suite results displayed in IntelliJ IDEA to assess the outcomes of the individual tests executed within the suite.
### Running Individual Tests
1. Open IntelliJ IDEA, and ensure the project is loaded.
2. Locate the test class within the project's ```src\test\java\uy\com\ces\tests``` directory.
3. Right-click on the specific test class you want to run.
4. Select "Run" from the context menu.
5. Review the test results displayed in the IntelliJ IDEA UI to see the outcomes of the executed test cases, including passed and failed tests.
### đ Allure Report
This project uses the Allure Report to generate an interactive report that provides information about the test results.
After running the tests, the report can be generated by running the command
```
allure generate && allure open
```