1c Qa Testing 标志

1c Qa Testing

社区
comol
1c-qa-testing

UI checks in the 1C thin client through QA MCP (`1c-qa`, `qa_*` / `ui_*`): session, observe → act → assert, platform behaviour, unknown outcomes, journal and verdicts. Main UI route when connected and TOOL_QA allows it; the web client is the fallback.

Add to TypingMind

概览

发布者comol
代码仓库ai_rules_1c
技能名称1c-qa-testing
星标数
496
复刻数
112
附带文件
4
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 comol 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 1c Qa Testing AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/comol/ai_rules_1c/tree/main/content/skills/1c-qa-testing
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/comol/ai_rules_1c.git /tmp/ai_rules_1c
mkdir -p .claude/skills
cp -r /tmp/ai_rules_1c/content/skills/1c-qa-testing .claude/skills/1c-qa-testing
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 1c Qa Testing,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 1c Qa Testing。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 1c Qa Testing 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

1c-qa-testing — UI checks through QA MCP

QA MCP (connection 1c-qa) is the 1C test manager: it connects to a 1C test client (/TestClient) and drives its forms through the platform testing model — windows, fields, tables, commands, messages. It reads structured state, not pixels, so it is the main route for checking behaviour in the 1C interface. The web client (content/rules/ui-testing-tools.md) is the fallback.

When this route applies

All of these hold:

  • UI_TESTING allows the check (content/rules/dev-standards-env.md → UI_TESTING): essential / auto after the change reached the dev/test infobase, manual on an explicit request, never under off.
  • TOOL_QA is not off (content/rules/mcp-policy.md → Tool availability).
  • The qa_* / ui_* tools are exposed in this session and qa_status answers. A config entry or /healthz proves nothing.
  • The target is an authorized dev/test infobase (INFOBASE_ROLE), the one in .dev.env.

Otherwise use the web fallback of ui-testing-tools.md, or report the check unrun with the reason. TOOL_QA=required with the server missing blocks the check; the web client does not replace it.

Before the first action load content/rules/qa-testclient.md. It owns what the server does not do: starting and stopping the test client, visible or hidden window, screenshots, Windows-MCP, and confirming data through 1c-data-mcp. Tool argument names come from the exposed schemas; qa_playbook returns the sequence for the current executor.

Other MCP servers in a check

When a check needs metadata, form structure, impact, error source or live data, load the matching entry in context-sources.md. Use indexes only when they cover the configuration loaded into the tested infobase; confirm element names in the live window.

Session

  1. qa_status — the executor decides who starts 1C:

    executorWhat it isTest client
    nativeThe container is the test manager and speaks the test-client protocol; no 1C platform insideThe agent starts it by qa-testclient.md; the server only connects
    platformWindows manager next to the platformqa_start starts it itself
  2. Start or find the test client (qa-testclient.md), then qa_start(connection="<session name>"); port= overrides the port of MCP_QA_TESTCLIENT. No Windows account is needed: the test client accepts the channel's Windows authentication from any identity (8.3.27.2130); the 1C sign-in happens when the client starts.

  3. qa_status again: executor, link, target. A test client is already connected to another manager answer means another agent owns the client — a conflict to resolve, not a client to close.

  4. At the end: qa_stop. In native it only disconnects; the client is closed by the tool that started it (qa-testclient.md). A new MCP session or a restarted client needs a new qa_start; save_as aliases and ui_here pins do not survive it.

After /update1cbase, /deploy-and-test or /restore-testbase the update ends the sessions of the infobase: a client started before it is stale. Start a fresh client, qa_start, and read the main window before the first step.

Observe → act → read the change → assert

  1. Read before acting: ui_active_window, then ui_window_tree(detail="lite") or ui_inspect. Use the names and paths they return; never invent element names.
  2. One purposeful action: ui_open, ui_click, ui_set / ui_input, ui_field, ui_table, ui_list, ui_command, ui_dialog, ui_form.
  3. Read the result: ui_window_changes, ui_wait (form, element or closing), ui_messages, ui_errors.
  4. Assert on read values: ui_get_text, ui_find, table rows from ui_table / ui_list. A command accepted is not an effect observed.
  5. Re-read the window after navigation, a closed form or anything that invalidates the tree; earlier snapshots and ui_here pins are stale then.

The first form may still be loading right after the client starts: repeat read-only reads within a bounded wait.

