LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-14-2011, 07:58 AM   #1
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
Question [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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selenium brownie_cookie Linux - Newbie 0 04-12-2011 01:43 AM
Selenium rc punitjain Suse/Novell 1 09-17-2009 11:13 AM
Mulitiedia windows mock IMAC Linux - Software 1 04-28-2005 04:07 AM
Mock Beauty Pagent Spaz17 General 4 02-26-2004 10:11 PM
Dreamweaver Mock? lramos85 Linux - Software 3 01-05-2004 08:07 PM


All times are GMT -5. The time now is 07:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration