jcoronax2
7/2/2018 - 6:28 PM

Mock Service SoapUI

Permitir escoger un response de SoapUI

def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent ) 
def numIdentificacion = holder["//v1:valNumeroIdentificacion"]

if(numIdentificacion.equals("1234")){//CCV
return "CCV ACTIVA";
}else if(numIdentificacion.equals("1111")){//CCV
return "CCV SIN ASIGNAR";
}else if(numIdentificacion.equals("2222")){//CCV
return "CCV BLOQUEADA";
}else if(numIdentificacion.equals("3333")){//CCV
return "CCV BLOQUEADA SEG";
}else if(numIdentificacion.equals("4444")){//CCV
return "CCV EXPIRADA";
}else if(numIdentificacion.equals("5555")){//CCV
return "CCV INACTIVA";
}else{//Token
return "TOKEN";
}