Re: [wtr-general] Re: Watir 1.6.5 tests on IE8 - very slow execution

2011-04-28 Thread pallavi shashidhar
I have installed watir 1.8 again. I am having problems with clicking links
which was working fine earlier.
I have to click a particular link and it redirects to the next page.
the HTML part of it looks like this:


   Financial Reports



 Rebate
and Other Fee Report - ALL CONTRACTS Including Pharmacy (Detail)


and here is the code that i have:

br.table(:index,3).div(:id,/reportCategoryRepeater_ctl00__reportCategoryContainer/).link(:id,/reportCategoryRepeater_ctl00__reportSubCatRepeater_ctl00_reportRepeater_ctl01_reportLink/).click
(Earlier one was just br.link(:text,/Detail/).click - this throws error now
in IE8)
It clicks alright and am able to see the next page. But the script seems to
be hanging and i have to close the ruby.exe window.

The same script was working fine in Windows XP, 32 bit IE7 using watir 1.6.5
and ruby 1.8.6
I now have windows 2008 Server R2, 64 bit, IE8 using watir 1.8 and ruby
1.8.7
Any ideas on what must be done?

Thank you



On Thu, Apr 21, 2011 at 8:10 PM, Darryl Brown wrote:

> Howdy,
>
> 1) Upgrade to the latest Watir version.
>
> 2) Use -
> Watir::Wait.until(2) {$ie.text_field(:name, "q").exists?}
>
> This is an example waiting up to 2 seconds for the search box on the
> Google home page to be present.
>
>
> Regards,
> Darryl
>
>
> On Apr 21, 4:30 am, psdd  wrote:
> > I had installed watir 1.8 and could never get past wait statements
> > I have a lot of wait statements to wait for page after postback and
> > with watir 1.8, it used to indefnitely wait at wait statements. So
> > tried installing 1.6.5 and it worked but it is really v. slow.
> > I have used  Watir::Waiter.wait_until which had been used when the
> > code was written in watir 1.6.5
> > Basically am trying to run the same code on a different machine.
> >
> > On Apr 21, 12:31 pm, Željko Filipin 
> > wrote:
> >
> > > On Thu, Apr 21, 2011 at 9:24 AM, psdd  wrote:
> > > > Watir version : 1.6.5
> >
> > > Why are you using an old version of Watir?
> >
> > > Željko
> > > --
> > > watir.com - community manager
> > > watir.com/book - author
> > > watirpodcast.com - host
> > > viaqa.mobi conference on software testing - organizer
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> watir-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@googlegroups.com
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Any one running scripts with success using Ruby1.8.7, firewatir1.6.5 using roo1.9.1 on LINUX?

2010-05-21 Thread pallavi shashidhar
Hi There,
Has anyone been able to successfully run scripts using :
Ruby 1.8.7 and firewatir 1.6.5 on linux 9.04 using roo1.9.1?

I am unable to fetch data from openoffice as am hitting the unescapeHTML bug
in cgi. Its mentioned here: http://redmine.ruby-lang.org/issues/show/2130

Here is my test script:

require "rubygems"
require "firewatir"
require "roo"

oo = Openoffice.new("rooexample.ods")

oo.default_sheet = oo.sheets.first
puts firstrow = oo.first_row

I get the following error:

/usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/openoffice.rb:358:in
`read_cells': undefined method `unescapeHTML' for CGI:Class
(NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:213:in `each'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `upto'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `each'
from /usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/openoffice.rb:
345:in `read_cells'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:213:in `each'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `upto'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `each'
from /usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/openoffice.rb:
329:in `read_cells'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:213:in `each'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `upto'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `each'
from /usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/openoffice.rb:
318:in `read_cells'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:213:in `each'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `upto'
from /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/xml/
node_set.rb:212:in `each'
from /usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/openoffice.rb:
311:in `read_cells'
from /usr/lib/ruby/gems/1.8/gems/roo-1.9.2/lib/roo/
generic_spreadsheet.rb:51:in `first_row'
from roo_example.rb:11

The same works fine on windows machine having Vista and ruby1.8.6 and
watir 1.6.5

Not clear if the installation went well or not. Is there any
dependency missing?

Will it help if i install 1.8.6 on my linux machine? (but $ sudo get-apt
install ruby1.8.6 or $ sudo get-apt install ruby -v 1.8.6 DOES NOT WORK)


Any help is much appreciated.

Regards,
Pallavi

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


Re: [wtr-general] Re: Grrr! click_no_wait does not work :-(

2010-04-12 Thread pallavi shashidhar
Hi,
There is an issue with click_no_wait in 1.6.5 . Pls read this
http://jira.openqa.org/browse/WTR-320
Try adding the patch to page_container.rb
This fix should get your click_no_wait working.

Regards,
Pallavi

On Tue, Apr 13, 2010 at 3:23 AM, Rats  wrote:

> On Apr 13, 9:11 am, Ethan  wrote:
> > Is the popup triggered by an onclick event, or an onmouseup or
> onmousedown
> > event? If it's the latter, watir won't trigger it; #click and
> #click_no_wait
> > don't do those events. you'll have to explicitly
> > fire_event_no_wait('onmousedown') or mouseup.
>
>
> I've tried fire_event_no_wait without any success. Again it does the
> same thing by flashing the button and the pop up down not launch.
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: watir-general@googlegroups.com
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com


Re: [wtr-general] Killing a process

2010-02-05 Thread pallavi shashidhar
You are getting this error since you are trying to kill a thread which has
not started. Try checking the path where clicker.rb is.
The clicker.rb should be in the same place as the testcase.



On Fri, Feb 5, 2010 at 3:28 AM, Shlomit Gazit wrote:

> For handling popups I am doing the following:
>
>  @pid = Process.create(
>  :app_name   => 'ruby clicker.rb',
>  :creation_flags  => Process::DETACHED_PROCESS
>  ).process_id
>  at_exit{ Process.kill(9,@pid) }
>
> It works fine, but then in the results I am getting the following
> which is not nice:
>
> C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/
> process.rb:192:in `kill': The handle is invalid. (Process::Error)
>from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/
> process.rb:151:in `each'
>from C:/Ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.9/lib/win32/
> process.rb:151:in `kill'
>from ./c2p_module_imperative_fill_1.rb:94:in `fill'
>from C:/Ruby/lib/ruby/1.8/test/unit.rb:278
>
> Any idea what I am doing wrong?
>
> Thank you, Shlomit
>
> --
> 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


[wtr-general] Running Test::Unit in background gives invalid option: -b

2009-11-27 Thread pallavi shashidhar
Hi,
Watir environment - Watir 1.6.5, Ruby 1.8.6.26.
I have 2 scripts.
1) simple watir script without using Test::Unit framework
2) and another using Test::Unit framework.

Am trying to run them in background with command line option -b

The simple script without Test::Unit runs successfully in the background
when -b commandline option is given.
But when the script with Test::Unit is run with -b option, i am getting the
foll error:
invalid option: -b
Test::Unit automatic runner.
Usage: suite.rb [options] [-- untouched arguments]

Any inputs on how to run the Test::Unit in background mode?

Regards,
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] Autocomplete with send Keys does not work when not logged in

2009-10-20 Thread pallavi shashidhar
Hi there,
I have installed Ruby 1.8.6 and watir 1.6.2, IE7
We have an autocomplete field with fire events and have managed to automate
this with send keys (this was the only solution which worked for us)
The script is run on cruise control (run as a .bat not as a service),
schedued every 12 hours.
We have observed that this particular action fails to perform the send keys
when we have logged out of the cruisecontol server (logout from RDC i mean,
but let the ruisecontrol.bat run). Whenever we login back, and run the
script, it passes!

Have read from the following thread
http://www.ruby-forum.com/topic/162807that AutoIt needs to have access
to desktop. Could this be a reason?

How do we implement send keys if we have a cruise control running on a
schedule without logging in?

Here is the autocomplete script and reason why we have used sendkeys
   browser_create_abstract.text_field(:id,WORKS_SOR_NAME_FLD).focus

browser_create_abstract.text_field(:id,WORKS_SOR_NAME_FLD).set
test_data[WORKS_SOR_NAME_FLD+(1).to_s]
(Note : test_data[WORKS_SOR_NAME_FLD+(1).to_s] is the test
data from excel sheet
 After this the focus goes to the address bar.. this aspect
is also mentioned in the foll threads..

http://groups.google.com/group/watir-general/browse_thread/thread/337d97744adfb0ab
  http://jira.openqa.org/browse/WTR-197
  Hence am tabbing out next: )
 browser_create_abstract.send_keys("{TAB}")

browser_create_abstract.text_field(:id,WORKS_SOR_NAME_FLD).focus

browser_create_abstract.text_field(:id,WORKS_SOR_NAME_FLD).fire_event("onkeydown")
 Watir::Waiter.wait_until
{browser_create_abstract.div(:class,'yui-ac-bd').li(:text,
/#{test_data[WORKS_SOR_NAME_FLD]}/).exists?}

browser_create_abstract.div(:class,'yui-ac-bd').li(:text,
/#{test_data[WORKS_SOR_NAME_FLD]}/).click
 browser_create_abstract.send_keys("{ENTER}")

browser_create_abstract.div(:class,'yui-ac-bd').li(:text,
/#{test_data[WORKS_SOR_NAME_FLD]}/).click

When am logged in on the cruise control server i do not get any errors. When
am not logged in, i guess the focus in the address bar because
send_keys("{TAB}") is not working and i get the foll errors:
Watir::Exception::TimeOutException: Timed out after 60.14 seconds.

c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:59:in
`wait_until'

c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:80:in
`wait_until'

C:/cruisecontrol-bin-2.8.2/cruisecontrol-bin-2.8.2/projects/ERP_regression/works/regression/Transactions/create_abstract/works_create_abstract_methods.rb:205:in
`works_populate_create_abstract_estimate_fields'

C:/cruisecontrol-bin-2.8.2/cruisecontrol-bin-2.8.2/projects/ERP_regression/works/regression/Transactions/create_abstract/works_create_abstract_methods.rb:21:in
`works_create_abstract_save_submit_success'

C:/cruisecontrol-bin-2.8.2/cruisecontrol-bin-2.8.2/projects/ERP_regression/works/regression/Transactions/tech_sanction/test_tech_sanction.rb:33:in
`test_0010_approve_technical_sanction'


Foll is the HTML code for the autocomplete field



on entering a value (say 42), the following autocomplete code is displayed:

 

  Cement concrete work
1:4:...tion,curing,etc.,complete(420) under 'BLDG-NORTH'->''
  Concrete in lime mortar
1...nsolidation,etc.,complete(423) under 'BLDG-NORTH'->''
  Plain cement concrete 1:1...c.,complete upto
basement(424) under 'BLDG-NORTH'->''
  Plain cement concrete
wor...tion,curing,etc.,complete(426) under 'BLDG-NORTH'->''
 Cement concrete work
1:4:...tion,curing,etc.,complete(420) under 'BLDG-CENTRE'->''
 Concrete in lime mortar
1...nsolidation,etc.,complete(423) under 'BLDG-CENTRE'->''
 Plain cement concrete 1:1...c.,complete upto
basement(424) under 'BLDG-CENTRE'->''
  Plain cement concrete
wor...tion,curing,etc.,complete(426) under 'BLDG-CENTRE'->''
  Cement concrete work
1:4:...tion,curing,etc.,complete(420) under 'BLDG-SOUTH'->''
 Concrete in lime mortar
1...nsolidation,etc.,complete(423) under 'BLDG-SOUTH'->''
  Plain cement concrete 1:1...c.,complete upto
basement(424) under 'BLDG-SOUTH'->''
 Plain cement concrete
wor...tion,curing,etc.,complete(426) under 'BLDG-SOUTH'->''
 Cement concrete work 1:2:...c.,complete upto
basement(421) under 'BLDG-NORTH'->''
 Cement concrete work 1:3:...c.,complete upto
basement(422) under 'BLDG-NORTH'->''
  Plain cement concrete wor...pto 1m aboveground
level)(425) under 'BLDG-NORTH'->''
 Cement concrete work 1:2:...l RCC works upto
