{"id":2439,"date":"2019-07-24T05:47:37","date_gmt":"2019-07-24T05:47:37","guid":{"rendered":"https:\/\/www.folio3.com\/mobile\/?p=2439"},"modified":"2020-03-26T17:12:23","modified_gmt":"2020-03-26T17:12:23","slug":"achieve-test-automation-using-jenkins-ci-tool","status":"publish","type":"post","link":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/","title":{"rendered":"Achieve Test Automation with Jenkins (CI tool)"},"content":{"rendered":"\n<p><strong><em>Continuous integration (CI):<\/em><\/strong><em> is the Process of automating the code of all developers from multiple working copies into a single software project.<\/em><\/p>\n\n\n\n<p>Whenever a developer makes a code commit, the software tests the build automatically. For large scalable projects, developers are committing code very frequently, within a day. With each commit, the code is built and tested. If the test is passed, the build is good to go for deployment. This commit, build, test, and deploy is a continuous process and hence the name continuous integration.<br><\/p>\n\n\n\n<figure class=\"wp-block-image drop-shadow\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/V7UTqVBt9R-yTkQ0imekIdSqPOfDjz3HZx8n4sLUf6bKkGlWWR8sUV9w53sh7zW2MxgZ-xhQlcWrzguXrMkVBXhjnPyKE8UEnAwXJB4IzkMUl97Zbz8OPlF6oORQqgwVdZ3w4pKo\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Jenkins \u2013 What is this?<\/strong><\/p>\n\n\n\n<p>It is an open-source Continuous Integration server capable of orchestrating a chain of actions that help to achieve the Continuous Integration process in an automated fashion.<br><\/p>\n\n\n\n<p><strong>Let\u2019s get started.<\/strong><br><\/p>\n\n\n\n<p><strong>Step 1: Create a test Script on IntelliJ<\/strong><br><\/p>\n\n\n\n<p>We are using Java as the language and IntelliJ for an IDE. You can use Eclipse as well. We have created a Maven project in which we only have created one test script just for this blog. Once you&#8217;re done with the test script do not forget to execute it once.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/TUXRLQ5PuCjYTmVPmAdW5Ev4_JllFRhyrav_EBa0qd561uHDCnuxFhjMLyQXrEShkwtVgbJlcOkjFcGYFHpzyasY_y3U-HH_JunsbhW1W17qHzRfxqBdoHYachaSekvF57BvdxTG\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Note:<\/strong><strong>&nbsp; <\/strong>If you do not have knowledge of test automation you first need to get it done before jumping in.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Step 2: Create a New Repo on Git<\/strong><br><\/p>\n\n\n\n<p>Create your account on GitHub and log in. When you log in, you will see an <strong>Add New <\/strong>option to create a new repository. Provide a Repo name and select Private or Public for your repo status.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/icy_dsMmhqiNHHA-nuM8YS1QPfuaag5fO5TyvtbXsiayFLBs5wY1Ds57VIa7Sge0eb1Nl7oe-UOultA4FevZz3CPDiKzCDx91pNLiw7Ey97XG_DPoQHMHKaufHOJtYzQ8w5IefuU\" alt=\"\"\/><\/figure>\n\n\n\n<p>After creating the repo, you will be redirected to it. Copy browser URL this URL is used in Jenkins and IntelliJ when you push your code.<\/p>\n\n\n\n<p><strong>Step 3:&nbsp; Push code on Git Repo<\/strong><\/p>\n\n\n\n<p>You first have to configure Git on IntelliJ. Follow these steps:<br><\/p>\n\n\n\n<p>In IntelliJ, go inside VCS and select Enable Version Control Integration.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/TEBhtHWi4wz9QP0u_rbJAztXCLqIXzQaP8GCYL50Z52r5Bb81zkP8IcVDhGbmPCYRuz2x-Sth88gvvhOZr4DTZXcYH7I9HT-YT_KDmRt9Q4zkhPEdtuOTFRGA3Ea_u2hmKdG7yFl\" alt=\"\"\/><\/figure>\n\n\n\n<p>After this select Git from dropdown.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/cKGJsIhwsxv9JUpYehp7G8uoWPbKAAarU6tlI9AIhzIPLJ1E_3meS6UNOKVl29XeGKUYz5K0rtbE4wnQZGkbFRYkuDtG-JjLytsRam6B9IJ6doW5etzBBHe3f7kr4NTsW-qNDtCz\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, Go inside VSC and select Commit. A pop up will appear asking you to select a project to commit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/L25ElgrJAfsP1B7KZZEDr3JZc6Vc1_ByCJzCd6SNM9BCDvWQc2sU4XiSOLR0HE55ToIm7D-27b8LauKhbBQ851EDMEqaHdcyvtVsrwO3bJvm78RaTZ7dPDSBWw7doccSduYoTJRC\" alt=\"\"\/><\/figure>\n\n\n\n<p>When you click on <strong>Commit<\/strong> button all your project code is pushed toGit.<\/p>\n\n\n\n<p><strong>Step 4:&nbsp; Download Jenkins<\/strong><\/p>\n\n\n\n<p>Hit URL:\u201d<a href=\"https:\/\/jenkins.io\/\"> https:\/\/jenkins.io\/<\/a>\u201d onto Browser and Select Download button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/0J_54CFTF3NT0xgXCqT9ZXEEvoZnL2BRvchF8-StS6hTZJouCaM3XLN2e3MEankELgOnOE0FfuKARoNhdPXkmxhuj24QK1NSCWNfZPrfEFxEHZjJgysDooRt1gcUuq_YnSz59qKK\" alt=\"\"\/><\/figure>\n\n\n\n<p>It will show you 2 options for downloading Jenkins, first is the weekly release and the second one is the Long Term Release(LTR). Download LTS as it is supposed to be stable. Therefore, select windows option and Jenkin zip file get downloaded into your system.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/wiVrpaKLJMYEPwwMn77sZXwUqh7W18_5HoIUudzFGzoSNt9anKFyXVKgDipr5Aexr0TDTHnK6BV0k7sK5XBe02DSde14PvaVJRbAA85VcGTIzTkmHTa5rds347EMk3tKceJ1zwwR\" alt=\"\"\/><\/figure>\n\n\n\n<p>Copy zip file and place that anywhere in your system.<\/p>\n\n\n\n<p><strong>Step 5:&nbsp; Install Jenkins<\/strong><br><\/p>\n\n\n\n<p>Follow these steps to install Jenkins through command prompt.<\/p>\n\n\n\n<p>1. &nbsp; &nbsp; &nbsp; Open Command Prompt.<\/p>\n\n\n\n<p>2. &nbsp; &nbsp; &nbsp; Go inside Jenkins folder.<\/p>\n\n\n\n<p>3. &nbsp; &nbsp; &nbsp; Type command: <em>Java -jar Jenkins.war<\/em><br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/JAk2kUkAytRRRUft5OOBuWJzQq9ESjk2tVS_o7qI5R4o5xhWsQnZCvwqQFITlQY4lktx36YWpCiNPlGGafH-dDygZsT7nEG0icTHS1v2ghNulHW6HHtNVl8MjdwQrei6wp9BBdKw\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click enter, it will take a couple of mins to install. Then you are all set to login into Jenkins.<br><\/p>\n\n\n\n<p><strong>Step 6:&nbsp; Login into Jenkins<\/strong><br><\/p>\n\n\n\n<p>Hit URL:\u201d<a href=\"http:\/\/localhost:8080\/\"> http:\/\/localhost:8080<\/a>\u201d to start Jenkins, it will redirect it to a login page that requires a username and password. Username is \u201c<strong>admin<\/strong>\u201d whereas the password can be used from:<br><\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>C:\\Program Files (x86)\\Jenkins\\secrets\\ initialAdminPassword.txt file<\/em><br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/JV3H4OE5okt3kdxtCXB-rZPdtuqL4jSLsWgcjEhIopjfifh4Yd-qKXVGujnQhKqmt1IgNH8Kuj0Nrz9yv7iMCsfwIYHGJOT7lhcPmPksq4ONfIB1BpCNtqKYoiLLGXK2-2aJ-T8g\" alt=\"\"\/><\/figure>\n\n\n\n<p>Enter username and password then click on the Sign in button. As you are logging in for the first time, it will ask you to install some plugins.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/elR2vnFq_TQaRTthKFlJ1p_1NUM1d2dz5dEI3dwDxXYXQRrz80shdN1G6nMa21NiDpf5Zhn9Vw_0k2z1GVrfbNNVFBzlIWm_FVqPAfVs1ZVyHMtvLRGsW31MsEG-hT5mFnjhbE3l\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on \u201cSelect plugins to install\u201d then you will be re-directed onto a list of plugins. There are some plugins that already mark for installation.<br><\/p>\n\n\n\n<p><strong>Note:<\/strong> You can install more plugins after setup completion.<br><\/p>\n\n\n\n<p><strong>Step 7:&nbsp; Started with Jenkins &#8211; Setup Job and Manually execute<\/strong><br><\/p>\n\n\n\n<p>Now Jenkins is finally started and you can see its Home screen in below screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/N8AdZOy1hfcgFTjmAfVl2ABNjfGkNKnJgaJ7dfFatVert265Jen-ygZNdanwNo2W7nM3BKRfz6eZxfAVxtdUm1_s7wIjCKguX-DNb96Bcv0a86b1X8grnS9-hU_0Gisg71oCuVG7\" alt=\"\"\/><\/figure>\n\n\n\n<p>Let&#8217;s get started and set up a task. Click on New Item. It will ask the Name and type of project that you want to create.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/r0OyYqlLGMO5gEhB2p8BrhgCuilF8iIpJpn1GY9VfgsciX-selFOc9ql2YkS2HKWvCOiANMR1eKtMb_mg24AW9FUs9j6dm6tygAWldiImYTHdpdf9qYYJEwLVibIO_hPEMpeNSau\" alt=\"\"\/><\/figure>\n\n\n\n<p>Here, I am selecting a Maven Project as I had created a test script in Maven Project inside Intellij and click OK.<\/p>\n\n\n\n<p>Placing your test scripts on GitHub is always a good approach. I have placed my scripts onto Git.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/HIHWph6YsRFPQNDZ6isqH_sjoaHE3fr2iw3VY3p8ddMPdtIF5PKFenrh6jVNOb-M_0xI3603zGghmkj7JZhAu7Wlvw9arAHDcmYr_JxuYTJFRK6brT8Wv3sFQostlB_TbAnf7r5u\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Back to Jenkins, I mark tick onto GitHub Project checkbox and provide my Git URL in the input box.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/hF1Gl3zJtdD0Sffn0knMuwLzxxX7BfdlSkeV7-DsjAKPmcJZov-2MJIdyiQVcyX2Tyr3ube5BmvbCCoB88JmP5-cj8R6kvJLLOkEg6ckSYw_4sS7MAer5_ubhghvFvq2aCvk9kza\" alt=\"\"\/><\/figure>\n\n\n\n<p>On Scroll down to a page, you will see a section of Source Code Management. Select Git checkbox then you need to provide Git Repository URL and Credentials.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/zDjsNwrkogIV2_mJGL92LvuxTmI7shn-bYv47t-wW6Q0uJnYqdDfAhiVM3QVFS7cIkziKxt4NPmyPW2VH1tPC3EDChq1NYCyyqQJ_NR_oFgsWEjAXD2_IBgew-t-BgwihN5h38va\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong><em>How to Add Credentials?<\/em><\/strong><strong> <\/strong>&nbsp;Click on the Add button for credentials and provide Username and password then click the Add button to submit.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/i-_mTyjTQiV7NAvLhEGTmYpVMcOg-9vFTjZuZQsvLsL1x_5tVB1cEBFF71wiJRASJ8L30VEBLo8f3tpZ4VBlGBKHP5A0qcoDqRY8SrZ_Ct9Y5EIflKP0HC3E1d4doWL1jTbRp4uo\" alt=\"\"\/><\/figure>\n\n\n\n<p>After you are done with these steps scroll down the page. Now, you need to come inside the Build section and write pom.xml inside Root POM and inside Goals and Options write command: \u201cclean deploy\u201d.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/G83onsl39kjOGTmZxacAVbOs1ufF79VJMSnKX3BV4_s3QtcctabcFUdo_7YAX5WggO2eMET-s8GgltOWRERm_uuvTqqWPwlgPQp75-F6cqak_ff33iDBAx_LQbmn_Wto9HFPWFg5\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Why pom.xml ?<\/strong> &nbsp; pom.xml is a file that runs all your test scripts defined under it. You do not explicitly need to run each test script you can define all scripts into this file and execute it.<br><\/p>\n\n\n\n<p><strong>Clean Deploy \u2013 What is this ? <\/strong>&nbsp;<\/p>\n\n\n\n<p>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; <strong>clean<\/strong>: <em>removes files generated at build-time in a project&#8217;s directory<\/em> (target by default)<\/p>\n\n\n\n<p>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; <strong>deploy<\/strong>: <em>copies the final package to the <\/em><strong><em>remote<\/em><\/strong><em> repository for sharing with other developers and projects<\/em>.<\/p>\n\n\n\n<p>Scroll down for some more configuration, you can also configure email Notification that is used when your executed job fails against test script then you will be notified through email notification.<\/p>\n\n\n\n<p>Before continuing on this, you first need to&nbsp; email configuration inside Jenkins. Therefore, Click on Manage Jenkins from Home Screen and select Configure System. When scrolling down the page, you will observe Email Notification tab that required some details.<br><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; <strong>SMTP server:<\/strong> smtp.gmail.com<\/li><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; <strong>Default user e-mail suffix:<\/strong> @gmail.com<\/li><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; Click on the Advanced button and mark tick on \u201cUse SMTP Authentication\u201d.<\/li><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; Provide your Gmail account credentials.<\/li><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; Mark SSL as a tick.<\/li><li>\u00b7 &nbsp; &nbsp; &nbsp; &nbsp; <strong>SMTP Port:<\/strong> 465<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/XzQJFgXywEzwIkYJ4nt2zwmxxbcvpmTVeEgxuNhE03zEzimZKCayKGVp7AmEmRFUnf03T4PTLMCxpfJ3AMea_qtkMBAzzLoyKc8Hciojj-K3WFJovCPyiF1Y6EYAmKIujbc2uwuN\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Just to test these configurations working fine or not. Mark tick on the checkbox of \u201cTest configuration by sending test e-mail\u201d and provide an email address.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/3ZGXZLa5NVShskUQ9uTA1KOguUTo5_tHHNzHbG8PQ8GmhsVhbSUmVkKxR6QLXypD8doCjFb0IWFTQovTJrB-J-Zxg6BOB5ASIBNs3_6wfEv0joQrrYpV58RyG0xxjziJodeBQYtp\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on Test Configuration button then a confirmation message will be shown regarding email is sent successfully. Click on <strong>Save<\/strong> button.<br><\/p>\n\n\n\n<p>Go back to your project and provide a Recipient email address.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/hXvLufW-NAYJhFy5-ApXz9fovHiccKdB1QL9S1SrnATEE5y5Idt6NA0XrnOe8ZQVd2mhSAfo-CbU5NXZ8zTJkr_VqAzAxmuQb9De0gQETOkAp52VOlzSdbb2UbNjsaSy0gtdIZw0\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>The good thing is you have now configured all the required setup. Click on <strong>Save<\/strong> Button to proceed further. Once you saved your project will start appearing in the list.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/_0PxZmCj8lL6UBaUgSALz8kkfWC8L5JXsImCqkvtl-uFjsQJiY9QvSGh1KUHhnY7MnE7NrQFKIcVp9NaAfz8_jtJOPNleQA2c0sx86Ed1urFtNvGEj26CTfulfi9iYu4yIiuhM5-\" alt=\"\"\/><\/figure>\n\n\n\n<p>To test everything is working fine, Manually execute your project right click on the project name and click on the Build Now option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/U80dhj5n6MUSOKyeo5MTnVJoMDri6E9PkvjSJnqm_CRZAhBaazK6WWp1kaRMBV0nOW5b_t0MpKVc08zZi0D5YOBBTWjv49w7_rKNTWa5WtgN4nhrc4_NUlWWoyOattDuBtuOZs1z\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You can have a look at the result of this execution by going inside the project and Build History.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/vTE8cifU9ip5JWqUVL_XoKJKvE3V83xodIih07oW5Ynj7--SIp_AL7dDRojjeVguC7ItTaWE0P2JDzT50LUqasoVheLm7v2PLoG19JIIVY8rKMBL3To3A2CN3E8A82aUXmN8ON-E\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on the latest one you can have a look at execution logs. As we have configured Email&nbsp;<\/p>\n\n\n\n<p>Notification to be triggered on execution failure. Like here our latest execution is failed. Therefore, we have received an email.<br><\/p>\n\n\n\n<p><strong>Step 8: Setup a Scheduler for Build execution<\/strong><br><\/p>\n\n\n\n<p>Jenkins allows admin to set a Scheduler that automatically a job on a time set under Scheduler. Time may be set of a running job after every 3 hours, 6 hours, 12 hours, once in a day, etc. Let set a Scheduler in our job. Click on our job from Jenkins home screen and select configure appearing on the left side.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/j8ekTEnBf11rZ6yzlbT4Cr9-n5-dHsLUkRBzAQqz6BrLNbvXHCWivK1XyTUOfXyQAjHjFUh2Rl9dhvuFG-Mb6xtrALmE_Igj9E6xFEkcyG8hDv-O_gVjjkF2iF8151KiwJAnCV8a\" alt=\"\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>&nbsp;Scrolling down the page, you can see Section:\u201cBuild Trigger\u201d having check-box Build Trigger Periodically. Mark that checkbox as a tick. Here you can specify the time in which you want to execute your job.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/KVc_X3UH6VsiX-dyGywwpGaz_x-1oNWwYGRfGbYinUZCMZ-4Mtorj5sRQ9fGeUtcrtuvYVfSOhwj5LAkOa_lQJJ8m3yNZyWVUELc2DLEYe3d-LdlghoJcWSs4vEEU6LxRGsa5lS9\" alt=\"\"\/><\/figure>\n\n\n\n<p>&nbsp;You need to provide time in a specific format. Sample format can be viewed from a question mark. Click on question mark icon, a detail sample format start appearing.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/ude_v7yNWStz9t1uOQtiZDDRyegW69zjctmeELg99OkQpZhFkZijy4K9t9Cbl5i0d4ikIOW0kLzPjPGyJl66_Ig0aJrttnwjnblVEp2JsxSBcZPCHxniGWNCPwCn3i5gcfbP8a25\" alt=\"\"\/><\/figure>\n\n\n\n<p>It\u2019s a bit detailed description you can read it and set your time accordingly. For now, I am setting time for 15 mins i.e job will be executed after every 15 mins. Then click on Apply, a confirmation message of saved will appear on the screen.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/3j_UfPt2-OvQw72zDMm7viZJbry6LfPfjcyNUfKrE2ZTVYaQvRuSJ791bAMSYF8fCySa3lkCWNz2Kong1MrXYCZTrta_yFno3w-J5b0Ddc6zFV6NtPULFzCWHmKWiq8aETo83O70\" alt=\"\"\/><\/figure>\n\n\n\n<p>Now, go inside your job and wait for 15 mins you will notice a job automatically starts after every 15 mins.<\/p>\n\n\n\n<p>This is how you can implement Jenkins in any of your projects.<br><\/p>\n\n\n\n<p><strong>Summary:<\/strong><\/p>\n\n\n\n<p>CI and CD are now one of the top trending topics. Implementing Jenkins in your project is very beneficial. Therefore, I would recommend it for your projects. These all are one-time efforts that do consume very much time as you first need to create test scripts then implement Jenkins but it saves your time in the future. So, don\u2019t think just do it and set yourself up for greater efficiencies to greatly reduce development times.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continuous integration (CI): is the Process of automating the code of all developers from multiple working copies into a single software project. Whenever a developer makes a code commit, the software tests the build automatically. For large scalable projects, developers are committing code very frequently, within a day. With each commit, the code is built &hellip; <a href=\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Achieve Test Automation with Jenkins (CI tool)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":2487,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tips to Achieve Test Automation with Jenkins by Continuous integration<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tips to Achieve Test Automation with Jenkins by Continuous integration\" \/>\n<meta property=\"og:description\" content=\"Continuous integration (CI): is the Process of automating the code of all developers from multiple working copies into a single software project. Whenever a developer makes a code commit, the software tests the build automatically. For large scalable projects, developers are committing code very frequently, within a day. With each commit, the code is built &hellip; Continue reading &quot;Achieve Test Automation with Jenkins (CI tool)&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"Mobile App Development Services\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-24T05:47:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-26T17:12:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"692\" \/>\n\t<meta property=\"og:image:height\" content=\"462\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Noc Folio3\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Noc Folio3\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\"},\"author\":{\"name\":\"Noc Folio3\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/0b6e4f68efbd12d222ac9422766c61eb\"},\"headline\":\"Achieve Test Automation with Jenkins (CI tool)\",\"datePublished\":\"2019-07-24T05:47:37+00:00\",\"dateModified\":\"2020-03-26T17:12:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\"},\"wordCount\":1444,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\",\"url\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\",\"name\":\"Tips to Achieve Test Automation with Jenkins by Continuous integration\",\"isPartOf\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg\",\"datePublished\":\"2019-07-24T05:47:37+00:00\",\"dateModified\":\"2020-03-26T17:12:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage\",\"url\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg\",\"contentUrl\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg\",\"width\":\"692\",\"height\":\"462\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.folio3.com\/mobile\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Achieve Test Automation with Jenkins (CI tool)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#website\",\"url\":\"https:\/\/www.folio3.com\/mobile\/\",\"name\":\"Mobile App Development Services\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.folio3.com\/mobile\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#organization\",\"name\":\"Mobile App Development Services\",\"url\":\"https:\/\/www.folio3.com\/mobile\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2020\/12\/folio3-mobile.png\",\"contentUrl\":\"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2020\/12\/folio3-mobile.png\",\"width\":210,\"height\":50,\"caption\":\"Mobile App Development Services\"},\"image\":{\"@id\":\"https:\/\/www.folio3.com\/mobile\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/0b6e4f68efbd12d222ac9422766c61eb\",\"name\":\"Noc Folio3\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g\",\"caption\":\"Noc Folio3\"},\"url\":\"https:\/\/www.folio3.com\/mobile\/blog\/author\/noc\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tips to Achieve Test Automation with Jenkins by Continuous integration","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/","og_locale":"en_US","og_type":"article","og_title":"Tips to Achieve Test Automation with Jenkins by Continuous integration","og_description":"Continuous integration (CI): is the Process of automating the code of all developers from multiple working copies into a single software project. Whenever a developer makes a code commit, the software tests the build automatically. For large scalable projects, developers are committing code very frequently, within a day. With each commit, the code is built &hellip; Continue reading \"Achieve Test Automation with Jenkins (CI tool)\"","og_url":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/","og_site_name":"Mobile App Development Services","article_published_time":"2019-07-24T05:47:37+00:00","article_modified_time":"2020-03-26T17:12:23+00:00","og_image":[{"width":692,"height":462,"url":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg","type":"image\/jpeg"}],"author":"Noc Folio3","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Noc Folio3","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#article","isPartOf":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/"},"author":{"name":"Noc Folio3","@id":"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/0b6e4f68efbd12d222ac9422766c61eb"},"headline":"Achieve Test Automation with Jenkins (CI tool)","datePublished":"2019-07-24T05:47:37+00:00","dateModified":"2020-03-26T17:12:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/"},"wordCount":1444,"commentCount":0,"publisher":{"@id":"https:\/\/www.folio3.com\/mobile\/#organization"},"image":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/","url":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/","name":"Tips to Achieve Test Automation with Jenkins by Continuous integration","isPartOf":{"@id":"https:\/\/www.folio3.com\/mobile\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage"},"image":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg","datePublished":"2019-07-24T05:47:37+00:00","dateModified":"2020-03-26T17:12:23+00:00","breadcrumb":{"@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#primaryimage","url":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg","contentUrl":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2019\/07\/Testing-Automation.jpg","width":"692","height":"462"},{"@type":"BreadcrumbList","@id":"https:\/\/www.folio3.com\/mobile\/blog\/achieve-test-automation-using-jenkins-ci-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.folio3.com\/mobile\/"},{"@type":"ListItem","position":2,"name":"Achieve Test Automation with Jenkins (CI tool)"}]},{"@type":"WebSite","@id":"https:\/\/www.folio3.com\/mobile\/#website","url":"https:\/\/www.folio3.com\/mobile\/","name":"Mobile App Development Services","description":"","publisher":{"@id":"https:\/\/www.folio3.com\/mobile\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.folio3.com\/mobile\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.folio3.com\/mobile\/#organization","name":"Mobile App Development Services","url":"https:\/\/www.folio3.com\/mobile\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.folio3.com\/mobile\/#\/schema\/logo\/image\/","url":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2020\/12\/folio3-mobile.png","contentUrl":"https:\/\/www.folio3.com\/mobile\/wp-content\/uploads\/2020\/12\/folio3-mobile.png","width":210,"height":50,"caption":"Mobile App Development Services"},"image":{"@id":"https:\/\/www.folio3.com\/mobile\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/0b6e4f68efbd12d222ac9422766c61eb","name":"Noc Folio3","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.folio3.com\/mobile\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/29f05a21b8db20048e7717694b024bbd?s=96&d=mm&r=g","caption":"Noc Folio3"},"url":"https:\/\/www.folio3.com\/mobile\/blog\/author\/noc\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/posts\/2439"}],"collection":[{"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/comments?post=2439"}],"version-history":[{"count":5,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/posts\/2439\/revisions"}],"predecessor-version":[{"id":4887,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/posts\/2439\/revisions\/4887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/media\/2487"}],"wp:attachment":[{"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/media?parent=2439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/categories?post=2439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.folio3.com\/mobile\/wp-json\/wp\/v2\/tags?post=2439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}