apache / apache/jmeter

cURL Import : Query parameters should be added in 'Parameters' section instead of request path.

Open
#5,334 2 comments 0 reactions 0 assignees View on GitHub
enhancement os: All P3
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

@dineshb-qa ([Bug 64523](https://bz.apache.org/bugzilla//show_bug.cgi?id=64523&redirect=false)):
Steps to Reproduce :
- Click on "Import from cURL" option.

- Enter below GET request into "Create Test Plan from cURL" text box

curl 'https://completion.amazon.com/api/2017/suggestions?session-id=131-1551655-4391227&customer-id=&request-id=QN2EE4PFV5S1A9W82RE5&page-type=Gateway&lop=en_US&site-variant=desktop&client-info=amazon-search-ui&mid=ATVPDKIKX0DER&alias=aps&b2b=0&fresh=0&ks=80&prefix=laptop&event=onKeyPress&limit=11&fb=1&suggestion-type=KEYWORD&suggestion-type=WIDGET&_=1592195899512' \
-H 'Connection: keep-alive' \
-H 'Accept: application/json, text/javascript, */*; q=0.01' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36' \
-H 'Origin: https://www.amazon.com' \
-H 'Sec-Fetch-Site: same-site' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Referer: https://www.amazon.com/' \
-H 'Accept-Language: en-US,en;q=0.9' \
--compressed

- Click on "Create Test Plan" button.
- Observe that :
-- Request get parsed correctly but all the query parameters are added into the request path
-- The query parameters should be added into 'Parameters' section as key-value pair, so it will be easier for the user to update their values.

Expected Result :
- Query parameters should be added in 'Parameters' section instead of request 'Path' after cURL import.

Actual Result :
- Query parameters get added in request 'Path' after cURL import.

Screenshot : query_params_added_in_path.png

Created attachment [query_params_added_in_path.png](https://apache.github.io/jmeter-bugzilla-attachments/23/64523/37313/query_params_added_in_path.png): Query parameters added in request path

Query parameters added in request path

OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.