Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TestJadeNew to Visual Studio Code? Get it now.
TestJade

TestJade

TestJade

|
2 installs
| (0) | Free
试玉
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

试玉要烧三日满,辨材须待七年期。

本插件为 TestJade【试玉】自动化测试系统 配套 client VSCode 插件。

功能说明

系统概述

TestJade是一套企业级自动化测试工具平台,具备完整的测试执行、管理和报告生成功能。系统采用分布式架构设计,支持多种协议和数据源的测试场景。

核心功能特性

🚀 多协议测试支持

  • HTTP/HTTPS接口测试 - 支持RESTful API、GraphQL等接口测试
  • 数据库测试 - 支持MySQL、SQLite、InfluxDb等多种数据库连接和SQL执行
  • 中间间测试 - 支持Kafka、Redis等中间件的读写操作
  • 浏览器自动化 - 集成Playwright进行Web UI自动化测试

📊 完善的测试报告

  • 实时监控 - 系统托盘程序提供实时服务状态监控
  • 详细报告 - 自动生成包含请求响应、断言结果、执行时间等详细信息的测试报告
  • 多维度统计 - 提供成功率、响应时间、吞吐量等关键性能指标

🔐 安全认证机制

  • API签名验证 - 基于HMAC-SHA256的请求签名认证
  • 用户权限管理 - 支持用户权限控制
  • 数据加密传输 - 敏感信息AES加密存储和传输

🌐 分布式架构

  • 服务端-客户端模式 - 支持远程测试执行和集中管理
  • Socket通信 - 实时双向通信,支持测试过程监控
  • 多线程执行 - 支持并发测试执行,提高测试效率

应用场景

适用于API接口测试、自动化回归测试、性能测试、数据库验证、文件操作测试等多种测试场景,支持自行拓展功能,特别适合需要复杂业务逻辑验证的企业级应用测试需求。

操作界面说明

用户界面

示例

http GET接口

代码

scripts:
- do: http
  url: https://www.baidu.com

运行结果

PS D:\V1.0.5\demo> tjcli d:\V1.0.5\demo\http-get.yaml
2025-12-03 17:04:50.161|Info|请稍候...
2025-12-03 17:04:51.146|Info|CALL|>|d:\V1.0.5\demo\http-get.yaml
2025-12-03 17:04:52.319|Info|No.1|Http||>||GET|https://www.baidu.com
2025-12-03 17:04:52.655|Info|No.1|Http|Request|F1E666FE|GET|https://www.baidu.com/|Content-Type: application/json;charset=UTF-8
2025-12-03 17:04:52.820|Info|Http|Response|200|F1E666FE|512ms|<!DOCTYPE html><!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus=autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn" autofocus></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=https://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u=http%3A%2f%2fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ 
encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');                </script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>©2017 Baidu <a href=http://www.baidu.com/duty/>使用百度前必读</a>  <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a> 京ICP证030173号  <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>
2025-12-03 17:04:52.883|Info|Assert|✅ 断言【http1.status().toString() [regular] ^(20[0-6])】成功,值为【200】
2025-12-03 17:04:52.886|Info|Summary|共执行:1,执行成功:1,执行失败:0,断言失败:0
2025-12-03 17:04:52.886|Info|Summary|共返回:1,返回成功:1,返回失败:0,未响应:0
2025-12-03 17:04:52.886|Info|Summary|开始时间:2025-12-03 17:04:52 164,结束时间:2025-12-03 17:04:52 885,总计耗时:0.72 s (721.0 ms)
2025-12-03 17:04:52.886|Info|Summary|执行效率:1.39  个/秒,最快响应:512 ms,最慢响应:512 ms,平均响应:512.00 ms
2025-12-03 17:04:52.887|Info|CALL|□|d:\V1.0.5\demo\http-get.yaml
PS D:\V1.0.5\demo> 

http POST接口

代码

scripts:
- do: http
  url: https://ug.baidu.com/mcp/pc/pcsearch
  method: post
  content: |
    {"invoke_info":{"pos_1":[{}],"pos_2":[{}],"pos_3":[{}]}}
  headers: 
    Content-type: application/json; charset=UTF-8    

http接口详细说明

代码

# 报表中 [用例] 列显示内容
note: 百度用例
scripts:
- do: http
  # 请求链接
  url: https://www.baidu.com
  # 请求内容输出字数限制
  requestLimit: 1000
  # 返回内容输出字数限制,在多线程压测时根据需要设置
  responseLimit: 1000 
  # 脚本ID,根据ID进行变量调用
  id: baidu
  # 报表中 [脚本] 列显示内容
  note: 百度请求脚本
  # 请求方式:get\post\put\delete 等
  method: get
  # 请求头
  headers: 
        Connection: keep-alive
        Cache-Control: no-cache

- do: print
  values:
  - 响应状态值:${baidu.status()}    
  - 响应体:${baidu.body()}            
  - 响应体:${baidu.body0()}    
  - 请求体:${baidu.body1()}    
  - 请求头Connection: ${baidu.header1("Connection")}            
  - 响应头Content-Type:${baidu.header0("Content-Type")}     

多线程 threads

代码

note: 多线程测试
scripts:
- do: threads
  # 线程数
  workers: 5
  scripts:
  - do: for
    range: int k=1; k<10; k++
    scripts:
    - do: http
      note: 循环请求
      url: https://www.hqgq.com/index.php?m=comment&c=index&a=lists&commentid=content_2-5764${k}&num=10&page=1  

测试报告

测试报告

多线程 tfor

代码

scripts:
- do: tfor
  # 循环次数
  round: 10
  # 线程数
  workers: 3
  # 循环变量,可在后续脚本中使用
  loopvar: tj
  scripts:
    - do: http
      url: https://www.hqgq.com/index.php?m=comment&c=index&a=lists&commentid=content_2-5764${tj}&num=10&page=1  

更多示例

请访问官网 或 阅读TestJade软件包附带demo

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft