def text = prev.getResponseDataAsString()
	def mResultText = text =~ /Invalid user/
     //assert 'foo'.equals('bar') : "Failure here"
    if( mResultText.find() ){
     	//AssertionResult.setFailure(true);
     	//AssertionResult.setFailureMessage("The Page contains word Invalid user" + vars.get("clinician"));
     	//log.error("assertion has failed The Page contains word Invalid user " + vars.get("clinician"));
     	log.error("user is invalid " + vars.get("clinician") + " - " + vars.get("patientID"));
     	ctx.setRestartNextLoop(true);
    }
GoBack