Cleicy Guião
Cleicy Guião

Reputation: 111

Variable Path Param for GET request in Jmeter

I'm testing a GET request using Jmeter, this request has path parameter:

rest/V1/autobusca/marketplace/product/:productSku

I'm trying to send the parameter in two different locations

  1. Send Parameters With the Request
  2. And I insert a "User Parameters" as productSku and the value.

I noticed the code response is 200, but the body response is "[]", but when I send it using Postman the response body has a lot of information.

If I change the path in the request like this:

rest/V1/autobusca/marketplace/product/${productSku}

I noticed the code response is 404. Can you help me?

Upvotes: 0

Views: 943

Answers (1)

Heaven Lalpuriya
Heaven Lalpuriya

Reputation: 21

Use "//" instead of "/".

Correct URL will be : rest/V1/autobusca/marketplace/product//${productSku}

Upvotes: 0

Related Questions