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." ] } ] } ] } ]
  • 相关阅读:
    30-Transformation(HDU4578)-区间线段树(复杂)
    87-区间线段树(板子)--那个苑区的人最瘦
    86-区间线段树-模板
    1-2018-3-2小球碰撞
    85-取石子-威佐夫博弈
    83-取石子-尼姆博弈
    82-珠子染色-置换群
    2018.3.29 设计模式之单例模式详解
    2018.3.27 Mac 配置Tomcat
    2018.3.26 Linux下学习命令
  • 原文地址:https://www.cnblogs.com/root-wang/p/4505327.html
Copyright © 2011-2022 走看看