Re: [Wtr-general] regex url

2006-09-29 Thread Adrian Lewis
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

[Wtr-general] regex url

2006-09-28 Thread Adrian Lewis
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

[Wtr-general] assert_false

2006-09-26 Thread Adrian Lewis
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? }

Re: [Wtr-general] Parameterization of data in the watir

2006-09-21 Thread Adrian Lewis
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()

Re: [Wtr-general] report failure question?

2006-09-21 Thread Adrian Lewis
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

[Wtr-general] Towards Automated Test Framework Using Ruby and Watir

2006-09-20 Thread Adrian Lewis
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

[Wtr-general] test_output

2006-09-19 Thread Adrian Lewis
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

Re: [Wtr-general] Paramatrization of the data in WATIR

2006-09-18 Thread Adrian Lewis
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 ---

[Wtr-general] logging a msg to TEST::UNIT

2006-09-13 Thread Adrian Lewis
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

Re: [Wtr-general] Reading XML using watir/ruby

2006-08-17 Thread Adrian Lewis
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

[Wtr-general] verify html list and that that list is in sequential order

2006-08-16 Thread Adrian Lewis
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

[Wtr-general] ruby_testing_techniques

2006-08-15 Thread Adrian Lewis
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

[Wtr-general] ie.back

2006-08-10 Thread Adrian Lewis
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

Re: [Wtr-general] AWESOME Ruby Hacks

2006-08-03 Thread Adrian Lewis
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

Re: [Wtr-general] Handling of the Mouse Over using watir

2006-08-03 Thread Adrian Lewis
In my application the user needs to do mouseover to do some functionality Can't you send a WM_MOUSEMOVE message? aidy

[Wtr-general] retrieve data from a specific tags

2006-08-01 Thread Adrian Lewis
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

[Wtr-general] RegEx 151.1054

2006-08-01 Thread Adrian Lewis
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

Re: [Wtr-general] retrieve data from a specific tags

2006-08-01 Thread Adrian Lewis
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.

Re: [Wtr-general] Newbie - Ruby dev IDE question

2006-07-31 Thread Adrian Lewis
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

Re: [Wtr-general] Newbie - Ruby dev IDE question

2006-07-31 Thread Adrian Lewis
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

Re: [Wtr-general] Newbie - Ruby dev IDE question

2006-07-31 Thread Adrian Lewis
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

Re: [Wtr-general] Keyword Framework UI

2006-07-28 Thread Adrian Lewis
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

Re: [Wtr-general] Keyword Framework UI

2006-07-28 Thread Adrian Lewis
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.

Re: [Wtr-general] Keyword Framework UI - OT

2006-07-28 Thread Adrian Lewis
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

Re: [Wtr-general] Keyword Framework UI

2006-07-28 Thread Adrian Lewis
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.

Re: [Wtr-general] Keyword Framework UI

2006-07-28 Thread Adrian Lewis
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

Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Adrian Lewis
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

Re: [Wtr-general] Keyword Framework UI

2006-07-26 Thread Adrian Lewis
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

[Wtr-general] Fw: was (thanks for the help) now SYSTIR

2006-07-26 Thread Adrian Lewis
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