Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1.  
  2. loadTestDB
  3.  
  4. module TestCase1
  5.  
  6. def self.mainLoop(loopTime)
  7.  
  8. WebSocketXServer.setAutoUpdate(false)
  9.  
  10. index = $mainResumeMainLoop
  11. $mainResumeMainLoop = 0
  12.  
  13. writelog("mainLoop::#{index}::Resume") if index > 0
  14.  
  15. while index < loopTime
  16.  
  17. $curMainLoopNum = index
  18.  
  19. $actionParamInput = "undefined"
  20. startTest 1
  21.  
  22. waitsecond(2)
  23.  
  24.  
  25. sendStatus("Done::mainLoop::Loop::#{index}")
  26.  
  27.  
  28. writelog("Finish::Loop::#{$curMainLoopNum}")
  29.  
  30.  
  31. saveLogFileToGist if $saveLogToGist
  32.  
  33. index += 1
  34.  
  35. end
  36.  
  37. $engineStatus = "Idle"
  38. resetStatus
  39. sendStatus("Finish::mainLoop::END")
  40.  
  41. end
  42.  
  43. def self.startTest(loopTime)
  44.  
  45. tcase = TestCase.new("startTest")
  46.  
  47. tcase.run(loopTime)
  48.  
  49. end
  50.  
  51. def self.exception_handler
  52. puts "Module Exception Hanlder..."
  53. end
  54.  
  55. def self.run(loop)
  56. mainLoop loop
  57. end
  58.  
  59. end
  60.  
  61. $exceptionPackageNameList = []
  62. $exceptionPackageNameList_exclude = []
  63.  
  64. def exception_handler
  65. TestCase1.exception_handler
  66. end
  67.  
  68. $curProjectLogFile = $useLastLogFile
  69.  
  70. $curProjectLogFile = "TestCase1_#{getTimeStamp}.log" if $useLastLogFile.nil?
  71.  
  72. $useLastLogFile = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement