Re: [Wtr-general] Watir tests as how-to documents

2006-11-13 Thread Željko Filipin
At the end I decided to use Watir only. I took a closer look at application that I test and found out that there are labels for elements.input id=ctl00_subContent_userNameInput type=text label for="" id=ctl00_subContent_Label1Username/labelI added this to the end of Watir::TextField#setwhat =

Re: [Wtr-general] Watir tests as how-to documents

2006-11-10 Thread Željko Filipin
Thank you all. I will take a look at tools that you suggested.Zeljko-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Željko Filipin
You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test fails, application should be fixed, or you test should be fixed. Wouldn't it be nice to make how-to documents from that tests? Time for an example.def login_as(username, password)

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Richard Conroy
On 11/8/06, Željko Filipin [EMAIL PROTECTED] wrote: You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test fails, application should be fixed, or you test should be fixed. Wouldn't it be nice to make how-to documents from that

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Željko Filipin
What I want to do is to generate how-to documents for users of application that I test. When user clicks how-to link (or help, or whatever), there should be list:- login- do something- do something else ...- logoutSelect login and you get:- go to 'my.app/login.aspx'- there should be text 'Please

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Chris McMahon
Check out Joe O'Brien's recent rSpec post: http://objo.com/2006/11/7/rspec-7-is-outThat might get you part of the way. -Chris On 11/8/06, Željko Filipin [EMAIL PROTECTED] wrote: You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread John Lolis
I do this to a degree, but I consider it to be logging not documentation. I have 3 levels of logging (there are more, but thats besides the point) Section, Test and Details A section would be like Administration a test would Create a New User and details are Clicked 'new user', 'Set user name

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Bret Pettichord
Željko Filipin wrote: Has anybody done something like this? I am thinking of doing it, but If somebody has done it already, I would like to take a look. Systir included something along these lines. You should check it out. ___ Wtr-general mailing list

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Paul Rogers
rspec gets closest to doing this. THere is some command line option that you need to use. But I cant rememerb what it is You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test fails, application should be fixed, or you test should be