Forum Discussion

Alexey_test's avatar
Alexey_test
New Contributor
7 years ago

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...
  • Lucian's avatar
    Lucian
    7 years ago

    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.