dareid / chakram

REST API test framework. BDD and exploits promises
http://dareid.github.io/chakram/
MIT License
908 stars 99 forks source link

How to send params to post call? #112

Open kagalenitin opened 7 years ago

kagalenitin commented 7 years ago

I am trying to call a URL with multiple parameters. I don't know if there is a better way in chakram to call it:

e.g. https://somesite.com/page1/token?access_type=user&username=admin&password=passw

Currently, I am passing the parameters as:

var params = "access_type=user&username=admin&password=passw" and appending to my url
var fullURL = "https://somesite.com/page1/token?"+ params

My question is, can we set params in a better way or what I am doing is the only way to pass it.