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 Test::Unit::Assertions
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 check_main_screen_objects
assert(self.username.exists?)
assert(self.password.exists?)
assert(self.sign_in.exists?)
end
end
login = Login.new
login.check_main_screen_objects
#if not how can I get round this?
#Aidy
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general