* @param map
* Case Step map
* @return Test Case
*/
public static TestCaseStep getTestCaseStep(Map<String, Object> map) {
TestCaseStep step = null;
if (map != null && map.size() > 0) {
Object o = map.get(TestLinkResponseParams.ID.toString());
if (o != null) {
Integer id = Integer.parseInt(o.toString());
if (id > 0) {
step = new TestCaseStep();
step.setId(id);
step.setActions(getString(map,
TestLinkResponseParams.ACTIONS.toString()));
step.setActive(getBoolean(map,
TestLinkResponseParams.ACTIVE.toString()));
Integer executionTypeValue = getInteger(map,
TestLinkResponseParams.EXECUTION_TYPE.toString());
ExecutionType execution = ExecutionType
.getExecutionType(executionTypeValue);
step.setExecutionType(execution);
step.setExpectedResults(getString(map,
TestLinkResponseParams.EXPECTED_RESULTS.toString()));
step.setNumber(getInteger(map,
TestLinkResponseParams.STEP_NUMBER.toString()));
}
}
}