Hello all,
I am trying to fail in purpose a sampler in case it wont pass several
criteiras I have defined before.
I have this script (beanshell post processor):
if(i==4){
msg = getMessage(item,i,suggestions);
System.out.println(msg+" "+ i);
if(!msg.equals("Hi, I'm about to leave work. Need anything?")){
System.out.println("Test failed");
}
}
I want to fail the sampler in case it will get into the second if statement
and will prompt to console the fail message (additionally I want to fail the
sampler itself as a result).
Thanks,
Erez Naim | QA Lead |
<http://www.linkedin.com/profile/view?id=34323263>
<http://www.theneura.com/vCards/gilad.vcf>
<http://twitter.com/#!/giladmeiri/>
EL AL 2 Street | Herzliya
mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
<http://www.theneura.com/> website | <http://www.startupbitz.com/> blog
| <https://twitter.com/intent/user?screen_name=theneura> twitter |
<http://goo.gl/maps/ZRkg5> map