DeepSeek Harness (DSH) Test Plugin: Enables Test Planning and Execution in Dialogue

DSH (DeepSeek Harness) adopts a pluggable architecture. In testing scenarios, traditional scripting or manual testing is often disconnected from the conversation flow. The DSH Test Plugin aims to solve this problem by allowing developers to directly leverage natural language within DSH conversations to complete test planning, execution, and result delivery, reusing current models, tools, and session records.

Plugin Introduction

DSH Test Plugin is a native testing plugin for DeepSeek Harness, maintained by Pegasus-Yang. It accepts descriptions of business processes, decomposes tasks into business steps and checkpoints, executes checks against real page elements or API responses, and displays progress, evidence, and results within the same conversation.

The plugin supports Web UI testing and GET JSON API testing. It can handle TXT and Markdown test cases as well as CSV parameterized data, ultimately generating static HTML reports containing steps, assertions, and attachments.

Installation and Activation

Before installation, ensure that Node.js 22.19+ and DeepSeek Harness 0.2.1-alpha.1, alpha.2, or alpha.3 are installed. The plugin runs in DSH native tool mode.

Use the following command in the DSH dialog box to install it:

dsh plugin --profile web add github:Pegasus-Yang/DSH-Test-Plugin#v0.13.1

Once the installation is complete, refresh the page to activate the plugin.

Core Features

The plugin provides the following capabilities:

  1. Natural Language Planning and Review: Decompose tasks into steps, supporting direct execution or plan review and modification before execution.
  2. Web and API Testing: Operate web pages via Playwright MCP, collect GET JSON responses, and check status codes and fields.
  3. File Cases and Parameterization: Use TXT and Markdown to save test cases; utilize CSV to expand multiple data sets for item-by-item review followed by serial execution.
  4. Execution Progress and Timing: Display the current step, settlement count, and elapsed time above the input box.
  5. Real-time Screen and Recording: Watch the headless browser screen on the same page; supports independent recording activation and playback within the report.
  6. Evidence and Test Reports: Save actual observations versus expected values, generate static HTML reports, and support offline storage.
  7. Actual Steps and Manual Cases: Record real operations and organize them into reusable Markdown manual test cases.

Typical Usage

In the DSH dialog box, you can use the following commands:

  • /test <task>: Display the plan and execute directly.
  • /test-plan <task>: Review and modify the plan first, then execute.
  • /test-run <file>: Read and execute TXT or Markdown test cases from the current workspace.
  • /test-data <CSV> --file <case_file>: Expand parameters according to the CSV, review, and then execute.

Example:

/test Navigate to http://127.0.0.1:8929/users/sign_in and assert that the page contains a username input field, a password input field, and a Sign in button

Notes

  • Execution Mode: The plugin runs in DSH native tool mode. Shared test environments execute serially; parallel execution of independent browsers across multiple conversations is a future optimization.
  • API Testing: API testing supports GET JSON collection.
  • Result Determination: Test results retain failed, cancelled, and cleaned statuses. Missing evidence, tool errors, or necessary cleanup failures will not be counted as passed.
  • Language: The report interface and some prompts are primarily in Chinese.

References

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye