osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: Test driving WxRuby2 apps - msg#00000

List: lang.ruby.wxruby.user

Mail Archive Navigation:
by Date: Next Date Index by Thread: Next Thread Index


Apologies, I think the gem attachment may have been stripped from my original mail, so I've uploaded it to rubyforge under a new 'wxextra's project:

http://rubyforge.org/projects/wxextras/

(direct link: http://rubyforge.org/frs/download.php/19183/nobbie-wx-preview-0.0.1.gem)

p.

============================================================

Before I forget, thanks for the new 0.0.39 and wx_sugar releases, excellent work guys - its great to see the back of GC.disable ;)

I've been a bit tied up recently, so apologies that this topic has gone quiet ... but I just wanted to let you know that this isn't dead, in fact I've packaged up what I have so far into the attached gem.

Please note:
- wxruby2-preview 0.0.39 and wx_sugar 0.1.14 are required
- this is very much a preview, it basically works - except for the problems listed in 'KNOWN ISSUES'.
- component support is a bit thin right now, I've only added support for what I've needed to test an application that I'm currently building
- it works on Windows and OS X only, as I've no means to test on other platforms.
- its based on an generic GUI driving api called 'Nobbie', which is a very silly name, I won't bore you with the history of how it came about

For usage info, please look at the README page of the gems rdoc ... but here is a quick example:

  require 'rubygems'
  require_gem 'nobbie-wx-preview'
 
  require 'your_application'
 
  #important - tell nobbie which application you want to test
  APPLICATION_UNDER_TEST = YourApp.new
 
  class YourAppTest < Test::Unit::TestCase
 
    def test_something_really_important
      assert !enabled?(:save)
      type 'fred', :first_name
      choosable(:male).choose
      selection(:title).choose 'Mr'
      assert enabled?(:save)
      click :save
    end
 
  end

For more examples look at the 'test' directory under the gem install.  Note that if you run all_tests.rb, some of the tests will currently fail (depending on platform), these tests expose some of the problems highlighted in 'KNOWN ISSUES'.

p.

This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**********************************************************************************************

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority

_______________________________________________
wxruby-users mailing list
wxruby-users@xxxxxxxxxxxxx
http://rubyforge.org/mailman/listinfo/wxruby-users

Thread at a glance:

Next Message by Date:

Re: Test driving WxRuby2 apps

Hi Paul paul.allton@xxxxxxxxxxxxxxxxx wrote: > I've been a bit tied up recently, so apologies that this topic has > gone quiet ... but I just wanted to let you know that this isn't dead, > in fact I've packaged up what I have so far into the attached gem. Thanks very much for posting this - haven't had a decent spell of free time, but I'm looking forward to trying it out. On one of your known issues - how to test if a ComboBox is readonly: ( cb.get_window_style & Wx::CB_READONLY ).nonzero? This is pretty ugly, so I'm going to add a has_style? method to WxSugar cheers alex

Next Message by Thread:

Re: Test driving WxRuby2 apps

Hi Paul paul.allton@xxxxxxxxxxxxxxxxx wrote: > I've been a bit tied up recently, so apologies that this topic has > gone quiet ... but I just wanted to let you know that this isn't dead, > in fact I've packaged up what I have so far into the attached gem. Thanks very much for posting this - haven't had a decent spell of free time, but I'm looking forward to trying it out. On one of your known issues - how to test if a ComboBox is readonly: ( cb.get_window_style & Wx::CB_READONLY ).nonzero? This is pretty ugly, so I'm going to add a has_style? method to WxSugar cheers alex
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!