zhangfei19841004 / Ztest
自动化测试报告
Stars: ✭ 143
Projects that are alternatives of or similar to Ztest
Rest Assured
Java DSL for easy testing of REST services
Stars: ✭ 5,646 (+3848.25%)
Mutual labels: test, test-automation
Ghpr.nunit
Adapter for NUnit 3 (generate HTML report for NUnit 3)
Stars: ✭ 33 (-76.92%)
Mutual labels: report, test-automation
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+4944.76%)
Mutual labels: automation, test
Mobly
E2E test framework for tests with complex environment requirements.
Stars: ✭ 424 (+196.5%)
Mutual labels: automation, test-automation
Test Each
🤖 Repeat tests. Repeat tests. Repeat tests.
Stars: ✭ 89 (-37.76%)
Mutual labels: test, test-automation
Airtest
UI Automation Framework for Games and Apps
Stars: ✭ 5,733 (+3909.09%)
Mutual labels: automation, test-automation
Cypress
Fast, easy and reliable testing for anything that runs in a browser.
Stars: ✭ 35,145 (+24476.92%)
Mutual labels: test, test-automation
Selenium Document
a document with regard to selenium
Stars: ✭ 274 (+91.61%)
Mutual labels: automation, test
Testcafe
A Node.js tool to automate end-to-end web testing.
Stars: ✭ 9,176 (+6316.78%)
Mutual labels: test, test-automation
Poco
A cross-engine test automation framework based on UI inspection
Stars: ✭ 1,177 (+723.08%)
Mutual labels: automation, test-automation
Automation Arsenal
Curated list of popular Java and Kotlin frameworks, libraries and tools related to software testing, quality assurance and adjacent processes automation.
Stars: ✭ 105 (-26.57%)
Mutual labels: automation, test-automation
Tlsfuzzer
SSL and TLS protocol test suite and fuzzer
Stars: ✭ 335 (+134.27%)
Mutual labels: automation, test-automation
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+283.92%)
Mutual labels: test, test-automation
Nut.js
Native UI testing / controlling with node
Stars: ✭ 309 (+116.08%)
Mutual labels: automation, test-automation
Automation Report
Automation report是一款可以解决很多行业领域中设涉及到报告生成的需求,本项目最开始的初衷是为公司内部简化人工流程的一个环节,主要实现目的是将实验室检测得出的下机数据结果与对应的报告模版批量结合生成报告(.pdf)。
Stars: ✭ 22 (-84.62%)
Mutual labels: automation, report
xRetry
Retry running tests via Xunit and Specflow
Stars: ✭ 15 (-89.51%)
Mutual labels: test, test-automation
Powerslim
Fitnesse Slim implementation in PowerShell. PowerSlim makes it possible to use PowerShell in the acceptance testing
Stars: ✭ 49 (-65.73%)
Mutual labels: test, test-automation
Coteafs Appium
📱 Wrapper Appium Framework in Java which supports Automation of Mobile and Tablet apps.
Stars: ✭ 93 (-34.97%)
Mutual labels: automation, test-automation
ztest介绍
前言
ztest是一个测试报告,报告清晰简单,有饼图,汇总,运行详情。有兴趣的可以下载试用!
使用方式
将报告的json数据替换template文件中的
${resultData}
即可。
- pull ztest。
- 读取template文件数据。
- 将测试报告数据json序列化。
- 用json序列化后的数据替换读取的template文件中的
${resultData}
。比如:
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
String template = FileUtil.read(templatePath);
template = template.replaceFirst("\\$\\{resultData\\}", gson.toJson(result));
output.write(template);
- 将替换后的数据写入一个html文件(比如report.html)即可。
- 测试报告数据格式示例:
{
"testPass": 1,
"testResult": [
{
"className": "com.test.testcase.TestDemo1",
"methodName": "testDemo",
"description": "测试DEMO",
"spendTime": "11ms",
"status": "成功",
"log": [
"this is demo!"
]
}
],
"testName": "20171109132744897",
"testAll": 1,
"testFail": 0,
"beginTime": "2017-11-09 13:27:44.917",
"totalTime": "11ms",
"testSkip": 0
}
Java TestNg使用示例
请参考ztest中的TestDemo1.java ZTestReport.java
报告展示
鸣谢
感谢mock哥提供的python unittest实现部分,使用python unittest的同学可以无缝对接该报告!
mock哥git地址:mock哥git地址
junit5版本
junit5版本git地址:https://github.com/shenyanf/junitHtmlReport
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].