title: How to upload xml file in karate with key value pair multipart form data?
body: <p>I am trying to automate an API, which has a POST method and which requires XML file as parameter and key. I am not able to do it. Can someone help me?</p>
  
  <p>Sample code:</p>
  
  <pre><code>Feature: Sample API Test
  
    Scenario: POST API Test
      Given url 'some url'
      And multipart file file= {filename: 'somefile.xml', contentType:'application/xml'}
      And header content-type = 'multipart/form-data'
      When method post
      Then status 200
  </code></pre>