Hi,
Referring to the article to add
https://community.apigee.com/articles/26716/api-proxy-team-development-with-maven.html
I am trying to add in my integration tests of api-ckli base-path as a dynamic variable ( example scenario in features file)
Given I set Content-type header to application/json When I GET base-path/5656
Currently, the entry is -
Given I set Content-type header to application/json When I GET /customers/v1/5656
Similarly, i would also need to use domain variable instead of hardcoded paths
"domain":"demo-test.apigee.net"
Before(function() {
this.apickli = new apickli.Apickli(‘https’, 'demo-test.apigee.net);
The author is suggesting to create config.json something like that -
{"myproxy":{"domain":"demo-test.apigee.net","basepath":"/customers/v1"}}
But, how can we make it environment specific as configurations e.g domain may change based on environment. Also, how can we inject/read this dynamic variable basepath in features. Do we need a hook per testcase as base-path can have a prefix too or could simply be /customers/v1.
Also, in maven plugin we have a config.json with environment-entries can they be applied on unit/integration tests.
Anyone implemented this or any have any experience please share your inputs.
thanks.