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
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
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
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
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
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
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?
test
___
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
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
---
> 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
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
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
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:
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
___
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
45 matches
Mail list logo