[wtr-general] Free WATiR and WSL talk in London 30th June
Hi All, I am due to present a talk around the use of WATiR in London. This is a free event open to the public on the evening of 30th June. You will need to register beforehand at the following site - http://skillsmatter.com/event-details/home/utilising-watir-to-test-in-an-agi le-environment The talk is around how I used WATiR to test an application we were developing in an agile development environment. The main focus of the talk is around the creation of a DSL for watir (mentioned previously in this group) - WATiR Scripting Language. You can find more information on this at http://wsl.xqoob.com http://wsl.xqoob.com/ Hope people are interested in this! Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] WATiR DSL I Have been working on...update
All, As I mentioned a few weeks back I have created a DSL for WATiR, I call it the WATiR Scripting Langauge - WSL. I have been creating a lot of collateral and am currently writing examples for it. You can view them and download the WSL gem and install locally from here - http://wsl.xqoob.com http://wsl.xqoob.com/ Your thoughts and any ideas for improvements would be appreciated! Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: WATiR DSL I Have been working on...update
Aidy thanks for your comments. Setup/teardown makes more sense to developers, would it make more sense to testers than start and finish? I like the idea of using RSpec or something to handle the assertions, that part is a bit quick and dirty and needs some attention. I will put it on the todo list. Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of aidy lewis Sent: 05 May 2009 21:22 To: watir-general@googlegroups.com Subject: [wtr-general] Re: WATiR DSL I Have been working on...update Ruf, I quite like it, but I would wrap your assertions etc in Rspec and use their outputting\reporting. Aidy 2009/5/5 Ruf, Wadud wadud@capgemini.com: All, As I mentioned a few weeks back I have created a DSL for WATiR, I call it the WATiR Scripting Langauge - WSL. I have been creating a lot of collateral and am currently writing examples for it. You can view them and download the WSL gem and install locally from here - http://wsl.xqoob.com Your thoughts and any ideas for improvements would be appreciated! Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- Aidy blog: www.agiletester.co.uk twitter: http://twitter.com/aidy_lewis This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: WATiR DSL I have been using
There is no audio to the screencast (I should put up a message saying so!). I need to speak to a few people regarding how I go about progressing this, but the general view is that we us it further on a few more internal projects and also open source it. I'm glad you mentioned cucumber, as that is something I want to use with WSL; I think the two will go together well. I wouldn't class WSL as a framework, nor is it in anyway meant to conflict with Cucumber. The aim of WSL is to make WATiR accessible to the non-dev masses (ie. Testers who always comment they are not coders!). Therefore I am very much in the view of forsaking power for ease of use and simplicity. A typical scenario would be defining user stories with cucumber; non-devs should be able to do this with a shallow learning curve. The actual step definition would then be written in WSL. I do think a lot of responsibility is placed upon developers to ensure they have created repeatable QA tests, the more of this that could be distributed through the team the better. Note: I've not had the opportunity to use Cucumber yet in anger. I like the idea of getting other people involved and collaborating; my experience of Ruby is very low I'm sure compared to others here, for example I was not aware of rWebUnit as mentioned by Brett previously. Thanks for your comments Chuck. Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Chuck van der Linden Sent: 10 April 2009 17:51 To: Watir General Subject: [wtr-general] Re: WATiR DSL I have been using This was interesting to watch.. was there audio? I didn't hear any. I think it would be more informative to see a presentation of what you currently have. Also since there are other existing frameworks such as Cucumber that allow you to use DSL to define the tests, I think before taking the step to release this to opensource (presuming of course that the people who paid you to do the work in the first place are OK with that) you might want to consider asking yourself a few questions. 1) what unique benefits or capabilities does my framework offer that the others do not? and vice versa (you'll get a lot of questiosn about that, might as well figure out the answers now) 2) In terms of future improvements, do many of the things I'd like to add to my framework exist in other frameworks already? (e.g. would you be spending a lot of time developing your own version of stuff that already exists elsewhere?) 3) Would I be better off to join with an existing effort and help enhance it (perhaps using some of my existing code) to provide the capabilities I need within that tool? From the perspective of an outside user, having more choices of framworks is good, until I have to choose between two frameworks where each one has 'some' of the things I want, and none of them have 'all' of the things I want. That's when I find myself wishing that the developers of those things had worked together instead of apart. On Apr 9, 10:44 am, Ruf, Wadud wadud@capgemini.com wrote: Thanks Brett, Looking at the video again it is quite dated, I need to get some up to date material on there. The main principle is simplicity over power. Once I have better material to upload I will post a link. Wadud From: watir-general@googlegroups.com on behalf of Bret Pettichord Sent: Thu 09/04/2009 16:49 To: watir-general@googlegroups.com Subject: [wtr-general] Re: WATiR DSL I have been using Thanks for sharing your work. I found it to be very interesting. Bret Ruf, Wadud wrote: Hi Over the last few months I have been using WATiR to test a web application we have been developing. As a noob to both Ruby and WATiR (myself and the rest of the project team), I have to say we have found WATiR to have a very shallow learning curve. To aide non-developers, and to increase our productivity I created an internal domain specific language on top of WATiR, I call it WSL (WATiR Scripting Language). This has proved to be a very positive step increasing our productivity and lowering the barrier to using it. I have a short screencast of an internal demo I gave on how I arrived at WSL, and how to use it. This is from the perpective of a complete novice to Ruby/WATiR available here -http://xqoob.comhttp://xqoob.com/ . The demo is a few months old and WSL has evolved a bit more since then. I would like the WATiR community's feedback on this, as I would like to open-source this, and would make the move sooner rather than later if there is sufficient interest! Thanks Wadud PS. The video may take a few seconds/minutes to start playing depending on your connection speed. -- Bret Pettichord CTO, WatirCraft LLC,www.watircraft.com Lead Developer, Watir,www.watir.com Blog,www.io.com/~wazmo/blog Twitter,www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16
[wtr-general] WATiR DSL I have been using
Hi Over the last few months I have been using WATiR to test a web application we have been developing. As a noob to both Ruby and WATiR (myself and the rest of the project team), I have to say we have found WATiR to have a very shallow learning curve. To aide non-developers, and to increase our productivity I created an internal domain specific language on top of WATiR, I call it WSL (WATiR Scripting Language). This has proved to be a very positive step increasing our productivity and lowering the barrier to using it. I have a short screencast of an internal demo I gave on how I arrived at WSL, and how to use it. This is from the perpective of a complete novice to Ruby/WATiR available here - http://xqoob.com. The demo is a few months old and WSL has evolved a bit more since then. I would like the WATiR community's feedback on this, as I would like to open-source this, and would make the move sooner rather than later if there is sufficient interest! Thanks Wadud PS. The video may take a few seconds/minutes to start playing depending on your connection speed. Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: WATiR DSL I have been using
Thanks Brett, Looking at the video again it is quite dated, I need to get some up to date material on there. The main principle is simplicity over power. Once I have better material to upload I will post a link. Wadud From: watir-general@googlegroups.com on behalf of Bret Pettichord Sent: Thu 09/04/2009 16:49 To: watir-general@googlegroups.com Subject: [wtr-general] Re: WATiR DSL I have been using Thanks for sharing your work. I found it to be very interesting. Bret Ruf, Wadud wrote: Hi Over the last few months I have been using WATiR to test a web application we have been developing. As a noob to both Ruby and WATiR (myself and the rest of the project team), I have to say we have found WATiR to have a very shallow learning curve. To aide non-developers, and to increase our productivity I created an internal domain specific language on top of WATiR, I call it WSL (WATiR Scripting Language). This has proved to be a very positive step increasing our productivity and lowering the barrier to using it. I have a short screencast of an internal demo I gave on how I arrived at WSL, and how to use it. This is from the perpective of a complete novice to Ruby/WATiR available here - http://xqoob.com http://xqoob.com/ . The demo is a few months old and WSL has evolved a bit more since then. I would like the WATiR community's feedback on this, as I would like to open-source this, and would make the move sooner rather than later if there is sufficient interest! Thanks Wadud PS. The video may take a few seconds/minutes to start playing depending on your connection speed. -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17 www.watircraft.com/training Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: using a logger with watir loses formatting
I've worked around this and am using log4r which is working just fine for me Thanks Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Bret Pettichord Sent: 25 March 2009 23:44 To: watir-general@googlegroups.com Subject: [wtr-general] Re: using a logger with watir loses formatting Watir uses activesupport and i think this modifies the logger. Or maybe its another gem that Watir uses. Not sure really, but i think it's something like that. Bret Ruf, Wadud wrote: Marekj, You describe the exact same scenario as what I am experiencing. I've still not found out why it's doing it. As it's not my core domain I will look into using the Logging gem. Thanks for the tip Wadud * From: * watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] *On Behalf Of *marekj *Sent:* 24 March 2009 22:02 *To:* watir-general@googlegroups.com *Subject:* [wtr-general] Re: using a logger with watir loses formatting I've seen something similar when I moved my test machines from 1.5.3 to 1.6.2 gem. My custom logger has stopped generating timestamps and severity and only outputted messages. My custom Logger class methods were not executed. Logger class from somewhere else was receiving my calls. I've also moved to Logging gem as part of my move to 1.6.2 Watir and I never figured out this problem. P.S. Logging gem works great for me with Watir. I like the simple appenders so I can output to different files and to stdout as well. marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Tue, Mar 24, 2009 at 12:29 PM, Ruf, Wadud wadud@capgemini.com mailto:wadud@capgemini.com wrote: Hi, I am using a logger to log statements to a file when running watir scripts. The logger has a format specified. However I am experiencing irregular behaviour when I for example call Watir::Simple#new_browser_at() where it loses the format and just outputs the statement. All other statements after this seem to lose the formatting too. Example steps are log = Logger.new(logfile.log) log.debug(Starting my watir test) = [01-01-2009 10:23:23] [INFO] - Starting my watir test # As expected b = Watir::Simple.new() log.debug(opening browser) = [01-01-2009 10:23:24] [INFO] - opening browser # As expected b.new_browser_at(http://google.com;) # browser takes a few seconds to fire up. log.debug(browser open at google.com http://google.com) = browser open at google.com http://google.com # Loses formatting from here onwards My code wraps these calls up in other methods but not doing anything else. Any ideas why the formatting is lost? It seems it happens when it waits for the browser to fire up. Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. -- Bret Pettichord CTO, WatirCraft LLC, www.watircraft.com Lead Developer, Watir, www.watir.com Blog, www.io.com/~wazmo/blog Twitter, www.twitter.com/bpettichord Watir Training: Portland/Beaverton April 16-17 www.watircraft.com/training This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org
[wtr-general] using a logger with watir loses formatting
Hi, I am using a logger to log statements to a file when running watir scripts. The logger has a format specified. However I am experiencing irregular behaviour when I for example call Watir::Simple#new_browser_at() where it loses the format and just outputs the statement. All other statements after this seem to lose the formatting too. Example steps are log = Logger.new(logfile.log) log.debug(Starting my watir test) = [01-01-2009 10:23:23] [INFO] - Starting my watir test # As expected b = Watir::Simple.new() log.debug(opening browser) = [01-01-2009 10:23:24] [INFO] - opening browser # As expected b.new_browser_at(http://google.com;) # browser takes a few seconds to fire up. log.debug(browser open at google.com) = browser open at google.com # Loses formatting from here onwards My code wraps these calls up in other methods but not doing anything else. Any ideas why the formatting is lost? It seems it happens when it waits for the browser to fire up. Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Watir::Element#visible? not working
Hi, I am calling code like the following and it is complaining that the element does not have the method - browser = Watir::IE.new return browser.div(:id, div_id).visible? The error I get is - undefined method for #(Watir::Div:0x602ad04) (NoMethodError) As I understand it div inherits from element which has visible? Defined there so I should be ok, any ideas on what I am doing wrong? I am able to call other element methods in this manner ok (like exist? For example). Thanks Wadud Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB /PREp style=font-family:arial;color:grey style=font-size:13pxThis message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message./pPRE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir::Element#visible? not working
Yes that works! A Ruby newbie, I should've known to have checked for that :) Thanks Wadud -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of aidy lewis Sent: 23 March 2009 14:26 To: watir-general@googlegroups.com Subject: [wtr-general] Re: Watir::Element#visible? not working require 'watir/contrib/visible' Aidy Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---