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: rubyforge.org/projects/wxextras (direct link: 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@rubyforge.org rubyforge.org/mailman/listinfo/wxruby-users
Hi Paul paul.allton at uk.bnpparibas.com 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
paul.allton at uk.bnpparibas.com
2007-Apr-03 17:13 UTC
[Wxruby-users] Test driving WxRuby2 apps
>Thanks very much for posting this - haven''t had a decent spell of free >time, but I''m looking forward to trying it out.No probs, I''ve used it on a couple of apps and I''m finding it stable/useful. Please let me know how you get on with it (good and bad!)>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 WxSugarThanks for that for the style tip, that fixes one of the broken tests. I''ll upload an updated gem when I get round to it. The sugar would be nice, is there a argument for adding ComboBox.is_read_only? Given that the docs state ComboBox.set_value() should ignore values not present in the choices, should I raise a bug for it (or are the docs incorrect?). 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: rubyforge.org/pipermail/wxruby-users/attachments/20070403/26aee1c0/attachment.html