Logo di Generate Combinatorial Test Data

Generate Combinatorial Test Data

Community
anhtester
generate-combinatorial-test-data

Sinh test data cho ma trận kết hợp đa chiều bằng pipeline chạy thật qua nhiều modules. Dùng đầu ra từ skill generate-cross-module-test-plan làm input.

Panoramica

Autoreanhtester
Repositorycodex-testing-kit
Nome della skillgenerate-combinatorial-test-data
Stelle
34
Fork
14
File inclusi
1
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 1 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da anhtester su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Generate Combinatorial Test Data in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-combinatorial-test-data
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anhtester/codex-testing-kit.git /tmp/codex-testing-kit
mkdir -p .claude/skills
cp -r /tmp/codex-testing-kit/.agents/skills/generate-combinatorial-test-data .claude/skills/generate-combinatorial-test-data
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Generate Combinatorial Test Data in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Generate Combinatorial Test Data non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Generate Combinatorial Test Data non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

$generate-combinatorial-test-data — Sinh Test Data Cho Ma Trận Kết Hợp

Dùng khi: Đã có ma trận kết hợp (từ $generate-cross-module-test-plan) và cần tạo test data thực tế bằng cách chạy qua nhiều modules trên browser, hoặc sinh bộ data có cấu trúc sẵn sàng cho automation.

BẮT BUỘC (MANDATORY): Trước khi bắt đầu, PHẢI nạp và đọc kỹ:

  • Skill: .agents/skills/test-data-generator/SKILL.md — Quy tắc sinh data (xem phần Multi-Step Pipeline)
  • Skill: .agents/skills/ui-debug-agent/SKILL.md — Inspect DOM khi chạy browser
  • Workflow: .agents/skills/generate-cross-module-test-plan/SKILL.md — Hiểu cấu trúc ma trận đầu vào

Mối quan hệ với các workflows khác

$generate-cross-module-test-plan     →  Ma trận kết hợp (input)
        ↓
$generate-combinatorial-test-data    →  Bộ test data (workflow này)
        ↓
$generate-manual-testcases-rbt       →  Test cases chi tiết
        ↓
$generate-automation-from-testcases  →  Automation scripts

2 Modes

ModeKhi nào dùngOutput
GENERATE (mặc định)Sinh bộ data có cấu trúc từ ma trận — KHÔNG chạy browserFile JSON/CSV/Markdown với data cho mỗi bộ kết hợp
PIPELINECần tạo data THẬT trên hệ thống bằng cách chạy qua từng module trên browserData thật đã tạo + IDs + screenshots evidence

Agent tự chọn mode:

  • User nói "sinh data", "generate data" → GENERATE
  • User nói "tạo data trên hệ thống", "chạy tạo data", "setup data thật" → PIPELINE
  • Nếu không rõ → hỏi user

Input cần từ User

InputBắt buộcMô tả
Ma trận kết hợp✅File .md / bảng Markdown từ $generate-cross-module-test-plan
URL ứng dụng✅ (PIPELINE)Để agent chạy browser tạo data
Credentials⚠️ PIPELINENếu app cần đăng nhập
Output format❌json (mặc định), csv, markdown, code (TS/Java/Python)
Ngôn ngữ data❌Tiếng Việt / Tiếng Anh (mặc định: theo context)

Các bước thực hiện

Bước 1: Đọc & Parse Ma Trận Kết Hợp

  1. Đọc file ma trận từ user cung cấp:

    • File local → view_file
    • Inline trong chat → parse trực tiếp
    • URL → read_url_content
  2. Parse và validate:

    • Xác định danh sách dimensions (D1, D2, D3...)
    • Xác định values của mỗi dimension
    • Đọc expected template/formula cho mỗi bộ
    • Đếm tổng số bộ kết hợp cần sinh data
  3. Trình bày tóm tắt:

    markdown
    📊 Ma trận đã đọc:
    - Dimensions: 5 (Đối tác, Thanh toán, Thuế, Công nợ, Nguồn TS)
    - Tổng bộ kết hợp: 20 (Pairwise)
    - Mode: GENERATE / PIPELINE
    
    Bắt đầu sinh data? (Y/N)

