1

I am trying to read a property of a mock service in the Script Dispatcher

the property "contatore"

the script where i'm trying to read the property

But I get always error

No such property [..]

Reading the documentation and here

Do you know how I can archive that? Thanks

Rao
  • 20,781
  • 11
  • 57
  • 77
Manuel Spigolon
  • 11,003
  • 5
  • 50
  • 73

1 Answers1

0

Here is what you need to do in order to get the properties at Mock Service.

In the script editor, have the following code snippet:

//Assuming that you want integer value, otherwise ignore 'as Integer' in below statement
def contatoreValue = context.mockService.getPropertyValue('contatore') as Integer  
assert 1 == contatoreValue
Rao
  • 20,781
  • 11
  • 57
  • 77