cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Importing test runs in Codebeamer through REST API

AarushiS
8-Gravel

Importing test runs in Codebeamer through REST API

Hi,

 

We have tried adding test cases in Codebeamer using REST API and Azure DevOps Pipeline and now we are trying to add test runs to the test cases through API but getting the below error-

{

    "exception": "IllegalArgumentException",

    "message": "Request must be a multipart request."

}

API used - POST /http://ip-address/cb/rest/xunitresults

I think we are missing something to the end points. It would be great if anyone could help.

 

Thanks!

2 REPLIES 2

Hi @AarushiS , the error seems to come from the way the request is crafted: in case it has a file, this usually has to be sent with the request as multipart. I believe threads like https://stackoverflow.com/questions/16015548/how-to-send-multipart-form-data-request-using-postman could help to get an idea, but this can also be asked in the Postman forums: https://community.postman.com/t/video-how-to-send-multipart-form-data-request-file/51517 

Hi Alfonso,

 

I have followed 1.14.37.4 Batch test result update part in the wiki - REST API (v1) (codebeamer.com) but we haven't added the file yet in the Postman, only the JSON script is added. Is it why it is creating such error ? 

 

Top Tags