* @param Test 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.executionType.toString() );
ExecutionType execution = ExecutionType.getExecutionType( executionTypeValue );
step.setExecutionType( execution );
step.setExpectedResults( getString(map, TestLinkResponseParams.expectedResults.toString()) );
step.setNumber( getInteger(map, TestLinkResponseParams.stepNumber.toString()));
}
}
}
return step;