[wtr-general] Re: customize xml generated by ci_reports
Thnx Dylan On Aug 24, 9:28 pm, Dylan mej...@gmail.com wrote: To view the results html-like you have to create an xsl stylesheet to format the xml data. Then add ?xml-stylesheet type=text/xsl href=stylesheet.xsl? to the top of your results file(s). Then you can just open the xml file and it will open fully formatted. Here's the xsl stylesheet I use:http://pastie.org/593268 It probably wont work for you because I've made some changes to how the reporter outputs the xml file, but it should give you the basic idea. -Dylan On Aug 23, 11:52 pm, Test Test checktestingthi...@gmail.com wrote: Tony, I have added Class.Attr contents and now its working fine but my requirement is to get report(s) in html format not xml. Please help. Thanks D G On Jul 24, 4:04 pm, pallavi shashidhar pals.sha...@gmail.com wrote: Hi Tony, I think i used the previous code inhttp://pastie.org/554062insteadofhttp://pastie.org/554831 It is now working fine for me. Thanx for all your replies. Regards, Pallavi On Fri, Jul 24, 2009 at 3:28 PM, Tony ynot...@gmail.com wrote: Hi Pallavi, When using your modified file, you dont need to require ci_reporter nor need to have it installed. Just require the modified file. require 'watir' #require 'ci/reporter/test_suite.rb' require 'YOUR MODIFIED FILE' class TC_TEST_suite Test::Unit::TestCase def test_a_search test_site = http://www.google.com; browser = Watir::Browser.new browser.goto test_site browser.text_field(:name, q).set pickaxe browser.button(:name, btnG).click end end Thanks, Tony --~--~-~--~~~---~--~~ 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 fire_event that opens a modal dialog no wait needed
Sorry for the late reply, but the fire_event_no_wait method is not working: the expected action is not performed. Thanks On Thu, Jul 30, 2009 at 5:26 PM, Adrian Ghidu agh...@gmail.com wrote: I will definitely try that. Thanks Tony On Thu, Jul 30, 2009 at 5:03 PM, Tony ynot...@gmail.com wrote: Hi Adrian, You could add another method to the element.rb file in watir (below fire_event method) - def fire_event_no_wait(event) assert_enabled highlight(:set) object = #{self.class}.new(self, :unique_number, # {self.unique_number}) @page_container.eval_in_spawned_process(object + .fire_event(\# {event}\)) highlight(:clear) end Now you can call fire_events without waiting ... button.fire_event_no_wait(onmousedown) Thanks, Tony --~--~-~--~~~---~--~~ 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: WebDriver
Hi Anyone here used WebDriver ever??? Please let me know. On Thu, Aug 20, 2009 at 10:00 AM, Pallavi Sharma write2pall...@gmail.comwrote: Hi Has anyone used Webdriver[http://code.google.com/p/webdriver/] as a automation tool here?? Is there any comparisions of the same available with watir? If used, can anyone share their experience with the tool? Thanks Pallavi. --~--~-~--~~~---~--~~ 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 fire_event that opens a modal dialog no wait needed
More details are probably required. What action is performed instead, for instance? On Aug 25, 12:51 am, Adrian Ghidu agh...@gmail.com wrote: Sorry for the late reply, but the fire_event_no_wait method is not working: the expected action is not performed. Thanks On Thu, Jul 30, 2009 at 5:26 PM, Adrian Ghidu agh...@gmail.com wrote: I will definitely try that. Thanks Tony On Thu, Jul 30, 2009 at 5:03 PM, Tony ynot...@gmail.com wrote: Hi Adrian, You could add another method to the element.rb file in watir (below fire_event method) - def fire_event_no_wait(event) assert_enabled highlight(:set) object = #{self.class}.new(self, :unique_number, # {self.unique_number}) �...@page_container.eval_in_spawned_process(object + .fire_event(\# {event}\)) highlight(:clear) end Now you can call fire_events without waiting ... button.fire_event_no_wait(onmousedown) Thanks, Tony --~--~-~--~~~---~--~~ 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 fire_event that opens a modal dialog no wait needed
No action whatsoever. On Tue, Aug 25, 2009 at 12:13 PM, Dylan mej...@gmail.com wrote: More details are probably required. What action is performed instead, for instance? On Aug 25, 12:51 am, Adrian Ghidu agh...@gmail.com wrote: Sorry for the late reply, but the fire_event_no_wait method is not working: the expected action is not performed. Thanks On Thu, Jul 30, 2009 at 5:26 PM, Adrian Ghidu agh...@gmail.com wrote: I will definitely try that. Thanks Tony On Thu, Jul 30, 2009 at 5:03 PM, Tony ynot...@gmail.com wrote: Hi Adrian, You could add another method to the element.rb file in watir (below fire_event method) - def fire_event_no_wait(event) assert_enabled highlight(:set) object = #{self.class}.new(self, :unique_number, # {self.unique_number}) @page_container.eval_in_spawned_process(object + .fire_event(\# {event}\)) highlight(:clear) end Now you can call fire_events without waiting ... button.fire_event_no_wait(onmousedown) Thanks, Tony --~--~-~--~~~---~--~~ 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: CI_reporter usage
Tiffany, Its working perfectly fine. Thanks D G On Aug 24, 8:01 pm, tcfodor tcfo...@comcast.net wrote: I've automated adding the stylesheet and renaming the file. I've posted an example harness here: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat... -Tiffany On Aug 24, 12:59 am, Test Test checktestingthi...@gmail.com wrote: Tiffany, Its working fine, Thanks. Is there any way that it creates the file in html format directly instead of first adding ?xml-stylesheet type=text/xsl href=transform-results.xsl? and then open in ie/FF. Thanks D G On Mon, Aug 24, 2009 at 11:33 AM, Test Test checktestingthi...@gmail.comwrote: Hi Tiffany, I tried this, after running my code it create ‘test/reports’ subdirectories and place the xml output of my tests in the reports folder. Now you have written that we have to change in my xml output by adding this line at line 2: ?xml-stylesheet type=text/xsl href=transform-results.xsl? Note * I have transform-results.xsl in \test\reports folder. I have updated my xml ouptut with the following: ?xml-stylesheet type=text/xsl href=transform-results.xsl? But now when i run my code again, it creates new xml each time and shows no html ouput. I know i am wrong some where, please correct me where i am wrong. Thanks D G On Fri, Aug 21, 2009 at 11:21 PM, tcfodor tcfo...@comcast.net wrote: Hi DG, I've posted my solution on my blog: http://tcfodor.wordpress.com/2009/07/23/ci_reporter-output-for-watir/ Hope this helps! -Tiffany On Aug 21, 5:40 am, Test Test checktestingthi...@gmail.com wrote: Hi, I have: ruby 1.8 watir 1.6.2 ci_reporter-1.6.0 Can any body provide a link or example of how to start the use of ci_reporter in my script to generate xml report. Say for a simple script like: require 'watir' require 'rubygems' require 'win32ole' ie = Watir::IE.new autoit = WIN32OLE.new('AutoItX3.Control') ie.goto('http://testurl') assert(ie.link(:text, 'About Test').exists?) ie.text_field(:name,text1).set(Test) ie.button(:name,submit).click_no_wait autoit.WinWaitActive([Class:#32770]) text = autoit.ControlGetText([Class:#32770], , Static2) autoit.ControlClick([Class:#32770],,Button1) puts text Thanks in advance. Regards D G --~--~-~--~~~---~--~~ 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 fire_event that opens a modal dialog no wait needed
Hi Adrian, Please note - make sure you have edited the element.rb to include fire_event_no_wait code. Using the above fire_event_no_wait iam able to do a fire event on a mousedown. Here's an example of the mousedown and mouseover event (should work with any events)- require 'watir' iewin = Watir::IE.new iewin.goto(http://www.w3schools.com/jsref/tryit_view.asp? filename=tryjsref_onmousedown) img = iewin.image(:xpath, //img) img.fire_event_no_wait(mousedown) puts will return now without waiting for alert box ## wait for a few secs and the alert box will come up sleep 5 iewin.goto(http://www.w3schools.com/jsref/jsref_onmouseover.asp;) img = iewin.image(:alt, W3Schools) img.fire_event_no_wait(onmouseover) Thanks, Tony --~--~-~--~~~---~--~~ 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 on Shoes
I dunno whether it applies to you but I had the same error when installing firewatir and I solved it by following http://soft-dev-pro.blogspot.com/2009/07/update-rubygems.html Good luck infoDrone wrote: I'm trying to run Watir scripts from a Shoes app and the Shoes console keeps giving me a hoe requires RubyGems version = 1.3.1 error. I've tried the steps on http://tobiasbraner.de/blog/?p=19 (that's my comment at the bottom) but to no avail. I even tried using his sample program, no dice. Has anybody else gotten this to work? versions: Ruby 1.8.6 patchlevel 287 (from the latest one-click installer) RubyGems 1.3.5 Watir 1.6.2 Shoes 2 (Raisins) --~--~-~--~~~---~--~~ 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] Script hangs while trying to close pop up
Hi All, My scenario is to click a image that results in a pop up. I want to click OK button of this Pop up. This is a straight scenario without much complexity still the script is not working and the pop up remains as it is. Here is my sample script require 'watir' require 'win32ole' require 'watir/ie' require 'watir\contrib\enabled_popup' $ie = Watir::IE.new $ie.goto 'some url/' $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/ spacer.gif').click sleep 10 if $ie.enabled_popup puts 'inside if loop' hwnd =$ie.enabled_popup(10) puts hwnd w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd,OK) end This script after clicking the image hangs and after this there is no action performed. The pop is a simple pop up with an OK button. Guys please tell me where I am going wrong. Any help will be highly appreciated Thanks Namit --~--~-~--~~~---~--~~ 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: Script hangs while trying to close pop up
Hi Namit, You may have already looked here, but the bulk of the knowledge on Watir and popups can be found here: http://wiki.openqa.org/display/WTR/Pop+Ups Off the top of my head, it seems like there were cases where we needed to use click_no_wait instead of just click to avoid hanging. Hope this helps! -Tiffany On Aug 25, 7:05 am, Namit namitjai...@gmail.com wrote: Hi All, My scenario is to click a image that results in a pop up. I want to click OK button of this Pop up. This is a straight scenario without much complexity still the script is not working and the pop up remains as it is. Here is my sample script require 'watir' require 'win32ole' require 'watir/ie' require 'watir\contrib\enabled_popup' $ie = Watir::IE.new $ie.goto 'some url/' $ie.button(:src, 'http://img1.yatra.com/yatra_blue-theme/images/common/ spacer.gif').click sleep 10 if $ie.enabled_popup puts 'inside if loop' hwnd =$ie.enabled_popup(10) puts hwnd w = WinClicker.new w.makeWindowActive(hwnd) w.clickWindowsButton_hwnd(hwnd,OK) end This script after clicking the image hangs and after this there is no action performed. The pop is a simple pop up with an OK button. Guys please tell me where I am going wrong. Any help will be highly appreciated Thanks Namit --~--~-~--~~~---~--~~ 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] onMouseover
Hi, I have an item. Once I mouseover that item, I get an image which I need to click on. I used fire_event(onMouseover) which shows me the button which is an image, but I need to click on that image. Using .click on that image was not very successful. Does anyone have any suggestions? Exact code I used: $b.link(:href = /aa/, :index = 8).fire_event(onMouseover) $b.button(:alt, prev).click Thanks. --~--~-~--~~~---~--~~ 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: onMouseover
Off the top of my head, I would try $b.image(:alt,prev).click If that doesn't work, give us some more info on the html and on what happens when you run those commands. Is it actually clicking on the image and its just not firing any events, or is it throwing an error that it can't find the image? -Dylan On Aug 25, 2:05 pm, sd qajan2...@gmail.com wrote: Hi, I have an item. Once I mouseover that item, I get an image which I need to click on. I used fire_event(onMouseover) which shows me the button which is an image, but I need to click on that image. Using .click on that image was not very successful. Does anyone have any suggestions? Exact code I used: $b.link(:href = /aa/, :index = 8).fire_event(onMouseover) $b.button(:alt, prev).click Thanks. --~--~-~--~~~---~--~~ 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: onMouseover
I might give some sleep between mouseover and clicking. - Original Message From: sd qajan2...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, August 25, 2009 2:05:56 PM Subject: [wtr-general] onMouseover Hi, I have an item. Once I mouseover that item, I get an image which I need to click on. I used fire_event(onMouseover) which shows me the button which is an image, but I need to click on that image. Using .click on that image was not very successful. Does anyone have any suggestions? Exact code I used: $b.link(:href = /aa/, :index = 8).fire_event(onMouseover) $b.button(:alt, prev).click Thanks. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---