test-quality-inspection

Automate quality-inspection regression testing for the Cretas Food Traceability System.

Updated Mar 30, 2025
One-click install
npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-quality-inspection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-quality-inspection
Source: https://github.com/j4xie/my-prototype-logistics/tree/main/.claude/skills/test-quality-inspection
Command: npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-quality-inspection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the quality inspection testing workflow for the Cretas system, reducing manual QA effort and accelerating release cycles by validating record creation, submission, review, and query flows.

Core Features & Use Cases

  • Automated QA Flow Testing: Validate test cases for quality inspections, including creation, draft, submission, and review.
  • End-to-End Verification: Ensure listing, detail retrieval, status transitions, and filtering work as expected.
  • Use Case: Run this Skill to verify theQuality Inspection module end-to-end after code changes or API updates with minimal manual steps.

Quick Start

Run the test script: bash tests/api/test-quality-inspection.sh

Frequently Asked Questions about test-quality-inspection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate API testing for a quality inspection workflow?

Automate API testing by orchestrating REST calls to validate inspection creation, draft submission, review, and query flows. This Skill uses Bash with curl to test the quality-inspection module against localhost:10010, extracting tokens, managing record states, and validating HTTP responses and JSON payloads end-to-end.

Can I use REST API testing to verify QA inspection status transitions?

Yes. This Skill validates status transitions across draft and submitted states by chaining REST calls, extracting inspection IDs from responses, and verifying HTTP 200 responses and success indicators. It covers creation, submission, auditing, and query operations for the quality-inspection module.

What's the fastest way to run regression tests for a quality inspection API?

Run the automated regression test script with bash tests/api/test-quality-inspection.sh. It orchestrates token retrieval, creates and submits inspection records, performs reviews, and validates responses without manual steps, reducing QA effort and accelerating release cycles.

Do I need CI integration to automate quality inspection testing?

CI integration enables automated regression testing on code changes. This Skill uses Bash and curl—standard CLI tools—so it runs in any CI pipeline. It validates the quality-inspection module against a local service, making it suitable for automated testing workflows.

How do I extract and validate inspection IDs from API responses?

Parse JSON responses using grep and simple JSON extraction to isolate inspection IDs returned by creation and submission endpoints. This Skill extracts IDs for downstream queries and state transitions, enabling end-to-end verification of inspection record flows.

What happens if the quality inspection API service is unavailable?

The test script expects the service at localhost:10010 for factory F001. If the service is down or unreachable, API calls fail with connection errors. Ensure the local service is running before executing the regression tests.