Created
December 14, 2016 10:18
-
-
Save divamtbf/4edb60fd28ca583ba15e2099d6b1a161 to your computer and use it in GitHub Desktop.
IssueCheckLV3_RubyRunGenerated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadTestDB | |
module IssueCheckLV3 | |
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(:TextView_Camera_1) do | |
$ruiObj = RUIObject.new.with('objectid', -479243074).with('selfid', -1103134098).with('textdescid', 1803325250).with('uniqueparentid', 0) | |
.with('uitreeindex', 13) | |
.with('classname', 'TextView') | |
.with('content-desc', 'Camera') | |
.with('text', 'Camera') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:ImageButton_ShutterBottomCompType_2) do | |
$ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0) | |
.with('uitreeindex', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:wait4second_3) do | |
waitsecond(4) | |
end | |
tcase << TestAction.new(:wait4second_4) do | |
waitsecond(4) | |
end | |
tcase << TestAction.new(:ImageButton_ShutterBottomCompType_5) do | |
$ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0) | |
.with('uitreeindex', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:wait4second_6) do | |
waitsecond(4) | |
end | |
tcase << TestAction.new(:ImageButton_ShutterBottomCompType_7) do | |
$ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0) | |
.with('uitreeindex', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
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 | |
IssueCheckLV3.exception_handler | |
end | |
$curProjectLogFile = $useLastLogFile | |
$curProjectLogFile = "IssueCheckLV3_#{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