Bước 2: Phân Tích Fields & Data Requirements Mỗi Module

  1. Với mỗi module trong chuỗi, xác định fields cần data:

    markdown
    | Module | Field | Type | Required | Constraints | Data Source |
    |--------|-------|------|----------|-------------|-------------|
    | Đối tác | partner_name | string | ✅ | max: 200 | Random + prefix |
    | Đối tác | partner_type | select | ✅ | enum: [TC, CN, HKD] | Từ dimension D1 |
    | Đối tác | tax_id | string | ✅ | 10-13 digits | Random unique |
    | Thanh toán | currency | select | ✅ | enum: [VND, USD] | Từ dimension D2 |
    | Thanh toán | amount | number | ✅ | min: 1 | Business-relevant values |
    | Thuế | tax_type | select | ✅ | enum: [PIT, VAT, NT, MT] | Từ dimension D3 |
    | ...| ... | ... | ... | ... | ... |
  2. Phân loại fields:

    LoạiMô tảCách sinh data
    Dimension fieldsGiá trị thuộc dimension trong ma trậnLấy từ bộ kết hợp (không random)
    Supporting fieldsFields bắt buộc nhưng không phải dimensionSinh random + unique + traceable
    Computed fieldsTự tính từ formulaTính theo business rules
    Reference fieldsID/code từ module trướcCopy từ output module trước

Bước 3: Sinh Test Data — Mode GENERATE

Thực hiện khi mode = GENERATE (mặc định)

  1. Với mỗi bộ kết hợp trong ma trận, sinh 1 bộ data đầy đủ:

    json
    {
      "combination_id": "COMBO_01",
      "dimensions": {
        "D1_partner_type": "Tổ chức",
        "D2_payment_type": "VND",
        "D3_tax_type": "VAT 10%",
        "D4_debt_type": "Thông thường",
        "D5_asset_source": "Quỹ A"
      },
      "module_data": {
        "module_1_partner": {
          "partner_name": "auto_combo01_tc_1712049200",
          "partner_type": "Tổ chức",
          "tax_id": "0123456789",
          "address": "Số 1 Nguyễn Huệ, Q1, HCM"
        },
        "module_2_payment": {
          "currency": "VND",
          "amount": 100000000,
          "payment_date": "2026-04-15",
          "description": "Thanh toán combo01"
        },
        "module_3_tax": {
          "tax_type": "VAT",
          "tax_rate": 10,
          "tax_amount": 10000000
        },
        "module_4_debt": {
          "debt_type": "Thông thường",
          "advance_amount": 0
        }
      },
      "expected_output": {
        "template": "BB_TC_VND_VAT",
        "formula": "Amount × 1.10",
        "computed_total": 110000000,
        "expected_fields": ["partner_name", "tax_id", "amount", "tax_amount", "total"]
      }
    }
  2. Sinh đủ data cho TẤT CẢ bộ kết hợp → đóng gói vào 1 file output

  3. Đảm bảo data rules:

    • Unique per combo (không trùng giữa các bộ)
    • Traceable: prefix auto_combo{XX}_{dimension_short}
    • No real PII
    • Computed values phải đúng theo formula

Bước 3P: Sinh Test Data — Mode PIPELINE (chạy thật trên browser)

Thực hiện khi mode = PIPELINE

  1. Mở browser bằng MCP:

    browser_navigate → URL ứng dụng
    browser_resize → 1920 × 1080
  2. Loop qua từng bộ kết hợp:

    FOR each combo in matrix:
      FOR each module in chain:
        1. Navigate → module URL
        2. browser_snapshot → xác nhận state
        3. Điền data theo bộ combo:
           - Dimension fields → chọn giá trị theo combo
           - Supporting fields → sinh random + traceable
        4. Submit / Save
        5. browser_wait_for → confirm success
        6. browser_snapshot → capture kết quả
        7. Extract output (ID, code...) → lưu cho module tiếp theo
      END FOR
      
      // Ở module cuối — verify output
      8. Capture biên bản / output cuối
      9. browser_take_screenshot → evidence
      10. Ghi nhận: combo_id, created_ids, template_found, formula_verified
    END FOR
  3. Xử lý lỗi trong pipeline:

    LỗiCách xử lý
    Submit fail (validation)Screenshot → ghi log → skip combo → báo user
    Module load chậmbrowser_wait_for với timeout tăng dần
    Session expiredRe-login → retry từ module bị fail
    Data trùngSinh lại data unique, retry
    Combo không hợp lệ (constraint)Skip → đánh dấu "INVALID" trong report
  4. Giới hạn pipeline:

    • Tối đa 30 bộ kết hợp / phiên chạy (tránh timeout)
    • Nếu > 30 → chia batch, hỏi user "Tiếp tục batch tiếp?"
    • Sau mỗi 10 bộ → báo progress cho user

Bước 4: Đóng Gói Output & Báo Cáo

Output cho Mode GENERATE:

Tạo artifact file(s) theo format user yêu cầu:

JSON (mặc định):

