[Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Tiffany Fodor
Hi all! I'm trying to use the verify method from assertions.rb, but I keep getting the following error: undefined method 'verify' for main:Object (NoMethodError) I've added require watir/assertions to the beginning of my script, but still can't use the verify method. Is anyone else using

Re: [Wtr-general] NoMethodError for verify method in assertions.rb

2007-07-05 Thread Tiffany Fodor
I just added that line to the rest of the require/include statements at the beginning of my script and it did the trick. Thanks so much! -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread Tiffany Fodor
Thanks for the suggestion! I tried it and I'm pointing to the correct link, so I still don't know what my problem with this is. Looking up objects using IRB did help me with a different issue I was working through, however! ___ Wtr-general mailing

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-28 Thread Tiffany Fodor
Paul, Thank you, thank you, thank you I had moved on, assuming there was something weird about the way the login was working. This morning, I added a new test case that wasn't in alphabetical order and I've been beating my head against my desk trying to figure out why debug statements

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-27 Thread Tiffany Fodor
Thanks for the suggestion, but I don't think that's my problem. I've continued adding tests to the framework and I have the assert method in my other tests as well. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-26 Thread Tiffany Fodor
*Sorry - here is my harness code (I've simplified it by removing the XLS interface code and addAccounts test so that it might be easier to drill down on the problem. I have run this code to make sure the problem still happens.):* require win32ole require watir require test/unit require

Re: [Wtr-general] UnknownObject Exception when running test cases

2007-06-26 Thread Tiffany Fodor
After some tinkering, I think I've figured out my problem. It seems the Test::Unit::TestCase functionality is expecting to open files and run them as test cases rather than calls to methods in other files. I was hoping to get all the data I need from a spreadsheet once, with the harness code,

Re: [Wtr-general] Using Excel

2007-06-25 Thread Tiffany Fodor
I've been using the XLS interface class to get data for data-driven tests, but now I'd like to write data out to an Excel spreadsheet. Does anyone know if there is a list of the available methods for the XLS interface class? The documentation at

[Wtr-general] UnknownObject Exception when running test cases

2007-06-25 Thread Tiffany Fodor
Hi! I'm creating a test harness that will first collect all of the data necessary to run the test cases then then execute the test cases. Here's the code that is calling the test cases: class TestScript Test::Unit::TestCase def test_login login($producerName,

Re: [Wtr-general] Using Excel

2007-06-25 Thread Tiffany Fodor
Thanks so much David! I've been using your XLS class for lots of data-driven tests - I really appreciate all the work you've put into it! It's certainly made my life easier. -Tiffany ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] test/unit argument error

2007-06-25 Thread Tiffany Fodor
I'm not sure if you just had a typo when you copied your code, but you're missing an open parenthesis when you call your Login class. myLogin1 = Login.ne.testing.com, tester, pwd) ___ Wtr-general mailing list Wtr-general@rubyforge.org

[Wtr-general] Select the first item in a list

2007-06-22 Thread Tiffany Fodor
Hi all! I have a group of three tiered select lists - the first one defines what values will appear in the second and then the value selected in the second defines what values will appear in the third. For my testing, I don't really care what value is selected in the second and third lists, I

Re: [Wtr-general] Select the first item in a list

2007-06-22 Thread Tiffany Fodor
Thanks so much for the quick reply and suggestion! Unfortunately, it didn't work - no error was generated from the command, but it didn't select a value in the list either. I could see the field highlighted in yellow as watir 'touched' it, but no value was selected. -Tiffany

Re: [Wtr-general] Select the first item in a list

2007-06-22 Thread Tiffany Fodor
Thanks for the suggestion! My problem is that the first value in the second list could be one of many different values, depending on what the selection in the first list is. I just want to select the first value, no matter what it is. -Tiffany ___

[Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
Hi all! I'm using the new Excel interface class to retrieve data from a spreadsheet for testing our web app. One field on our website is giving me fits. I've verified with IE Developer that the field is Business Income/Extra Expense/Rental Value_0 The line in my script (#126) that writes

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
Thanks so much for the suggestion and quick resonse, but I tried single quotes and got the same error. I've also tried finding the object using :class (not great since I may have multiple fields with the same class) and :title. When I used :class, I got the same error as before. When I

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
D'Oh! I was so focused on that field name that I didn't notice I forgot to update my script with the new name of that row in my spreadsheet. I was trying to enter a value that didn't exist in my hash. It works fine now. Thanks so much for your help and quick responses! -Tiffany

[Wtr-general] Need help with excel interface class

2007-05-15 Thread Tiffany Fodor
Hi! I'm new to Watir, but I've come as far as creating my first test case. I'd like to start using data from an excel spreadsheet for my tests, so I've installed the new excel interface class. However, I'm having trouble getting the example tests to run. I get the following error message:

Re: [Wtr-general] Need help with excel interface class

2007-05-15 Thread Tiffany Fodor
I'm going to answer my own question in case it helps someone else out in the future... My script called the Xls interface with the following command: require 'Xls' Ruby couldn't find it, so I specified a path to Xls: require 'watir/contrib/Xls Now my script can implement the Xls interface.