Wednesday, February 20, 2019

How to upload Selenium project to GitHub?

GitHub is a distributed versioning system for the software development teams for managing their working copies.

GitHub is a central repository or Source Code Management, developers use this tool to pull the latest updates to their local machine or to push their latest changes/enhancements to it frequently.


Uploading Project to GitHub:

Step 1: Create a new repository in your GitHub account. Click on "New Repository".


Step 2: Enter "Repository name" and "Description", then click on "Create Repository" button.


Step 3: You should see "selenium-project" repository being created.


Step 4: Launch eclipse, and create a Selenium project using maven. If you need any help in creating selenium project please look at this blog post.

In this post we are going to use below Selenium project.


Step 5: EGit plugin should be installed in eclipse, if not installed Go to Help --> Eclipse marketplace, search for Egit and click on "Install".


As shown in the above image Egit plugin-should be installed.

Step 6: We have to open Git Repository perspective, Search for it in "Quick Access" and select "Git repositories".


Step 7: Git Repository perspective should be opened as shown below.


Step 8: Now we have to configure the GitHub repository in "Step 2" to eclipse for that, click on "clone a Git repository". Then we will get Clone Git Repository window.


Step 9: Copy the Git repository url..

Step 10: Enter copied url in the URL field, then host and Repository path get populated automatically.


Enter username and password, click "Next".

Step 11: Then it will display Local destination window, where your project will be stored. Click "Finish".


Step 12: We can see GitHub repository being configured in the local location in Git Repository perspective.


Till now we have integrated local git repository with GitHub repository only, we are yet to upload our project with GitHub.

Step 13: To upload the project to GitHub repository via local repository, Right click on the project --> Team --> Share Project. Then below window will be shown up.


Step 14: Select repository that we created in "Step 12" and click on "Finish".


Step 15: Our project will be added to the local Git repository under Working Tree folder.


But we can't see the project in the GitHub repository yet.

Step 16: Right click on the project --> Team --> Commit. Then Git Staging window will be opened.


step 17: In Git Staging, Unstaged Changes contains the latest updated file. Select all unstated files and drag them to Staged Changes as shown below


Step 18: Enter "Commit Message" and then click on "Commit and Push" button.


Step 19: Check whether correct remote repository selected or not. then click "Next".



Step 20: Click "Finish"


Step 21: Click "Close"


Step 22: Go to GitHub repository and refresh, then we should see the project in the repository as shown below.


This is how we can upload a Selenium project to GitHub. Thanks for reading, if you find this tutorial helpful, please share with your friends. Thanks!!

#HappyLearning #HappyTesting

10 comments:

  1. The overall legitimacy and acknowledgment of this specific endorsement makes it important to get familiar with its root and how to apply for it.ExcelR PMP Certification

    ReplyDelete
  2. Mmm.. good to be here in your article or post, whatever, I think I should also work hard for my own website like I see some good and updated working in your site.ExcelR pmp certification

    ReplyDelete
  3. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. CRM and Project Management

    ReplyDelete
  4. I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. managing projects

    ReplyDelete
  5. Just saying thanks will not just be sufficient, for the fantastic lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates.
    pmp certification training in hyderabad

    ReplyDelete
  6. During June of last year, one of the biggest providers of version github contribution service, was acquired by Microsoft. What repercussions does this entail and how is the future of such services.

    ReplyDelete
  7. Additionally, if the reports are required the exact day, it doesn't bode well to messenger the files. file transfer

    ReplyDelete
  8. cool stuff you have and you keep overhaul every one of usPMP Certification

    ReplyDelete
  9. I just stumbled upon your blog and wanted to say that ExcelR PMP Certification I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.

    ReplyDelete

DevOps 01: What is DevOps and How it benefits organizations?

DevOps is a culture in an organization, where the development team and operations team help each other by sharing information, process and t...