Application Map and Navigation\Utility methods

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

aidy wrote:

and test classes
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

Usually this means you have a deep recursive call somewhere, possibly
accidentally in this case?

-Justin