Minium Test Case Fixer for Openclaw

A specialized automation tool within Openclaw Skills that detects, analyzes, and repairs element localization failures in Minium automated test suites.

yiziria
v1.0.3
Mar 27, 2026
0
820
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install minium-test-fixer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install minium-test-fixer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Minium Test Case Fixer?

The Minium Test Case Fixer is an intelligent utility designed to maintain the reliability of WeChat Mini Program automated tests. When a test suite fails due to unreachable elements or structural changes in the application, this skill uses Openclaw Skills to bridge the gap between error logs and source code. By analyzing real-time WXML snapshots and error tracebacks, it identifies why a locator failed and provides a more resilient fix.

This skill is essential for developers and QA engineers who need to keep their automation pipelines green without manual debugging. It enforces best practices in test engineering, such as favoring stable text-based locators over brittle, long XPaths, ensuring that the repaired code is robust against future UI updates.

Minium Test Case Fixer Use Cases

  • Repairing test cases that fail with ElementNotFound or Timeout errors.
  • Transitioning brittle XPath locators to stable text or CSS-based selectors.
  • Resolving ambiguity when multiple similar elements appear on a page using index-based selection.
  • Automatically analyzing cloud test reports to synchronize local test code.
  • Maintaining Page Object models in large-scale Mini Program automation projects.

How Minium Test Case Fixer Works

  1. Trigger the skill by providing a failing test case name or a raw error log from a Minium run.
  2. Execute the failing test locally using minitest to generate a fresh error_page.xml WXML snapshot.
  3. Parse the error stack trace to pinpoint the exact Page Object file and the variable name of the failed element.
  4. Search the WXML snapshot for the missing element using text matches, class names, or data attributes.
  5. Generate a repair proposal that adheres to the project's existing coding style and base class methods.
  6. Update the source code using precise file editing tools once the user confirms the proposed fix.
  7. Re-run the test case to verify that the fix results in a successful pass.

Minium Test Case Fixer Setup

To use this skill, ensure your environment has the Minium framework and WeChat Developer Tools configured.

# Install Minium if not already present
pip install minium

# Trigger a test run to ensure your config.json is valid
minitest -m <module_name> --case <case_name> -c config.json -g

The skill relies on Openclaw Skills to interact with your local filesystem and the WeChat Developer Tools CLI. Ensure the developer tools are open before initiating a repair.

Minium Test Case Fixer Data Schema & Taxonomy

Data Type Source Purpose
WXML Snapshots error_wxml/error_page.xml Provides the current UI structure for element recovery.
Page Objects pages/**/*.py The target files containing element definitions and logic.
Error Logs Terminal / Cloud Reports Used to identify failed line numbers and variable names.
Configuration config.json Contains project metadata, appid, and environment paths.

Minium Test Case Fixer Advanced Features

  • Smart Locator Prioritization: Automatically prefers text-based and CSS selectors over unstable structural XPaths.
  • Automated Window Activation: Uses PowerShell AppActivate to bring WeChat Developer Tools to the foreground before running tests.
  • Multi-Element Handling: Detects list-based UI patterns and suggests get_elements()[0] to prevent ambiguity errors.
  • Base Class Awareness: Reads existing basedef.py or similar files to use the developer's own wrapped interaction methods (e.g., tap vs click).
  • Verification Loop: Enforces a strict local validation step to ensure the fix actually works before reporting completion.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*