[Wtr-general] How to get the return code during script running?

2007-04-09 Thread Jason He
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

Re: [Wtr-general] About the execution speed of waitr/ruby

2007-04-06 Thread Jason He
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,

Re: [Wtr-general] About the timeout of waitr

2007-03-28 Thread Jason He
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

[Wtr-general] How to get report message after running every test case

2007-03-27 Thread Jason He
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

Re: [Wtr-general] How to get report message after running everytest case

2007-03-27 Thread Jason He
@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

[Wtr-general] About the timeout of waitr

2007-03-27 Thread Jason He
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?

[Wtr-general] How to send the attachment by mail in Watir/Ruby

2007-03-19 Thread Jason He
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

[Wtr-general] How to output brief/detail information when do logging

2007-03-16 Thread Jason He
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

[Wtr-general] Is there a global variable to control the scripts execution speed

2007-03-11 Thread Jason He
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

Re: [Wtr-general] How to make sure that script run in line squencerather than alphabetical sequence when using load

2007-03-08 Thread Jason He
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.

[Wtr-general] What is the funtion in Ruby equivalent as strrchr in C

2007-03-05 Thread Jason He
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

Re: [Wtr-general] What is the funtion in Ruby equivalent as strrchrin C

2007-03-05 Thread Jason He
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

Re: [Wtr-general] Executing all scripts at a time

2007-03-02 Thread Jason He
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

Re: [Wtr-general] Can Watir be paused resumed manuallywhenrunning test cases?

2007-03-01 Thread Jason He
. 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

[Wtr-general] How to execute other scipts called by Watir/Ruby

2007-03-01 Thread 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?

Re: [Wtr-general] How to get the localhost IP in Warit/Ruby

2007-03-01 Thread Jason He
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

Re: [Wtr-general] Can Watir be paused resumed manually when running

2007-02-27 Thread Jason He
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:

Re: [Wtr-general] Can Watir be paused resumed manually whenrunning test cases?

2007-02-27 Thread Jason He
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]

[Wtr-general] Can Watir be paused resumed manually when running test cases?

2007-02-26 Thread Jason He
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

2007-02-01 Thread Jason He
: 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

Re: [Wtr-general] How to handle the popup security alert

2007-02-01 Thread 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

Re: [Wtr-general] How to handle the popup security alert

2007-01-25 Thread Jason He
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

[Wtr-general] How to handle the popup security alert

2007-01-24 Thread Jason He
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)

Re: [Wtr-general] How to run test cases in sequence rather than atthe same time?

2007-01-22 Thread Jason He
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

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-22 Thread Jason He
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

[Wtr-general] error happened when calling verify_match() ...

2007-01-22 Thread Jason He
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

[Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
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,

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
-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

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Jason He
-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