String customFieldName,
ResponseDetails details
)
throws TestLinkAPIException
{
CustomField customField = null;
try
{
Map<String, Object> executionData = new HashMap<String, Object>();
executionData.put( TestLinkParams.testCaseId.toString(), testCaseId );
executionData.put( TestLinkParams.testCaseExternalId.toString(), testCaseExternalId );
executionData.put( TestLinkParams.version.toString(), versionNumber );
executionData.put( TestLinkParams.testProjectId.toString(), testProjectId );
executionData.put( TestLinkParams.customFieldName.toString(), customFieldName );
executionData.put( TestLinkParams.details.toString(), Util.getStringValueOrNull( details ) );
Object response = this.executeXmlRpcCall(
TestLinkMethods.getTestCaseCustomFieldDesignValue.toString(), executionData);
if ( response instanceof String )
{
customField = new CustomField();
customField.setValue( response.toString() );
}
else if ( response instanceof Map<?, ?> )
{
Map<String, Object> responseMap = (Map<String, Object>)response;
customField = Util.getCustomField( responseMap );