jazzyekim
10 years agoOccasional Contributor
Sharing context properties between TestRunContext and Mock
Hi
Is there a way to get values stored in TestRunContext in MockRunContext ? I create an ArrayList which I initialize in SetupScript section and store it in context like that
But I am going to put some values into this requestList in Mock-OnRequest script section. Is there a way to get that value?
Misja
Is there a way to get values stored in TestRunContext in MockRunContext ? I create an ArrayList which I initialize in SetupScript section and store it in context like that
def requestList = new ArrayList<String>();
context.put("RequestList", requestList);
But I am going to put some values into this requestList in Mock-OnRequest script section. Is there a way to get that value?
Misja