Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-06-03 Thread aidy lewis
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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-06-03 Thread Paul Rogers
: 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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-06-03 Thread Bret Pettichord
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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-31 Thread aidy lewis
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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-31 Thread Bret Pettichord
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:

[Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-30 Thread aidy lewis
#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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-30 Thread Charley Baker
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

Re: [Wtr-general] instantiate a class that inherits from Test::Unit

2007-05-30 Thread Bret Pettichord
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