json
{
  "feature": "Biên bản thanh toán đối tác",
  "generated_at": "2026-04-15T17:00:00Z",
  "strategy": "pairwise",
  "total_combinations": 20,
  "dimensions": ["partner_type", "payment_type", "tax_type", "debt_type", "asset_source"],
  "data_sets": [
    { "combination_id": "COMBO_01", "dimensions": {...}, "module_data": {...}, "expected_output": {...} },
    { "combination_id": "COMBO_02", ... }
  ]
}

Markdown Table:

markdown
| Combo | Đối tác | Thanh toán | Thuế | Công nợ | Nguồn | Partner Name | Amount | Expected Template | Expected Total |
|-------|---------|-----------|------|---------|-------|-------------|--------|------------------|----------------|
| 01 | Tổ chức | VND | VAT | Thường | Quỹ A | auto_c01_tc | 100M | BB_TC_VND_VAT | 110M |
| 02 | ... | ... | ... | ... | ... | ... | ... | ... | ... |

Code (TypeScript example):

typescript
// test-data/payment-record.data.ts
export const combinatorialData = [
  {
    id: 'COMBO_01',
    partner: { name: `auto_combo01_${Date.now()}`, type: 'Tổ chức', taxId: '0123456789' },
    payment: { currency: 'VND', amount: 100_000_000 },
    tax: { type: 'VAT', rate: 10 },
    expected: { template: 'BB_TC_VND_VAT', total: 110_000_000 },
  },
  // ... more combos
];
Output cho Mode PIPELINE:
markdown
## Pipeline Execution Report

| # | Combo | Status | Module 1 ID | Module 2 ID | Module 3 ID | Output Template | Formula ✓ | Screenshot |
|---|-------|--------|------------|------------|------------|-----------------|-----------|------------|
| 1 | COMBO_01 | ✅ PASS | PTR-001 | PAY-001 | TAX-001 | BB_TC_VND_VAT | ✅ Match | combo01.png |
| 2 | COMBO_02 | ✅ PASS | PTR-002 | PAY-002 | TAX-002 | BB_TC_USD_PIT | ✅ Match | combo02.png |
| 3 | COMBO_03 | ❌ FAIL | PTR-003 | PAY-003 | — | — | — | combo03_fail.png |

### Summary
- ✅ Passed: 18/20
- ❌ Failed: 2/20 (COMBO_03: Tax module validation error, COMBO_17: Timeout)
- 📊 Data created: 18 partners, 18 payments, 18 tax configs, 18 biên bản

Data Rules (BẮT BUỘC)

#RuleMô tả
1Unique per comboMỗi bộ kết hợp dùng data riêng — không chia sẻ giữa combos
2TraceablePrefix: auto_combo{XX}_{dimension_short}_{timestamp}
3Dimension values exactGiá trị dimension PHẢI đúng như trong ma trận — KHÔNG random
4Supporting fields randomFields không thuộc dimension → sinh random + unique
5Computed values verifiedGiá trị tính toán phải đúng theo formula trong ma trận
6No real PIIKHÔNG dùng dữ liệu cá nhân thật
7Include expected outputMỗi combo PHẢI có expected template + formula + computed values

NGHIÊM CẤM

❌ Không được làm✅ Thay thế đúng
Random dimension valuesDimension values lấy chính xác từ ma trận
Hardcode data giống nhau cho mọi comboData unique per combo với traceable prefix
Bỏ qua expected outputMỗi combo PHẢI có expected template + values
Chạy pipeline > 30 combos / phiên không hỏiChia batch 30, hỏi user tiếp tục
Bỏ qua combo fail, không reportGhi log đầy đủ: combo nào fail, tại sao, screenshot
Đọc .env để lấy credentialsHỏi User hoặc dùng fixture sẵn có

Checklist cuối

  • Đã đọc và parse ma trận kết hợp đầy đủ
  • Phân loại fields: dimension / supporting / computed / reference
  • Data sinh ra unique per combo + traceable
  • Dimension values đúng 100% so với ma trận
  • Computed values đúng theo formula
  • (PIPELINE) Screenshots evidence cho mỗi combo
  • (PIPELINE) Report pass/fail cho mỗi combo
  • Không chứa real PII
  • Output file đúng format user yêu cầu

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Generate Combinatorial Test Data?

Sinh test data cho ma trận kết hợp đa chiều bằng pipeline chạy thật qua nhiều modules. Dùng đầu ra từ skill generate-cross-module-test-plan làm input.

Perché usare Generate Combinatorial Test Data su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Generate Combinatorial Test Data è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Generate Combinatorial Test Data in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/anhtester/codex-testing-kit/tree/main/.agents/skills/generate-combinatorial-test-data. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Generate Combinatorial Test Data?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Generate Combinatorial Test Data?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Generate Combinatorial Test Data: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Generate Combinatorial Test Data è gratuita?

Sì. È pubblicata su GitHub da anhtester con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