Created
April 28, 2017 17:49
-
-
Save camerasanitytest/e54a85d5473d1c28fd3daae4137c6ee4 to your computer and use it in GitHub Desktop.
Other_Camera_Test_2_5_RubyRunGenerated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loadTestDB | |
module Other_Camera_Test_2_5 | |
def self.Cinema_Flash(loopTime) | |
tcase = TestCase.new("Cinema_Flash") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Flash") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Record_A_Video(loopTime) | |
tcase = TestCase.new("Cinema_Front_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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', 5) | |
.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(: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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Tag_Location(loopTime) | |
tcase = TestCase.new("Cinema_Front_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(: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', -2083837582).with('textdescid', -1288971334).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 On 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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Cinema_Front_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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', 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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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', 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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Cinema_Front_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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', 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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Video_Res_1(loopTime) | |
tcase = TestCase.new("Cinema_Front_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_4) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1591833598).with('textdescid', 1225177506).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 14) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Video_Res_2(loopTime) | |
tcase = TestCase.new("Cinema_Front_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1279034828).with('textdescid', 710939756).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 15) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Video_Res_3(loopTime) | |
tcase = TestCase.new("Cinema_Front_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 223169256).with('textdescid', -50930888).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 16) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Front_Zoom(loopTime) | |
tcase = TestCase.new("Cinema_Front_Zoom") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Front_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Front_Zoom") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Grid(loopTime) | |
tcase = TestCase.new("Cinema_Grid") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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', 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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(: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', 795465592).with('textdescid', -1093461516).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 On switch') | |
.with('text', 'Grid') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Record_A_Video(loopTime) | |
tcase = TestCase.new("Cinema_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Speed_1(loopTime) | |
tcase = TestCase.new("Cinema_Speed_1") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_Speed_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_CineZoom) do | |
$ruiObj = RUIObject.new.with('objectid', 777909627).with('selfid', 454831674).with('textdescid', 2133936086).with('uniqueparentid', 1695236938) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom') | |
.with('content-desc', 'Cinema') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Speed) do | |
$ruiObj = RUIObject.new.with('objectid', -704444957).with('selfid', -1866202122).with('textdescid', -645614294).with('uniqueparentid', 1695236938) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom_speed') | |
.with('content-desc', 'Speed') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Speed_1) do | |
$ruiObj = RUIObject.new.with('objectid', -704444957).with('selfid', -1866202122).with('textdescid', -645614294).with('uniqueparentid', 1695236938) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom_speed') | |
.with('content-desc', 'Speed') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Speed_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Speed_2(loopTime) | |
tcase = TestCase.new("Cinema_Speed_2") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_Speed_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_CineZoom) do | |
$ruiObj = RUIObject.new.with('objectid', 777909627).with('selfid', 454831674).with('textdescid', 2133936086).with('uniqueparentid', 1695236938) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom') | |
.with('content-desc', 'Cinema') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Speed_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Speed_3(loopTime) | |
tcase = TestCase.new("Cinema_Speed_3") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_Speed_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_CineZoom) do | |
$ruiObj = RUIObject.new.with('objectid', 777909627).with('selfid', 454831674).with('textdescid', 2133936086).with('uniqueparentid', 1695236938) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom') | |
.with('content-desc', 'Cinema') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Speed) do | |
$ruiObj = RUIObject.new.with('objectid', -704444957).with('selfid', -1866202122).with('textdescid', -645614294).with('uniqueparentid', 0) | |
.with('uitreeindex', 2) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/btn_cine_zoom_speed') | |
.with('content-desc', 'Speed') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Speed_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Tag_Location(loopTime) | |
tcase = TestCase.new("Cinema_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(: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', -2083837582).with('textdescid', -1288971334).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 On 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', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Cinema_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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', 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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Cinema_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Tracking_Focus(loopTime) | |
tcase = TestCase.new("Cinema_Tracking_Focus") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Cinema_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', 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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(:scriptAction_2) do | |
swipe(661.5,1989,697.5,513,25) | |
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', 17) | |
.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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Tracking_Focus") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Video_Res_1(loopTime) | |
tcase = TestCase.new("Cinema_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_3840x2160) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 79288556).with('textdescid', 2081471604).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 14) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', 'UHD 16:9 3840x2160') | |
.with('text', 'UHD 169 3840x2160') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Video_Res_2(loopTime) | |
tcase = TestCase.new("Cinema_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 450107480).with('textdescid', 1439023304).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 15) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Video_Res_3(loopTime) | |
tcase = TestCase.new("Cinema_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1591833598).with('textdescid', 1225177506).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 17) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Video_Res_4(loopTime) | |
tcase = TestCase.new("Cinema_Video_Res_4") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1279034828).with('textdescid', 710939756).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 18) | |
.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_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(:scriptAction_2) do | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = checkLastExistResult | |
logStopTest("Cinema_Video_Res_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Video_Res_5(loopTime) | |
tcase = TestCase.new("Cinema_Video_Res_5") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_Video_Res_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', 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_Cinema) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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_Video_Res) do | |
$ruiObj = RUIObject.new.with('objectid', -952384607).with('selfid', 1076578872).with('textdescid', -184543574).with('uniqueparentid', 0).with('classresourceid', 1698161716) | |
.with('classname', 'LinearLayout') | |
.with('resource-id', 'com.lge.camera:id/multi_select_item_layout') | |
$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', 19) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Video_Res_5") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Cinema_Zoom(loopTime) | |
tcase = TestCase.new("Cinema_Zoom") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Cinema_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(:RelativeLayout_Cinema_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -1383961735).with('textdescid', -124173636).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Cinema') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Cinema_Zoom") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Flash_Picture(loopTime) | |
tcase = TestCase.new("Food_Flash_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Flash_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 8) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) do | |
$ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0) | |
.with('uitreeindex', 8) | |
.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_Flash_1_1) do | |
$ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0) | |
.with('uitreeindex', 8) | |
.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(:scriptAction_21) do | |
$myTestResult = checkLastExistResult | |
logStopTest("Food_Flash_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Flash_Video(loopTime) | |
tcase = TestCase.new("Food_Flash_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Flash_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Flash_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Grid(loopTime) | |
tcase = TestCase.new("Food_Grid") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507) | |
.with('uitreeindex', 26) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_title_textview') | |
.with('content-desc', 'Grid On switch') | |
.with('text', 'Grid') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Grid_Video(loopTime) | |
tcase = TestCase.new("Food_Grid_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Grid_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Grid_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_HDR_Picture(loopTime) | |
tcase = TestCase.new("Food_HDR_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_HDR_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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_HDR) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 29) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_On) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', -931036775).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', 'On') | |
.with('text', 'On') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_HDR_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_HDR_Video(loopTime) | |
tcase = TestCase.new("Food_HDR_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_HDR_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_HDR) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 27) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_On) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 17) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', 'On') | |
.with('text', 'On') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_HDR_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_1(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_1") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_6) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 16) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '4:3 (16 MP) 4656x3492') | |
.with('text', '43 16MP 4656x3492') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_2(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_2") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 17) | |
.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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_3(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_3") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 210818313).with('textdescid', -122535369).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 18) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '16:9 (12 MP) 4656x2620') | |
.with('text', '169 12MP 4656x2620') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_4(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_4") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = checkLastExistResult | |
logStopTest("Food_Photo_Size_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_5(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_5") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1709844087).with('textdescid', -661563593).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 20) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '18:9 (11 MP) 4656x2328') | |
.with('text', '189 11MP 4656x2328') | |
$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(:scriptAction_2) do | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = checkLastExistResult | |
logStopTest("Food_Photo_Size_5") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_6(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_6") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1387509641).with('textdescid', 897718793).with('uniqueparentid', 1929048620).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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_6") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_7(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_7") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1583081847).with('textdescid', 1000213193).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 22) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '1:1 (12 MP) 3492x3492') | |
.with('text', '11 12MP 3492x3492') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_7") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Photo_Size_8(loopTime) | |
tcase = TestCase.new("Food_Photo_Size_8") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 799358037).with('textdescid', 553147819).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 23) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '1:1 (3Point4 MP) 1836x1836') | |
.with('text', '11 34MP 1836x1836') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Photo_Size_8") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Record_A_Video(loopTime) | |
tcase = TestCase.new("Food_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 16) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Signature(loopTime) | |
tcase = TestCase.new("Food_Signature") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Signature") | |
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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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_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(:Button_SelectionOk_4) 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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Signature") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Signature_Video(loopTime) | |
tcase = TestCase.new("Food_Signature_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Signature_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Signature) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1499833692).with('textdescid', 939208152).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 29) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('content-desc', 'elge Kim On switch') | |
.with('text', 'elge Kim') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 581907319) | |
.with('uitreeindex', 15) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Signature_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Tag_Location(loopTime) | |
tcase = TestCase.new("Food_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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(:TextView_SettingsTitleTextview_4) do | |
$ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).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 On switch') | |
.with('text', 'Tag locations') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Tag_Location_Video(loopTime) | |
tcase = TestCase.new("Food_Tag_Location_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Tag_Location_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Tag_Location_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Take_A_Picture(loopTime) | |
tcase = TestCase.new("Food_Take_A_Picture") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Take_A_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Food_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 34) | |
.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', 1347879070).with('classresourceid', 2074814108) | |
.with('uitreeindex', 20) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Timer_10_Sec_Video(loopTime) | |
tcase = TestCase.new("Food_Timer_10_Sec_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Timer_10_Sec_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:CheckedTextView_Text1_2) 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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_2) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Timer_10_Sec_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Food_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 34) | |
.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', 1347879070).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Timer_3_Sec_Video(loopTime) | |
tcase = TestCase.new("Food_Timer_3_Sec_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Timer_3_Sec_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Timer_3_Sec_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Video_Res_1(loopTime) | |
tcase = TestCase.new("Food_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Video_Res_2(loopTime) | |
tcase = TestCase.new("Food_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Video_Res_3(loopTime) | |
tcase = TestCase.new("Food_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Video_Res_4(loopTime) | |
tcase = TestCase.new("Food_Video_Res_4") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Video_Res_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_WB_Picture(loopTime) | |
tcase = TestCase.new("Food_WB_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_WB_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Adjust_WB) do | |
click(1080,2425.5) | |
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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_WB_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_WB_Video(loopTime) | |
tcase = TestCase.new("Food_WB_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_WB_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:clickXY_1080_24255_2) do | |
click(1080,2425.5) | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 581907319) | |
.with('uitreeindex', 15) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_WB_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Flash_Picture(loopTime) | |
tcase = TestCase.new("Food_Wide_Flash_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_Flash_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 8) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Flash_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Flash_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Flash_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_Flash_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 14) | |
.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', 11) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Flash_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Grid(loopTime) | |
tcase = TestCase.new("Food_Wide_Grid") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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(:TextView_SettingsTitleTextview_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507) | |
.with('uitreeindex', 26) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_title_textview') | |
.with('content-desc', 'Grid On switch') | |
.with('text', 'Grid') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Grid_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Grid_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_Grid_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record_1) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 14) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Stop_Recording_1) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 10) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Grid_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_HDR_Picture(loopTime) | |
tcase = TestCase.new("Food_Wide_HDR_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_HDR_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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_HDR) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 29) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_On) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', -931036775).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', 'On') | |
.with('text', 'On') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_HDR_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_HDR_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_HDR_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_HDR_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_HDR) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 27) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_On) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108) | |
.with('uitreeindex', 17) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', 'On') | |
.with('text', 'On') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_HDR_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_1(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_1") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_6) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 16) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '4:3 (16 MP) 4656x3492') | |
.with('text', '43 16MP 4656x3492') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_2(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_2") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 17) | |
.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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_3(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_3") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 210818313).with('textdescid', -122535369).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 18) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '16:9 (12 MP) 4656x2620') | |
.with('text', '169 12MP 4656x2620') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_4(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_4") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_5(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_5") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1709844087).with('textdescid', -661563593).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 20) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '18:9 (11 MP) 4656x2328') | |
.with('text', '189 11MP 4656x2328') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_5") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_6(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_6") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1387509641).with('textdescid', 897718793).with('uniqueparentid', 1929048620).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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_6") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_7(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_7") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1583081847).with('textdescid', 1000213193).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 22) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '1:1 (12 MP) 3492x3492') | |
.with('text', '11 12MP 3492x3492') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_7") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Photo_Size_8(loopTime) | |
tcase = TestCase.new("Food_Wide_Photo_Size_8") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 1133450061).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(:CheckedTextView_Text1_2) do | |
$ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 799358037).with('textdescid', 553147819).with('uniqueparentid', 1929048620).with('classresourceid', 2074814108) | |
.with('uitreeindex', 23) | |
.with('classname', 'CheckedTextView') | |
.with('resource-id', 'android:id/text1') | |
.with('content-desc', '1:1 (3Point4 MP) 1836x1836') | |
.with('text', '11 34MP 1836x1836') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Photo_Size_8") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Record_A_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:ImageButton_BtnDualviewWideRange_2) do | |
$ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 15) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Signature(loopTime) | |
tcase = TestCase.new("Food_Wide_Signature") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_Signature") | |
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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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_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(:Button_SelectionOk_4) 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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Signature") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Signature_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Signature_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_Signature_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 18) | |
.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_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_Signature) do | |
$ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1499833692).with('textdescid', 939208152).with('uniqueparentid', 0).with('classresourceid', 1165955609) | |
.with('uitreeindex', 29) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge.camera:id/settings_guide_textview') | |
.with('content-desc', 'elge Kim On switch') | |
.with('text', 'elge Kim') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 15) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Signature_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Tag_Location(loopTime) | |
tcase = TestCase.new("Food_Wide_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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(:TextView_SettingsTitleTextview_4) do | |
$ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).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 On switch') | |
.with('text', 'Tag locations') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Tag_Location_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Tag_Location_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_Tag_Location_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Tag_Location_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Take_A_Picture(loopTime) | |
tcase = TestCase.new("Food_Wide_Take_A_Picture") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:ImageButton_BtnDualviewWideRange_2_1) do | |
$ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Take_A_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Food_Wide_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 34) | |
.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', 1347879070).with('classresourceid', 2074814108) | |
.with('uitreeindex', 20) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Timer_10_Sec_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Timer_10_Sec_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_Timer_10_Sec_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:CheckedTextView_Text1_2) 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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Timer_10_Sec_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Food_Wide_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 4) | |
.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', 34) | |
.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', 1347879070).with('classresourceid', 2074814108) | |
.with('uitreeindex', 19) | |
.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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Timer_3_Sec_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Timer_3_Sec_Video") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_Timer_3_Sec_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', 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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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', 792434779) | |
.with('uitreeindex', 15) | |
.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(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Timer_3_Sec_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Video_Res_1(loopTime) | |
tcase = TestCase.new("Food_Wide_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Video_Res_2(loopTime) | |
tcase = TestCase.new("Food_Wide_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Video_Res_3(loopTime) | |
tcase = TestCase.new("Food_Wide_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Video_Res_4(loopTime) | |
tcase = TestCase.new("Food_Wide_Video_Res_4") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Video_Res_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_WB_Picture(loopTime) | |
tcase = TestCase.new("Food_Wide_WB_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_WB_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Adjust_WB) do | |
click(1080,2425.5) | |
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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_WB_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_WB_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_WB_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_WB_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:clickXY_1080_24255_2) do | |
click(1080,2425.5) | |
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', 15) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_WB_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Zoom_Picture(loopTime) | |
tcase = TestCase.new("Food_Wide_Zoom_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_Wide_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Zoom_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Wide_Zoom_Video(loopTime) | |
tcase = TestCase.new("Food_Wide_Zoom_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Wide_Zoom_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 15) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Wide_Zoom_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Zoom_Picture(loopTime) | |
tcase = TestCase.new("Food_Zoom_Picture") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("Food_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_Food) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Zoom_Picture") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Food_Zoom_Video(loopTime) | |
tcase = TestCase.new("Food_Zoom_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Food_Zoom_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(:RelativeLayout_Food_2) do | |
$ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2112454100).with('textdescid', 998587305).with('uniqueparentid', 0) | |
.with('classname', 'RelativeLayout') | |
.with('content-desc', 'Food') | |
$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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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', 9) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Food_Zoom_Video") | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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('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(: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(:checkAndDelete) do | |
checkAndDelete | |
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_Signature") | |
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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Pop_Signature") | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Pop_Take_A_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_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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
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(:scriptAction_2) do | |
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') | |
$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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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_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', 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_21) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Pop_Zoom_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Precondition(loopTime) | |
tcase = TestCase.new("Precondition") | |
tcase << TestAction.new(:pressHome_2) do | |
pressHome | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_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(:Click_General) 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(3) | |
end | |
tcase << TestAction.new(:ScrollAndSearch_Apps) do | |
scrollAndSearchText("Apps") | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Apps) 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(:ScollAndSearch_Camera) do | |
scrollAndSearchText("Camera") | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Camera) 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(:Click_Storage) 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(:Click_Clear_Data) 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(:Confirm) 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(:GoTo_Camera) 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(:Click_Later_1) 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.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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1_1) 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_Flash_1_1_1) 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(:scriptAction_3) 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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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.Slomo_Wide_Flash(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Flash") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_Flash") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Slomo_Wide_Grid(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Grid") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Slomo_Wide_Record_A_Video(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:ImageButton_BtnDualviewWideRange_2) 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(: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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Slomo_Wide_Tag_Location(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Tag_Location") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Slomo_Wide_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Timer_10_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Slomo_Wide_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Slomo_Wide_Timer_3_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Slomo_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(: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(:checkAndDelete) do | |
checkAndDelete | |
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_Record_A_VIdeo(loopTime) | |
tcase = TestCase.new("Snap_Back_Record_A_VIdeo") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Record_A_Video") | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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_Back_Wide_Flash(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Flash") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_Flash") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Back_Wide_Grid(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Grid") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Back_Wide_Record_A_Video(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:ImageButton_BtnDualviewWideRange_2_1) 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Back_Wide_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Timer_10_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Back_Wide_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Timer_3_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Back_Wide_Tracking_Focus(loopTime) | |
tcase = TestCase.new("Snap_Back_Wide_Tracking_Focus") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Back_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
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_Video(loopTime) | |
tcase = TestCase.new("Snap_Front_Record_A_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(:checkAndDelete) do | |
checkAndDelete | |
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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
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_Front_Wide_Record_A_Video(loopTime) | |
tcase = TestCase.new("Snap_Front_Wide_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Front_Wide_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_Swap_Camera_1) 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(:ImageButton_BtnDualviewWideRange_2_1_1) 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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Front_Wide_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Front_Wide_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("Snap_Front_Wide_Timer_10_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Front_Wide_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(: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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Front_Wide_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.Snap_Front_Wide_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("Snap_Front_Wide_Timer_3_Sec") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("Snap_Front_Wide_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_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(:scriptAction_2) do | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("Snap_Front_Wide_Timer_3_Sec") | |
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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Flash") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Grid(loopTime) | |
tcase = TestCase.new("TimeLapse_Grid") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Grid") | |
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(:checkAndDelete) do | |
checkAndDelete | |
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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Speed_Change") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Tag_Location(loopTime) | |
tcase = TestCase.new("TimeLapse_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_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_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_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_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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("TimeLapse_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_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_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_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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(8) | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("TimeLapse_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_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_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_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_ShutterTopComp_2) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(:ImageButton_ShutterTopComp_4) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Tracking_Focus(loopTime) | |
tcase = TestCase.new("TimeLapse_Tracking_Focus") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_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', 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_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_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(:scriptAction_2) do | |
swipe(661.5,1989,697.5,513,25) | |
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', 17) | |
.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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Tracking_Focus") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Video_Res_1(loopTime) | |
tcase = TestCase.new("TimeLapse_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Video_Res_2(loopTime) | |
tcase = TestCase.new("TimeLapse_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Video_Res_3(loopTime) | |
tcase = TestCase.new("TimeLapse_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Video_Res_4(loopTime) | |
tcase = TestCase.new("TimeLapse_Video_Res_4") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Video_Res_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Flash(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Flash") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_Flash_1) 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_Flash_1_1) 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(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Flash") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Grid(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Grid") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Grid") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Record_A_Video(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Record_A_Video") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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(:ImageButton_BtnDualviewWideRange_2) do | |
$ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0) | |
.with('uitreeindex', 16) | |
.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(: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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Record_A_Video") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Speed_Change(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Speed_Change") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Speed_Change") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Tag_Location(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Tag_Location") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_Wide_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_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_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_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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Tag_Location") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Timer_10_Sec(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Timer_10_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_Wide_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_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_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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(8) | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Stop_Recording) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 6) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Timer_10_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Timer_3_Sec(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Timer_3_Sec") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_Wide_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_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_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_ShutterTopComp_2) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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(:ImageButton_ShutterTopComp_4) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Timer_3_Sec") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Tracking_Focus(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Tracking_Focus") | |
tcase << TestAction.new(:Start_Log) do | |
logStartTest("TimeLapse_Wide_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', 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_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_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(:scriptAction_2) do | |
swipe(661.5,1989,697.5,513,25) | |
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', 17) | |
.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_Record) do | |
$ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 15) | |
.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', -1272519145).with('selfid', -1930433243).with('textdescid', -1819100772).with('uniqueparentid', 792434779) | |
.with('uitreeindex', 5) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_top_comp') | |
.with('content-desc', 'Stop recording') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:End_Log) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Tracking_Focus") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Video_Res_1(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Video_Res_1") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Video_Res_1") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Video_Res_2(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Video_Res_2") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Video_Res_2") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Video_Res_3(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Video_Res_3") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Video_Res_3") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Video_Res_4(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Video_Res_4") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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_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_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Video_Res_4") | |
waitsecond(2) | |
end | |
tcase.run(loopTime) | |
end | |
def self.TimeLapse_Wide_Zoom(loopTime) | |
tcase = TestCase.new("TimeLapse_Wide_Zoom") | |
tcase << TestAction.new(:scriptAction_28) do | |
logStartTest("TimeLapse_Wide_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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Wide_Zoom") | |
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(:checkAndDelete) do | |
checkAndDelete | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:scriptAction_25) do | |
$myTestResult = !checkLastExistResult | |
logStopTest("TimeLapse_Zoom") | |
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.Set_Gallery_Default(loopTime) | |
tcase = TestCase.new("Set_Gallery_Default") | |
tcase << TestAction.new(:Click_Shutter) do | |
$ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0) | |
.with('uitreeindex', 10) | |
.with('classname', 'ImageButton') | |
.with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Click_review) 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(:Click_Gallery) do | |
$ruiObj = RUIObject.new.with('objectid', 1736845148).with('selfid', 1695477105).with('textdescid', -880470158).with('uniqueparentid', 0).with('classresourceid', -472389065) | |
.with('uitreeindex', 2) | |
.with('classname', 'TextView') | |
.with('resource-id', 'com.lge:id/resolver_text') | |
.with('text', 'Gallery') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(:Confirm) do | |
$ruiObj = RUIObject.new.with('objectid', -1049422851).with('selfid', -808516471).with('textdescid', -374437087).with('uniqueparentid', 0).with('classresourceid', 771022871) | |
.with('uitreeindex', 8) | |
.with('classname', 'Button') | |
.with('resource-id', 'com.lge:id/allow_button') | |
.with('text', 'OK') | |
$ruiObj.click | |
waitsecond(2) | |
end | |
tcase << TestAction.new(: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(:Delete_1) 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(:Delete_1_1) 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(:Delete_1_1_1) 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.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 = "none" | |
startTest 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Set_Gallery_Default 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Vol_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture_Frame_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture_Frame_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture_Frame_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture_Frame_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Take_A_Picture_Frame_5 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Fisheye 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_BW 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Vignette 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Lens_Blur 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_SIze_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_size_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_5 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_6 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_7 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Photo_Size_8 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Signature 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Zoom_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Pop_Video_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Record_A_VIdeo 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Tracking_Focus 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Tracking_Focus 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Back_Wide_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Record_A_Normal_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Wide_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Wide_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Snap_Front_Wide_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Slomo_Wide_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Zoom 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Speed_Change 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Zoom 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Speed_Change 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
TimeLapse_Wide_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Flash 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Zoom 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Video_Res_5 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Speed_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Speed_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Speed_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Cinema_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Take_A_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Zoom_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Flash_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_WB_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_5 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_6 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_7 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Photo_Size_8 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_HDR_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Signature 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Take_A_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Zoom_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Flash_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_WB_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_5 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_6 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_7 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Photo_Size_8 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_HDR_Picture 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Tag_Location 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Grid 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Signature 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Timer_3_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Timer_10_Sec 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Zoom_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Flash_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_WB_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_HDR_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Tag_Location_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Grid_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Signature_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Timer_3_Sec_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Timer_10_Sec_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Precondition 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Record_A_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Zoom_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Flash_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_WB_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Video_Res_1 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Video_Res_2 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Video_Res_3 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Video_Res_4 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_HDR_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Tag_Location_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Grid_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Tag_Location_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Signature_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Timer_3_Sec_Video 1 | |
waitsecond(2) | |
$actionParamInput = "none" | |
Food_Wide_Timer_10_Sec_Video 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.exception_handler | |
puts "Module Exception Hanlder..." | |
end | |
def self.run(loop) | |
mainLoop loop | |
end | |
end | |
$exceptionPackageNameList = [] | |
$exceptionPackageNameList_exclude = [] | |
def exception_handler | |
Other_Camera_Test_2_5.exception_handler | |
end | |
$curProjectLogFile = $useLastLogFile | |
$curProjectLogFile = "Other_Camera_Test_2_5_#{getTimeStamp}.log" if $useLastLogFile.nil? | |
$useLastLogFile = nil | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment