Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Wednesday, March 9, 2016

Java : Run As > TestNg option not available

 Run As > TestNg option not available

 

  1. Open Eclipse
  2. Help >MarketPlace
  3. search for "Testng" 
  4.  Install "Testng for Eclipse"
  5. Click on Install now 
  6. Restart Eclipse
  7. try again

Thursday, March 3, 2016

Eclipse : Git and Git hub basics

Eclipse has a built-in Git functionality

1.Project>rt ck
2. Team>Share project
3. Check  CheckBox: Use or Create Project in Parent Repository in parent folder of Project
4. Click on the Project in Project Window- Create Repository becomes enabled
5. Note down the git name ie "ABC.git" (Same as your project name)- which is at the end of the project.
6. Click on finish

7. Login to GIThub
8. Click on new Repository
9. Enter name noted in step 5 or you project name in Repository name field and click on create repositorybutoon
10 . Note down the "http" address of the repository
11. In Eclipse >Rt ck on project
12. Team>Commit
13. Select required files , add a comment and click on Commit and push button.
14. In destinatiron Git Repository window enter URL from step 10 and add relavant information
15. Click on Finish



1. Creating new Git repository (Moving current project to local repository)
    a)Select project rt click>Team>Share project>Git
    b) Click on Create Repository button
    c) Select folder path (give name  starting 'local_'
    d) finish
    e)close open the opened file
    f)goto the project moved to repository rtck>observer location
   
   
2. Adding Git views to perspective
        a)window>show view>other>Git>select both Git Staging and Git Repository
        b)window>show view>other>team>history
       
3.Enable Git buttons in tool bar
    a)Window>Customize perspective
    b) Select tab Command groups Availability
    c)enable git
    d) Ok
   
4.Commit code
    a)Project right ck
    b)team>Commit
    c) In commit chnages window >enter message
    d)Select files to check in (no need to check in class files)
    e)click on commit
    f)goto git repository window>local_xxx>branchs>local>"Masterxxx"+comment
   
5. to view history
        a)select the branch in git repository
        b)Rt ck>show in>history
       
6. To Integrate with github
    a)create account in github
    b)ck on new repository button
    c) enter a name in "Repository name" field"
    d)click on "Create repository"
    e) copy the SSH "url"
   
    f)In ecplise>open the same project
    g)goto git repository
    h)Rt ck on "remotes"
    i)configure push selected ,origin
    j)enter the URL copied , enter usn and pass
    k)In the nect window , click advanced
    l)under ource ref>select master
    m)save
    n)finish
   
    o)goto >remotes>origin>click on "red arrow out"symbol or right ck and push
    p)goto github and validate
   
7)Checkin in git and github
    a)use checkin button in the tools bar
    b) enter comments
    c)click on push (only pushes to local)
    d)goto Branches>master>rt ck and  push
    e)verify the same in github
   

8)show all files
    a)window>show view>other>navigator
   
9)ignore
    a)rt ck>team>ignore (generates ignore file)
    b)select gitignorefile and click on commit button
    c)ck commit
    d)ck on push button