basement(429) under 'BLDG-NORTH'->''
  Cement concrete work 1:2:...c.,complete upto
basement(421) under 'BLDG-CENTRE'->''
 Cement concrete work 1:3:...c.,complete upto
basement(422) under 'BLDG-CENTRE'->''
 Plain cement concrete wor...pto 1m aboveground
level)(425) under 'BLDG

[wtr-general] Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread pallavi shashidhar
Hi There,
We have a couple of watir scripts that are run as regression suite on a CI
server (cruise control).
Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
System specification ; windows server 2003 edition, 500gb, 4gb RAM

All the scripts are made independent and hence we have a start_browser and
browser.close at setup and teardown.
After a while, i find that ie keeps hanging and am not able to proceed
unless i close the browser manually and yet i see that the ie process is not
being killed.
This leads us to lot of RPC server unavailable errors:

When the suite is run again, i get a lot of these errors:

failed to create WIN32OLE object from `InternetExplorer.Application'
HRESULT error code:0x80004005
Unspecified error (WIN32OLERuntimeError)
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`new'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
`create_browser_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
`_new_window_init'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
`new_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
`start_window'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
`start'
c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
`start'

Have tried one of the 3 solutions that Bret has mentioned i.e,
Create an additional IE. As long as this lives, the IE server will continue
to live and you can close and create IE windows without worry.

Inspite of having done this, i get the errors. We cannot completely avoid
opening and closing of browsers as more and more scripts are added to the
regression suite.
What could be the reason for ie to hang and how can that be avoided?

Regards,
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: Ci_reporter on watircraft

2009-09-10 Thread pallavi shashidhar
Hi,
I did update to ci_reporter 1.6.0 and at the command prompt, i give the foll
command:
"rake ci:setup:cucumber features" and it gives me the foll errors:

rm -rf features/reports
c:/ruby/bin/ruby -I "c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/lib;lib"
"c:
/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber"  --require
c:/ruby/li
b/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/cucumber_loader.rb
-
-format CI::Reporter::Cucumber test/features/cc_register_complaint.feature
test/
features/cc_update_complaint.feature
test/features/cell_operator_view_complaint.
feature test/features/citizen_register_complaint.feature
test/features/citizen_u
pdate_complaint.feature test/features/citizen_view_complaint.feature
test/featur
es/city_official_login.feature
test/features/city_official_register_complaint.fe
ature test/features/city_official_update_complaint.feature
test/features/city_of
ficial_view_complaints.feature
test/features/city_official_view_status_reports.f
eature test/features/GO_update_complaint.feature
test/features/GO_update_users_c
omplaint.feature test/features/official_change_password.feature
undefined method `testcases' for nil:NilClass (NoMethodError)
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/../../../c
i/reporter/cucumber.rb:93:in `visit_step'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
ection.rb:15:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
ection.rb:14:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
ection.rb:14:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
b:75:in `visit_steps'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/backgroun
d.rb:30:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
b:49:in `visit_background'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feature.r
b:23:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
b:23:in `visit_feature'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
rb:25:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
rb:13:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
rb:13:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
rb:24:in `accept'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
b:19:in `visit_features'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
b:9:in `__send__'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
b:9:in `method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
b:8:in `map'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
b:8:in `method_missing'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:5
8:in `execute!'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:2
6:in `execute'
c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber:9
rake aborted!
Command failed with status (1): [c:/ruby/bin/ruby -I
"c:/ruby/lib/ruby/gems...]

(See full trace by running task with --trace)

Is the usage for rake features correct?

Regards,
Pallavi

On Thu, Sep 10, 2009 at 3:14 PM, Graeme Mathieson, Rubaidh Ltd <
mat...@woss.name> wrote:

>
> Hi,
>
> Our changes to ci_reporter to support cucumber output have been merged
> back into Nick's upstream version, and released as 1.6.0. No idea why
> it's not showing up in the master branch, though!
>
> We're still using the XML output from ci_reporter for cucumber and
> rspec features, and it's working well for us. If you have any problems
> getting it set up, give me a yell and I'll see if I can help.
>
> Cheers,
>
> Graeme.
>
> On Sep 9, 5:43 pm, Charley Baker  wrote:
> > It appears there's a forked version of ci_reporter on github that adds
> > support for cucumber output, find out more here:
> http://github.com/rubaidh/ci_reporter/tree/master  I'm not using
> > ci_reporter any longer, just straight html output for cuke and rspec, but
> > the general idea is to set it up in your rake file with the appropriate
> > requires; there's info in the readme on that github repo.
> >
> > According to the 1.6.0 announcement of ci_reporter on rubyforge this
> appears
> > to be the version they've uploaded as the latest gem.
> >
> > hth,
> > Charley
> >
> > 

[wtr-general] Ci_reporter on watircraft

2009-09-08 Thread pallavi shashidhar
Hi there,
I am looking at using Ci_reporter in watircraft framework. Has anyone tried
to use it. ?
We use cucumber on watircraft and has a set of features that needs to be run
and publish results.
Basically i have to publish the watircraft results on CI server which
understands the xml format which is given out by Ci_reporter.

Regards,
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: JSSH problem on Windows server 2003

2009-08-04 Thread pallavi shashidhar
Hi Angrez,

Yes, I deleted the extension folder, uninstalled jssh
Restarted the machine and reinstalled jssh and XPI as administrator. It is
working fine now.
Thanx for all your replies.

Regards,
Pallavi

On Tue, Aug 4, 2009 at 3:21 PM, Angrez Singh  wrote:

> thats the standard error .. can you try removing the extension? then remove
> the extension folder from your profile folder:
>
> C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/b9gcfasq.default/
>
> Restart the machine, install XPI again.
>
> Thanks,
> Angrez
>
>
> On Tue, Aug 4, 2009 at 12:29 PM, pallavi shashidhar  > wrote:
>
>> The error console says;
>> Error: Components.classes['@mozilla.org/jssh-server;1'] is undefined
>> Source File:
>> file:///C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/b9gcfasq.default/extensions/
>> j...@extensions.mozilla.org/components/nsJSShStarter.js
>> Line: 133
>>
>>
>>
>> On Tue, Aug 4, 2009 at 12:25 PM, Angrez Singh  wrote:
>>
>>> Can you check event logs or error console of Firefox?
>>>
>>> On Tue, Aug 4, 2009 at 10:51 AM, pallavi shashidhar <
>>> pals.sha...@gmail.com> wrote:
>>>
>>>> Hi,
>>>> I have logged in as Administrator and then clicked the link for for
>>>> windows and firefox 3.0 on this page:
>>>>
>>>> http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2)InstalltheJSSHFirefoxExtension<http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2%29InstalltheJSSHFirefoxExtension>
>>>> The Redistributed package for VS 2005 SP1 is run as administrator.
>>>> (My ff version is 3.0.12)
>>>>
>>>> Regards,
>>>> Pallavi
>>>>
>>>>
>>>> On Fri, Jul 31, 2009 at 12:52 PM, Angrez Singh wrote:
>>>>
>>>>> Did you installed it using Admin rights? That might only be the issue,
>>>>> though didn't tried it on Windows Server 2003.
>>>>>
>>>>> Thanks,
>>>>> Angrez
>>>>>
>>>>>
>>>>> On Thu, Jul 30, 2009 at 4:32 PM, pallavi shashidhar <
>>>>> pals.sha...@gmail.com> wrote:
>>>>>
>>>>>> Hi There,
>>>>>>
>>>>>> I have the foll: installed - Ruby 1.8.6, watir 1.6.2 , firefox 3.012
>>>>>> OS: - Microsoft Windows Server 2003 R2 (32 bit)
>>>>>> Jssh - 0.9 installed along with Redistributed package for VS 2005 SP1
>>>>>> Steps - followed all the steps mentioned at step 3 on
>>>>>> http://wiki.openqa.org/display/WTR/FireWatir+Installation
>>>>>>   - Did run firefox from command prompt using
>>>>>> c:\ProgramFiles\Mozilla>firefox.exe -jssh (browser opens up)
>>>>>>
>>>>>> Am trying to run the following example :
>>>>>>
>>>>>> require 'watir'
>>>>>> Watir::Browser.default = "firefox"
>>>>>> Watir::Browser.start("www.mail.yahoo.com")
>>>>>>
>>>>>> and i get the foll: error
>>>>>>
>>>>>> >ruby exampletest.rb
>>>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in
>>>>>> `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. 
>>>>>> Make
>>>>>> sure that JSSh is properly installed and Firefox is running with '-jssh'
>>>>>> option (Watir::Exception::UnableToStartJSShException)
>>>>>> from
>>>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in
>>>>>> `initialize'
>>>>>> from
>>>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>>>>>> `new'
>>>>>> from
>>>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>>>>>> `start'
>>>>>> from
>>>>>> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
>>>>>> `start'
>>>>>> from exampletest.rb:3
>>>>>> >Exit code: 1
>>>>>>
>>>>>> Tried 

[wtr-general] Re: JSSH problem on Windows server 2003

2009-08-03 Thread pallavi shashidhar
The error console says;
Error: Components.classes['@mozilla.org/jssh-server;1'] is undefined
Source File:
file:///C:/Documents%20and%20Settings/Administrator/Application%20Data/Mozilla/Firefox/Profiles/b9gcfasq.default/extensions/
j...@extensions.mozilla.org/components/nsJSShStarter.js
Line: 133


On Tue, Aug 4, 2009 at 12:25 PM, Angrez Singh  wrote:

> Can you check event logs or error console of Firefox?
>
> On Tue, Aug 4, 2009 at 10:51 AM, pallavi shashidhar  > wrote:
>
>> Hi,
>> I have logged in as Administrator and then clicked the link for for
>> windows and firefox 3.0 on this page:
>>
>> http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2)InstalltheJSSHFirefoxExtension<http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2%29InstalltheJSSHFirefoxExtension>
>> The Redistributed package for VS 2005 SP1 is run as administrator.
>> (My ff version is 3.0.12)
>>
>> Regards,
>> Pallavi
>>
>>
>> On Fri, Jul 31, 2009 at 12:52 PM, Angrez Singh  wrote:
>>
>>> Did you installed it using Admin rights? That might only be the issue,
>>> though didn't tried it on Windows Server 2003.
>>>
>>> Thanks,
>>> Angrez
>>>
>>>
>>> On Thu, Jul 30, 2009 at 4:32 PM, pallavi shashidhar <
>>> pals.sha...@gmail.com> wrote:
>>>
>>>> Hi There,
>>>>
>>>> I have the foll: installed - Ruby 1.8.6, watir 1.6.2 , firefox 3.012
>>>> OS: - Microsoft Windows Server 2003 R2 (32 bit)
>>>> Jssh - 0.9 installed along with Redistributed package for VS 2005 SP1
>>>> Steps - followed all the steps mentioned at step 3 on
>>>> http://wiki.openqa.org/display/WTR/FireWatir+Installation
>>>>   - Did run firefox from command prompt using
>>>> c:\ProgramFiles\Mozilla>firefox.exe -jssh (browser opens up)
>>>>
>>>> Am trying to run the following example :
>>>>
>>>> require 'watir'
>>>> Watir::Browser.default = "firefox"
>>>> Watir::Browser.start("www.mail.yahoo.com")
>>>>
>>>> and i get the foll: error
>>>>
>>>> >ruby exampletest.rb
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in
>>>> `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make
>>>> sure that JSSh is properly installed and Firefox is running with '-jssh'
>>>> option (Watir::Exception::UnableToStartJSShException)
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in
>>>> `initialize'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>>>> `new'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>>>> `start'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
>>>> `start'
>>>> from exampletest.rb:3
>>>> >Exit code: 1
>>>>
>>>> Tried with IRB, facing the same problem :
>>>> irb(main):001:0> require 'watir'
>>>> => true
>>>> irb(main):002:0> Watir::Browser.default = "firefox"
>>>> => "firefox"
>>>> irb(main):003:0> Watir::Browser.start("www.mail.yahoo.com")
>>>> Watir::Exception::UnableToStartJSShException: Unable to connect to
>>>> machine : 127
>>>> .0.0.1 on port 9997. Make sure that JSSh is properly installed and
>>>> Firefox is ru
>>>> nning with '-jssh' option
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>>>> x.rb:271:in `set_defaults'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>>>> x.rb:161:in `initialize'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>>>> x.rb:177:in `new'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>>>> x.rb:177:in `start'
>>>> from
>>>> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.
>>>> rb:71:in `start'
>>>> from (irb):3
>>>>
>>>> The same example when run on windows vista, i have no issues. Is there
>>>> anything in particular to do with JSSh for Windows Server 2003?
>>>>
>>>> Regards,
>>>> 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: JSSH problem on Windows server 2003

2009-08-03 Thread pallavi shashidhar
Hi,
I have logged in as Administrator and then clicked the link for for windows
and firefox 3.0 on this page:
http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2)InstalltheJSSHFirefoxExtension
The Redistributed package for VS 2005 SP1 is run as administrator.
(My ff version is 3.0.12)

Regards,
Pallavi

On Fri, Jul 31, 2009 at 12:52 PM, Angrez Singh  wrote:

> Did you installed it using Admin rights? That might only be the issue,
> though didn't tried it on Windows Server 2003.
>
> Thanks,
> Angrez
>
>
> On Thu, Jul 30, 2009 at 4:32 PM, pallavi shashidhar  > wrote:
>
>> Hi There,
>>
>> I have the foll: installed - Ruby 1.8.6, watir 1.6.2 , firefox 3.012
>> OS: - Microsoft Windows Server 2003 R2 (32 bit)
>> Jssh - 0.9 installed along with Redistributed package for VS 2005 SP1
>> Steps - followed all the steps mentioned at step 3 on
>> http://wiki.openqa.org/display/WTR/FireWatir+Installation
>>   - Did run firefox from command prompt using
>> c:\ProgramFiles\Mozilla>firefox.exe -jssh (browser opens up)
>>
>> Am trying to run the following example :
>>
>> require 'watir'
>> Watir::Browser.default = "firefox"
>> Watir::Browser.start("www.mail.yahoo.com")
>>
>> and i get the foll: error
>>
>> >ruby exampletest.rb
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in
>> `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make
>> sure that JSSh is properly installed and Firefox is running with '-jssh'
>> option (Watir::Exception::UnableToStartJSShException)
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in
>> `initialize'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>> `new'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
>> `start'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
>> `start'
>> from exampletest.rb:3
>> >Exit code: 1
>>
>> Tried with IRB, facing the same problem :
>> irb(main):001:0> require 'watir'
>> => true
>> irb(main):002:0> Watir::Browser.default = "firefox"
>> => "firefox"
>> irb(main):003:0> Watir::Browser.start("www.mail.yahoo.com")
>> Watir::Exception::UnableToStartJSShException: Unable to connect to machine
>> : 127
>> .0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox
>> is ru
>> nning with '-jssh' option
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>> x.rb:271:in `set_defaults'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>> x.rb:161:in `initialize'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>> x.rb:177:in `new'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
>> x.rb:177:in `start'
>> from
>> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.
>> rb:71:in `start'
>> from (irb):3
>>
>> The same example when run on windows vista, i have no issues. Is there
>> anything in particular to do with JSSh for Windows Server 2003?
>>
>> Regards,
>> 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] JSSH problem on Windows server 2003

2009-07-30 Thread pallavi shashidhar
Hi There,

I have the foll: installed - Ruby 1.8.6, watir 1.6.2 , firefox 3.012
OS: - Microsoft Windows Server 2003 R2 (32 bit)
Jssh - 0.9 installed along with Redistributed package for VS 2005 SP1
Steps - followed all the steps mentioned at step 3 on
http://wiki.openqa.org/display/WTR/FireWatir+Installation
  - Did run firefox from command prompt using
c:\ProgramFiles\Mozilla>firefox.exe -jssh (browser opens up)

Am trying to run the following example :

require 'watir'
Watir::Browser.default = "firefox"
Watir::Browser.start("www.mail.yahoo.com")

and i get the foll: error

>ruby exampletest.rb
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:271:in
`set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make
sure that JSSh is properly installed and Firefox is running with '-jssh'
option (Watir::Exception::UnableToStartJSShException)
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:161:in
`initialize'
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
`new'
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefox.rb:177:in
`start'
from
c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
`start'
from exampletest.rb:3
>Exit code: 1

Tried with IRB, facing the same problem :
irb(main):001:0> require 'watir'
=> true
irb(main):002:0> Watir::Browser.default = "firefox"
=> "firefox"
irb(main):003:0> Watir::Browser.start("www.mail.yahoo.com")
Watir::Exception::UnableToStartJSShException: Unable to connect to machine :
127
.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox
is ru
nning with '-jssh' option
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
x.rb:271:in `set_defaults'
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
x.rb:161:in `initialize'
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
x.rb:177:in `new'
from
c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/firefo
x.rb:177:in `start'
from
c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.
rb:71:in `start'
from (irb):3

The same example when run on windows vista, i have no issues. Is there
anything in particular to do with JSSh for Windows Server 2003?

Regards,
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: customize xml generated by ci_reports

2009-07-24 Thread pallavi shashidhar
Hi Tony,

I think i used the previous code in http://pastie.org/554062 instead of
http://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  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 ''
> 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: customize xml generated by ci_reports

2009-07-24 Thread pallavi shashidhar
Hi there,
I have replaced the test_suite.rb with the new one and have done a - require
'ci/reporter/test_suite'
here's the code

require 'watir'
require 'ci/reporter/test_suite.rb'

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


When i run the testcase, I am getting this error:

c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.5.2/lib/ci/reporter/test_suite.rb:211:in
`write_newreport_allsuites': private method `gsub' called for nil:NilClass
(NoMethodError)
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.5.2/lib/ci/reporter/test_suite.rb:337:in
`start_test'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.5.2/lib/ci/reporter/test_suite.rb:278:in
`test_started'
from
c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.5.2/lib/ci/reporter/test_suite.rb:54:in
`to_proc'
from c:/ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `call'
from c:/ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
from c:/ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in `each'
from c:/ruby/lib/ruby/1.8/test/unit/util/observable.rb:78:in
`notify_listeners'
from c:/ruby/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:47:in
`run_suite'
 ... 11 levels...
from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:216:in `run'
from c:/ruby/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run'

On Fri, Jul 24, 2009 at 10:42 AM, Marlon Mojares wrote:

>
> Yeah its working now this is a good start.
>
> >
>

--~--~-~--~~~---~--~~
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: customize xml generated by ci_reports

2009-07-23 Thread pallavi shashidhar
Hi there,
Am using Ci_reporter (not the one you have mentioned. The original one.)
I have an ERP suite which has watir scripts of various projects under it:
This is the structure:
ERP
-  stores
-  works
-  payroll
-  financials

When i run them as a suite all the testcases are run and there is a single
XML report in Test folder which gives the list of all the testcases of all
projects. Is there a way to separate out the reporting for individual
projects? like :

Stores : Testsuite(32)
   
Works : Testsuite (3)
   

and so on?

Regards,
Pallavi

On Thu, Jul 23, 2009 at 2:32 PM, Tony  wrote:

>
> Hi Marlon,
>
> Now you dont need to use "require 'ci/reporter/rake/
> test_unit_loader.rb' "
> Instead only require the modified file.
>
> 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 + Cruise Control

2009-07-12 Thread pallavi shashidhar
Hi there,
We have used cruise control to run our test suites.
We have structured our test scripts with certain conventions.

1) We have an ERP suite which has different watir scripts for different
projects. each set is developed and maintained by different testers.

2) All of us follow this. - we have a folder called "*regression*" where all
our test case ruby files are stored in there. Each testcase file is named as
*test_*.rb.

Each test case class name starts with _TC_. We use
TEST::UNIT framework.
Using Watir::TestCase did not solve the problem of determining the order of
execution. So we instead used  in the class name so that all
those testcases under that project will be executed as one set after which
other scripts of another PROJECT is run. Does not matter which PROJECT is
run first as long as the whole set is run.

3) Along with regression as a folder, we also have "*common*" as another
folder where our common files like utils and constants are placed there

4) On cruise control, on top of all the PROJECT folders, we have a *setup.rb
* file which is a simple ruby file with one line -
which does the foll:
"require' all those testcases under regression folder starting with test_*

this will get all the scripts grouped by PROJECTNAME class.

5) In Cruise control build file, have set up the ant target as run.watir
which runs *setup.rb*
Before we started using  in the class name, all the testcase
scripts in different projects were getting jumbled up
and hence the name.

6) We are using ci_reporter for results and publising the results by sending
a mail (target is set in cruise control config.xml)
and we give the CC dashboard link in the mail to view the results.

Regards,
Pallavi


On Mon, Jul 13, 2009 at 5:57 AM, Zhimin  wrote:

>
>
>
> http://www.itest2.com/articles/2009/03/22/setup-continuous-build-server-to-include-acceptance-tests/
>
> It uses ci_reporter as well.
>
> Zhimin
> http://www.itest2.com
>
> On Jul 10, 3:58 am, Dylan  wrote:
> > Does anyone know of a good tutorial/step-by-step instructions for how
> > to integrate watir/ruby into a cruise control build cycle. I have 1
> > xml output file (from ci_reporter) and I want my script to run after
> > the build and then integrate the xml results into the cruise control
> > output. Thanks!
> >
> > -Dylan
> >
>

--~--~-~--~~~---~--~~
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] Accessing Modal dialogs

2009-05-05 Thread pallavi shashidhar
Hi there,
I have a part of the HTML code which looks like this :


Expenditure
Type*

Choose
Purchase
Works
Bill Type*

Choose
Running Bill
Final Bill


WO/PO
Number






Contractor/Supplier

The function call is
function callGenericScreenSchedule(obj)
{
var categoryname1="WPNpurchase";
var categoryname2="WPNworks";
//var row=getRow(obj);
var opt=document.getElementById("expenditure_Type").value;
//alert(opt);
if(opt.toUpperCase()=="0" )
{
alert("Select ExpenditureType ");
return;
}
if(opt.toUpperCase()=="CONTINGENCY" )
{
alert(" This Option not available for  Contingent Types ");
return;
}

if(opt.toUpperCase()=="PURCHASE")
{

window.showModalDialog("../commonyui/egov/genericScreenNoParent.jsp"+"?xmlconfigname="+"egf_config.xml"+"&categoryname="+"WPNpurchase",window,'dialogHeight:500px;dialogWidth:600px');

}
else if(opt.toUpperCase()=="WORKS")
{

window.showModalDialog("../commonyui/egov/genericScreenNoParent.jsp"+"?xmlconfigname="+"egf_config.xml"+"&categoryname="+"WPNworks",window,'dialogHeight:500px;dialogWidth:600px');

}
if(nameValue!="")
{
document.forms[0].worksName.value=nameValue;
document.forms[0].codeList.value=idValue;
document.forms[0].codeName.value=descValue;
nameValue="";idValue="";descValue="";
var wno=document.forms[0].codeList.value;
var mode="create";
document.forms[0].action =
"../billsaccounting/worksBill.do?submitType=getTdsAndotherdtls&mode="+mode;
document.forms[0].submit();
}
}

On selecting expenditure_Type, I then click on the search image (img
src="../images/plus1.gif" ) Which opens a modal dialog (title -"Search page
--Webpage Dialog")
That has numerous serch results with links.
I should be able to click a link and then click the Close button.

Any ideas about how to hadle modal dialogs?
i have tried ;
b=Watir::Browser.start(MainURL)
b.select_list(:class,"combowidth1").select "Purchase"
b.image(:src,/plus1.gif/).click
md = window.showModalDialog(DialogURL)

I get an error:  undefined local variable or method `window' for main:Object
(NameError)

Regards,
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: how to select from a Dojo Select Widget

2009-04-27 Thread pallavi shashidhar
Found a work around for this,
Since there is a downarrow image that fires an event, that needs to be
triggered. so my code goes like this:
browser2.text_field(:class,"dojoComboBox").focus()
browser2.text_field(:class,"dojoComboBox").set "T"
browser2.text_field(:class,"dojoComboBox").fire_event('onkeyup')
browser2.image(:class,"dojoComboBox").fire_event('onmouseup')
browser2.div(:text,/T MATHI/).click
browser2.text_field(:class,"dojoComboBox").fire_event('onfocus')

It also involves firing the correct event.


2009/4/24 pallavi shashidhar 

> Hi there,
> I have a Dojo select widget with the HTML like;
>
>  dojoattachevent="key:_handleKeyEvents; keyUp: onKeyUp; compositionEnd;
> onResize;" autocomplete="off" style=""/>
>  dojoattachevent="onMouseUp: handleArrowClick; onResize;" dojoattachpoint="
> downArrowNode" style="width: 14px; height: 14px;"/>
>
> and when i type in something (say letter "T"), i should be able to select
> from the list that appears like this
>
>  
> T MATHI
> 
>  resultvalue="22">T BABU
> 
>
> If i have to select the first or the second option, How should i be doing
> it in watir?
>
> I have tried firing the events, but the list doesn't appear. I have the
> watir script code below:
>
> browser2.text_field(:class,"dojoComboBox").focus()
> browser2.text_field(:class,"dojoComboBox").set "T"
> browser2.text_field(:class,"dojoComboBox").fire_event('onblur')
> Watir::Waiter.wait_until
> {browser2.span(:class,"dojoComboBoxOptions").div(:text,/t mathi/).exists?}
> browser2.div(:class,"formmainbox").span(:class,"dojoComboBoxOptions").div(:text,/t
> mathi/).click
>
> I get an error at the wait until where the operation times out.
> I have tried the script using Watir 1.6.2, Ruby 1.8.26 using both Firefox
> 3.0 and IE 7.0
>
> Any solution would be helpful.
>
> Regards,
> 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] how to select from a Dojo Select Widget

2009-04-24 Thread pallavi shashidhar
Hi there,
I have a Dojo select widget with the HTML like;




and when i type in something (say letter "T"), i should be able to select
from the list that appears like this


T MATHI

T BABU


If i have to select the first or the second option, How should i be doing it
in watir?

I have tried firing the events, but the list doesn't appear. I have the
watir script code below:

browser2.text_field(:class,"dojoComboBox").focus()
browser2.text_field(:class,"dojoComboBox").set "T"
browser2.text_field(:class,"dojoComboBox").fire_event('onblur')
Watir::Waiter.wait_until
{browser2.span(:class,"dojoComboBoxOptions").div(:text,/t mathi/).exists?}
browser2.div(:class,"formmainbox").span(:class,"dojoComboBoxOptions").div(:text,/t
mathi/).click

I get an error at the wait until where the operation times out.
I have tried the script using Watir 1.6.2, Ruby 1.8.26 using both Firefox
3.0 and IE 7.0

Any solution would be helpful.

Regards,
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] Load Error while running feature in cucumber (watir/cucumber)

2009-04-01 Thread pallavi shashidhar
Hi,

I have ruby 1.8.6 and watir 1.6.2 installed in my system .
I have installed cucumber 0.2 and have watir scripts in feature/steps
when i try to run the feature, i constantly get the following error

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- spec (LoadError)
Failed to load ./steps/env.rb   from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
from
c:/ruby/lib/ruby/gems/1.8/gems/polyglot-0.2.5/lib/polyglot.rb:54:in
`require'

tried looking up for solutions but in vain. Any idea what could be the
cause?


Regards,
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: no such file to load -- watir (LoadError)

2008-12-09 Thread pallavi shashidhar
Hi,
I was able to do an update and install watir successfully. Only problem with
running the scripts.
As for your case, i think you could not connect to the server for update.

On Tue, Dec 9, 2008 at 1:33 PM, parul upadhyay <[EMAIL PROTECTED]> wrote:

> Hi Pallavi,
> I'm getting the same error,after using rubygems it is giving error for
> watir.
> I wanna ask u that when you have done gem update --system and then
> installed a local watir gem,did any error appeared?i'm writting it in
> command prompt.
>
> please check if i've done correctly or not.
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\parul.upadhyay>gem update --system
> Updating RubyGems
> ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
> ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
> Errno::ECONNREFUSED: No connection could be made because the target
> machine
> actively refused it. - connect(2) (http://gems.rubyforge.org/yaml)
>
> C:\Documents and Settings\parul.upadhyay>gem install watir
> ERROR:  http://gems.rubyforge.org/ does not appear to be a repository
> ERROR:  could not find gem watir locally or in a repository
>
>
> Parul
>
>
>
> On Tue, Dec 9, 2008 at 12:17 PM, pallavi shashidhar <[EMAIL PROTECTED]
> > wrote:
>
>> I get the same problem even after require 'rubygems' error is at the line
>> where i have require 'watir'
>>
>>
>> On Tue, Dec 9, 2008 at 1:59 AM, anna barbara ostrowska <
>> [EMAIL PROTECTED]> wrote:
>>
>>> Hi there!
>>> Add to script require 'rubygems', I had the same problem and it helps :)
>>>
>>> 2008/12/8 pallavi shashidhar <[EMAIL PROTECTED]>
>>>
>>> Hi there,
>>>> I have installed Ruby 1.8.6-26 and did a gem update --system and then
>>>> installed a local watir gem .
>>>> I installed watir using "gem install watir -dir /watir1.5.6"
>>>> When i try to run the scripts, i get the following error:
>>>> "C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>>> `gem_original_require': no such file to load -- watir (LoadError)
>>>> from
>>>> C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>>> `require'"
>>>>
>>>> Need to know what could be the problem.
>>>>
>>>> Regards,
>>>> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: no such file to load -- watir (LoadError)

2008-12-08 Thread pallavi shashidhar
I get the same problem even after require 'rubygems' error is at the line
where i have require 'watir'

On Tue, Dec 9, 2008 at 1:59 AM, anna barbara ostrowska <
[EMAIL PROTECTED]> wrote:

> Hi there!
> Add to script require 'rubygems', I had the same problem and it helps :)
>
> 2008/12/8 pallavi shashidhar <[EMAIL PROTECTED]>
>
> Hi there,
>> I have installed Ruby 1.8.6-26 and did a gem update --system and then
>> installed a local watir gem .
>> I installed watir using "gem install watir -dir /watir1.5.6"
>> When i try to run the scripts, i get the following error:
>> "C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `gem_original_require': no such file to load -- watir (LoadError)
>> from
>> C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
>> `require'"
>>
>> Need to know what could be the problem.
>>
>> Regards,
>> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] no such file to load -- watir (LoadError)

2008-12-08 Thread pallavi shashidhar
Hi there,
I have installed Ruby 1.8.6-26 and did a gem update --system and then
installed a local watir gem .
I installed watir using "gem install watir -dir /watir1.5.6"
When i try to run the scripts, i get the following error:
"C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- watir (LoadError)
from
C:/Ruby1.8.6-26/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'"

Need to know what could be the problem.

Regards,
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---