Unable to execute DevTest API Test from Jenkins CA SV Plugin

Document ID : KB000115356
Last Modified Date : 19/09/2018
Show Technical Document Details
Issue:
Receiving error in Jenkins when API test triggered. Below is the error message 


Building in workspace C:\Program Files (x86)\Jenkins\workspace\CADevTest-API 
Deploying Test MAR file: DevTest_config_info.mari 
To DevTest API located on 13.90.226.118:1505 
Deployment of the test/testsuite failed! 
ERROR: Status code is 400 
Response body from DevTest is: {"error":{"type":"IllegalArgumentException","message":"Our audit file is either missing or we are not a model archive or are corrupt."}} 
Parsing report 
Parsing suites 
Parsing cases 
[Zephyr Enterprise Test Management [INFO] Examining test results... 
null 
Error parsing surefire reports. 
Please ensure "Publish JUnit test result report is added" as a post build action 
Build step 'Publish test result to Zephyr Enterprise' marked build as failure 
Finished: FAILURE
Environment:
DevTest 10.3
Cause:

Using a MARI file instead of a MAR field caused the issue. 

The Error shows  what file is used.  
Deploying Test MAR file: DevTest_config_info.mari 

Resolution:

To deploy and start test cases and test suites, select the Test Type from the drop-down list and enter the MAR file path in the MAR file field. 

The chosen Test Type must match the contents of the MAR file. 

Additional Information:
https://docops.ca.com/devtest-solutions/10-3/en/using/using-jenkins-plugin-for-ca-service-virtualization#UsingJenkinsPluginforCAServiceVirtualization-DeployTestCasesandTestSuites
  • Deploy Test Cases and Test Suites