Sha256: db7cbf4ad32401f761fb6916cbfc9fe318ad9f764d47d3480dc68e03e2e3f7b4
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
Contents
#--- # Excerpted from "Scripted GUI Testing With Ruby", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/idgtr for more book information. #--- require 'java' require 'jemmy.jar' require 'junquenote_app' include_class 'org.netbeans.jemmy.JemmyProperties' include_class 'org.netbeans.jemmy.TestOut' %w(Frame TextArea MenuBar Dialog Button).each do |o| include_class "org.netbeans.jemmy.operators.J#{o}Operator" end JemmyProperties.set_current_timeout 'DialogWaiter.WaitDialogTimeout', 3000 JemmyProperties.set_current_output TestOut.get_null_output JunqueNoteApp.new main_window = JFrameOperator.new 'JunqueNote' menu = JMenuBarOperator.new main_window include_class 'org.netbeans.jemmy.Bundle' bundle = Bundle.new bundle.load_from_file 'english.txt' exit_menu = bundle.get_resource 'junquenote.exit_menu' menu.push_menu_no_block exit_menu
Version data entries
6 entries across 6 versions & 1 rubygems