Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadTestDB
- module Sanity_Camera_Test_2_5
- def self.Change_Mode_360Panorama(loopTime)
- tcase = TestCase.new("Change_Mode_360Panorama")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Cinema(loopTime)
- tcase = TestCase.new("Change_Mode_Cinema")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 17)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Food(loopTime)
- tcase = TestCase.new("Change_Mode_Food")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Panorama(loopTime)
- tcase = TestCase.new("Change_Mode_Panorama")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 18)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Popout(loopTime)
- tcase = TestCase.new("Change_Mode_Popout")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 21)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Slo_mo(loopTime)
- tcase = TestCase.new("Change_Mode_Slo_mo")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 23)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Snap(loopTime)
- tcase = TestCase.new("Change_Mode_Snap")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
- .with('uitreeindex', 22)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Change_Mode_Time_Lapse(loopTime)
- tcase = TestCase.new("Change_Mode_Time_Lapse")
- tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
- $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 861142202)
- .with('uitreeindex', 24)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_BW(loopTime)
- tcase = TestCase.new("Pop_BW")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_BW")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Disable_Vignette) do
- $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
- .with('content-desc', 'Vignette')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_BW) do
- $ruiObj = RUIObject.new.with('objectid', 572543372).with('selfid', -1053101523).with('textdescid', 851527226).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_grayscale')
- .with('content-desc', 'Black & White')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_BW")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Fisheye(loopTime)
- tcase = TestCase.new("Pop_Fisheye")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Fisheye")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Disable_Vignette) do
- $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
- .with('content-desc', 'Vignette')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Fisheye) do
- $ruiObj = RUIObject.new.with('objectid', -1111692863).with('selfid', 1198333335).with('textdescid', 1405400794).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_perspective')
- .with('content-desc', 'Fisheye')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 1541017985)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Fisheye")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Lens_Blur(loopTime)
- tcase = TestCase.new("Pop_Lens_Blur")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Lens_Blur")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Disable_Vignette) do
- $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
- .with('content-desc', 'Vignette')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Lens_Blur) do
- $ruiObj = RUIObject.new.with('objectid', 1004584066).with('selfid', 1867572010).with('textdescid', -134389429).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_popout_effect_blur')
- .with('content-desc', 'Lens blur')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Lens_Blur")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Pause_Resume_Video(loopTime)
- tcase = TestCase.new("Pop_Pause_Resume_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Pause_Recording) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Resume_Recording) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_SIze_1(loopTime)
- tcase = TestCase.new("Pop_Photo_SIze_1")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_1")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3264x2448) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -2021332261).with('textdescid', 1929999013).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '4:3 (8Point0 MP) 3264x2448')
- .with('text', '43 80MP 3264x2448')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_1")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_2(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_2")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_2")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2880x2160) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1136545667).with('textdescid', 1931734653).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 17)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '4:3 (6Point2 MP) 2880x2160')
- .with('text', '43 62MP 2880x2160')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_2")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_3(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_3")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_3")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3264x1836) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '16:9 (6Point0 MP) 3264x1836')
- .with('text', '169 60MP 3264x1836')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_3")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_size_4(loopTime)
- tcase = TestCase.new("Pop_Photo_size_4")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_4")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2560x1440) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 2068446003).with('textdescid', -694779443).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 19)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '16:9 (3Point7 MP) 2560x1440')
- .with('text', '169 37MP 2560x1440')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_4")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_5(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_5")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_5")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3360x1680) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 179193075).with('textdescid', 416514061).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 20)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '18:9 (5Point6 MP) 3360x1680')
- .with('text', '189 56MP 3360x1680')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_5")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_6(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_6")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_6")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2560x1280) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1387509641).with('textdescid', 897718793).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 21)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '18:9 (3Point3 MP) 2560x1280')
- .with('text', '189 33MP 2560x1280')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_6")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_7(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_7")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_7")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2448x2448) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1757568045).with('textdescid', 1318968595).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 22)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '1:1 (6Point0 MP) 2448x2448')
- .with('text', '11 60MP 2448x2448')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_7")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Photo_Size_8(loopTime)
- tcase = TestCase.new("Pop_Photo_Size_8")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Photo_Size_8")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Photo size')
- .with('text', 'Photo size')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2160x2160) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1625190011).with('textdescid', -1339361467).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 23)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '1:1 (4Point7 MP) 2160x2160')
- .with('text', '11 47MP 2160x2160')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Photo_Size_8")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Record(loopTime)
- tcase = TestCase.new("Pop_Record")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Record")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 13)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Record")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Record_A_Video(loopTime)
- tcase = TestCase.new("Pop_Record_A_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Signature(loopTime)
- tcase = TestCase.new("Pop_Signature")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Tag_Location")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_4) do
- swipe(661.5,1989,697.5,513,25)
- waitsecond(2)
- end
- tcase << TestAction.new(:Edit_Signature) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 396042911).with('textdescid', 562164781).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Add signature')
- .with('text', 'Add signature')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Add) do
- $ruiObj = RUIObject.new.with('objectid', -367317206).with('selfid', 120621811).with('textdescid', -1407762699).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/selection_ok')
- .with('text', 'ADD')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Tag_Location")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Tag_Location(loopTime)
- tcase = TestCase.new("Pop_Tag_Location")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Tag_Location")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_2) do
- swipe(661.5,1989,697.5,513,25)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Tag_Location) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Tag locations Off switch')
- .with('text', 'Tag locations')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Tag_Location")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Take_A_Picture")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 18)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Picture")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture_Frame_1(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture_Frame_1")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_1")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Vertical_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -2124628362).with('selfid', 2047937626).with('textdescid', -875765843).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_division_vertical')
- .with('content-desc', 'Vertical Division')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Vol_Picture_Frame_1")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture_Frame_2(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture_Frame_2")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_2")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Horizonal_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -476306652).with('selfid', 707988150).with('textdescid', -1084998931).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_division_horizontal')
- .with('content-desc', 'Horizontal Division')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Picture_Frame_2")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture_Frame_3(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture_Frame_3")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_3")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Hexagon_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -631948466).with('selfid', 1555010409).with('textdescid', 1988847534).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_hexagon')
- .with('content-desc', 'Hexagon')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Picture_Frame_3")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture_Frame_4(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture_Frame_4")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_4")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Circle_Frame) do
- $ruiObj = RUIObject.new.with('objectid', 1918196194).with('selfid', 322839881).with('textdescid', -1047677586).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_circle')
- .with('content-desc', 'Circle')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Picture_Frame_4")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Picture_Frame_5(loopTime)
- tcase = TestCase.new("Pop_Take_A_Picture_Frame_5")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_5")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Frame) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Rectangle_Frame) do
- $ruiObj = RUIObject.new.with('objectid', 753275766).with('selfid', 809437900).with('textdescid', -343607323).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_rect')
- .with('content-desc', 'Rectangle')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Picture_Frame_5")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Vol_Picture(loopTime)
- tcase = TestCase.new("Pop_Take_A_Vol_Picture")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Take_A_Vol_Picture")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Volume_Key_up) do
- pressVolumeKeyUp
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_18) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Vol_Picture")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Take_A_Vol_Picture_Frame_1(loopTime)
- tcase = TestCase.new("Pop_Take_A_Vol_Picture_Frame_1")
- tcase << TestAction.new(:scriptAction_3) do
- logStartTest("Pop_Take_A_Vol_Picture_Frame_1")
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_QuickButtonMode_4) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:RelativeLayout_Popout_6) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageView_PopoutFrameParentItemArrow_8) do
- $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_PopoutFrameDivisionVertical_10) do
- $ruiObj = RUIObject.new.with('objectid', -2124628362).with('selfid', 2047937626).with('textdescid', -875765843).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/popout_frame_division_vertical')
- .with('content-desc', 'Vertical Division')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ShutterBottomCompType_13) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageView_Thumbnail_14) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_BottomMenuLayerItem5_15) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_BottomMenuLayerItem5_16) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_18) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Take_A_Vol_Picture_Frame_1")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Timer_10_Sec(loopTime)
- tcase = TestCase.new("Pop_Timer_10_Sec")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Timer_10_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_10_Sec) do
- $ruiObj = RUIObject.new.with('objectid', -767304239).with('selfid', 1127291599).with('textdescid', 1186088343).with('uniqueparentid', 0)
- .with('classname', 'LinearLayout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Wait) do
- waitsecond(8)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Timer_10_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Timer_3_Sec(loopTime)
- tcase = TestCase.new("Pop_Timer_3_Sec")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Timer_3_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 17)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '3 sec')
- .with('text', '3 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ShutterBottomComp_2) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
- .with('content-desc', 'Shutter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Wait) do
- waitsecond(2)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Timer_3_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Res_1(loopTime)
- tcase = TestCase.new("Pop_Video_Res_1")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Video_Res_1")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Video_Res) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 19)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Video resolution')
- .with('text', 'Video resolution')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_2160x1080) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 450107480).with('textdescid', 1439023304).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 17)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'FHD 18:9 2160x1080')
- .with('text', 'FHD 189 2160x1080')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Res_1")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Res_2(loopTime)
- tcase = TestCase.new("Pop_Video_Res_2")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Video_Res_2")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Video_Res) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 19)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Video resolution')
- .with('text', 'Video resolution')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_1920x1080) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1591833598).with('textdescid', 1225177506).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 19)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'FHD 16:9 1920x1080')
- .with('text', 'FHD 169 1920x1080')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Res_2")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Res_3(loopTime)
- tcase = TestCase.new("Pop_Video_Res_3")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Video_Res_3")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Video_Res) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 19)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Video resolution')
- .with('text', 'Video resolution')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_1440x720) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1279034828).with('textdescid', 710939756).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 20)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'HD 18:9 1440x720')
- .with('text', 'HD 189 1440x720')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Res_3")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Res_4(loopTime)
- tcase = TestCase.new("Pop_Video_Res_4")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Video_Res_4")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Video_Res) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 19)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Video resolution')
- .with('text', 'Video resolution')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_1280x720) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 223169256).with('textdescid', -50930888).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 21)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'HD 16:9 1280x720')
- .with('text', 'HD 169 1280x720')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Res_4")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Tag_Location(loopTime)
- tcase = TestCase.new("Pop_Video_Tag_Location")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Video_Tag_Location")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_2) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Tag_Location) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Tag locations Off switch')
- .with('text', 'Tag locations')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Tag_Location")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Timer_10_Sec(loopTime)
- tcase = TestCase.new("Pop_Video_Timer_10_Sec")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Video_Timer_10_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_10_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '10 sec')
- .with('text', '10 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Wait) do
- waitsecond(10)
- waitsecond(2)
- end
- tcase << TestAction.new(:Pause_Record) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Timer_10_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Video_Timer_3_Sec(loopTime)
- tcase = TestCase.new("Pop_Video_Timer_3_Sec")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Video_Timer_3_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 17)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '3 sec')
- .with('text', '3 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Wait) do
- waitsecond(2)
- waitsecond(2)
- end
- tcase << TestAction.new(:Pause_Record) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Video_Timer_3_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Vignette(loopTime)
- tcase = TestCase.new("Pop_Vignette")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Vignette")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popout) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 19)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:End_Log) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Vignette")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Zoom_Picture(loopTime)
- tcase = TestCase.new("Pop_Zoom_Picture")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Zoom_Picture")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_21) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Zoom_Picture")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Pop_Zoom_Video(loopTime)
- tcase = TestCase.new("Pop_Zoom_Video")
- tcase << TestAction.new(:Start_Log) do
- logStartTest("Pop_Zoom_Picture")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Popup) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Popout')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Record) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_BottomMenuLayerItem4_6) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_21) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Zoom_Picture")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Precondition(loopTime)
- tcase = TestCase.new("Precondition")
- tcase << TestAction.new(:TextView_Settings_1) do
- $ruiObj = RUIObject.new.with('objectid', 70668614).with('selfid', 1708699118).with('textdescid', -416294470).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('content-desc', 'Settings')
- .with('text', 'Settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_2) do
- $ruiObj = RUIObject.new.with('objectid', 10212784).with('selfid', 641711431).with('textdescid', -2085492536).with('uniqueparentid', 0)
- .with('uitreeindex', 8)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'General')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_3) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_4) do
- $ruiObj = RUIObject.new.with('objectid', -2099539841).with('selfid', -590378381).with('textdescid', -1400202003).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 21)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Apps')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_6) do
- scrollAndSearchText("Settings")
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_7) do
- $ruiObj = RUIObject.new.with('objectid', -1175534066).with('selfid', -374634778).with('textdescid', 1973661033).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_8) do
- $ruiObj = RUIObject.new.with('objectid', -2103271856).with('selfid', -1162414374).with('textdescid', -249377547).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 10)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Storage')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_Button3_9) do
- $ruiObj = RUIObject.new.with('objectid', 176250137).with('selfid', 72310979).with('textdescid', -665389700).with('uniqueparentid', 0).with('classresourceid', 1223821552)
- .with('uitreeindex', 11)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.settings:id/button3')
- .with('text', 'Clear data')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_Button1_11) do
- $ruiObj = RUIObject.new.with('objectid', -1004548822).with('selfid', -1318451484).with('textdescid', -405740082).with('uniqueparentid', 0).with('classresourceid', 1834539358)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'android:id/button1')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:pressHome_12) do
- pressHome
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Camera_1) do
- $ruiObj = RUIObject.new.with('objectid', -479243074).with('selfid', -1103134098).with('textdescid', 1803325250).with('uniqueparentid', 0)
- .with('uitreeindex', 22)
- .with('classname', 'TextView')
- .with('content-desc', 'Camera')
- .with('text', 'Camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:pressBack_2) do
- pressBack
- waitsecond(2)
- end
- tcase << TestAction.new(:Cick_Later) do
- $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/cancel_button')
- .with('text', 'LATER')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_CancelButton_4) do
- $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/cancel_button')
- .with('text', 'LATER')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- 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.Slomo_Flash(loopTime)
- tcase = TestCase.new("Slomo_Flash")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Flash")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Flash) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_flash')
- .with('content-desc', 'Switch to flash on')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Flash")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Slomo_Grid(loopTime)
- tcase = TestCase.new("Slomo_Grid")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Grid")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_2) do
- swipe(661.5,1989,697.5,513,25)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Grid) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Grid Off switch')
- .with('text', 'Grid')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Grid")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Slomo_Record_A_Video(loopTime)
- tcase = TestCase.new("Slomo_Record_A_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Record_A__Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Pause) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Resume_Recording) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 8)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Record_A_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Slomo_Tag_Location(loopTime)
- tcase = TestCase.new("Slomo_Tag_Location")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Tag_Location")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_2) do
- swipe(661.5,1989,697.5,513,25)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Tag_Location) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 22)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Tag locations Off switch')
- .with('text', 'Tag locations')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Tag_Location")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Slomo_Timer_10_Sec(loopTime)
- tcase = TestCase.new("Slomo_Timer_10_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Timer_10_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_10_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '10 sec')
- .with('text', '10 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait10second_9) do
- waitsecond(10)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Timer_10_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Slomo_Timer_3_Sec(loopTime)
- tcase = TestCase.new("Slomo_Timer_3_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Slomo_Timer_3_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Slomo) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Slo-mo')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 17)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '3 sec')
- .with('text', '3 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_9) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Slomo_Timer_3_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Back_Flash(loopTime)
- tcase = TestCase.new("Snap_Back_Flash")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Back_Flash")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Flash) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_flash')
- .with('content-desc', 'Switch to flash on')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Back_Flash")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Back_Grid(loopTime)
- tcase = TestCase.new("Snap_Back_Grid")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Back_Grid")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_2) do
- swipe(661.5,1989,697.5,513,25)
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Grid) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Grid Off switch')
- .with('text', 'Grid')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait2second_8) do
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Back_Grid")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Back_Timer_10_Sec(loopTime)
- tcase = TestCase.new("Snap_Back_Timer_10_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Back_Timer_10_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_10_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '10 sec')
- .with('text', '10 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_12) do
- waitsecond(12)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Back_Timer_10_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Back_Timer_3_Sec(loopTime)
- tcase = TestCase.new("Snap_Back_Timer_3_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Back_Timer_3_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 15)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '3 sec')
- .with('text', '3 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_7) do
- waitsecond(7)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Back_Timer_3_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Back_Tracking_Focus(loopTime)
- tcase = TestCase.new("Snap_Back_Tracking_Focus")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Back_Tracking_Focus")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Tracking_Focus) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 32)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) Off switch')
- .with('text', 'Track and maintain focus on a moving object FHD and HD only')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait2second_8) do
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Back_Tracking_Focus")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Front_Record_A_Normal_Video(loopTime)
- tcase = TestCase.new("Snap_Front_Record_A_Normal_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Front_Record_A_Normal_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Swap_Camera) do
- $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
- .with('content-desc', 'Switch to front camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Play) do
- $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
- .with('content-desc', 'Play')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_PermissionAllowButton_11) do
- $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
- .with('text', 'ALLOW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Back) do
- $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
- .with('content-desc', 'Back')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Reset) do
- $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
- .with('content-desc', 'Reset')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording_1) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4_1) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Front_Record_A_Normal_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Front_Record_A_Wide_Video(loopTime)
- tcase = TestCase.new("Snap_Front_Record_A_Wide_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Front_Record_A_Wide_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Swap_Camera) do
- $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
- .with('content-desc', 'Switch to front camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Wide) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
- .with('content-desc', 'Groupfie camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Play) do
- $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
- .with('content-desc', 'Play')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_PermissionAllowButton_11) do
- $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
- .with('text', 'ALLOW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Back) do
- $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
- .with('content-desc', 'Back')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Reset) do
- $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
- .with('content-desc', 'Reset')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording_1) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4_1) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Front_Record_A_Wide_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Front_Timer_10_Sec(loopTime)
- tcase = TestCase.new("Snap_Front_Timer_10_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Front_Timer_10_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Swap_Camera) do
- $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
- .with('content-desc', 'Switch to front camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Wide) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
- .with('content-desc', 'Groupfie camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_10_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '10 sec')
- .with('text', '10 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait12second_4) do
- waitsecond(12)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Front_Timer_10_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Front_Timer_3_Sec(loopTime)
- tcase = TestCase.new("Snap_Front_Timer_3_Sec")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Front_Timer_3_Sec")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Swap_Camera) do
- $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
- .with('content-desc', 'Switch to front camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Wide) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
- .with('content-desc', 'Groupfie camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Open settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Timer')
- .with('text', 'Timer')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_3_Sec) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 15)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', '3 sec')
- .with('text', '3 sec')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Front_Timer_3_Sec")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Record_A_Normal_Video(loopTime)
- tcase = TestCase.new("Snap_Record_A_Normal_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Record_A_Normal_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Play) do
- $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
- .with('content-desc', 'Play')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_PermissionAllowButton_11) do
- $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
- .with('text', 'ALLOW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Back) do
- $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
- .with('content-desc', 'Back')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Reset) do
- $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
- .with('content-desc', 'Reset')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording_1) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4_1) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Record_A_Normal_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Record_A_Video(loopTime)
- tcase = TestCase.new("Snap_Record_A_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Play) do
- $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
- .with('content-desc', 'Play')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_PermissionAllowButton_11) do
- $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
- .with('text', 'ALLOW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Back) do
- $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
- .with('content-desc', 'Back')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Reset) do
- $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
- .with('content-desc', 'Reset')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording_1) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4_1) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Pop_Record_A_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Snap_Record_A_Wide_Video(loopTime)
- tcase = TestCase.new("Snap_Record_A_Wide_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("Snap_Record_A_Wide_Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Snap) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Snap')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Wide) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
- .with('content-desc', 'Wide angle lens')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Play) do
- $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
- .with('content-desc', 'Play')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_PermissionAllowButton_11) do
- $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
- .with('text', 'ALLOW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Back) do
- $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
- .with('uitreeindex', 1)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
- .with('content-desc', 'Back')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Reset) do
- $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
- .with('content-desc', 'Reset')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording_1) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:wait4second_4_1) do
- waitsecond(4)
- end
- tcase << TestAction.new(:Click_Save) do
- $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
- .with('content-desc', 'Save')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_OkButton_22) do
- $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/ok_button')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("Snap_Record_A_Wide_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.startTest(loopTime)
- tcase = TestCase.new("startTest")
- tcase << TestAction.new(:blankaction) do
- waitsecond(0)
- end
- tcase.run(loopTime)
- end
- def self.Take_A_Picture(loopTime)
- tcase = TestCase.new("Take_A_Picture")
- tcase << TestAction.new(:Click_Shutter) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_2) do
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Take_A_Picture_With_Volume(loopTime)
- tcase = TestCase.new("Take_A_Picture_With_Volume")
- tcase << TestAction.new(:scriptAction_3) do
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Test(loopTime)
- tcase = TestCase.new("Test")
- tcase << TestAction.new(:TextView_Settings_1) do
- $ruiObj = RUIObject.new.with('objectid', 70668614).with('selfid', 1708699118).with('textdescid', -416294470).with('uniqueparentid', 0)
- .with('uitreeindex', 16)
- .with('classname', 'TextView')
- .with('content-desc', 'Settings')
- .with('text', 'Settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_2) do
- $ruiObj = RUIObject.new.with('objectid', 10212784).with('selfid', 641711431).with('textdescid', -2085492536).with('uniqueparentid', 0)
- .with('uitreeindex', 8)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'General')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:swipeDown_3) do
- swipe_vertical 5030
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_4) do
- $ruiObj = RUIObject.new.with('objectid', -2099539841).with('selfid', -590378381).with('textdescid', -1400202003).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 21)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Apps')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_6) do
- scrollAndSearchText("Camera")
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_7) do
- $ruiObj = RUIObject.new.with('objectid', -1175534066).with('selfid', -374634778).with('textdescid', 1973661033).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 28)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Title_8) do
- $ruiObj = RUIObject.new.with('objectid', -2103271856).with('selfid', -1162414374).with('textdescid', -249377547).with('uniqueparentid', 0).with('classresourceid', 490183159)
- .with('uitreeindex', 10)
- .with('classname', 'TextView')
- .with('resource-id', 'android:id/title')
- .with('text', 'Storage')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_Button3_9) do
- $ruiObj = RUIObject.new.with('objectid', 176250137).with('selfid', 72310979).with('textdescid', -665389700).with('uniqueparentid', 0).with('classresourceid', 1223821552)
- .with('uitreeindex', 11)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.settings:id/button3')
- .with('text', 'Clear data')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_Button1_11) do
- $ruiObj = RUIObject.new.with('objectid', -1004548822).with('selfid', -1318451484).with('textdescid', -405740082).with('uniqueparentid', 0).with('classresourceid', 1834539358)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'android:id/button1')
- .with('text', 'OK')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:pressHome_12) do
- pressHome
- waitsecond(2)
- end
- tcase << TestAction.new(:TextView_Camera_1) do
- $ruiObj = RUIObject.new.with('objectid', -479243074).with('selfid', -1103134098).with('textdescid', 1803325250).with('uniqueparentid', 0)
- .with('uitreeindex', 22)
- .with('classname', 'TextView')
- .with('content-desc', 'Camera')
- .with('text', 'Camera')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:pressBack_2) do
- pressBack
- waitsecond(2)
- end
- tcase << TestAction.new(:Cick_Later) do
- $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/cancel_button')
- .with('text', 'LATER')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Button_CancelButton_4) do
- $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
- .with('uitreeindex', 20)
- .with('classname', 'Button')
- .with('resource-id', 'com.lge.camera:id/cancel_button')
- .with('text', 'LATER')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.TimeLapse_Flash(loopTime)
- tcase = TestCase.new("TimeLapse_Flash")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("TimeLapse_Flash")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_TimeLapse) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Time-lapse')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Flash) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 6)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_flash')
- .with('content-desc', 'Switch to flash on')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("TimeLapse_Flash")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.TimeLapse_Record_A_Video(loopTime)
- tcase = TestCase.new("TimeLapse_Record_A_Video")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("TimeLapse_Record_A__Video")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_TimeLapse) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Time-lapse')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Pause) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 7)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Resume_Recording) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 8)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("TimeLapse_Record_A_Video")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.TimeLapse_Zoom(loopTime)
- tcase = TestCase.new("TimeLapse_Zoom")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("TimeLapse_Zoom")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_TimeLapse) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Time-lapse')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_1) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_1_1) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_1_1_1) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_1_1_1_1) do
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("TimeLapse_Zoom")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.TimeLapse_Speed_Change(loopTime)
- tcase = TestCase.new("TimeLapse_Speed_Change")
- tcase << TestAction.new(:scriptAction_28) do
- logStartTest("TimeLapse_Speed_Change")
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Mode) do
- $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_mode')
- .with('content-desc', 'Mode')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_TimeLapse) do
- $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
- .with('classname', 'RelativeLayout')
- .with('content-desc', 'Time-lapse')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Speed) do
- $ruiObj = RUIObject.new.with('objectid', -152775856).with('selfid', 880959774).with('textdescid', -441084208).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/time_lapse_parent_item_arrow')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Speed_60) do
- $ruiObj = RUIObject.new.with('objectid', -1291437158).with('selfid', -1486073746).with('textdescid', 130993795).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/time_lapse_speed60_btn')
- .with('content-desc', '60 times faster')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
- .with('uitreeindex', 10)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
- .with('content-desc', 'Start recording')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Stop_Recording) do
- $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
- .with('uitreeindex', 9)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Recent) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 14)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_Video_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:Click_Delete) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'Button')
- .with('content-desc', 'Delete')
- .with('text', 'Delete').click
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:scriptAction_25) do
- $myTestResult = checkLastExistResult
- logStopTest("TimeLapse_Speed_Change")
- 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
- Sanity_Camera_Test_2_5.exception_handler
- end
- $curProjectLogFile = $useLastLogFile
- $curProjectLogFile = "Sanity_Camera_Test_2_5_#{getTimeStamp}.log" if $useLastLogFile.nil?
- $useLastLogFile = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement