{"id":21202208,"url":"https://github.com/shthemw/uxgame-testing-utility","last_synced_at":"2026-04-19T05:35:51.224Z","repository":{"id":200111446,"uuid":"702347203","full_name":"SHthemW/UxGame-Testing-Utility","owner":"SHthemW","description":"Unity命令执行工具","archived":false,"fork":false,"pushed_at":"2023-12-21T12:43:47.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T11:40:22.860Z","etag":null,"topics":["excel","npoi","unity","utility","winform"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SHthemW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-09T06:34:25.000Z","updated_at":"2024-09-18T12:32:13.000Z","dependencies_parsed_at":"2023-10-15T20:10:57.736Z","dependency_job_id":"6c51ac17-8a47-4ce4-ba2b-a9740b43edda","html_url":"https://github.com/SHthemW/UxGame-Testing-Utility","commit_stats":null,"previous_names":["shthemw/uxgame-testing-utility"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SHthemW/UxGame-Testing-Utility","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SHthemW%2FUxGame-Testing-Utility","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SHthemW%2FUxGame-Testing-Utility/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SHthemW%2FUxGame-Testing-Utility/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SHthemW%2FUxGame-Testing-Utility/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SHthemW","download_url":"https://codeload.github.com/SHthemW/UxGame-Testing-Utility/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SHthemW%2FUxGame-Testing-Utility/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31996445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","npoi","unity","utility","winform"],"created_at":"2024-11-20T20:14:57.309Z","updated_at":"2026-04-19T05:35:51.208Z","avatar_url":"https://github.com/SHthemW.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UxGame-Testing-Utility 中文文档\nTo view English document, please access on: https://translate.google.com/\n\nUxGame 的自动化测试工具, 基于Winform提供GUI, 并具有与Unity引擎联动的Socket客户端.  通过编写自定义的服务端程序, UxTU能自动化执行丰富多样的测试行为, 即使程序位于Unity内部.\n\nAn automatically testcase deployer and stats recorder for UxGame project. It provides GUI and friendly unity platform support. By using UxTU-API, It can execute custom testing action automatically.\n\nNote: 测试工具不包括项目数据文件.\n\n![image-20231221194237795](README/image-20231221194237795.png)\n\n## 快速开始\n\n您可以在Release中直接下载UxTU客户端的最新版本.\n\n\u003e [Release v2.1 release · SHthemW/UxGame-Testing-Utility (github.com)](https://github.com/SHthemW/UxGame-Testing-Utility/releases/tag/Release)\n\n此外, 您也可以通过clone源代码来调试和运行程序:\n\n```\ngit clone https://github.com/SHthemW/UxGame-Testing-Utility.git\n```\n\n注意: 要调试源代码, 您的计算机需要具有.Net 6.0 开发环境.\n\n客户端程序通常*无法*独立实现功能. 您需要在Unity引擎内部开发配套的服务端程序. 服务端将基于本地的Socket服务器与UxTU客户端建立连接, 并接收特定协议的命令执行操作.\n\n## 界面\n\nUxTU的主界面如图所示(文本内容仅为示例):\n\n![image-20231221202105914](README/image-20231221202105914-1703161267527-3.png)\n\n## 客户端API\n\n您可以通过API编程来实现需要的功能. UxTU内置了客户端Action的编程接口:\n\n\u003e  v2.1 Note: 当前Action的开发-运行模式不能很好的维护开闭原则. 除非必要, 您应当等待新版本的UxTU和更完善的ActionAPI发布.\n\n```c#\nnamespace UxGame_Testing_Utility.Actions\n{\n    internal abstract class ExecutableAction\n    {\n        protected readonly IMainWindowService _program;\n\n        public ExecutableAction(IMainWindowService program)\n        {\n            _program = program ?? throw new ArgumentNullException(nameof(program));\n        }\n\n        public abstract Task Execute();\n\n        private ExecutableAction() =\u003e throw new NotImplementedException();\n    }\n}\n```\n\n接口```IMainWindowService```提供主面板文本框的输入信息和Console服务. 您可以根据此实现捕获主面板中用户输入的数据, 并执行特定的操作. \n\n在主窗口类```MainWindow```中, 您可以实例化Action并执行它们. 下面是一个示例:\n\n```c#\nprivate async void ApplyAndDeployBtn_Click(object sender, EventArgs e)\n{\n    try\n    {\n        // init action\n        ExecutableAction replaceData = new ReplaceDataInTableAction (this);\n        ExecutableAction callRefresh = new CallRefreshCommandAction (this);\n        ExecutableAction callAutoTst = new CallAutoTestCommandAction(this);\n        \n        var actions = new ExecutableAction[] {replaceData, callRefresh, callAutoTst};\n\n        // execute\n        foreach (var action in actions)\n        {\n            await action.Execute();\n        }\n    }\n    catch (Exception ex)\n    {\n        _consLogger.ShowLog(ex.Message, LogLevel.err);\n    }\n}\n```\n\n这个示例中, ```ReplaceDataInTableAction```, ```CallRefreshCommandAction```和```CallAutoTestCommandAction```都是根据API编写的自定义行为.  在本示例中, 点击主界面的Click按钮将会依次执行它们.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshthemw%2Fuxgame-testing-utility","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshthemw%2Fuxgame-testing-utility","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshthemw%2Fuxgame-testing-utility/lists"}