LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Selenium] *mock ?! (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bselenium%5D-%2Amock-874970/)

brownie_cookie 04-14-2011 06:58 AM

[Selenium] *mock ?!
 
Hi all

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:
Code:

./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:
Code:

./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

Brownie


All times are GMT -5. The time now is 12:38 AM.