Description
This method sets/updates the value of a given Organization Variable; any Attribute who's Generator parameters are referencing the Organization variable, will automatically use the updated value.
Exceptions
The following GenRocket exceptions may be thrown by this method:
- If the runtime instance is currently running another Scenario.
- If the requested name is not found.
- If the requested value is not found.
Runtime Method Signature
Use this method signature when directly accessing the GenRocket binary runtime.
public void organizationVariableSet(String name, String value)
REST/Socket Payload Request
Use this API JSON request payload when making an API call to the GenRocket REST or Socket Engine.
{ "interfaceType": "Manual", "methodName": "organizationVariableSet", "parameters": { "name": "org.User.loopCount", "value": "10000" } }
REST/Socket Payload Successful Payload Response
The API JSON response payload for this method will be empty.
{ "responseType": "OK", "data": "" }