[
{
"id": 5068,
"rank": 1,
"values": [
"0",
"factorial",
"1"
],
"status": "PASS",
"duration": "0 millisec",
"backgrounds": [
{
"id": 1337,
"rank": 1,
"type": "background",
"keyword": "Given ",
"name": "a calculator I just turned on",
"duration": "0 millisec",
"status": "PASS"
}
],
"hooks": [
{
"id": 1338,
"rank": 2,
"type": "hook",
"keyword": "Before",
"name": "FactorialCalculator.setUp()",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1339,
"rank": 3,
"type": "hook",
"keyword": "After",
"name": "FactorialCalculator.tearDown()",
"duration": "0 millisec",
"status": "PASS"
}
],
"steps": [
{
"id": 1340,
"rank": 4,
"type": "scenario",
"keyword": "Given ",
"name": "I have entered 3 into the calculator",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1341,
"rank": 5,
"type": "scenario",
"keyword": "When ",
"name": "I press factorial",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1342,
"rank": 6,
"type": "scenario",
"keyword": "Then ",
"name": "the result should be 6 on the screen",
"duration": "0 millisec",
"status": "PASS"
}
]
},
{
"id": 5069,
"rank": 2,
"values": [
"1",
"factorial",
"1"
],
"status": "FAIL",
"duration": "2 millisec",
"backgrounds": [
{
"id": 1343,
"rank": 7,
"type": "background",
"keyword": "Given ",
"name": "a calculator I just turned on",
"duration": "0 millisec",
"status": "PASS"
}
],
"hooks": [
{
"id": 1344,
"rank": 8,
"type": "hook",
"keyword": "Before",
"name": "FactorialCalculator.setUp()",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1345,
"rank": 9,
"type": "hook",
"keyword": "After",
"name": "FactorialCalculator.tearDown()",
"duration": "0 millisec",
"status": "PASS"
}
],
"steps": [
{
"id": 1346,
"rank": 10,
"type": "scenario",
"keyword": "Given ",
"name": "I have entered 4 into the calculator",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1347,
"rank": 11,
"type": "scenario",
"keyword": "When ",
"name": "I press factorial",
"duration": "0 millisec",
"status": "PASS"
},
{
"id": 1348,
"rank": 12,
"type": "scenario",
"keyword": "Then ",
"name": "the result should be 65 on the screen",
"duration": "2 millisec",
"logError": "java.lang.AssertionError: \nExpected: is <65L>\n but: was <24L>\r\n\tat org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)\r\n\tat org.junit.Assert.assertThat(Assert.java:956)\r\n\tat org.junit.Assert.assertThat(Assert.java:923)\r\n\tat com.xpandit.automation.cucumber.FactorialCalculator.theResultShouldBeOutputOnTheScreen(FactorialCalculator.java:47)\r\n\tat ✽.Then the result should be 65 on the screen(com/xpandit/automation/cucumber/2_factorial_error.feature:11)",
"status": "FAIL"
}
]
}
] |