On 31/05/07, Bret Pettichord [EMAIL PROTECTED] wrote:
However, i still have no idea what you are trying to do. Why do you want
to instantiate a test case?
Hi Bret,
Each page has its own class. So for example the Login Class will hold
its own object map and methods relating to that page
code
: aidy lewis [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Sunday, June 03, 2007 1:27 AM
Subject: Re: [Wtr-general] instantiate a class that inherits from Test::Unit
On 31/05/07, Bret Pettichord [EMAIL PROTECTED] wrote:
However, i still have no idea what you are trying to do. Why do you
Paul Rogers wrote:
why not put your login code into a login class, and have th test class
instantiate that
+ 1
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 30/05/07, Bret Pettichord [EMAIL PROTECTED] wrote:
aidy lewis wrote:
#Is it possible to instantiate a class that inherits from Test::Unit
Yes it is. Why do you ask? Did you try this and run into trouble? What
kind of trouble?
Hi Bret,
If I write this
code
require 'test\unit'
class
aidy lewis wrote:
If I write this
code
require 'test\unit'
class Login Test::Unit::TestCase
end
login = Login.new
/code
I receive
'in `initialize': wrong number of arguments (0 for 1) (ArgumentError)'
You will want to review the rdoc for test-unit:
#Hi
#Is it possible to instantiate a class that inherits from Test::Unit
require 'test\unit'
class Login Test::Unit::TestCase
def username;$ie.text_field(:name, 'username');end
def password;$ie.text_field(:name, 'password');end
def sign_in;$ie.button(:alt, /Log in/);end
def
Hi Aidy,
You can mix in the assertions if that's all you're looking for:
On 5/30/07, aidy lewis [EMAIL PROTECTED] wrote:
#Hi
#Is it possible to instantiate a class that inherits from Test::Unit
require 'test\unit\assertions'
class Login # Test::Unit::TestCase
include
aidy lewis wrote:
#Is it possible to instantiate a class that inherits from Test::Unit
Yes it is. Why do you ask? Did you try this and run into trouble? What
kind of trouble?
___
Wtr-general mailing list
Wtr-general@rubyforge.org