Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- loadTestDB
- module Picture_Auto_2_1
- def self.Photo_Size_16_9_12MP(loopTime)
- tcase = TestCase.new("Photo_Size_16_9_12MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:Size_16_9_12MP) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 210818313).with('textdescid', -122535369).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_16_9_6MP(loopTime)
- tcase = TestCase.new("Photo_Size_16_9_6MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:CheckedTextView_Text1_2) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_18_9_11MP(loopTime)
- tcase = TestCase.new("Photo_Size_18_9_11MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:CheckedTextView_Text1_2) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1709844087).with('textdescid', -661563593).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_18_9_33MP(loopTime)
- tcase = TestCase.new("Photo_Size_18_9_33MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:CheckedTextView_Text1_2) 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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_1_1_12MP(loopTime)
- tcase = TestCase.new("Photo_Size_1_1_12MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:CheckedTextView_Text1_2) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1583081847).with('textdescid', 1000213193).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_1_1_34MP(loopTime)
- tcase = TestCase.new("Photo_Size_1_1_34MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:Size_1_1_34MP) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 799358037).with('textdescid', 553147819).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_4_3_8MP(loopTime)
- tcase = TestCase.new("Photo_Size_4_3_8MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:Size_4_3_8MP) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -2021332261).with('textdescid', 1929999013).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto(loopTime)
- tcase = TestCase.new("PictureAuto")
- tcase << TestAction.new(:gotoApp_Camera) do
- gotoApp('Camera')
- waitsecond(2)
- end
- tcase << TestAction.new(:ImageButton_ShutterBottomCompType_4) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 13)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 37)
- .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(:Open_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 51)
- .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(:Choose_Size) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 51)
- .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(:CameraRoll_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 34)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:HDR) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 38)
- .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(:HDR_Auto) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 27)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Auto')
- .with('text', 'Auto')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 43)
- .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(:Timer_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 27)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Swipe_Down_1) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:CheeseShutter_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1656152154).with('textdescid', 268940314).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 30)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". On switch')
- .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TrackingFocus_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 33)
- .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) On switch')
- .with('text', 'Track and maintain focus on a moving object FHD and HD only')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:SteadyRecording_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1883243620).with('textdescid', -1717296872).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 36)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Reduce motion blur in videos On switch')
- .with('text', 'Reduce motion blur in videos')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TagLocations_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 38)
- .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(:Grid_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 40)
- .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(:Shutter_Button_Picture) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 45)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Volume_Key_Down_Picture) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:Wide_View) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
- .with('uitreeindex', 49)
- .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(:Normal_View) do
- $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
- .with('uitreeindex', 47)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
- .with('content-desc', 'Normal angle lens')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_1) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 40)
- .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(:Picture_Flash_1) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 40)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_2) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 34)
- .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(:Picture_Flash_2) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 38)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_3) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 33)
- .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(:Film_Nostalgia) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 31)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Nostalgia) do
- $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Nostalgia')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Nostalgia) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 36)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_Vintage) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Vintage) do
- $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', -1080487287).with('textdescid', 1015726315).with('uniqueparentid', 0)
- .with('uitreeindex', 31)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Vintage')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Vintage) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 62)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_Urban) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Urban) do
- $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', 1940191773).with('textdescid', -2128688937).with('uniqueparentid', 0)
- .with('uitreeindex', 33)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Urban')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Urban) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 36)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_BW) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:BW) do
- $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 854397148).with('textdescid', -581214946).with('uniqueparentid', 0)
- .with('uitreeindex', 37)
- .with('classname', 'android.view.View')
- .with('content-desc', 'BW')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_BW) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 36)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_Vivid) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Vivid) do
- $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 1961112433).with('textdescid', -794062283).with('uniqueparentid', 0)
- .with('uitreeindex', 41)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Vivid')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Vivid) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 36)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_1839) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film1839) do
- $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 720302372).with('textdescid', 1325839409).with('uniqueparentid', 0)
- .with('uitreeindex', 28)
- .with('classname', 'android.view.View')
- .with('content-desc', '1839')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_1839) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_Jade) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Jade) do
- $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 744660281).with('textdescid', 2080934588).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Jade')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Jade) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_Violet) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Violet) do
- $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 658571602).with('textdescid', 890851459).with('uniqueparentid', 0)
- .with('uitreeindex', 32)
- .with('classname', 'android.view.View')
- .with('content-desc', 'Violet')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_Violet) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Film_None) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:None) do
- $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 748781049).with('textdescid', 166290721).with('uniqueparentid', 0)
- .with('uitreeindex', 22)
- .with('classname', 'android.view.View')
- .with('content-desc', 'None')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:CameraRoll_On) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Exit_Settings_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', -2121216327).with('selfid', -1434280311).with('textdescid', -1333196665).with('uniqueparentid', 0)
- .with('classname', 'ListView')
- .with('resource-id', 'com.lge.camera:id/thumbnail_listview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Exit_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', -1549616416).with('selfid', -767978611).with('textdescid', -793468608).with('uniqueparentid', 0)
- .with('uitreeindex', 33)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/back_button')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_HDR_On) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', -1333196665)
- .with('uitreeindex', 17)
- .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(:Post_CameraRoll_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 34)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:HDR_1) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 38)
- .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(:HDR_On) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 28)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'On')
- .with('text', 'On')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_HDR_On) 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(:Open_Camera_Settings_HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:HDR_2) 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(:HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_Timer_3sec) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Post_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(:Post_HDR_Auto) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Auto')
- .with('text', 'Auto')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Timer_1) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 32)
- .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(:Timer_3sec) 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(:Picture_Timer_3sec) 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(5)
- end
- tcase << TestAction.new(:Open_Camera_Settings_Timer_10sec) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Timer_2) 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(:Timer_10sec) 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(:Picture_Timer_10sec) 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(12)
- end
- tcase << TestAction.new(:Open_Camera_Settings_TrackingFocus) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Post_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(:Post_Timer_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TrackingFocus_Test) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 37)
- .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(:Picture_TrackingFocus_On) 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(:Open_Camera_Settings_TagLocations) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Swipe_Down_2) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_TrackingFocus_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 22)
- .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) On switch')
- .with('text', 'Track and maintain focus on a moving object FHD and HD only')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TagLocations_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Picture_TagLocations_On) 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(:Open_Camera_Settings_Grid) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Swipe_Down_3) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_TagLocations_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Grid_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:Picture_Grid_On) 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(:Open_Camera_Settings_SimpleView) 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(:Swipe_Down_4) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_Grid_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:SimpleView_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_ClickCenter) do
- click(getDisplayWidth/2, getDisplayHeight/2)
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_VolumeKey) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAutoTest(loopTime)
- tcase = TestCase.new("PictureAutoTest")
- tcase << TestAction.new(:Shutter_Button_Picture) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 45)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Volume_Key_Down_Picture) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:Wide_View) do
- $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
- .with('uitreeindex', 49)
- .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(:Normal_View) do
- $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
- .with('uitreeindex', 47)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
- .with('content-desc', 'Normal angle lens')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_1) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 40)
- .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(:Picture_Flash_1) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 40)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_2) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 34)
- .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(:Picture_Flash_2) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 38)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Toggle_Flash_3) do
- $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
- .with('uitreeindex', 33)
- .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(:FilmChange) do
- rng = Random.new()
- for i in 0..2
- waitsecond(2)
- RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 31)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter').click
- waitsecond(2)
- index = rng.rand(db('FilmChange').length-1)
- RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'android.view.View')
- .with('content-desc', db('FilmChange')[index]).click
- waitsecond(2)
- RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 36)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type').click
- end
- waitsecond(2)
- RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 31)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter').click
- waitsecond(2)
- RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'android.view.View')
- .with('content-desc', 'None').click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:CameraRoll_On) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Exit_Settings_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Check_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', -2121216327).with('selfid', -1434280311).with('textdescid', -1333196665).with('uniqueparentid', 0)
- .with('classname', 'ListView')
- .with('resource-id', 'com.lge.camera:id/thumbnail_listview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Exit_CameraRoll) do
- $ruiObj = RUIObject.new.with('objectid', -1549616416).with('selfid', -767978611).with('textdescid', -793468608).with('uniqueparentid', 0)
- .with('uitreeindex', 33)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/back_button')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_HDR_On) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', -1333196665)
- .with('uitreeindex', 17)
- .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(:Post_CameraRoll_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 34)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:HDR_1) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 38)
- .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(:HDR_On) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 28)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'On')
- .with('text', 'On')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_HDR_On) 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(:Open_Camera_Settings_HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:HDR_2) 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(:HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Picture_HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings_Timer_3sec) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Post_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(:Post_HDR_Auto) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Auto')
- .with('text', 'Auto')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Timer_1) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 32)
- .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(:Timer_3sec) 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(:Picture_Timer_3sec) 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(5)
- end
- tcase << TestAction.new(:Open_Camera_Settings_Timer_10sec) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Timer_2) 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(:Timer_10sec) 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(:Picture_Timer_10sec) 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(12)
- end
- tcase << TestAction.new(:Open_Camera_Settings_TrackingFocus) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Post_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(:Post_Timer_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TrackingFocus_Test) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 37)
- .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(:Picture_TrackingFocus_On) 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(:Open_Camera_Settings_TagLocations) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Swipe_Down_2) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_TrackingFocus_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 22)
- .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) On switch')
- .with('text', 'Track and maintain focus on a moving object FHD and HD only')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TagLocations_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Picture_TagLocations_On) 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(:Open_Camera_Settings_Grid) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Swipe_Down_3) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_TagLocations_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Grid_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:Picture_Grid_On) 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(:Open_Camera_Settings_SimpleView) 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(:Swipe_Down_4) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Post_Grid_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:SimpleView_Test) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_ClickCenter) do
- click(getDisplayWidth/2, getDisplayHeight/2)
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_VolumeKey) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:SimpleView_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- 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.mainLoop(loopTime)
- WebSocketXServer.setAutoUpdate(false)
- index = $mainResumeMainLoop
- $mainResumeMainLoop = 0
- writelog("mainLoop::#{index}::Resume") if index > 0
- while index < loopTime
- $curMainLoopNum = index
- $actionParamInput = "none"
- Preconditions 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_4_3_16MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_4_3_8MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_16_9_12MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_16_9_6MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_18_9_11MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_18_9_33MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_1_1_12MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 1
- waitsecond(2)
- $actionParamInput = "none"
- Photo_Size_1_1_34MP 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_3_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_4_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_5 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_6 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_7 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_8 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_9_2 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_10 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_11 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_12 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_13 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_14 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_15 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_16 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_17 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_18 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_19 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_20 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_21 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_22 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_1 1
- waitsecond(2)
- $actionParamInput = "none"
- PictureAuto_2_1_1_23_2 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.Preconditions(loopTime)
- tcase = TestCase.new("Preconditions")
- tcase << TestAction.new(:gotoApp_Camera) do
- gotoApp('Camera')
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Open_Photo_Size) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 17)
- .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(:Photo_Size_43_16MP) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).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(:CameraRoll_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 24)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(: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(:HDR_Auto) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Auto')
- .with('text', 'Auto')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Timer) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 32)
- .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(:Timer_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Swipe_Down) do
- swipe(getDisplayHeight/2, getDisplayWidth/2, getDisplayWidth/2, getDisplayHeight/32, 10)
- waitsecond(2)
- end
- tcase << TestAction.new(:CheeseShutter_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1656152154).with('textdescid', 268940314).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 19)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". On switch')
- .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TrackingFocus_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 22)
- .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) On switch')
- .with('text', 'Track and maintain focus on a moving object FHD and HD only')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:TagLocations_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Grid_Off) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:AddSignature_Off) do
- $ruiObj = RUIObject.new.with('objectid', -683742256).with('selfid', -1859439098).with('textdescid', 55853521).with('uniqueparentid', 0).with('classresourceid', -1698211271)
- .with('uitreeindex', 35)
- .with('classname', 'Switch')
- .with('resource-id', 'com.lge.camera:id/setting_switch')
- .with('text', 'ON')
- $ruiObj.select('ItemLast').click
- waitsecond(2)
- end
- tcase << TestAction.new(:Exit_Camera_Setting) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.Photo_Size_4_3_16MP(loopTime)
- tcase = TestCase.new("Photo_Size_4_3_16MP")
- tcase << TestAction.new(:Open_Camera_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(: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(:Size_4_3_16MP) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).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(:Exit_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
- .with('content-desc', 'Close settings')
- $ruiObj.click
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_2(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_2")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_2_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Volume_Key_Button) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_2_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_3_1(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_3_1")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_3_1_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 12)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_3_1_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_3_2(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_3_2")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_3_2_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_3_2_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_4_2(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_4_2")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_4_2_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Switch_Normal_View) do
- $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
- .with('content-desc', 'Normal angle lens')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 12)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.click
- waitsecond(6)
- end
- tcase << TestAction.new(:Check_Delete_1) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .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(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_4_2_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_22(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_22")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_22_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Enter) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Volume_Key) do
- pressVolumeKeyDown
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_22_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_23_1(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_23_1")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_23_1_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Enter) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_In) do
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- zoomIn
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Picture) do
- click(getDisplayWidth/2, getDisplayHeight/2)
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_23_1_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_23_2(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_23_2")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_23_2_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Enter) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Zoom_Out) do
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- zoomOut
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Picture) do
- click(getDisplayWidth/2, getDisplayHeight/2)
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 13)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_23_2_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_9_2(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_9_2")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_9_2_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 24)
- .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(:Camera_Roll_Off) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 45)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .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(:Open_Gallery) 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(:Delete_Photo) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.click
- waitsecond(6)
- end
- tcase << TestAction.new(:Check_Delete_1) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .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(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_9_2_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_9_1(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_9_1")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_9_1_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Camera_Roll_On) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 25)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
- .with('text', 'Show your recent photos and videos on the camera preview')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) 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(:Delete_Photo) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .with('classname', 'Button')
- .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
- .with('content-desc', 'Delete')
- .with('text', 'Delete')
- $ruiObj.click
- waitsecond(6)
- end
- tcase << TestAction.new(:Check_Delete_1) do
- $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
- .with('uitreeindex', 5)
- .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(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_9_1_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_8(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_8")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_8_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Change_Film) do
- rng = Random.new()
- waitsecond(2)
- RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 31)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter').click
- waitsecond(2)
- index = rng.rand(db('FilmChange').length-1)
- RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
- .with('uitreeindex', 30)
- .with('classname', 'android.view.View')
- .with('content-desc', db('FilmChange')[index]).click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Film) do
- $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
- .with('uitreeindex', 4)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
- .with('content-desc', 'Filter')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Change_Film_None) do
- $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 748781049).with('textdescid', 166290721).with('uniqueparentid', 0)
- .with('uitreeindex', 22)
- .with('classname', 'android.view.View')
- .with('content-desc', 'None')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_8_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_7(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_7")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_7_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Flash_Auto) 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(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 12)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_7_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_6(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_6")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_6_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Flash_On) 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(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 13)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_6_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_5(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_5")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_5_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Flash_Off) 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(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_5_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_4_1(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_4_1")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_4_1_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Switch_Wide_View) 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(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_4_1_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_21(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_21")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_21_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Enter) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 35)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_title_textview')
- .with('content-desc', 'Simple view')
- .with('text', 'Simple view')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Picture) do
- click(getDisplayWidth/2, getDisplayHeight/2)
- waitsecond(2)
- end
- tcase << TestAction.new(:Simple_View_Exit) do
- $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
- .with('uitreeindex', 3)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
- .with('content-desc', 'View')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_21_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_20(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_20")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_20_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Add_Signature_On) do
- $ruiObj = RUIObject.new.with('objectid', -683742256).with('selfid', -1808037368).with('textdescid', 1731452673).with('uniqueparentid', 0).with('classresourceid', -1698211271)
- .with('uitreeindex', 34)
- .with('classname', 'Switch')
- .with('resource-id', 'com.lge.camera:id/setting_switch')
- .with('text', 'OFF')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_20_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_19(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_19")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_19_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Grid_On) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
- .with('uitreeindex', 29)
- .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(:Shutter_Button) 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(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_19_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_18(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_18")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_18_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_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(:Swipe_Down) do
- swipe_vertical 500
- waitsecond(2)
- end
- tcase << TestAction.new(:Tag_Locations_On) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', -1650613875).with('classresourceid', -1956269507)
- .with('uitreeindex', 27)
- .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(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', -1650613875)
- .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(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', -1654112402)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_18_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_17(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_17")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_17_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Tracking_Focus_On) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 37)
- .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(:Shutter_Button) 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(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_17_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_16(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_16")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_16_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Cheese_Shutter_On) do
- $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -805427468).with('textdescid', -450343400).with('uniqueparentid', 0).with('classresourceid', 1165955609)
- .with('uitreeindex', 34)
- .with('classname', 'TextView')
- .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
- .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". Off switch')
- .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_16_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_15(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_15")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_15_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Timer_Menu) 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(:Timer_10sec) 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(:Shutter_Button) 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(12)
- end
- tcase << TestAction.new(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 15)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_15_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_14(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_14")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_14_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Timer_Menu) 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(:Timer_3sec) 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(:Shutter_Button) 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(5)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_14_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_13(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_13")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_13_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:Time_Menu) do
- $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 1184885601).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(:Timer_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 1184885601).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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(:scriptAction_4) do
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_12(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_12")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_12_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:HDR_Menu) 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(:HDR_Off) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 18)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Off')
- .with('text', 'Off')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_12_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_11(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_11")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_11_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:HDR_Menu) 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(:HDR_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(:Shutter_Button) 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(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_11_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_10(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_10")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_10_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Camera_Settings) do
- $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
- .with('uitreeindex', 2)
- .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(:HDR_Menu) 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(:HDR_Auto) do
- $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
- .with('uitreeindex', 16)
- .with('classname', 'CheckedTextView')
- .with('resource-id', 'android:id/text1')
- .with('content-desc', 'Auto')
- .with('text', 'Auto')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) 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(:Open_Gallery) do
- $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
- .with('uitreeindex', 13)
- .with('classname', 'ImageView')
- .with('resource-id', 'com.lge.camera:id/thumbnail')
- .with('content-desc', 'Gallery')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_10_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.PictureAuto_2_1_1_1(loopTime)
- tcase = TestCase.new("PictureAuto_2_1_1_1")
- tcase << TestAction.new(:LogStart) do
- logStartTest("2_1_1_1_Picture_Auto")
- waitsecond(2)
- end
- tcase << TestAction.new(:Shutter_Button) do
- $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
- .with('uitreeindex', 11)
- .with('classname', 'ImageButton')
- .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
- $ruiObj.click
- waitsecond(2)
- end
- tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) 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(6)
- end
- tcase << TestAction.new(:Check_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.isExist
- waitsecond(2)
- end
- tcase << TestAction.new(:LogStop) do
- $myTestResult = !checkLastExistResult
- logStopTest("2_1_1_1_Picture_Auto")
- waitsecond(2)
- end
- tcase.run(loopTime)
- end
- def self.exception_handler
- puts "Module Exception Hanlder..."
- end
- def self.run(loop)
- mainLoop loop
- end
- end
- $exceptionPackageNameList = []
- $exceptionPackageNameList_exclude = []
- def exception_handler
- Picture_Auto_2_1.exception_handler
- end
- $curProjectLogFile = $useLastLogFile
- $curProjectLogFile = "Picture_Auto_2_1_#{getTimeStamp}.log" if $useLastLogFile.nil?
- $useLastLogFile = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement