Test::Glade

Test::Glade is a simple way to test Gtk2::GladeXML-based apps.
Download

Test::Glade Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nate Mueller
  • Publisher web site:
  • http://search.cpan.org/~nmueller/Test-Glade-1/lib/Test/Glade.pm

Test::Glade Tags


Test::Glade Description

Test::Glade is a simple way to test Gtk2::GladeXML-based apps. Test::Glade is a simple way to test Gtk2::GladeXML-based apps.SYNOPSIS use Test::Glade tests => 2; my $glade_xml = 'interface.glade'; has_widget( $glade_xml, { name => 'main_window', type => 'GtkWindow', properties => { title => 'Test Application', type => 'GTK_WINDOW_TOPLEVEL', resizable => 1, }, } ); has_widget( $glade_xml, { type => 'GtkButton', properties => {label => 'Press me!'}, signals => {clicked => 'button_pressed_handler'}, } );GUIs are notoriously difficult to test. Historically this was well deserved as the available perl GUI toolkits did not encourage separation of the view and controller layers. The introduction of the Glade GUI designer and Gtk2::GladeXML changed that by segregating user interface and logical components (into GladeXML and Perl files respectively).Users who avoid creating GUI elements from within their application logic can now test each layer separately with appropriate tools. The Perl logic can be verified with standard unit tests and this module provides a way to inspect and verify the GladeXML UI specification. You can confirm that a given widget exists, that it has the correct label and other attributes, that it will be correctly placed in the interface and that it will respond to signals as expected. Requirements: · Perl


Test::Glade Related Software