This project demonstrates automated testing of GitHub functionalities using Selenium WebDriver and TestNG. The purpose of this project is to provide a framework for automating common tasks on GitHub, such as logging in, editing profiles, and forking repositories. This can be useful for testing the functionality of GitHub's web interface, or for automating repetitive tasks.
- Java installed on your system.
- Selenium WebDriver library.
- TestNG testing framework.
- Chrome WebDriver (chromedriver).
- Clone this repository to your local machine.
git clone https://github.com/SandeepVashishtha/Github-Testing.git
2.Download the Chrome WebDriver (chromedriver) and set its path in config.properties
file. You can do this by opening the config.properties file in a text editor and adding a line like chromedriver_path=/path/to/chromedriver
.
3. Install required dependencies by running:
mvn clean install
To run the tests, execute the following command:
mvn test
-
loginWithInvalidPassword():
- Enters invalid password and verifies error message.
-
loginWithValidCredentials():
- Logs in with valid credentials.
-
forgotPassword():
- Tests the Forgot Password functionality.
-
SignInAndSignOut():
- Signs in, scrolls down, and signs out.
-
editProfile():
- Edits the user profile.
-
SearchandForkRepo():
- Searches for a repository, stars it, and forks it.
If you'd like to contribute to this project, please feel free to fork the repository, make your changes, and then submit a pull request. All contributions are welcome!
This project is licensed under the MIT License. See the LICENSE
file for details.
Sandeep Vashishtha