</>

Technology

Selenium

Difficulty

Intermediate

Interview Question

What are CI tools used with Selenium like Jenkins and Bamboo?

Answer

CI Tools Used with Selenium — Jenkins and Bamboo

Continuous Integration (CI) tools automatically build, test, and deploy your application whenever code is pushed. They integrate with Selenium to run your test suite without manual intervention.

1. Jenkins (Most Popular — Free & Open Source)

Jenkins is the most widely used CI tool in the QA automation world.

How to trigger Selenium tests in Jenkins:

  1. Install Jenkins and the Maven plugin
  2. Create a Freestyle or Pipeline project
  3. Connect to your GitHub/GitLab repository
  4. Add a build step: mvn clean test
  5. Set triggers: on push, scheduled (cron), or on PR
  6. Publish TestNG/Extent reports using the HTML Publisher plugin
GROOVY
// Jenkinsfile (Pipeline as Code)
pipeline {
    agent any

    stages {
        stage('Checkout') {
            steps {
                git 'https://github.com/your-repo/selenium-framework.git'
            }
        }
        stage('Run Tests') {
            steps {
                sh 'mvn clean test -Dsuite=regression'
            }
        }
        stage('Publish Report') {
            steps {
                publishHTML([
                    reportDir:   'test-output',
                    reportFiles: 'index.html',
                    reportName:  'TestNG Report'
                ])
            }
        }
    }

    post {
        always {
            emailext(
                subject: "Build ${env.BUILD_STATUS} — ${env.JOB_NAME}",
                body:    "See report: ${env.BUILD_URL}",
                to:      "team@company.com"
            )
        }
    }
}

2. Bamboo (Atlassian — Paid)

Bamboo is Atlassian's CI/CD server, tightly integrated with Jira and Bitbucket.

  • Create a PlanStageJob structure
  • Add a Maven task: clean test
  • Link test results to Jira tickets automatically
  • Supports parallel test execution across multiple agents

3. Other CI Tools

ToolBest For
GitHub ActionsGitHub repos, free for public
GitLab CIGitLab repos, built-in
CircleCIFast cloud builds
Azure DevOpsMicrosoft/enterprise teams
TeamCityJetBrains ecosystem

Benefits of CI for Selenium

  • Tests run automatically on every code commit
  • Catch regressions immediately — not days later
  • Parallel execution across multiple browsers/OS
  • Automatic email/Slack notifications on failure
  • Test history and trend reports over time
  • Schedule nightly full regression runs

Follow AutomateQA

Related Topics