zoukankan      html  css  js  c++  java
  • cucumber learning : http://www.cnblogs.com/puresoul/category/340832.html

    link

    Generate cucumber report by json website

    Sample as json file for cucumber report:

    [
      {
        "keyword": "Feature",
        "name": "Hello World Feature",
        "description": "In order to ensure that my installation works
    As a Developer
    I want to run a quick Cucumber test",
       "tags": [ { "name": "@test3" } ],
    "id": "hello-world-feature", "uri": "features/unitest1.feature", "elements": [ { "keyword": "Scenario", "name": "Hello World Scenario", "description": "", "tags": [ { "name": "@test" } ], "steps": [ { "keyword": "Given ", "name": "The Action is Hello", "doc_string": { "value": "describe "an example" do it "has not yet been implemented" end" }, "output": [ "This is before hook." ], "result": { "status": "failed", "error_message": "Your block takes 1 argument, but the Regexp matched 2 arguments. (Cucumber::ArityMismatchError) features/step_denfinitions/step_steps.rb:3:in `/The Action is ([A-z]*)/' features/unitest1.feature:8:in `Given The Action is Hello'", "duration": 198435 } }, { "keyword": "When ", "name": "The Subject is World", "result": { "status": "skipped" } }, { "keyword": "Then ", "name": "The Greeting is Hello, World", "result": { "status": "skipped" }, "output": [ "This is after hook." ] } ] }, { "keyword": "Scenario", "name": "Test World Scenario", "description": "", "steps": [ { "keyword": "Given ", "name": "The Action is Test", "output": [ "This is before hook." ], "result": { "status": "passed", "duration": 24000 } }, { "keyword": "When ", "name": "The Subject is World", "result": { "status": "passed", "duration": 17540 } }, { "keyword": "Then ", "name": "The Greeting is Test, World", "result": { "status": "passed", "duration": 20401531 }, "output": [ "This is after hook." ] } ] } ] } ]
  • 相关阅读:
    NHibernate中的Clear和Flush方法
    什么是POCO类
    node-vuecli 脚手架安装
    layui表单引入ueditor遇坑记
    PHP的九个超全局变量
    PHP的八个魔术常量
    PHP的七个数组指针函数
    TP6.0多应用模式隐藏路由中的应用名
    TP6.0中的密码验证逻辑、验证器的使用
    Vue 侦听器 watch
  • 原文地址:https://www.cnblogs.com/root-wang/p/4505327.html
Copyright © 2011-2022 走看看