Re: [Wtr-general] Help Object Repository?

2005-08-01 Thread Alex Verhovsky

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
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Help Object Repository?

2005-07-31 Thread Bret Pettichord
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.


Last week i paired with Elisabeth Hendrickson and Andy Tinkham and we 
started working on what it would take to implement this.


Bret

At 08:45 PM 7/28/2005, Hue Mach Dieu wrote:


Dear ALL,
Does anyone have define all object in one file and these object
reference by other test cases like [QuickTest Pro] or [Silktest] object
repository

# ObjectRepository
require 'watir'
include Watir

@ie = IE.new
@obj_leftFrame = @ie.frame("leftframe")
@obj_btnSubmit = @ie.frame("rightframe").button(:name, "Submit")

I create test case
# testcase

..
@ie('http://localhost:8080')
...
@obj_btnSubmit.click


But it don't work

Thank you for help


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


_
 Bret Pettichord
 www.pettichord.com

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Help Object Repository?

2005-07-28 Thread Raghu Venkataramana

W are currently in the process of migrating a fairly large set of testcases
from Quicktest pro to Watir. The job also involves converting the objects
that Quicktest uses into an equivalent that Watir could use. We are using
Quicktests's descriptive programming model and Qantom.org's XML
Repository. We plan to be ready with a framework that will allow Watir
to use the XML repository by Mid-August time frame. Once ready, using
objects in Watir will be more managable. For example a script to search
for watir in google would be:

Repository("MainBrowser").goto "http://www.google.com";
Repository("google_search_edit").set "Watir"
Repository("google_search_btn").click

To take a quick look at how the XML Repository works for Quicktest(also
a sneak preview of what's coming up for Watir), please visit
   http://qantom.shubharaghu.com/html/dor_parser.html
and read through the tutorials page.

Thanks
Raghu




Hue Mach Dieu wrote:


Dear ALL,
Does anyone have define all object in one file and these object
reference by other test cases like [QuickTest Pro] or [Silktest] object
repository

# ObjectRepository
require 'watir'
include Watir

@ie = IE.new
@obj_leftFrame = @ie.frame("leftframe")
@obj_btnSubmit = @ie.frame("rightframe").button(:name, "Submit")

I create test case
# testcase

..
@ie('http://localhost:8080')
...
@obj_btnSubmit.click


But it don't work

Thank you for help


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

 



___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] Help Object Repository?

2005-07-28 Thread Hue Mach Dieu

Dear ALL,
Does anyone have define all object in one file and these object
reference by other test cases like [QuickTest Pro] or [Silktest] object
repository

# ObjectRepository
require 'watir'
include Watir

@ie = IE.new
@obj_leftFrame = @ie.frame("leftframe")
@obj_btnSubmit = @ie.frame("rightframe").button(:name, "Submit")

I create test case
# testcase

..
@ie('http://localhost:8080')
...
@obj_btnSubmit.click


But it don't work

Thank you for help


___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general