I would start by using some the test machinery in the Gtk2 module itself. For instance Gtk2::Test::Helper sets up a nice test environment for Gtk2 method calls. Also look at the tests used in proofing the Gtk2 module. They will give you hints regarding the exercising of your GUI.