Selenium+Jenkins Integration : Page Object Model (POM) Design With Selenium - Part -6

  • Published on Oct 14, 2017
  • Page Object Model (POM) Design With Selenium - Part -6 (Selenium Integration with Jenkins):
    continuous integration with selenium webdriver
    jenkins selenium webdriver testng
    how to run testng.xml in jenkins
    jenkins selenium plugin
    jenkins selenium plugin example
    how to configure testng.xml in jenkins
    how to publish testng reports
    Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    Follow me on my Facebook Page:
    Follow my Site/Blog:
    Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
  • Science & TechnologyScience & Technology

Comments • 144

  • Viji Ramasamy
    Viji Ramasamy 8 months ago +13

    Hi Naveen, I have learnt so much from your selenium, core java, testng tutorials. All your videos are exceptionally good. Thank you so much. i have spent so much money on online tutorials. but yours is the BEST. i found your videos bit late, Once again thank you so much.

  • chittaranjan kuthar
    chittaranjan kuthar 3 days ago

    Hi Naveen, can you explain how to handle multiple frame.

  • samiksha doye
    samiksha doye 5 days ago

    Thanks for explaining so nicely.

  • Ravi chhetri
    Ravi chhetri 7 days ago

    Hi Naveen,
    I followed the steps as instructed in the Tutorial to install Jenkin. During installation, I am getting the error below. I tried fixing the issue searching online but no luck. Your immediate support will be highly appreciated.

    Error Details:
    Caused by: PKIX path building failed: unable to find valid certification path to requested target:

    hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception: unable to find valid
    certification path to requested target
    Caused: PKIX path building failed

  • lovly wilson
    lovly wilson 24 days ago

    These videos are so much informative. Thank you so much. These days we cannot survive in software industry without knowing these.

  • Dhanaashree Panpatil-Mahirrao

    Maven SNAPSHOT Check plugin failed so no Restart button or check box appeared at my end. Please help. I am a beginner.

  • virendra bhagat
    virendra bhagat Month ago

    Hi Naveen, I learn Cucumber, RestAssured , TestNG , Jenkins from you video. You explaining approach is very calm and effective . Thank You So much!

  • AJay Shehrawat
    AJay Shehrawat Month ago

    Hello Naveen, I have learned so much from your tutorial but I am getting some error. Please help me for this. Please look into this. This error I am facing in my code -

  • Ashish Srivastava
    Ashish Srivastava Month ago

    Hi Naveen, in my case jenkins is installed on client VM and i do programming on my local machine then how can i configure jenkins and how should i give the path of pom.xml in jenkins as it is is in my machine. Please help..

  • Pankaj Sharma
    Pankaj Sharma Month ago

    I'm new to Jenkins, so please go easy!
    I have a web application which we are developing, and we've started automating our release using Jenkins.
    I also have a standalone Selenium WebDriver script which will perform a Smoke test on our web app. We usually run this manually each time there's a new deployment.
    I heard Jenkins can automatically trigger Selenium tests. So what I did was to create a batch file, which will in turn call the Selenium script. I added a Build Step which will call this batch file.
    What's happening now is Jenkins first Builds the WAR file, executes the batch (for selenium) and then deploys it to the target Tomcat.
    But I was wondering if I could change the order to Build WAR --> Deploy to Tomcat --> Call the Batch file that executes Selenium Test. I want to do this as Jenkins Tests before deploying, which means my Selenium test still runs on the old build. This makes little sense, as I would rather run the Selenium test on the new build.
    In short, is there a way I can execute the Batch file as part of a Post Build Step rather than a Build Step?

  • Malouyse
    Malouyse Month ago

    hi Naveen! Thank you for this great video! I have a question what is the difference between War file and Jar file? Thank you for answering!!

  • Moazzam Khan
    Moazzam Khan Month ago

    Hi Naveen, I am not getting radio button in front of Restart jenkins when installation is completed and no jobs are running .....what is the alternate method ? Please suggest

  • Niketa Bihani
    Niketa Bihani Month ago

    Hi Naveen,

    I'm using GIT in my project already. But i'm unable to do the continuous integration through Jenkins , since I have 3 different environments to work on. 1) I want BVT job should run once the DEV team checks in the code in GIT. 2) Jenkins job shoud be running picking up dynamically the environment from POM.XMl file. I'm using serenity BDD framework which is using @ Manged pages annotation, which does not allow me to set the environment url dynamically. I need to hard code the environment url everytime. so I'm stuck here. Could you please help me in this regard, Thanks a lot in advance!!

  • Md Tanbir Hossain
    Md Tanbir Hossain Month ago

    hi Naveen, Can you share the project "FreeCRMTest" with us so that we can practice Jenkins only

  • harsh deep
    harsh deep 2 months ago

    What should be the sequence of watching your selenium playlists if i want to start learning selenium from the scratch? Please respond.

    VARSHA SHASHIDHARAN 2 months ago +1

    Thanks Naveen

  • Muvvala G
    Muvvala G 2 months ago

    Hi Naveen,
    I have installed Jenkins on AWS CE2 Windows Instance, and i have configured Maven, JDK every thng on the EC2 instance, i can access that from Local system with public IP, the problem here is when ever i try to run my pom.xml file from Local (I have given pom.xml file location )in the place of RootPom field. it is giving me the error as
    ERROR: No such file C:\Testing2Jenkins\pom.xml
    , Perhaps you need to specify the correct POM file path in the project configuration?
    Can you help me out on this to resolve the error


  • Gunjan Chhabra
    Gunjan Chhabra 2 months ago +1

    Hi Naveen,I have followed the steps but getting this error " No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?".Could you please suggest how to proceed?

    • Naveen AutomationLabs
      Naveen AutomationLabs  2 months ago

      Hi, you need to setup JRE in your jenkins. Please go to Jenkins--> Manage Jenkins and select the correct JDK version.

  • Vital Kumar
    Vital Kumar 3 months ago

    Hi Naveen, I have followed the steps which you explaind for Selenium execution thorugh Jenkins, tests are passing but browsers is not opening..Can you please help me out!!

  • Vipul Saxena
    Vipul Saxena 4 months ago +1

    Very nice method Naveen
    Thnk you very much

  • Sarjerao Sandbhor
    Sarjerao Sandbhor 4 months ago

    Hello Naveen , Need information on Jenkins Pipeline. How to create, execute, types etc. Please create a video for Jenkins Pipeline. Thanks.

  • Sekhar P
    Sekhar P 4 months ago

    here how to add bat file into this jenkins bro?

  • Jane Clever
    Jane Clever 4 months ago


  • thiery572
    thiery572 5 months ago


  • Himanshu Khare
    Himanshu Khare 5 months ago

    Dear Naveen, I commented 2 classes in my testng.xml file then why Jenkins ran both of them ? Please tell the reason ??
    Thanks !!!

  • T Raghavendra
    T Raghavendra 7 months ago

    If there are 100 test cases.How to execute first 50 test case or execute random 50 test cases

  • Sushant Surwase
    Sushant Surwase 7 months ago +3

    Pehle main darta tha.. Naveen ke videos dekhke i have gained tremendous confidence in me and can easily crack automation interview. 😎

  • Disha Suryawanshi
    Disha Suryawanshi 7 months ago

    unable to extract jenkins war file

  • Sharat Chandra
    Sharat Chandra 7 months ago +2

    Kudos Naveen, Your contents are amazing and very relevant. I will definitely recommend this to my peers. Thanks a lot.

  • - Tayfun
    - Tayfun 7 months ago

    @Naveen could you also make a video for automation tests that are on GIT, and using a remote jenkins machine?

  • Eknath Dhauskar
    Eknath Dhauskar 7 months ago

    Hi Naveen, all methods are not getting executed from LoginPageTest, HomePageTest & ContactsPageTest when I execute build using Jenkins with Eclipse or with Git. What could be the reason?

  • Sri
    Sri 8 months ago

    Hi Naveen, Great videos thank you. on you video at 25:05 an ERROR: Failed to parse POMs, how can this be resolved. I am stuck at this point as all maven project are throwing the same error. Please help...

  • Swati Sharma
    Swati Sharma 8 months ago +2

    Thank you Naveen. I am new to automation and always afraid to automation but your video gives me some relief ,its so much informative.

  • keshav singh
    keshav singh 8 months ago

    hello sir i am getting this error: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
    when i run my build through jenkins could you please help me with this

  • Yathin C
    Yathin C 9 months ago

    Hi Naveen, Thanks for Explaining the Concepts. In the session I have 1 doubt. You said we don't have to close the Terminal when Jenkins running. But soon after the system restart, Jenkins not running

  • niraj kumar
    niraj kumar 9 months ago +3

    Hey Naveen, thanks for the tutorial.
    I have one question - how can we run only failed selenium scripts in Jenkins after job run ?

  • Gopalsing Surse
    Gopalsing Surse 9 months ago

    Caused by: Address already in use: bind ....tell me what to do

  • kalyani joshi
    kalyani joshi 9 months ago

    how can i select which xml to run for e.g. if i have different testng xml, sanity regression etc?

    • eswar tirumalasetti
      eswar tirumalasetti 7 months ago

      Even I had the same question... In this video he given pom.xml file location but no where he mentioned the path of xml file which he wants to run..... Could you please explain the same @naveen

  • Rajendra Phalke
    Rajendra Phalke 9 months ago

    thank you very much naveen

  • Payal Tinghase
    Payal Tinghase 9 months ago

    Hi Naveen ...Could you please guide how to integrate selenium with HP ALM?

  • Chayanika Chaudhary
    Chayanika Chaudhary 9 months ago

    Hi Naveen! First of all, Thanks alot for such knowledgeable videos! They have helped me immensely in understanding many complex things. Actually i was starting with integrating jenkins on my project but i am getting compilation errors again and again without a fail and have tried almost all the options available on internet. Could you please help.
    [INFO] -------------------------------------------------------------
    [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

  • ronjon banerjee
    ronjon banerjee 9 months ago

    @naveen - Lets suppose the person who clicks the build button does not has eclipse install in his system, will then the test run ??

  • Yadwinder singh
    Yadwinder singh 9 months ago

    Hi! Naveen , Java 11 is not compatible with jenkins ,is there any solution???

  • Maheswari Paritala
    Maheswari Paritala 11 months ago

    Hi Naveen,
    Awesome video,clearly explaining to perform jenkins on tests,but I got an Error when building it:
    Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project TestNg: Failed to clean project: Failed to delete ,could you please provide solution for this

    • Debiprasad Panda
      Debiprasad Panda 5 months ago

      Try running the same in eclipse. 1st Clean your Maven Project, 2nd After cleaning is completed run your Maven Project.

  • mahadevi chalkapure
    mahadevi chalkapure 11 months ago

    tq u naveen

  • Ramana Venkat
    Ramana Venkat 11 months ago

    should we need Java 8 and we can't install Jenkins with Java 10?

  • satish testing
    satish testing Year ago

    Hi Naveen, I loved your video's and the way you narrate. it's very helpful for beginner to understand the topics in detail. I had a doubt in jenkins. I am running the jukins on 9090 port instead of 8080. Some how i couldn't download the plugins .

  • deepak dalvi
    deepak dalvi Year ago

    Hello Naveen, Thanks a lot for the knowledgeable videos. I am facing one issue, as running the build, only first test of the test classes are getting executed. any idea?

  • shweta adhikari
    shweta adhikari Year ago

    Please post some videos about ETL testing.

  • shweta adhikari
    shweta adhikari Year ago +1

    Great work Naveen...... Making things simple for us to understand. Thanks a lot.

  • ashish rawat
    ashish rawat Year ago

    no build is performed.why?

  • Shilpa Mittal
    Shilpa Mittal Year ago +1

    Hi Naveen, Amazing tutorial have seen many videos but not get such a clear understanding.
    I Have a query, can we integrate Extent reports with it like the testng Reports?

    • Shalini Mittal
      Shalini Mittal Year ago

      Shilpa Mittal how can we do so, have tried to find out the plugin for extent reports but could not get that can you please tell how can we implement that. Also can you share the interview questions ask related to jenkins for 2.5 year of experience Automation tester?

    • Naveen AutomationLabs
      Naveen AutomationLabs  Year ago

      Yes we can

  • Neha Jain
    Neha Jain Year ago

    Hi Naveen need your help urgently to resolve below error :
    TestNG Reports Processing: START
    Looking for TestNG results report in workspace using pattern: **/testng-results.xml
    Did not find any matching files.
    Finished: SUCCESS
    P.s: I did setup following your video

  • Krishna mohan rao

    Hi Naveen.. Nice Video. Can you please explain how to upload and execute the project as Batch file in Jenkins server. Jenkins is not installed locally but it is installed in server. If possible can you please explain that concept. It will be very helpful. Thanks a lot for your efforts.

  • Depica Rao
    Depica Rao Year ago

    Hi Naveen, while running the build on Jenkins i get below Errors, please help
    Waiting for Jenkins to finish collecting data
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project FreeCRMTest: Compilation failure: Compilation failure:
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[46,38] incompatible types: cannot be converted to org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[47,51] cannot find symbol
    [ERROR] symbol: method getLastRowNum()
    [ERROR] location: variable sheet of type org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[47,74] cannot find symbol
    [ERROR] symbol: method getRow(int)
    [ERROR] location: variable sheet of type org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[50,42] cannot find symbol
    [ERROR] symbol: method getLastRowNum()
    [JENKINS] Archiving C:\Users\Desk7\git\Page-Object-Model-POM-Design-With-Selenium\pom.xml to FreeCRMTestAutomation/FreeCRMTest/0.0.1-SNAPSHOT/FreeCRMTest-0.0.1-SNAPSHOT.pom
    [ERROR] location: variable sheet of type org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[51,50] cannot find symbol
    [ERROR] symbol: method getRow(int)
    [ERROR] location: variable sheet of type org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[52,51] cannot find symbol
    [ERROR] symbol: method getRow(int)
    [ERROR] location: variable sheet of type org.apache.poi.hslf.model.Sheet
    [ERROR] /C:/Users/Desk7/git/Page-Object-Model-POM-Design-With-Selenium/src/main/java/com/crm/qa/util/[62,17] cannot find symbol
    [ERROR] symbol: variable FileUtils
    [ERROR] location: class
    [ERROR] -> [Help 1]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1]
    channel stopped
    TestNG Reports Processing: START
    Looking for TestNG results report in workspace using pattern: **/testng-results.xml
    Did not find any matching files.
    Finished: FAILURE

  • v m rao Chandavaram

    Good job Naveen

  • praveen biradar
    praveen biradar Year ago

    Hey Naveen Than you so much for explaining and providing detailed information on POM and the way you explained I liked very much you are awesome man thank you once again, I am facing one issue with Jenkins when I try to run the test within Jenkins my test are executing fine and the log is generating properly But " my browser is not launching", but when I look into log in showing as "Sucess" is it happening in background arethe tests running without opening browser

  • Khushboo Raikwar
    Khushboo Raikwar Year ago

    Hi Naveen, Thankyou so much for proper explanation. while executing the builds I am getting these error Could you please help me in this ?
    Building in workspace C:\Users\c5258501\.jenkins\workspace\Khushboo
    ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist.
    ERROR: Step ‘Publish TestNG Results’ failed: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist.
    Finished: FAILURE

  • anita gadde
    anita gadde Year ago

    Naveen, I have question. If I ran my smoke suite, i find 1 script failed. How to run just that 1 script from Jenkins to quick check.

  • Anuj Jain
    Anuj Jain Year ago

    Hi Naveen Thanks for the effort but I have issue while i am build the test in jenkins then i got the error like "[ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?"

    • Manish Kumar
      Manish Kumar Year ago

      If you still face issue after following above steps then you have to go to Jenkins->Manage Jenkins->Global Tool Configuration->JDK->Add JDK, provide a name e.g. 'TestJDK' and then provide path of JDK (C:\Program Files\Java\jdk1.8.0_131) in 'JAVA_HOME' field.

    • Manish Kumar
      Manish Kumar Year ago

      You can use this link to replace installed JRE with JDK, this should solve the issue you are facing.