# # Testing OpenWFE # # John Mettraux at openwfe.org # # Mon Oct 29 12:46:32 JST 2007 # require 'openwfe/def' require 'flowtestbase' class FlowTest59b < Test::Unit::TestCase include FlowTestBase #def setup #end #def teardown #end # # TEST 0 class Test0 < ProcessDefinition #_sleep :for => "10s" cron :tab => "* * * * *", :name => "//mario" do _print "nada" end end def test_0 fei = launch Test0 sleep 0.250 #puts @engine.list_process_status fei #puts #puts @engine.get_process_stack fei #puts @engine.get_process_stack(fei)[0].class.name #puts #puts @engine.process_status(fei).expressions[0].instance_variables #puts #puts @engine.process_status(fei).expressions[0].awakening_time #puts #puts @engine.process_status(fei).expressions[0].scheduler_job_id puts @engine.get_scheduler.inspect @engine.cancel_process fei end end