Dear all,
I write every single script for each test case and start running them by a
batch file, I expect to capture the screen if those cases who get
failure/error. The problem I meet now is, how to find out immediately when a
failure/error is happen during testing. Does watir/ruby provide
Hi, Zeljko,
Follow your suggestion, I find the methods set_fast_speed
set_slow_speed, and can control the script execution speed.
I want to make it could be configurable in testing script, so write the
following code in my test script,
Thanks for your reply.
This is one case that opening a url, how about other operations such as click a
button/link/image/, fill in text field, etc. If all these operations in scripts
use this method, then the code will become not concise.
Is there a global method/variable that could simplify
Dear all,
I write some the filename of test cases in a windows bat file, execute
the bat file, and then report messages for each test case will output in
the console.
Now, in order to make statistics for these messages, could they also
output to the log file by script?
The following
@rubyforge.org
Subject: Re: [Wtr-general] How to get report message after running everytest
case
You can redirect the output of your bat file to a file:
mybat.bat results.txt
-Charley
On 3/27/07, Jason He [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
Dear all,
I write some the filename
Dear all,
What will watir do if the http server (device under test) has no
response during testing?
I find it will wait for timeout and then continue to execute the script
with error message. But, what is the value of timeout, and could that
timeout event be caught in the script?
Dear all,
After running test cases, the test result will generate as files in hard
disk, I want to send them as attachment by email, is there any way to do
it?
Thanks,
Jason
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Dear all,
I use C:\watir1145\examples\logging\example_logger1.rb to do logging, it
will output the same message both into the console and log file.
Now, I want it output brief message on the console while detail message
in the log file, in other words, the run result for each test case on
Dear all,
Does watir/ruby provide a global configuration variable which could used to
change the speed of execution, rather than add many sleep in each scripts.
Regards,
Jason
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Yes, give the class name with suffix “Sequence” can make sure the code
executing sequence according to line number in the script.
However, it seems that code in the other script won’t execute when “load”
method is embraced in the class/function block.
Dear all,
I use example_logger1.rb and test_logger1.rb
C:\watir1145\examples\logging to logging, but a problem is that the
generated log file will under the same directory with test cases,
I want put the generated logs into a separated directory.
The code in the example_logger1.rb is
your test directory
puts File.expand_path(#{f}/..) # get the directory above your test
directory
-Charley
On 3/5/07, Jason He [EMAIL PROTECTED] wrote:
Dear all,
I use example_logger1.rb and test_logger1.rb C:\watir1145\examples\logging
to logging, but a problem
I use load method, such as,
Load 'test1.rb'
Load 'test2.rb'
Load 'test3.rb', etc
These test cases could run one after one and there is only one window brought
up, although the running sequence is not according to the line sequence written
in the script.
One thing maybe need to pay attention
.
Regards,
Jason
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?eljko Filipin
Sent: 2007年2月28日 17:44
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir be paused resumed manuallywhenrunning
test cases?
On 2/28/07, Jason He
Dear all,
Because it seems that there is no available method in watir so far to
clear the popup security alert, I intend to use a workaround method such
as call other script to clear it.
Is anybody known how to invoke other script via Watir/Ruby, for example
to invoke AutoHotKey script?
Yeah, it works,
Thanks very much.
Jason
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon
Sent: 2007年3月2日 11:04
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] How to get the localhost IP in Warit/Ruby
On 3/1/07, Jason He [EMAIL
Yeah, ruby-breakpoint could pause the application, but it depends on the
program and the test condition.
How to catch keyboard input signal by manual to pause/resume the testing
process, for example using CTRL+P to pause and CTRL+R to resume.
Thanks,
Jason
-Original Message-
From:
Thank you for your reply.
I want to pause the testing process at moment and at random time length, and
resume it latterly.
Now, I want to know how to get keyboard input signal to cause ruby pause/resume.
Regards,
Jason
From: [EMAIL PROTECTED]
Hi,
I want add the pause/resume feature into the watir testing, rather than
interrupt it and restart the whole testing process.
Please anybody tell me if it is possible, or is there such solution on
hand already.
Thanks
Jason
___
: Re: [Wtr-general] How to handle the popup security alert
What error are you seeing? I wasn't saying to use IE 7 to bypass the problem,
just mentioning the differences. If you could post a snippet of code and the
error you're getting, that would be helpful.
-Charley
On 1/25/07, Jason He
] On Behalf Of Jason He
Sent: 2007年2月2日 12:38
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] How to handle the popup security alert
The following code shows a case using clearSecurityAlertBox().
---
require 'watir
On 1/24/07, Jason He [EMAIL PROTECTED] wrote:
Hi,
I'm using https to do the test, and I want to push the security alert
automatically when it popups, which of the following function is available?
clearSecurityAlertBox (WinClicker)
push_security_alert_yes (WindowHelper)
Besides
Hi,
I'm using https to do the test, and I want to push the security alert
automatically when it popups, which of the following function is available?
clearSecurityAlertBox (WinClicker)
file:///C:/watir1145/rdoc/classes/WinClicker.html#M23
push_security_alert_yes (WindowHelper)
Yes, it is not required to use test unit.
However, it seems that test unit encapsulate some methods could handle error,
as well as include some statistics for the test result.
What is the suggestion if I want to write about 200~300 standalone test cases,
which will run in a sequence, should
PROTECTED] 代表 ?eljko Filipin
Sent: 2007-1-22 (星期一) 7:43
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] How to run test cases in sequence rather thanatthe
same time?
On 1/22/07, Jason He [EMAIL PROTECTED] wrote:
However, it seems that test unit encapsulate some methods could
Hi,
I tried to use Verification methods
verify file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000186
verify_equal file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000187
verify_match
file:///C:/watir1145/rdoc/classes/Watir/Assertions.html#M000188
Included
Dear all,
I followed the test suite under directory
c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests to write
test cases.
Each case is a separate ruby file, and they are included in a list file.
Now I meet a problem about how to control the test cases run in a
predefined sequence,
-general@rubyforge.org
Subject: Re: [Wtr-general] How to run test cases in sequence rather than at the
same time?
Jason He wrote:
I followed the test suite under directory
“c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests” to write
test cases.
Each case is a separate ruby file
-general@rubyforge.org
Subject: Re: [Wtr-general] How to run test cases in sequence rather than at the
same time?
Jason He wrote:
I followed the test suite under directory
“c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests” to write
test cases.
Each case is a separate ruby file
29 matches
Mail list logo