Question

Send Attachment files over POST Request (API)

  • 4 March 2024
  • 1 reply
  • 29 views

Badge

 

Hello, I'm currently testing a few rest interfaces. There is a POST request where attachments are included. (multipart)

When I create and execute the request via "API Scan", it works perfectly.

 

But if I create and run the same test case in Tosca under "API TESTING", then I get an error message. "No element was found for path 'documentTypes' with value 'C:\Users\..."

and

“No element was found for path 'files' with value 'C:\Users\...”

 

Modul:

Testcase:

LOG:

 

I can't solve the problem. I hope you have a solution for me.

Thanks

BR Franz


1 reply

Badge

Hi, have you been able to find the cause of this and/or a solution?

I get a similar error message: “No element was found for path '/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='someElement']' with value ''.

Reply