Skip to content

GitHub-Test is a project that provides a framework for automated testing of GitHub functionalities. Using Selenium WebDriver and TestNG, it automates tasks such as logging in, editing profiles, and forking repositories. This project is useful for testing GitHub's web interface and for automating repetitive tasks.

License

Notifications You must be signed in to change notification settings

SandeepVashishtha/Github-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub-Test

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.

Getting Started

Prerequisites

  1. Java installed on your system.
  2. Selenium WebDriver library.
  3. TestNG testing framework.
  4. Chrome WebDriver (chromedriver).

Setup

  1. 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

Running Tests

To run the tests, execute the following command:

mvn test

Test Cases

  1. loginWithInvalidPassword():

    • Enters invalid password and verifies error message.
  2. loginWithValidCredentials():

    • Logs in with valid credentials.
  3. forgotPassword():

    • Tests the Forgot Password functionality.
  4. SignInAndSignOut():

    • Signs in, scrolls down, and signs out.
  5. editProfile():

    • Edits the user profile.
  6. SearchandForkRepo():

    • Searches for a repository, stars it, and forks it.

Contributing

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!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Sandeep Vashishtha

About

GitHub-Test is a project that provides a framework for automated testing of GitHub functionalities. Using Selenium WebDriver and TestNG, it automates tasks such as logging in, editing profiles, and forking repositories. This project is useful for testing GitHub's web interface and for automating repetitive tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages