Bret Pettichord wrote:
This is high on my list to make this work. Many people expect it to
work this way and are surprised when it doesn't.
At 08:45 PM 7/28/2005, Hue Mach Dieu wrote:
Does anyone have define all object in one file and these object
reference by other test cases like [QuickTest Pro] or [Silktest] object
repository
I take it, you are talking about page definitions, declarative style. I
was thinking to write little something for our project that would allow
me to declare UI elements in various pages, such as:
test/watir/gui_maps/login.yml :
url : /login.aspx
user_name : @ie.text_field(:id, 'user_name')
password : @ie.text_field(:id, 'password')
submit_button : @ie.button(:id, 'submit')
test/watir/test_login.rb
ie = IE.new
GuiMaps.set_app_root APP_ROOT_URL
...
# go to login page and perform login
GuiMaps.connect(ie, 'login') do |login_page|
login_page.user_name.set_value('me')
login_page.user_name.set_value('mypassword')
login_page.submit_button.click
end
# now we should be at main page
GuiMaps.apply_map(ie, 'main') do |page|
...
end
...and so on
Is that roughly what you are after?
Best regards,
Alex
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general