Skip to content

Instantly share code, notes, and snippets.

@smarigowda
Created January 23, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarigowda/50cf3854d5d5dcbc9aaa3d6a5b529d1a to your computer and use it in GitHub Desktop.
Save smarigowda/50cf3854d5d5dcbc9aaa3d6a5b529d1a to your computer and use it in GitHub Desktop.
SOASTA CloudTest Validation Scripts
var message = $context.currentItem;
var statusCode = message.getResponse(message.RESPONSE_HTTP_STATUSCODE);
//$context.result.postMessage($context.result.LEVEL_INFO, 'Output.... ' + statusCode);
if ( statusCode != '200' ) {
result = false;
} else {
result = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment