- Must have:
- Operating system: Mac or Windows
- Software platform: Java
- JDK
- Java IDE: IntelliJ IDEA
- Version control: Git
- Git repository hosting service: GitHub
- Build tool: Maven
- Software-testing framework: Selenium
- Testing framework: TestNG
-
Fork the repository
- To fork the Spoon-Knife repository, click the Fork button in the header of the repository.
- Sit back and watch the forking magic. When it’s finished, you’ll be taken to your copy of the Spoon-Knife repository.
-
Clone your fork
- On your GitHub account, navigate to the main page of the repository.
- Under the repository name, click Clone or download. alt text
- In the Clone with HTTPs section, copy the clone URL for the repository.
- Open Terminal and navigate to your workspace.
- Type git clone, and then paste the URL you copied.
git clone https://github.com/YOUR-USERNAME/Team2WebAutomation.git - Press Enter. Your local clone will be created.
-
Switch to your branch
- Switch over to the branch "yourfirstname" when you want to add new commits to it.
- You can see all branches created by using: git branch. The asterisk indicates the current active branch.
- Use the checkout command to switch branch. git checkout [name_of_your_branch]
-
After you have done a lot of work on your branch
- Stage the file(s) for commit to your local repository. git add .
- Commit the file(s) that you've staged in your local repository. git commit -m "Add message here"
- Push the changes in your local repository to GitHub: git push origin [name_of_your_branch]
-
Making a Pull Request
- At last, you’re ready to propose changes into the main project!
- On your GitHub account, navigate to the main page of the repository.
- In the "Branch" menu, choose the branch that contains your commits. alt text
- To the right of the Branch menu, click New pull request. Use the base branch dropdown menu to select the branch you'd like to merge your changes into, then use the compare branch drop-down menu to choose the topic branch you made your changes in.
- Type a title and description for your pull request.
- Click Create pull request.
/Module- In maven, modules are sub-projects.
- You will be using different Modules to maintain different web-domains.
/Generic- Generic module is created to manage all the common settings for all the modules.
.gitignore- Git uses this file to determine which files and directories to ignore, before you make a commit.
pom.xml- A Project Object Model or POM is the fundamental unit of work in Maven.
- It is an XML file that contains information about the project and configuration details used by Maven to build the project.
- Java API
- Git and GitHub learning resources
- POM Reference
- Selenium Java API
- TestNG API
- Working with GoogleSheet