---
name: automated-api-and-ui-test-execution
description: "Executes cross-platform API and visual UI test suites against a deployed staging build, parses logs and reports to diagnose failures, and drafts a triage summary. Use when a release candidate reaches staging."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Slack, GitHub."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/automated-api-and-ui-test-execution/"
  kind: workflow
  hermes:
    tags: ["testing", "qa", "automation", "api", "cicd"]
    category: coding
    requires_toolsets: ["terminal", "connections"]
---
# Automated API and UI test execution

Trigger end-to-end test suites, inspect failure logs, and post triage reports

## When to use

Execute cross-platform interface and visual test suites from the command line on every release candidate. Parse error logs and structured reports to diagnose breakages, generate concise summaries, and alert engineers when critical paths fail.

## Inputs

- `test_environment`: The staging environment or target the test suites should run against.
- `test_suites`: The configured API and UI test suites to execute for this run.
- `build_reference` (optional): Identifier of the staging build that was just deployed.

## Steps

1. When something happens: Staging build deployed (A staging build is deployed)
2. Execute tests and analyze failures
3. Post approved test triage summary

## Instructions

Run the configured test suites in the terminal against the specified test environment. Inspect generated logs and reports to identify failing assertions, response code mismatches, or UI interaction timeouts. Draft a triage report highlighting affected endpoints and reproducible steps. Always ask for user approval before sending failure alerts to Slack or filing new GitHub issues.

## Approvals

- Sending failure alerts to Slack must wait for user approval.
- Filing new GitHub issues must wait for user approval.

## Output

Draft triage report listing failing assertions, affected endpoints, and reproducible steps. (format: markdown)

## Source

Summarized in our own words from [httprunner: HttpRunner 是一款开源的 API/UI 测试框架，简单易用，功能强大，具有丰富的插件化机制和高度的可扩展能力。](https://github.com/httprunner/httprunner) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-api-and-ui-test-execution/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
