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

2007-06-26 Thread Manish Sapariya
Jeff Fry wrote: > Happily, setup and teardown are also optional methods for those of us > using Watir. If you don't want something to happen automatically at > the beginning of every run, don't put it in setup. Likewise with > teardown. For functional automation I often don't include these > me

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

2007-06-26 Thread maung aung
Sorry, it was a typo when i replace the dummy website address. My real code is correct one. Thanks. Maung ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

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

2007-06-26 Thread Jeff Fry
Manish Sapariya wrote: I ran into same problem and it worked. I had one question though? setup and teardown is called for every test in given test class. I don't understand the reasoning behind this usage model. setup and teardown are methods Watir scripters sometimes choose to import from Tes

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

2007-06-25 Thread Manish Sapariya
Bret Pettichord wrote: > Depending on what the rest of your code looks like, this might work, though: > > require 'watir' > require 'test/unit' > > class Login < Test::Unit::TestCase > >def setup > @site=$site > @user_name=$user_name > @passwd=$passwd > end > end

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

2007-06-25 Thread Bret Pettichord
maung aung wrote: > Hi, > When i wrote the following statement and run ruby, i got this message: > c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:64:in `initialize': wrong number > of arguments (1 for 3) ArgumentError). When i run without test/unit case, it > run just fine and no complaints. Could

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.new"www.testing.com", "tester", "pwd") ___ Wtr-general mailing list Wtr-general@rubyforge.org http://r

[Wtr-general] test/unit argument error

2007-06-25 Thread maung aung
Hi, When i wrote the following statement and run ruby, i got this message: c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:64:in `initialize': wrong number of arguments (1 for 3) ArgumentError). When i run without test/unit case, it run just fine and no complaints. Could anyone help me with this?

[Wtr-general] test

2007-06-08 Thread charley . baker
test ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] test, please ignore

2007-05-28 Thread Manish Sapariya
___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Test Data Cleanup/Reset Database in a .bat

2007-03-01 Thread Jason
Here was my solution, in case others have this problem. I used setup and the sqlcmd.exe utility to call the SQL statement from within the batch file. So, it looks like this: def setup system("sqlcmd.exe -i C:\\myproject\\CleanDatabase.sql -e -b -S x -U x -P x") end Cheers, Jason ---

Re: [Wtr-general] Test Data Cleanup/Reset Database in a .bat between tests

2007-02-26 Thread Chris McMahon
> They work if these tests are run individually. However, when I run the > class, they fail, since the TC#1 already created the user jdandy. > > So, how can I call this batch file in between each TC, with the batch file > completing before starting TC#2? You might consider making a direct datab

Re: [Wtr-general] Test Data Cleanup/Reset Database in a .bat between tests

2007-02-26 Thread Paul Carvalho
I think you might be interested in the 'setup' and 'teardown' methods. Read through the ruby-doc.org page on the Test:Unit module. On 26/02/07, Jason <[EMAIL PROTECTED]> wrote: I have numerous TC methods within a class. Before I execute the script, I have a batch file (C:\mybatchfile.bat) I r

[Wtr-general] Test Data Cleanup/Reset Database in a .bat between tests

2007-02-26 Thread Jason
I have numerous TC methods within a class. Before I execute the script, I have a batch file (C:\mybatchfile.bat) I run that basically resets the database and then performs some inserts for database setup. The test data and scripts I am creating are using the same data. For example, I have a

[Wtr-general] [Test] Ignore

2006-11-14 Thread Alan Ark
Is this turned on?  No messages for me to fall behind on since Friday   Alan Ark | Lead QA Engineer | Complí | [EMAIL PROTECTED] | office: 503.294.2020 | fax: 503.294.1200 | www.compli.com   -- No virus found in this outgoing message. Checked by AVG Free Edition. Version:

Re: [Wtr-general] Test suites in Watir problem

2006-11-06 Thread Ralica Nacheva
Thank you very much! :) I just tried your advice and it works fine. Thanks for your help :) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5078&messageID=14165#14165 ___

Re: [Wtr-general] Test suites in Watir problem

2006-11-04 Thread Charley Baker
You need to comment or remove the unittests/setup line and assign $ie to a new instance of IE, something like this (this is a simple example, you might or might not want to restart ie after every test, but should at least give you some idea of setup/teardown methods): $LOAD_PATH.unshift File.join

[Wtr-general] Test suites in Watir problem

