首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Newman的诱人报告

使用Newman的诱人报告
EN

Stack Overflow用户
提问于 2017-09-30 00:19:02
回答 3查看 2.3K关注 0票数 1

我使用"newman“在Jenkins服务器上运行API测试。这对我来说非常简单,我用"Postman“编写测试脚本,用"newman”运行我的集合,但我不能为我的经理提供好的报告。我找到了“诱人报告”,我喜欢它。如果我使用"Newman“,是否有机会创建诱惑力报告。诱惑力支持纽曼吗?

EN

回答 3

Stack Overflow用户

发布于 2017-09-30 00:45:49

看起来不可能,这不可能。

为什么现在(在写完测试之后)你要寻找报表工具?当qa团队分析测试工具可以用于自动化时,它活动发生在启动自动化过程中。

我看了一下https://github.com/postmanlabs/newman,我想你可以试着把命令行输出解析成文本文件吗?并使用此输出为管理器生成simple-report。

票数 0
EN

Stack Overflow用户

发布于 2020-10-01 15:04:10

可以,停那儿吧。请按照以下步骤操作:

代码语言:javascript
复制
we can generate nice and clean report using Allure-js framework.
1. Installation
$ npm install -g newman-reporter-allure
    
2. Run the newman cli command to generate Allure results, specify allure in Newman's -r or --reporters option.
$ newman run <Collection> -e <Environment> -r allure

3. Allure results will be generated under folder "allure-results" in the root location. Use allure-commandline to serve the report locally.
$ allure serve

4. To generate the static report web-application folder using allure-commandline
    $ allure generate --clean
Report will be generated under folder "allure-report" in the root location

票数 0
EN

Stack Overflow用户

发布于 2021-03-19 16:33:49

尝试使用我的repository,这里有一个棘手的解决方案,它涵盖了所有内容:

并添加更多内容:

  1. 添加两个文件: collection *.json和env *.json
  2. 使用chmod命令向start.sh文件添加+x权限,如chmod +x start.sh
  3. run script./start.sh your_collection.json your_env.json

最后,你会得到两个报告:

  • HTML report
  • Allure report
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46493052

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档