I have a requirement like this -
- feature1 calls the featurebase file.
- In featurebase file, I am reading a json.
- I want to configure the file reading via featurefile1.
I have my scripts like this.
FeatureBase -
Background:
* url baseUrl
* def requestBody = read('#(file)')
Feature1 -
Background:
* url baseUrl
* def callFeature = call read('FeatureBase.feature') { file: 'json1.json'}
This code doesn't work and gives me file not found error.