2006-11-03 Thread Ralica Nacheva
Hello, I am quite new to Ruby and Watir I started writing some test cases and I wanted to try to tie them into a test suite but unfortunately the example shown in http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/ doesn't work for me. My test suite is very simple - just for trying out. It has

[Wtr-general] Test Harness

2006-08-01 Thread Max Russell
Please ignore my last post- I dug into my script and realized that because my asserts were wrong, the harness was spitting out errors.   Thanks for the help!   max   Max Russell test Analyst. InPS   Tel: 01382 223900 Fax: 01382 204488   Visit our Web site at www.inps.co.uk  

Re: [Wtr-general] Test::Unit Reports?

2006-06-09 Thread Adrian Rutter
polleu wrote > I had the same problem. Just this second, I was going to post back. I included this require 'stringio' (as someone did mention), and the code ran. code example: require 'test/unit' require 'test/unit/ui/reporter' require 'test/unit/ui/console/testrunner' require 'stringio' req

Re: [Wtr-general] Test::Unit Reports?

2006-06-09 Thread polleu
Hi there, I had the same problem. To fix it I import: require 'test/unit/testsuite' require 'test/unit/testsuite' require 'test/unit/ui/reporter' require 'fileutils' require 'test/unit/collector/objectspace' . In my setup file ( I have a setup file defined which is called by all test suit f

Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Adrian Rutter
Hi, Thanks for getting back to me. This is where I am with comments #require 'test/unit' #I was under the impression that this would automatically import the two requires below require 'test/unit/ui/reporter' require 'test/unit/ui/console/testrunner' require 'tc_1' require 'tc_2' class TS

Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Lillis, Dara
ngle line: Dir.mkdir('build/report') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Rutter Sent: Thursday, June 08, 2006 10:33 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Test::Unit Reports? Hi, Please forgive my ignoran

Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Lillis, Dara
27;build/report') -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Rutter Sent: Thursday, June 08, 2006 10:33 AM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] Test::Unit Reports? Hi, Please forgive my ignorance of unit test suites

Re: [Wtr-general] Test::Unit Reports?

2006-06-08 Thread Adrian Rutter
Hi, Please forgive my ignorance of unit test suites I have successfully installed Test::Unit::Reporter in my Ruby folder ruby setup.rb config ruby setup.rb install I have created two unit tests that are exactly the same apart from their class and method name class TC_1 def test_tc_1 class T

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Chris McMahon
> I think you need to "require 'stringio'" for it to work, but aside from > that it's pretty straightforwad. Alex fixed this in 'trunk'. -Chris ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Lillis, Dara
L PROTECTED] On Behalf Of Adrian Rutter Sent: Wednesday, June 07, 2006 12:24 PM To: wtr-general@rubyforge.org Subject: [Wtr-general] Test::Unit Reports? Hi, Is there anything about that sits on top of Test::Unit to produce - for example - html reports, or would it be better to log to XML, then

Re: [Wtr-general] Test::Unit Reports?

2006-06-07 Thread Charley Baker
Chris and I were just talking about this yesterday: http://rubyforge.org/projects/test-report/Reports in html or xml. -Charley On 6/7/06, Adrian Rutter <[EMAIL PROTECTED]> wrote: Hi,Is there anything about that sits on top of Test::Unit to produce - forexample - html reports, or would it be better

[Wtr-general] Test::Unit Reports?

2006-06-07 Thread Adrian Rutter
Hi, Is there anything about that sits on top of Test::Unit to produce - for example - html reports, or would it be better to log to XML, then XSLT it? Thank You Aidy --- This message a

[Wtr-general] Test::Unit::Reporter Re: Beep for intervention?

2006-06-06 Thread Chris McMahon
On 6/6/06, Charley Baker <[EMAIL PROTECTED]> wrote: > I've been using that as well for xUnit style reporting. Highly recommended > to make for nice testing reports in Cruise Control or otherwise. Just out of > curiousity what changes did he make? It's been a few years since the > release. I've los

[Wtr-general] Test Run

2005-12-15 Thread Zeljko Filipin
I have just read Low-Level Web App UI Test Automation (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/). It is about testing web applications. "...access and manipulate HTML objects in the client area of MicrosoftR Internet Explorer." I guess that most of you that develop watir have already

Re: [Wtr-general] Test File Structure and Relative Paths

2005-10-26 Thread Bret Pettichord
Gene, The first time you do "require '1_test.rb'" it will load the first file in the load path with this name. The second time you do a "require '2_test.rb'" it does nothing -- a file by that name was already loaded. You could use unique test names to make this scheme work, but I suggest you u