Forms

  • ui_open(kind=, metadata_name=) without form_name opens and recognises the default form, including one defined in the configuration (Вид.Объект.Форма.<Имя>). When the configuration opens another form instead (ZUP: the employee list is a data-processor form), the single new form is accepted and the answer carries substituted_for. A failed open lists the forms that did appear. ui_open(link="e1cib/…", target_title=…) opens by navigation link.
  • e1cib/data/<Type>.<Name> without ?ref opens a new object; the auto-generated object form is <Type>.<Name>.ФормаОбъекта, without .Форма..
  • ui_close_form closes the named form (form=, title=, name=, form_name=) or the active non-main window. It never closes the main window and closes nothing when the named form is not found.
  • The MCPQAClient extension enables ui_form_schema, qa_data_candidates and ui_open through ОткрытьФорму; without it ui_open opens forms by navigation link. Installing it is a change of the test infobase (qa-testclient.md → MCPQAClient extension).

Recipes

Before list navigation, field entry, table editing, save/post or dialog actions, read the matching recipe and its pitfalls in interaction-recipes.md. Read-only window inspection needs no recipe. Two failed attempts by one method require a fresh window read, then another method or an explicit unverified result; never vary arguments blindly.

Platform behaviour (8.3.27.2130, measured)

Before asserting changed field values, navigating table rows/tabs, writing/posting, deleting, or diagnosing a lost link/message, read the relevant behaviour in platform-behaviour.md. Command acceptance never proves the effect; the unknown-outcome rules below always apply.

Unknown outcome

  • A timed-out or interrupted action has an unknown outcome: it may have written data. Never repeat a save, post, delete or command blindly.
  • Call qa_command_status (channel="client" for the extension). In native a failed link blocks new calls until qa_command_status acknowledges it; then qa_reconnect(force=True) and read the window (ui_window_tree) before deciding.
  • A read that times out is not repeated in a loop either; follow the same path.

Test journal and verdicts

Keep a journal of every check so that another session can continue it after a crash, a lost link or a context reset. A one-off request to open or show something — no change under check, no data written — needs no journal and no screenshot: answer with what was read.

  • Where: the task's output directory; otherwise %TEMP%\qa-runs\<YYYY-MM-DD>-<short name>\journal.md. Screenshots go next to it. Give the path in the report.
  • Write it as you go, after each step:
    • header: scenario, infobase and its role, executor, test-client port, window mode (visible / hidden), start time;
    • per step: number, tool and key arguments, what was observed, verdict, evidence (tool answer or screenshot path);
    • test data the check created (object kind, number or code, key fields, why), written when created;
    • one state line: active window, open dialogs or unsaved changes, whether the client is alive.
  • To continue: read the journal, qa_status (qa_reconnect(force=True) if the link is gone), read the window, go on from the first step without a verdict. Repeat a data-changing step only when the journal and the data show it did not happen.
  • Verdict per step: passed / failed / not verified, each with evidence.
    • Evidence: a value read back, an error text from ui_errors, the form name of the window that opened, a message text, a data read through 1c-data-mcp, or a screenshot — whichever shows the result better.
    • An answer that only confirms the command was sent (clicked, added, deleted, ok) is not evidence of its effect. A step without evidence is not verified, never passed.
  • Quote messages and error texts verbatim, in the interface language.
  • An unplanned refusal that blocks the next steps: record the step failed with the text, mark the rest not verified, and stop.
  • Expected numbers belong in the scenario; a number the agent calculates goes into the journal with the calculation.
  • Reuse test data from earlier runs (see the journal) before creating new. Delete test data only when the person asks.

Not available in native

qa_setup and qa_install_client answer executor_capability. ui_eval / qa_run_script are replaced by 1c-data-mcp, ui_screenshot and the hidden desktop by the Windows side of qa-testclient.md. Do not emulate anything else; report the gap. A tool that is missing from the list is not replaced by ui_eval or another workaround.

Report

Use the scenario and report templates of content/agents/tester.md. Name the route (QA MCP, executor), the infobase, the journal path, the screenshots by step number, every step whose outcome was not confirmed, and data checks done or not done. Transport success, /healthz or a tool list is not a passing check.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

1c Qa Testing AI 技能有什么作用?

UI checks in the 1C thin client through QA MCP (`1c-qa`, `qa_*` / `ui_*`): session, observe → act → assert, platform behaviour, unknown outcomes, journal and verdicts. Main UI route when connected and TOOL_QA allows it; the web client is the fallback.

为什么在 TypingMind 中使用 1c Qa Testing?

因为您只需安装一次,就能搭配任何模型使用。1c Qa Testing 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 1c Qa Testing?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/comol/ai_rules_1c/tree/main/content/skills/1c-qa-testing。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 1c Qa Testing?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

1c Qa Testing 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 1c Qa Testing 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

1c Qa Testing AI 技能免费吗?

comol 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