A
aidy
Hi,
I have an ObjectMap Class
class ObjectMap
#login
def login;$ie.link
text, 'Log in');end
def user_name;$ie.text_field
name, /userid/);end
def password;$ie.text_field
name, /password/);end
end
I have navigation and utility methods held in modules
i.e.
module Login
@map = ObjectMap.new
def login(username='aidy', password='123')
@map.login.click
@map.user_name.set(username)
@map.password.set(password)
end
end
and test classes
class A_TEST
def initialize
.....
login
.....
end
end
However, when I try to run the test class, I get a "test failed: stack
level too deep".
Not so sure why, Could anyone please help?
Kind Regards
aidy
I have an ObjectMap Class
class ObjectMap
#login
def login;$ie.link
def user_name;$ie.text_field
def password;$ie.text_field
end
I have navigation and utility methods held in modules
i.e.
module Login
@map = ObjectMap.new
def login(username='aidy', password='123')
@map.login.click
@map.user_name.set(username)
@map.password.set(password)
end
end
and test classes
class A_TEST
def initialize
.....
login
.....
end
end
However, when I try to run the test class, I get a "test failed: stack
level too deep".
Not so sure why, Could anyone please help?
Kind Regards
aidy