I am using the path keyword from Karate API framework to make a request. The path is a stored in a variable that is returned from another feature file. However, I am not able to pass '?'. Here is what I am doing:
I have a 'paths.feature' file that gets all the paths for my subsequent requests. Below is an example of a path returned:
/LegalEntity/{legalEntityId}/taxidentifier/{Id}?formId=captureCustomerContact&subformid=taxIdentifierSimplified
I then "replace" the params like below:
/LegalEntity/43/taxidentifier/13?formId=captureCustomerContact&subformid=taxIdentifierSimplified
I then call this feature file from a new feature file and pass the stored variable (def) into the path, however, the URL does not ignore the '?' and the test fails. Any pointers or help would be appreciated. Thanks
ERROR
/LegalEntity/43/taxidentifier/13%3FformId=captureCustomerContact&subformid=taxIdentifierSimplified