[Wtr-general] Test File Structure and Relative Paths

2005-10-24 Thread Eugene Kula
Greetings All, I setup a file structure to organize tests and am having problems running scripts due to the relative path. Following is an example of my file structure: webtest/ testsuite1/ testsuite1a/ alltest.rb --Queries current directory and runs all tests 1_test.rb

Re: [Wtr-general] Test Case Management

2005-09-16 Thread saud aziz
Which one are you using? I am actually in the process of evaluating Test Link. Good thing about it is that you can tie your database of test case management with bug tracker (bugzilla is somewhat supported only right now with some support for mantis in new beta). It's free and if i can tie it in m

[Wtr-general] Test Case Management

2005-09-12 Thread Cain, Mark
There may be a better forum to ask this, but since I don’t know of one here goes…   Does anyone know of a good (open source or inexpensive) Test Case Management system?  One that can keep track of my automation as well as my manual test cases?  The one am currently using is not adequate a

Re: [Wtr-general] Test suites

2005-08-22 Thread Bret Pettichord
How are you running your tests? Are you double-clicking on a script with all the requires? Instead, go to a cmd prompt and type "ruby script.rb". Then you will see the summary. It's being created all along, but when you double-click, there is no where to show it. This is also a GUI test runn

Re: [Wtr-general] Test suites

2005-08-22 Thread Jeff Wood
Lisa Crispin wrote: Eventually we want to run our tests from CruiseControl, but I think the first baby step would be actually to run a suite of tests from the command line. (Or maybe I'm wrong about that, maybe I should run each test from ant, I am not sure, I am seeking advice on this). T

[Wtr-general] Test suites

2005-08-22 Thread Lisa Crispin
Eventually we want to run our tests from CruiseControl, but I think the first baby step would be actually to run a suite of tests from the command line. (Or maybe I'm wrong about that, maybe I should run each test from ant, I am not sure, I am seeking advice on this). The test::unit doc (http://w

RE: [Wtr-general] test::unit question

2005-08-12 Thread Jonathan Kohl
Title: RE: [Wtr-general] test::unit question Using "Head First Java" as a guide, here is one simplified way to think about modules, classes and methods: Here is a module: module MyModule end Q. What goes in a Module? A. classes go in modules module MyModule class TestC

Re: [Wtr-general] test::unit question

2005-08-12 Thread jkohl
> This may have been covered in the mailing list before, I searched all > the messages I have and didn't find anything (is there a reason there > isn't a searchable archive for this mailing list?) You can search it using Google: site:rubyforge.org "[Wtr-general]" your search term > I am a Watir

[Wtr-general] test::unit question

2005-08-12 Thread Lisa Crispin
This may have been covered in the mailing list before, I searched all the messages I have and didn't find anything (is there a reason there isn't a searchable archive for this mailing list?) I am a Watir newbie, and also, not an OO programmer. I apologize up front for what is likely to be poor te

RE: [Wtr-general] test management tool question

2005-07-04 Thread Margaret Dineen
Thank you - I'll give that a go. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Unmesh Gundecha Sent: Tuesday, 5 July 2005 3:40 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] test management tool question Hi Margaret, I am using WATI

Re: [Wtr-general] test management tool question

2005-07-04 Thread Unmesh Gundecha
Hi Margaret, I am using WATIR for one of our project. We are maintaining manual test cases in Excel and Access database. We have integrated these with WATIR with the help of WIN32OLE automation. We have written some extensions which access these test cases and test plans. Regards, Unmesh --- Ma

[Wtr-general] test management tool question

2005-07-04 Thread Margaret Dineen
Hi there, I'm hoping to set up a test management system, including management of test plans, test cases, test execution etc with the test cases being either automated using Watir (or an internally-developed tool) or else manual. Has anyone out there successfully combined Watir with any other pro

Re: [Wtr-general] Test Suite

2005-07-04 Thread Shao Kang Tat
you can try something like this, so that only test_main gets run and you have complete control of the order and whatever arguments you want to pass in, if any: def test_main case1(arg1...) case2(arg1... end def case1(arg1...) ... ... end Shao On 7/4/05, so man hung <[EMAIL PRO

[Wtr-general] Test Suite

2005-07-03 Thread so man hung
Dear All, I try to use TestSuite to wrap all my testCase. I found it is sweet. But how can i pass argument to the testCase from the testSuite? Regards, Hung ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr