Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.
Here’s an outline with best practices for making your inquiry.
My question: I have used the data variable in the URL path. It works in Postman but however it doesn’t work in Newman. It gives a Bad Request Error.
http://xxx.xxx.xxx.xxx:9999/transaction/{{Transaction_Id_Status_Finish_Ok}}?full=true&finishStatus=finishedError
It cannot replace the place holder with the value from test_data.csv {{Transaction_Id_Status_Finish_Ok}}
Please help step by step on how to use data variable in request path (not as a request param)
But in postman: It complains the same "Like variable cannot be resolved, but when I run it as a collection in postman, it all works fine
Command to run Newman:
docker run --volume ~:/etc/newman -t postman/newman_alpine33 run test_transaction.json -e transaction_environment.json -d test_data.csv
test_data.csv:
Transaction_Id,Transaction_Id_Status_Finish,Transaction_Id_Status_Finish_Ok,Transaction_Id_Status_Finish_Error,Transaction_Id_Parent,Transaction_Id_Children,Transaction_Id_history,Expected_User_Name
339306893,339306579,339306579,339306701,339306703,339306702,339306702,TEST-PERF
Details (like screenshots):
How I found the problem:
I’ve already tried: