# test harness def rwdtinker_all_tests $rwdtinkerlog.info "in rwdtinker all tests" $rwdtinkerlog.info "Starting rwdtinker tests!\n" runrwdtinkerbackwindow if "tinkerbackwindow" == @rwd_window $testasserts += 1 else $testfailures += 1 $testerrorarray << "runrwdtinkerbackwindow" end runselectiontab if "selectiontab" == @rwd_tab $testasserts += 1 else $testfailures += 1 $testerrorarray << "selectiontab" end showjumplinkoptions @a_jumplinkinput = "returntomain" runjumplinkcommand if "main" == @rwd_window $testasserts += 1 else $testfailures += 1 $testerrorarray << "returntomain" end @a_jumplinkinput = "helpscreen" runjumplinkcommand if "rwdtinkerhelpwindow" == @rwd_window $testasserts += 1 else $testfailures += 1 $testerrorarray << "helpscreen" end runtinkerdocuments if "documentsrwdtinkerone" == @rwd_tab $testasserts += 1 else $testfailures += 1 $testerrorarray << "runtinkerdocuments" end runrwdtinkerwin2version if "applicationversion" == @rwd_window $testasserts += 1 else $testfailures += 1 $testerrorarray << "runrwdtinkerwin2version" end runremotezipsinstall if "superantcomremotezipsinstall" == @rwd_tab $testasserts += 1 else $testfailures += 1 $testerrorarray << "runremotezipsinstall" end runeditconfiguration if "editconfigurationfile" == @rwd_tab $testasserts += 1 else $testfailures += 1 $testerrorarray << "runeditconfiguration" end runhelpwindowtinkerwin2 if @rwd_tab == "editconfigurationfile" && @rwdhelpdataoutput.include?("Remember to reload the configuration variables") $testasserts += 1 else $testfailures += 1 $testerrorarray << "applet_tinkerbackeditconfiguration" end rwd_jump("rwdlogfiletab", "rwd_tab_rwdlogfiletab") if @rwd_tab == "rwdlogfiletab" $testasserts += 1 else $testfailures += 1 $testerrorarray << "rwdlogfiletab" end rwd_jump( "diagnostictab") if @rwd_tab == "diagnostictab" $testasserts += 1 else $testfailures += 1 $testerrorarray << "diagnostictab" end end def rwd_jump(tab, go="") @rwd_tab = tab @rwd_action = go end def teststobedown runrwdtinkerbackwindow @a_installapplet="/usr/src/rwdapplets/rwdtinker/zips/rwdahelloworld-0.5" viewgemappletcontents assert_not_nil(@appletcontentstext) ; testasserts += 1 runtinkerhelpabout assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1 raise NotImplementedError, 'Need to write test_choosenewhelptopic' raise NotImplementedError, 'Need to write test_listinstalledfiles' raise NotImplementedError, 'Need to write test_listzipfilestoinstall' raise NotImplementedError, 'Need to write test_loadconfigurationrecord' raise NotImplementedError, 'Need to write test_loadconfigurationvariables' raise NotImplementedError, 'Need to write test_main' raise NotImplementedError, 'Need to write test_network_demon' raise NotImplementedError, 'Need to write test_network_start' raise NotImplementedError, 'Need to write test_openappletname' raise NotImplementedError, 'Need to write test_removeapplet' raise NotImplementedError, 'Need to write test_returntomain' raise NotImplementedError, 'Need to write test_runcontrolcommand' raise NotImplementedError, 'Need to write test_runhelpwindow' raise NotImplementedError, 'Need to write test_runrwdtinkerversion' raise NotImplementedError, 'Need to write test_runrwdtinkerwin2version' raise NotImplementedError, 'Need to write test_runviewplatform' raise NotImplementedError, 'Need to write test_rwdtinkerversiondiagnostic' raise NotImplementedError, 'Need to write test_rwdwindowreturn' raise NotImplementedError, 'Need to write test_saveconfigurationrecord' raise NotImplementedError, 'Need to write test_viewappletcontents' end