MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Gitlab – Build – Test Cases Tutorial Guide

This is relatively new Test Cases feature in GitLab 18.x (cloud) that brings native manual test case management into the GitLab ecosystem โ€” part of their push towards end-to-end DevOps.

GitLab New test case form with login verification steps and expected results under Build > Test cases

โœ… What Test Cases in GitLab Actually Are

GitLabโ€™s Test Cases are structured manual tests designed to:

  • Define what should be tested (the test step)
  • Record how to verify it (expected result)
  • Track test coverage, planning, and execution
  • Link with issues, requirements, and test runs

They are not automated tests, but they complement them by managing manual testing workflows, often needed in:

  • UI/UX validation
  • Exploratory testing
  • Compliance/regression audits (e.g., healthcare, finance)
  • User acceptance testing (UAT)

๐Ÿ“Œ Real Use Cases for GitLab Test Cases

Use CaseDescription
Manual QAQA teams can define and run manual regression tests during releases
UAT for ClientsPMs can create test cases, and clients can execute/verify functionality before go-live
Compliance AuditsRequired manual validation steps (e.g., for ISO 26262, HIPAA, etc.) can be documented and traceable
Linking with RequirementsTrace test cases back to specific requirements using Requirements Management
Defect TrackingLink failed test cases directly to issues/bugs
Exploratory Testing LogsDocument steps performed during a test session that isn’t fully scripted

๐Ÿง  How to Visualize It in Workflow

Letโ€™s say your team is building a Login Module.

1. Create a Test Case:

  • Title: Verify login with valid credentials
  • Description: Steps: 1. Open login page 2. Enter valid email and password 3. Click "Login" Expected Result: - Redirects to dashboard - User's name is visible in top-right corner

2. Link It:

  • Link to:
    • Related Issue: #123 Login Feature
    • Related Requirement: REQ-01-Login

3. Run It:

  • From a test run, mark the test case as:
    • โœ… Passed
    • โŒ Failed (can create bug)
    • โธ๏ธ Blocked
    • โš ๏ธ Skipped

4. Report:

  • Use Test Reports to see pass/fail trends, test coverage, and compliance readiness

๐Ÿ”ง Where Youโ€™ll Find It in GitLab UI

Navigate to your Project โ†’ Build โ†’ Test Cases or via https://gitlab.com/<group>/<project>/-/quality/test_cases


๐Ÿงฉ How to Best Use It in Agile/DevOps

  1. Sprint Planning
    • QA writes test cases for stories/tickets
    • Links each test case to the related issue/requirement
  2. CI/CD Integration
    • Even though test cases are manual, they sit next to pipelines and MRs, giving unified visibility
  3. Release Testing
    • Create a Test Run per release or milestone
    • Execute selected test cases and record results
  4. Post-Deployment
    • Run test cases as part of UAT checklist or rollback decision flow

๐Ÿง  Pro Tips

  • Use labels (e.g., smoke, regression, v18.0) to filter/group test cases
  • Combine with Test Runs and Requirements for traceability
  • Automate generation of issues on test failure (e.g., with scripts or API)

๐Ÿ“ˆ When Not to Use It

If your team is fully automated in CI/CD and doesn’t require formal manual validation, this feature may feel redundant. However, for product teams, QA testers, regulated industries, and enterprise clients, it fills a crucial gap.


Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Gitlab – Complete Details of .gitlab-ci.yml

GitLab builds every pipeline from one entry-point configuration file, .gitlab-ci.yml by default, but that file can pull in any number of other YAML files with the include…

Read More

Git, GitHub, and GitLab Interview Questions: Practical Answers and Command Guide

A practical interview-prep guide covering core Git concepts, essential commands, and common GitHub/GitLab questions. Includes workflow diagrams, comparisons, and troubleshooting checklists.

Read More

CI/CD Pipeline Fundamentals for DevOps Teams: Workflow, Tooling, and Starter Configs

This guide explains how to design a practical CI/CD pipeline for DevOps teams, from commit checks to production rollout. It includes a workflow diagram, tool comparison table, and starter pipeline examples you can adapt.

Read More

GitLab Duo Advanced Practitioner + Certified GitLab Duo (AI) Associate Prep (3 Days)

Duration: 3 days (instructor-led, hands-on)Format: 30% guided instruction & demos, 60% labs, 10% exam-style practiceAudience: Developers, DevOps, Security, QA, PMs, Engineering LeadsAssumed level: Participants already know GitLab…

Read More

GitLab for Practical Pipelines, Secure Delivery, and Faster Releases

Introduction Most teams today want faster releases with fewer mistakes. They also want clear visibility, repeatable pipelines, and a clean way to manage code changes. This is…

Read More

GitLab Secure Experience Guide SAST, DAST, SCA etc

Here’s a comprehensive, hands-on tutorial to help you explore and experience all the features listed under the Secure section of GitLab using a sample project. ๐Ÿ” Full…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x