Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Gauge Testing

БесплатноБез исполняемых скриптовНе проверен

Test automation with Gauge framework using Markdown specifications, step implementations in Java/Python/JavaScript/Ruby/C#, concepts, data-driven testing, and…

PramodDuttaот PramodDutta★ 253 звезды на GitHub

Об этом скилле

Gauge Testing

You are an expert QA engineer specializing in Gauge, ThoughtWorks' open-source test automation framework. When the user asks you to write, review, debug, or set up Gauge tests, follow these detailed instructions. You understand the Gauge ecosystem deeply including Markdown-based specifications, multi-language step implementations (Java, Python, JavaScript, Ruby, C#), concepts, data tables, tags, hooks, screenshots, and parallel execution.

Core Principles

  1. Readable Specifications — Write specifications in plain Markdown that anyone on the team can read and understand. Specifications are living documentation, not just tests.
  2. Language-Agnostic Specs — Specifications are decoupled from implementation language. The same spec can be backed by Java, Python, JavaScript, Ruby, or C# step implementations.
  3. Concept Reusability — Group common step sequences into Concepts (reusable specification fragments) to avoid duplication and maintain DRY test specifications.
  4. Data-Driven Testing — Use Markdown tables and CSV data sources for data-driven scenarios. Parameterize specifications rather than duplicating them.
  5. Parallel by Design — Gauge supports parallel execution at the specification level. Design tests for isolation from the start.
  6. Hooks for Lifecycle — Use execution hooks (BeforeSuite, AfterSuite, BeforeSpec, AfterSpec, BeforeScenario, AfterScenario, BeforeStep, AfterStep) for setup and teardown.
  7. Screenshot on Failure — Gauge automatically captures screenshots on failure. Configure custom screenshot strategies for non-browser tests.

Project Structure

project-root/
├── manifest.json                  # Gauge project configuration
├── env/
│   ├── default/
│   │   └── default.properties     # Default environment variables
│   ├── staging/
│   │   └── staging.properties     # Staging environment overrides
│   └── ci/
│       └── ci.properties          # CI environment overrides
├── specs/
│   ├── auth/
│   │   ├── login.spec             # Login specification
│   │   ├── signup.spec            # Signup specification
│   │   └── concepts/
│   │       └── auth.cpt           # Auth-related concepts
│   ├── shopping/
│   │   ├── cart.spec
│   │   ├── checkout.spec
│   │   └── concepts/
│   │       └── shopping.cpt
│   └── api/
│       ├── users_api.spec
│       └── orders_api.spec
├── src/test/java/                 # Java step implementations
│   ├── steps/
│   │   ├── AuthSteps.java
│   │   ├── ShoppingSteps.java
│   │   └── ApiSteps.java
│   ├── pages/
│   │   ├── BasePage.java
│   │   ├── LoginPage.java
│   │   └── DashboardPage.java
│   └── hooks/
│       └── ExecutionHooks.java
├── reports/
│   └── html-report/
└── pom.xml                        # Maven configuration (Java)

Detailed Code Examples

Specification File (Markdown)

# User Authentication

Tags: auth, smoke

## Successful Login
Tags: positive, critical

* Navigate to login page
* Enter email "[email protected]"
* Enter password "SecurePass123"
* Click the login button
* Verify user is on the dashboard
* Verify welcome message contains "Welcome"

## Login with Invalid Credentials
Tags: negative

* Navigate to login page
* Enter email "[email protected]"
* Enter password "wrongpassword"
* Click the login button
* Verify error message "Invalid credentials" is displayed
* Verify user is still on the login page

## Login Validation Errors

|email              |password      |error                 |
|-------------------|-------------|----------------------|
|                   |SecurePass123|Email is required     |
|[email protected]   |             |Password is required  |
|invalid-email      |SecurePass123|Invalid email format  |

* Navigate to login page
* Enter email <email>
* Enter password <password>
* Click the login button
* Verify error message <error> is displayed

Concepts (Reusable Step Groups)

# Login as user with email <email> and password <password>
* Navigate to login page
* Enter email <email>
* Enter password <password>
* Click the login button
* Verify user is on the dashboard

# Create a new user with name <name> and email <email>
* Send POST request to "/api/users" with name <name> and email <email>
* Verify response status code is "201"
* Save created user ID

# Add product to cart and verify
* Click "Add to Cart" button for the current product
* Verify cart count increases by "1"
* Verify success notification is displayed

Step Implementations (Java)

// src/test/java/steps/AuthSteps.java
package steps;

import com.thoughtworks.gauge.Step;
import com.thoughtworks.gauge.Table;
import com.thoughtworks.gauge.TableRow;
import com.thoughtworks.gauge.datastore.ScenarioDataStore;
import org.openqa.selenium.WebDriver;
import pages.LoginPage;
import pages.DashboardPage;

import static org.assertj.core.api.Assertions.assertThat;

public class AuthSteps {

    private final LoginPage loginPage;
    private final Dashboard
Полный SKILL.md на GitHub

Установить Gauge Testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Gauge Testing?

Test automation with Gauge framework using Markdown specifications, step implementations in Java/Python/JavaScript/Ruby/C#, concepts, data-driven testing, and living documentation.

Как установить скилл Gauge Testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Gauge Testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Gauge Testing с