[Wtr-general] Dissapearing text fields

2007-07-18 Thread Lee
I am writing some tests for a web application, and my initial code in one of the tests was something like this: =begin setup code and includes/requires watir =end =begin other tests needed to get to this point =end def FileCompanyInfo if $browser.text_field(:name, 'Name').exists? then

Re: [Wtr-general] Dissapearing text fields

2007-07-18 Thread marekj
I assume you say that this line fails: assert($browser.text_field(:name, 'Name').exists?) in test_FileCompanyInfo Tricky... Are there other def test_ in the class? My immediate hunch is that tests run alphabetically and not sequentially if you have more than one. could be that the test runs

Re: [Wtr-general] Dissapearing text fields

2007-07-18 Thread Lee
I did some other searches, and found something that said that test runner executes them randomly, so I renamed my tests like it had suggested , test_000_name1 test_001_name2 etc to force the ordering, and it worked. There were multiple tests, but they had to be run in sequence. Thanks, that

Re: [Wtr-general] Dissapearing text fields

2007-07-18 Thread marekj
On 7/18/07, Lee [EMAIL PROTECTED] wrote: I did some other searches, and found something that said that test runner executes them randomly, well, not 'randomly' but alphanumerically. test unit is built in a such a way as not to introduce dependency between tests in a test case class. That