Video Tutorial -
Introduction of Jenkins
Jenkins
is the leading open-source continuous integration tool developed by
Hudson lab. It is cross-platform and can be used on Windows, Linux, Mac
OS and Solaris environments. Jenkins is written in Java Programming
language.Jenkins is a powerful application that allows continuous
integration and continuous delivery of projects, regardless of the
platform you are working on. You can integrate Jenkins with a number of
testing and deployment technologies. In this tutorial, we will learn
Jenkins with Maven project
Important Features of Jenkins
2.Jenkins provides direct links to the latest build or failed build that can be used for easy communication.
3. Jenkins is easy to install either using direct installation file (exe).
4. Jenkins can be configured to email the content of the status of the build.
5. To configure various tasks on Jenkins is easy.
6. Jenkins can be configured to run the automation test build on TestNG after each build.
4. Jenkins can be configured to email the content of the status of the build.
5. To configure various tasks on Jenkins is easy.
6. Jenkins can be configured to run the automation test build on TestNG after each build.
7. Jenkins can be configured to distribute the build on multiple machines.
8. 3rd party plugin can be configured in Jenkins to use features and additional functionality.
Why Jenkins and Appium?
1. Running Appium tests in Jenkins allows you to run your tests every time your software changes.
2. Jenkins can schedule your tests to run at specific time which is good for regression test execution for each build.
3. You can save the execution history reports and Test result reports.
4. Jenkins supports Maven for building and testing a project in continuous integration.
1. First of all download Jenkins from HERE.
2. Install Jenkins.
3. Once it is installed open http://localhost:8080/ url in browser.
4. Then navigate to the path and enter the password and click on continue
5. Click on Manage Jenkins
6. Click on Manage Plugins
7. Search for "Maven Integration Plugin" and select install without restart option.
8. After Maven Installation is successful we can get the Maven project while adding New Item
9. Go to New Item -> Enter The Name -> Select Maven Project -> Click OK
10. Scroll down to build and you will find option that Jenkins want to know where your maven is installed. then click on the tool configuration.
11. Then add your jdk path and maven path.
2. Jenkins can schedule your tests to run at specific time which is good for regression test execution for each build.
3. You can save the execution history reports and Test result reports.
4. Jenkins supports Maven for building and testing a project in continuous integration.
Jenkins Installation
1. First of all download Jenkins from HERE.
2. Install Jenkins.
4. Then navigate to the path and enter the password and click on continue
5. Click on Manage Jenkins
6. Click on Manage Plugins
7. Search for "Maven Integration Plugin" and select install without restart option.
8. After Maven Installation is successful we can get the Maven project while adding New Item
9. Go to New Item -> Enter The Name -> Select Maven Project -> Click OK
10. Scroll down to build and you will find option that Jenkins want to know where your maven is installed. then click on the tool configuration.
11. Then add your jdk path and maven path.
12. In the build Root POM give your project pom.xml path.
13. Save the changes and click on Build Now.
14. Once the Build is executed you can check the build history.
Nice tutorial. I'm brand new to Jenkins, and I was able to follow until Step 12 where it says to enter your pom.xml path. Should I enter the path to the pom.xml file for the Appium tests, or to the pom.xml file for the app under test? Thanks!
ReplyDeleteyou need to give appium test pom.xml
DeleteThanks! Tests are up and running on Jenkins now.
DeleteHi, I am new to Jenkins, so could you please tell me how to Open the Android Emulator using Jenkins, i tried creating AVD but getting error like
ReplyDelete-- [android] Could not create Android emulator: Failed to parse AVD config file
Please help me to get out of this issue
This is so painful and all over the place. Can you please put these in the right order.
ReplyDeleteIf I want to schedule run on Jenkins with real Mobile Devices, how can I set up the Mobile device unlock at a certain time? Example if I want Jenkins schedule run at 9 am every day, how do I set up unlock my mobile device at 9 am every day without human interaction? Do the Jenkins have the settings or Appium have the setting to unlock the real mobile device at a certain time? Please help
ReplyDelete