public void updateData(TestOutcomes testOutcomes) { int totalStepCount = testOutcomes.getStepCount(); int passingSteps = testOutcomes.getPassingTests().getStepCount(); int failingSteps = testOutcomes.getFailingTests().getStepCount(); int skippedSteps = totalStepCount - passingSteps - failingSteps; String buildId = getEnvironmentVariables().getValue(BUILD_ID, "MANUAL"); TestResultSnapshot newSnapshot = new TestResultSnapshot(totalStepCount, passingSteps, failingSteps, skippedSteps, buildId); try { save(newSnapshot); } catch (FileNotFoundException e) { throw new IllegalArgumentException("Unable to store history data", e); } }