Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

『Unity Automated QA攻略ガイド』サンプルコード

License

Notifications You must be signed in to change notification settings

nowsprinting/UnityAutomatedQAExamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

150 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Automated QA Examples

Meta file check Test

Click English for English page if you need.

このリポジトリについて

このリポジトリは、同人誌『Unity Automated QA攻略ガイド』のサンプルプロジェクトです。

書籍は次のWebサイトから購入できます。

BOOTH

Unity Automated QA攻略ガイド - いか小屋 - BOOTH

技術書典マーケット

Unity Automated QA攻略ガイド:いか小屋

サンプルプロジェクトの構造

Scenes

記録・再生・テスト対象のデモscene

Assets
└── Scenes
    ├── Keypad.unity                    // Canvas + Buttonのデモscene
    ├── ObjectDemo.unity                // 非Canvasのデモscene
    ├── RecordableInputDemo.unity       // (TBD) 2.6 Input Systemサポートのデモscene
    └── Title.unity                     // Scene遷移デモ用のタイトル画面

Recordings

第2章 Recorded PlaybackでUI操作を記録したJSONファイル

Assets
└── Recordings
    ├── Keypad1997.json
    ├── Keypad20013.json
    ├── Keypad2013.json
    ├── KeypadCrawler.json      // 2.4 Game Crawler(記録モード)
    ├── KeypadToTitle.json
    └── TitleToKeypad.json

GeneratedTests

第3章 Test GenerationでKeypad2013.jsonから生成したテストコード。 いずれも「3.4.2 アサーションによる検証」のアサーションを追加しています。

3.2.1 Full Tests(Use Simplified Driver Codeがonの場合)

Assets
└── AutomatedQA
    └── GeneratedTests
        ├── FullTestsWithPageObjects_Keypad2013.cs
        └── PageObjects
            └── Scene_Keypad_PageObject.cs

3.2.2 Full Tests(Use Simplified Driver Codeがoffの場合)

Assets
└── AutomatedQA
    └── GeneratedTests
        ├── FullTestsWithSteps_Keypad2013.cs
        └── Steps
            └── Steps_Keypad2013.cs

3.3 Simple Tests

Assets
└── AutomatedQA
    └── GeneratedTests
        └── SimpleTests_Keypad2013.cs

AutomatedRun

第5章 AutomatorsのAutomated Run設定例

Assets
└── AutomatedRun
    ├── GameCrawlerExample.asset        // 5.3.2 LoadSceneAutomator, 5.3.3 GameCrawlerAutomator
    └── PlaybackScenarioExample.asset   // 5.3.1 RecordedPlaybackAutomator

5.2 APIによる実行

Assets
└── Scripts
    └── Editor
        └── CentralAutomationControllerExample.cs

5.4 カスタムAutomator

Assets
├── AutomatedRun
│   └── CustomAutomatorExample.asset
└── Scripts
    └── Runtime
        └── CustomAutomator
            ├── CustomAutomator.asmdef
            └── WaitAutomator.cs

ParameterizedTests

Unity Test Framework完全攻略ガイド 統合テスト編』の「2.4.2 Automated QA パッケージによるキャプチャ/プレイバック」で紹介している、 Simple Tests(JSONファイルを読むタイプ)をパラメタライズドテスト対応した例

Assets
└── ParameterizedTests
    └── Runtime
        └── ParameterizedSimpleTests.cs

License

MIT License

About

『Unity Automated QA攻略ガイド』サンプルコード

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •