I'm using selenium for testing my website.
I have a test script which can be downloaded at exchange.nagios.com (look for check selenium).
So this is the situation:
I made a test case, I builded it in Netbeans IDE and I can test it in my CMD with the following command:
./check_selenium.sh -c "com.examples.tests.Login" -b "http://website.com" -t "*mock"
this is going great, but then when i put my website offline (so if you browse to it, you get an error that he can't connect to the website) but when i run that same command again (normally i should get an error) he says everything is OK...
when i run that same command with firefox like so:
./check_selenium.sh -c "com.examples.tests.Login" -b "http://website.com" -t "*firefox"
then he fails (which is what i want)
but WHY doesn't he fail when i use "*mock" in stead of "*firefox" ???
I hope someone can help me, because I'm almost there with this
Thanks in advance