Bret wrote
You can also just use Regexp.escape() in IRB to see what would be
escaped and therefore what special characters are in your string.
irb Regexp.escape javascript:PC_7_0_G6_selectTerritory('1',%20'select')
= javascript:PC_7_0_G6_selectTerritory\\('1',%20'select'\\)
Nice. I'll put
Hi,
I am having difficulties using regex and clicking on a link.
the full link is:
javascript:PC_7_0_G6_selectTerritory('1',%20'select')
the regex I am using is:
$ie.link(:url, /javascript.*selectTerritory('1',%20'select')/).click
and I receive an UnknownObjectException
thanks
aidy
Hi,
As you may know Test::Unit does ! include an assert_false.
I got this from the CLR archives.
Enter this in assertations.rb
public
def assert_false(boolean, message=)
_wrap_assertion do
assert_block(assert should not be called with a block.) {
!block_given? }
We are using watir in our project, and we want to do the
Parameterization for few things in the script using excel sheet.
Before I run my tests, I input test data through the GUI, using a CSV. Here
is some code, but a pretty simple thing to do.
def enter_employees()
the problem is that when I put 'rescue=e' statement I catch exception
and report shows that test pass
If you rescue the exception is it not swallowed up?
do you then not need to invoke the exception message and the stacktrace?
rescue = e
p e.message
p e.backtrace
and then
Hi,
I have started a blog on Watir.
http://www.agiletester.co.uk/
The formatting isn't done as yet, and there is still much to add.
Cheers
aidy
---
This message and any attachment
Hi Charley,
You can also define your own assertions using assert_block.
assert_block Couldn't do the thing do
do_the_thing
end
I am looking at the test unit assertion.rb at the moment, but I don't fully
understand what you are getting at here.
Could you elaborate, please?
Aidy
There are couple of us working towards a framewok here which includes
connections to Oracle and Excel. I'll start writing a blog from today and
let you know the URL.
Cheers
aidy
---
Hi,
Can we log a message to TEST::UNIT independent of an assertion or a
'flunk'?
Cheers
aidy
---
This message and any attachment are confidential and may be privileged or
otherwise
Can anyone tell me, how to read XML file using watir/r
Use REXML
http://www.germane-software.com/software/rexml/
aidy
---
This message and any attachment are confidential and may be
Hi,
I have a list
UL
LIHINCKLEY/LI
LIHINDHEAD/LI
LIHINTON ST GEORGE/LI
/UL
Is it possible to verify the contents of the list elements in sequential
order and that nothing else is in this list. Bit of a tricky one I think!
Cheers
Aidy
Hi,
The London Ruby User Group have hoisted up a site of Ruby presentations.
Two that may be of interest to us are:
1) ruby_testing_techniques
2) ruby_dsl_presentation_tiest_2006
http://svn.lrug.org/lrug_sandbox/presentations/
aidy
HI,
The version of watir is shown in the err msg below. The browser is
definitely going back to the previous HTML page, yet I
receive this exception:
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1054/./watir.rb:1500:in
`method_missing': GoBack (WIN32OLERuntimeError)
Should I catch the
Hi,
Thanks for the links, but is it possible to syntax highlight in the IRB cmd
shell through IRBC?. Can't see anything in pickaxe.
Aidy
---
This message and any attachment are
In my application the user needs to do mouseover to do some functionality
Can't you send a WM_MOUSEMOVE message?
aidy
Hi,
Is it possible to retrieve data from specific tags? For example I just want
to pull out the textual node from this:
div class=tnt-view-part-errorsdiv class=tnt-errorThe user is
assigned to territories after the specified end date/div/div
Cheers
Aidy
I think we got a problem with RegEx watir 151.1054
this'll work fine
def password_field;$ie.text_field(:name, 'password');end
this
def password_field;$ie.text_field(:name, /password/);end
rurturned on error of
test failed: \nOLE error code:0 in Unknown\n No Description\n
HRESULT
Zeljko wrote:
ie.div(:class, tnt-error).text
top dollar.
aidy
_
---
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure.
I use Arachno Ruby (http://ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php
). Take a look.
supports only 1.8.2. and the beta for 1.8.4 ([for me] kept crashing). Would
like peoples experience on Rad Rails though.
aidy
I have ruby 1.8.4 and official version of Arachno works at my windows
machine
But there is no de-bugging with this version and 1.8.4. Am I correct in
saying that?
aidy
---
This message
What happens when you start debugger? Nothing?
Crashes. But the last time I used it was over a month ago.
Aidy
---
This message and any attachment are confidential and may be
Chris Wrote:
a) make it open-source. Otherwise it's too hard to answer questions
about it.
The CSDDT is open source, simple, agile and easy to use.
b) write in Ruby, because that's what the people using the
framework will be using.
Will all be in Ruby; the good thing about Ruby (unlike
The CSDDT is open source, simple, agile and easy to use.
Is it already available to use? It sounds like it is already available to
use.
The CSDDT is open-source, I made amendmentts to it under the name of Adrian
Rutter. It is writen in BASIC. I am going to convert that code to Ruby.
Bret wrote
Thanks for the heads up that you are using two different names on this
list. I thought you were two different people.
I changed my surname recently because of family problems.
Aidy
Bret wrote
People interested in CSDDT may want to take a look at Just Enough
Software Test Automation, which contains a 50-page chapter on the framework
The original CSDDT and code and my changes with a full explanatory
word-document should be on the Rational Users site.
Bret wrote,
Have you compared the Posey data driven framework with the Nagle data
driven framework? (http://safsdev.sourceforge.net)
Has anyone? I would like to know how they compare.
[this has gotta be quick cos gotta go]
The CSDDT is tied to the test-tool, it is simple and fast; but you
What do u mean by CSDDT?
Control Synchronized Data-Driven Testing written by Bruce Posey and
outlined in the book 'Just Enough Software Test Automation' I amended it to
make it more at the atomic level.
Have a look at the link I sent you.
aidy
Control Synchronized Data Driven Testing (CSDDT)
Bruce wrote it, I amended it.
The document I wrote on it is here
http://www.scionlabs.com/using_rational_robot.zip
The framework is simple and portable (agile? I think). Spoke to Bruce and
he is very interested in Watir.
I am CC'ing
Michael Bolton wrote
aidy If there was a way to use Ruby to test Java and old win32
mb Check out SYSTIR.
mb http://atomicobject.com/systir.page
I cannot see for the life of me how SYSTIR could help to test legacy win32.
The only thing I could think of is embed C in Ruby, to integrate
29 matches
Mail list logo