Skip to content

Instantly share code, notes, and snippets.

@divamtbf
Created May 12, 2017 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save divamtbf/4abceca1220807cc0730b8839509cc85 to your computer and use it in GitHub Desktop.
Save divamtbf/4abceca1220807cc0730b8839509cc85 to your computer and use it in GitHub Desktop.
Pixel1_RubyRunGenerated
loadTestDB
module Pixel1
def self.mainLoop(loopTime)
WebSocketXServer.setAutoUpdate(false)
index = $mainResumeMainLoop
$mainResumeMainLoop = 0
writelog("mainLoop::#{index}::Resume") if index > 0
while index < loopTime
$curMainLoopNum = index
$actionParamInput = "undefined"
startTest 1
waitsecond(2)
sendStatus("Done::mainLoop::Loop::#{index}")
writelog("Finish::Loop::#{$curMainLoopNum}")
saveLogFileToGist if $saveLogToGist
index += 1
end
$engineStatus = "Idle"
resetStatus
sendStatus("Finish::mainLoop::END")
end
def self.startTest(loopTime)
tcase = TestCase.new("startTest")
tcase << TestAction.new(:blankaction) do
waitsecond(0)
end
tcase.run(loopTime)
end
def self.exception_handler
puts "Module Exception Hanlder..."
end
def self.run(loop)
mainLoop loop
end
end
$exceptionPackageNameList = []
$exceptionPackageNameList_exclude = []
def exception_handler
Pixel1.exception_handler
end
$curProjectLogFile = $useLastLogFile
$curProjectLogFile = "Pixel1_#{getTimeStamp}.log" if $useLastLogFile.nil?
$useLastLogFile = nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment