Automation Learn

07 CI Integrations

Right now, you are the sole ruler of your testing kingdom. You write the code, you press the green “Run” button in your IDE, and you watch the browser pop up on your screen. If it works, you give a thumbs up.

But here is the harsh truth: If a test passes on your laptop but nobody else sees it, did it really pass?

Software isn’t built by one person on one laptop. It’s built by teams. And it runs on servers, not on your gaming PC. “Continuous Integration” (CI) is the industrial revolution of software. It’s the difference between a bespoke tailor hand-stitching a suit (Manual/Local Execution) and a factory assembly line producing thousands of perfect suits automatically (CI Pipelines).

In this module, we are taking your code off “Works on My Machine” Island and sending it to the cloud, where it will run automatically, reliably, and visibly for the entire team.


7.1 Version Control for QA: The Time Machine

Before we can automate the running of tests, we must automate the sharing of code. You cannot email test_script_final_v2.java to your team. You need Git.

7.1.1 Git Workflows: The Parallel Universes

Imagine you are writing a collaborative novel with 10 other authors. If everyone tries to write on Page 1 at the same time, it’s chaos. Git solves this by creating “Parallel Universes” called Branches.

7.1.2 .gitignore: The “Do Not Disturb” Sign

When you take a snapshot of your project to send to GitHub, you don’t want to include your trash.


7.2 Headless Execution: The Ghost Driver

You’ve set up your pipeline. The server is ready to run your tests. But wait—servers are usually Linux machines sitting in a rack in a cold data center. They don’t have monitors. They don’t have a mouse. They don’t have a graphics card.

How does a browser run without a screen?

7.2.1 Running Tests Without a UI

Enter Headless Mode.

7.2.2 The “Invisible Window” Trap (Resolution Issues)

Here is the most common rookie mistake in CI. Your test works perfectly on your laptop. You push it to Jenkins. It fails. Error: Element ‘Submit Button’ is not clickable.

Why?


7.3 Pipeline Configuration: The Robot Butler

Now we have the code (Git) and the capability to run without a screen (Headless). We need the coordinator. We need the Robot Butler who listens for your command and does the work for you.

This is your CI Tool (Jenkins, GitHub Actions, GitLab CI).

7.3.1 Creating a Job/Workflow (The Recipe)

A pipeline is just a recipe card you hand to the robot. It tells the server exactly what steps to take to bake your software cake.

[Image of CI Pipeline Steps Diagram]

7.3.2 Parameterized Builds (The “Make it Your Way” Menu)

Sometimes you don’t want the standard order. You want customization.

7.3.3 Triggers: “When do we eat?”

How often should this robot run?

Summary: The Continuous Confidence Cycle

By the end of this module, you are no longer just writing scripts. You are building infrastructure.

  1. Git keeps your team in sync and safe from overriding each other’s work.
  2. Headless Mode allows your tests to run anywhere, anytime, without needing a human screen.
  3. Pipelines turn your tests into a 24/7 guardian that watches the codebase even when you are on holiday.

You have moved from “I hope it works” to “The pipeline says it works.” That is the professional standard.

← Back to Modules