If a request is changed to POST, then SoapUI changing all other requests into POST method

后端 未结 2 1880
情歌与酒
情歌与酒 2021-01-22 02:30

A testcase contains 2 requests and 1 groovy script.

Now 1st request is using POST method and 2nd request is using GET method.

Now I am

相关标签:
2条回答
  • 2021-01-22 03:09

    Refer my answer here:-

    http://stackoverflow.com/questions/34786729/if-a-request-is-changed-to-post-then-soapui-changing-all-other-requests-into-po/34831359#34831359
    

    there I have described a full example to achieve the issue

    0 讨论(0)
  • 2021-01-22 03:10

    You can create multiple methods under the same endpoint - this is what REST is designed to do!

    Under your "Api" resource, right-click, and select "New Method". Select this new one to be of type GET. This is going to be your "CheckingResponse". So the final hierarchy for your endpoint will look like:

    REST Project 1
    +-[REST] http://endpoint.URL/...
      +-Api [] <--- THIS IS A RESOURCE
        +-[POST] Api <--- THIS IS YOUR CURRENT METHOD
        | +-3LevelProducts
        +-[GET] Api <--- THIS IS A NEW METHOD
          +-CheckingResponse
    
    0 讨论(0)
提交回复
热议问题