Alexey_test
7 years agoNew Contributor
How to use a project property in mock service resource path
Hello
How to use a project property in mock service resource path?
I have a project property accountNumber and it works well in requests, but doesnt work in resource path of mock service. Can please sone one explain to me how to use it in resource path
/api/v1/account/${#Project#accountNumber}/corporate_card_sign
This is quite strange. So the property is available in the Mock Service itself when accessed in a OnRequest/AfterRequest script but it can't be referenced from the resource path. I tried both referencing it normally (like ${#Project#property}) and also with property expansion ( ${=context.expand('${#Project#context}')} ).
I honestly think this is a bug/ missing feature.