[wtr-general] Re: Unable to Picklist of data from Excel - Datadriven test using xls class
Hi Venky! The 'PickLists' tab in the spreadsheet is meant to hold data for selection in the other tabs. This is to make it simpler to enter values that are commonly used. For example, the cell that holds the URL value in the 'Setup' tab functions as a dropdown with the options from the 'PickLists' tab. The first table in the 'Setup' tab (A1:B6) is for data used for the test run - the URL, usernames, passwords, etc. The second table in the 'Setup' tab (A12:B15) specifies which tests to run and the 'Yes/No' value in those cells are used the Test::Unit framework code. If you're specifying first a project to run and then the methods in that project, you'll need to add some more code to break it out at the method level. Hope this helps! -Tiffany On Dec 17, 5:56 am, venkat greet.ven...@gmail.com wrote: please help me if anybody tried with the watir wiki's DataDrivenTestHarnessExample - Picklist speadsheet data fetching from TestData.xls I have the data in Testdata.xls as the following: *Project* *Run* Project1 Yes *Module* *Run* Module1 Yes Module2 Yes Module3 Yes Module4 No What could be the watir code, any clues? if wants to run tests where the Run = Yes irrespective of Project name or ModuleName. My script should pick the Cell data from Project or Module columns to RUN tests if it is Yes. I tried like this...but could not succeed. -- begin xlFile = XLS.new(Dir.pwd + '../TestData.xls) $Runtests = xlFile.getRowRecords(A1:B5, Sheet1) ensure xlFile.close end $runTests.each do |record| - please help...any thoughts.. thanks, -venky -- 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: How to wait following an external frame link click.
I have extended my default wait timeout period to 20 mins and used the wait_until { ... } syntax suggested in the link provided by Željko - which has delivered me a successful outcome. Thanks for everyone's help. On Dec 16, 11:10 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Dec 16, 2009 at 6:00 AM, bender25 zuzi...@yahoo.com wrote: I am having trouble getting my watir test case to wait until the processing comes to an end. Have you read this? http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir Željko -- watir.com - community manager watirpodcast.com - host -- 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] Using begin statement doesn't return the no. of failures and errors
Hi guys, I'm sorry if you will find this question silly but I'm a ruby watir newby. My question is, why it is that when I'm using begin statement on assertions the result is not getting the no. failures and errors meaning when the script fails the failure and error is zero ex. ==test_script= require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' class TC_google_assert Test::Unit::TestCase def test_print_assertion test_site = 'http://www.google.com/' $browser = Watir::Browser.new $browser.goto(test_site) $browser.text_field(:name, q).set(watir) $browser.button(:name, btnG).click begin assert($browser.text.include?(Programming Ruby) ) puts(TEST PASSED. Found test string 'Programming Ruby' ) rescue = e puts(TEST FAILED. + e.message + \n + e.backtrace.join (\n)) end end end =produces=== ruby testbegin.rb Loaded suite testbegin Started TEST FAILED.false is not true. c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:48:in `assert_block' c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:500:in `_wrap_assertion' c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:46:in `assert_block' c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:63:in `assert' c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:495:in `_wrap_assertion' c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:61:in `assert' testbegin.rb:14:in `test_print_assertion' c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:78:in `__send__' c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:78:in `run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:34:in `run' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `each' c:/ruby/lib/ruby/1.8/test/unit/testsuite.rb:33:in `run' c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:46:in `run_suite' c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:67:in `start_mediator' c:/ruby/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:41:in `start' c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:29:in `run' c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run' c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' c:/ruby/lib/ruby/1.8/test/unit.rb:278 testbegin.rb:7 . Finished in 9.406 seconds. 1 tests, 1 assertions, 0 failures, 0 errors Exit code: 0 but executing the script w/out the begin statement ex. ==test_script= require 'watir' require 'test/unit' require 'test/unit/ui/console/testrunner' class TC_google_assert Test::Unit::TestCase def test_print_assertion test_site = 'http://www.google.com/' $browser = Watir::Browser.new $browser.goto(test_site) $browser.text_field(:name, q).set(watir) $browser.button(:name, btnG).click assert($browser.text.include?(Programming Ruby) ) end end =produces=== ruby testbegin.rb Loaded suite testbegin Started F Finished in 7.672 seconds. 1) Failure: test_print_assertion(TC_google_assert) [testbegin.rb:14]: false is not true. 1 tests, 1 assertions, 1 failures, 0 errors Exit code: 1 Can I get the no. of failures and errors using begin statement? Thanks -Marlon -- 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: ie.modal_dialog(:title, 'Tile') problem
I have raised the IE8 issue you speak of in JIRA: http://jira.openqa.org/browse/WTR-414 -- 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: Wătir
I am not really sure it matters what people call it. As long as they are getting value from it and they know how to spell it so they can look it up. There are many words in English that people pronounce differently: mall, router, bistro. -- 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
Re: [wtr-general] Re: Wătir
Even i feel it should not matter untill its useful, people will learn it if tool is good On Fri, Dec 18, 2009 at 11:47 AM, Alister Scott alister.sc...@gmail.comwrote: I am not really sure it matters what people call it. As long as they are getting value from it and they know how to spell it so they can look it up. There are many words in English that people pronounce differently: mall, router, bistro. -- 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 -- 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