SDET Unicorns

WebdriverIO Tests Integration with Jenkins

Table of Content

In this post, we’ll take a look at how to get local Jenkins job setup and integrate it with WebdriverIO tests.


  • Install Jenkins locally – you can watch this video to learn how to do that.
  • Publish your code to Github (or any other source code management tool)

Setup a new Job

Once Jenkins is installed, do the following to set up a new job:

  1. Click on ‘Create a job’
  2. Create a new ‘Freestyle’ project
  3. Source Code Management:
    • Add your test repository URL under the ‘Source Code Management’ section
    • You will also need to add in your credentials to authorize Jenkins to pull changes
  4. Build:
    • Select ‘Execute Windows Batch Command’ (or ‘Execute Shell’ for mac users) under the ‘Add build step’ dropdown
    • In the command section add – npm install
    • Select Execute Windows Batch Command again and add in the next step to run tests – npx wdio
  5. Save changes

Run Build

Click on ‘Build now’ to execute the build and you will see a new build is triggered. Jenkins will pull all your test changes and will begin to execute the tests.

Alt Text

This was a quick intro on how to get your first build working in Jenkins.

Check out the video below to see a detailed explanation of how to get your Jenkins job setup as well as integrate JUnit reporting to see the test results.

To learn more about WebdriverIO, you can check out my free tutorial series here –

WebdriverIO – Tutorial Series for Beginners

My Resources

Thrive Suite: The all-in-one WordPress theme I used to create my blog.
Jasper AI: My favorite AI writing tool.
Surfer SEO:  A tool to help you rank your content on the first page of Google.

Write Content Faster


Write blog posts that rank for affiliate terms!

Join our mailing list

Unlock the Secrets to Becoming a SDET Pro in the Industry!

Stay ahead of the curve! Join our mailing list for exclusive insights, tips, and the latest industry updates delivered straight to your inbox

Table of Content

Related Post

7 Principles of Software Testing

7 Principles of Software Testing with Examples

Software testing plays a crucial role in the software development life cycle as it helps ensure the quality, reliability, and performance of the final product. Software testing is not just about finding defects; it also provides valuable insights into the overall quality of the software. By conducting effective software testing, it shows how well the application behaves in different scenarios and whether it meets user expectations.

Read More »
Differences Between CI/CD and DevOps

Key Differences Between CI/CD and DevOps

Software development is far from a simple journey that involves merely executing code and launching applications. It often presents challenges, as it’s rare to get everything right from the start. Each time you implement new or frequent code changes, you inadvertently introduce potential issues that can be time-consuming to resolve. This complexity necessitates a structured approach to ensure smooth production.

Read More »