[フレーム]

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / GITHUB / Upload Selenium Script to GITHUB using Eclipse

Upload Selenium Script to GITHUB using Eclipse

by 34 Comments

[画像:Upload Selenium Script to GITHUB]

Hello Welcome to Selenium Tutorial, Today we will see Github Integration Eclipse with Selenium.

If you are working with a team on a certain project then you need to have a central repository where all can store and commit their code as well as they can synchronize with each other.

Github is a repository on web, which support all the feature of revision control and source code management and it gives so many other features as well.

Scenario- If you are 5 member in a team then all team member can upload their code on github and download it later on also.

Upload Selenium Script to GITHUB using Eclipse

Step 1- First of all Create an account in github with your valid email and other information.

Step 2- Now login to github account using credential then navigate Home page.

Step 3- Click on Create repository.
Github Integration Eclipse with Selenium

Step 4- Click on New Repository.
Github Integration Eclipse with Selenium

Step 5- Specify the name of the repository, description and click on create repository.

Note- Github has public and private repository feature, so if you are using public repository then anybody on Github can see your code.

In case private repository, only who is added as a member in this repository can see this repo and can make the changes but for private repository we have to pay some amount.
Github Integration Eclipse with Selenium
Step 6- Now copy the URL of your repository.
Github Integration Eclipse with Selenium
Step 7- Now open Eclipse and Select project which we want to upload on github then right click and Go to team section and Select share project.

Github Integration Eclipse with Selenium
Step 8- Here you will get some other repository type as well.

Select Git and complete the steps.

Github Integration Eclipse with Selenium
Github Integration Eclipse with Selenium

Github Integration Eclipse with Selenium

Step 9- Whenever we are creating new test cases or we are modifying our old test cases then we need to do checkout so that we can have updated copy on Github.
Now select Test case > right click > team > select commit.
Github Integration Eclipse with Selenium
Step 10- Here we have to specify comment and Select the file which need to update and click on Commit and Push.
Github Integration Eclipse with Selenium
Step 11- Enter valid github credentials and complete the steps.
Github Integration Eclipse with Selenium

Github Integration Eclipse with Selenium

Github Integration Eclipse with Selenium

Click on finish and now your project is up to date with Git Repository.

Github Integration Eclipse with Selenium

If you open Github and navigate to your repository just do a refresh and your full code will be updated.

Thanks for visiting my blog. Please comment below in case any issue.

Keep in touch. Have a nice day 🙂

Reader Interactions

Comments

  1. sarath says

    Hi, Thank you for given such good information .
    can u please update the same with Command prompt.how can we Commit on Command Prompt.

  2. MAnojkumar says

    Hi, Thank you for given such good information .
    can u please update the same with Command prompt.how can we Commit on Command Prompt.

    • Sneha Mazumder says

      Hi,I use the below commands to push my project to the central repository.
      @Mukesh,I will be glad if you suggest any enhancement.

      Step 1:Open Git bash terminal and navigate to local repository: cd
      Step 2:Initialize Git: git init
      Step 3:Copy the link of the central repository and add as remote of your local repository: git remote add origin
      Step 4:Check the untracked files: git status
      Step 5:Add the files to the central repo: git add
      Step 6:Commit the change with suitable comment: git commit -m [In case commiting the same file use:git commit –amend]
      Step 7:Push to central repo: git push origin master/

      Thanks!!

  3. Rajya says

    Hi Mukesh,
    Your blog was very well and thanks for sharing with us..
    Do you have any idea of ruby selenium cucumber?
    If you have please share with me!!!
    Thanks,
    Raji

  4. satheeskumar says

    Hi Mukesh,
    Hope Doing well,
    Doubt for the day:-)
    I am Using page factory pattern for selenium web driver.Is it possible for Appium(Android/iOS)..Especially i want this for Android application.
    Please help me out from the confusion.

    Bcoz normally I can run my script but in Page factory am getting issue anyhow.

    For ex:
    am using as,
    @FindBy(id=”com.tvsnext.sflproject:id/login_edit_user_name”)
    private MobileElement username;
    and I tried out as @AndroidFindBy too.

  5. satheeskumar says

    Hi Mukesh,
    1.How to select multiple checkboxes and perform in selenium,Could you please guide me out?
    2.If I want to test the Registration page in a certain application thrice per day,how would you handle this kind of situation?

    I look hearing from you..

  6. Satheeskumar says

    Hi Mukesh,

    Could you please tell me how to install ANT in Selenium and JMeter…If I so how would be the results better rather than TestNG and Normal Jmeter reports.

  7. leela says

    Hi Mukesh,
    I want run selenium testng script (windows)in linux operating system. would please help me out.

    Thanks & Regrds
    Leela

  8. Avinash says

    Hi Mukesh,

    Thanks for sharing your knowledge…your teaching style is perfect.
    Can you please create a video or blog where I can run my maven project using Jenkins with github

    Regards,
    Avinash Motwani
    Your big fan

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

AltStyle によって変換されたページ (->オリジナル) /