Skip to content
cccskills
FreePublished on GitHub

ios-qa-execute

テストケースの実行制御を行うフェーズスキル。各テストケースを qa-runner → qa-judge のパイプラインで実行し、アプリ状態管理と結果収集を担当する。ios-qa-workflow から参照される。

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md5.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

QA 実行制御 — テストケース実行パイプライン

テストケース実行パイプライン

各テストケースは以下のパイプラインで処理する:

Step A: qa-runner(実行)

Agent(
  subagent_type: "ios-qa-agent:qa-runner",
  prompt: |
    以下のテストケースを実行してください。

    ## テストケース
    ### 前提状態
    {テストケースの前提状態}

    ### 操作意図
    {テストケースの操作意図}

    ## App Map (v4 フォーマット、信頼度情報付き)
    {app-map.md の全内容(あれば)}
    {
      例(v4 フォーマット):
      ---
      format_version: 4
      qa_readiness_score: 72
      qa_readiness_level: Conditional
      last_verified: 2026-03-15
      ---
    }
    {なければ「App Map は利用不可。フル探索モードで進めてください」と記載}

    ## 信頼度情報の活用
    以下の信頼度に基づいて、操作方法を自動選択してください:
    - [HIGH]: label または id で即座にタップ
    - [MED]: label でタップを試み、失敗時は id にフォールバック
    - [LOW]: 最初から座標タップを使用

    ## 前提条件の達成手順(ヒント)
    {プリセットの steps を展開}

    ## 制限
    max_actions: 20
    timeout_seconds: {timeout}
    stuck_threshold: 3
)

重要: 「期待結果」は qa-runner に渡さない(確認バイアス排除)

App Map v4 フォーマットの要点:

  • format_version: 4(信頼度情報をサポート)
  • qa_readiness_score: 数値(0-100、[HIGH]/[MED]/[LOW] の割合を反映)
  • qa_readiness_level: Low / Conditional / High(テスト実行推奨度)
  • 各要素に信頼度 [HIGH]/[MED]/[LOW] が付与されている

Step B: qa-judge(判定)

Agent(
  subagent_type: "ios-qa-agent:qa-judge",
  prompt: |
    以下のテスト結果を判定してください。

    ## 期待結果
    {テストケースの期待結果}

    ## 補足
    {テストケースの補足}

    ## 実行レポート
    {qa-runner の Execution Report 全文}
)

Step C: 結果の記録

  1. qa-judge の Judgment を results に追加
  2. qa-runner の Execution Report から Discoveries セクションを抽出して保管(Phase 3.5 で集約用)

アプリ状態管理(Phase 5:連続実行の安定化)

テスト実行前の状態確認ステップ

各テストケース実行前に以下を実施:

  1. screenshot() で現在画面を確認
  2. 期待する開始画面と比較
  3. 不一致の場合:
    • stop_app_sim() で停止
    • 2秒待機
    • launch_app_sim() で再起動
    • screenshot() で起動確認

State Transition Hints(App Map 活用)

前テスト結果画面 → 次テスト開始画面への遷移ヒント:

  1. App Map の Transitions セクションを参照
  2. 「home に戻る」等の推奨操作を特定
  3. 例:
    • session_active にいる → backButton タップで home に戻す
    • settings 画面 → navigationBar の戻るボタンで前画面に戻す
  4. qa-runner の Execution Report に「状態遷移に必要な操作」を記載

再起動が必要な場合

  • 前テストの Verdict が Fail
  • 前テストの Runner Status が crashed
  • 前テストと次テストの preconditions が大きく異なる
  • screenshot() で確認したアプリ状態が期待状態と不一致

再起動不要な場合

  • 前テストが Pass かつ次テストの preconditions が互換
  • screenshot() で確認した状態が次テストの期待開始画面と一致

再起動の実行

screenshot() → 期待画面確認
if 不一致 or アプリクラッシュ:
  stop_app_sim()
  待機 2秒
  launch_app_sim()
  screenshot() で起動確認

依存テストの扱い(Phase 5:独立テストの Fail 後続行)

depends_on がないテストの場合:

  • 前テストが Fail でも実行を続行
  • 理由: 独立したテストケースとして扱う

depends_on があるテストの場合:

  • 依存先テストが以下の場合 Skipped:
    • Fail → Skipped(理由: 依存先 [TC-XXX] が失敗)
    • Inconclusive → Skipped(理由: 依存先 [TC-XXX] が判定不能)
    • Skipped → Skipped(理由: 依存先 [TC-XXX] がスキップ)
  • 依存先が Pass の場合:実行

リトライの扱い

retry > 0 かつ Fail/Inconclusive の場合:

  • アプリを再起動
  • 同じテストケースを再実行(最大 retry 回)
  • 最後の結果を採用

進捗報告(Phase 5:中途報告)

各テスト完了後に簡潔な進捗を親エージェント(ios-qa-workflow)に報告:

例: "TC-001: Pass (high) | TC-002: 実行中... | 残り 3 件"

報告タイミング:

  • 各テスト完了時
  • 5件以上のスイート実行時のみ(小規模スイートでは不要)

報告内容:

  • TC ID
  • Verdict(Pass / Fail / Inconclusive / Skipped)
  • Priority(high / medium / low)
  • 実行ステータス(完了 / 実行中 / Skipped)
  • 残りテスト数

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

CHANGELOG エントリ追加・バージョン計算。「CHANGELOG」「変更履歴」「changelog add」「version bump」「バージョン」「バージョンアップ」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

プロジェクトの .claude/ ディレクトリ(skills, agents, contexts)を Codex CLI 互換 .agents/ に変換。「codex export」「Codex 変換」「プロジェクトをエクスポート」などで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

デザインシステム準拠のSwiftUIコンポーネントを生成する。新しいUIパーツの作成、コンポーネント生成時に使用。「コンポーネント作成」「新しいUI」「パーツ作成」「component generate」「UIパーツ」「新規コンポーネント」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

Claude Code プラグインを Codex CLI 互換形式に変換。SKILL.md → .agents/skills/、agents → .agents/skills/、AGENTS.md 生成。「deploy」「codex」「Codex 変換」「エクスポート」などで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

SwiftUI ViewのDesign System準拠性を監査する。既存UIのレビュー、デザインチェック時に使用。「デザインレビュー」「UIチェック」「design audit」「デザイン監査」「UI監査」「デザインチェック」「トークン確認」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

UIの視覚的差分を検出・比較する。デザイン変更前後の比較、リファレンスとの差分確認時に使用。「デザイン比較」「UI差分」「design diff」「design compare」「ビフォーアフター」「見た目の違い」などのキーワードで自動適用。

The English summary is being prepared. Showing the original description.

no-problem-dev/claude-code-plugins5Updated Mar 15, 2026

See all skills by no-problem-dev

Report a problem with this skill