Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 261.52 KB | None | 0 0
  1. loadTestDB
  2.  
  3. module Sanity_Camera_Test_2_5
  4.  
  5. def self.Change_Mode_360Panorama(loopTime)
  6.  
  7. tcase = TestCase.new("Change_Mode_360Panorama")
  8.  
  9. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  10. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  11. .with('uitreeindex', 3)
  12. .with('classname', 'ImageButton')
  13. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  14. .with('content-desc', 'Mode')
  15.  
  16. $ruiObj.click
  17.  
  18. waitsecond(2)
  19. end
  20.  
  21. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  22. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  23. .with('uitreeindex', 19)
  24. .with('classname', 'ImageButton')
  25. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  26.  
  27. $ruiObj.click
  28.  
  29. waitsecond(2)
  30. end
  31.  
  32. tcase.run(loopTime)
  33.  
  34. end
  35.  
  36. def self.Change_Mode_Cinema(loopTime)
  37.  
  38. tcase = TestCase.new("Change_Mode_Cinema")
  39.  
  40. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  41. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  42. .with('uitreeindex', 3)
  43. .with('classname', 'ImageButton')
  44. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  45. .with('content-desc', 'Mode')
  46.  
  47. $ruiObj.click
  48.  
  49. waitsecond(2)
  50. end
  51.  
  52. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  53. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  54. .with('uitreeindex', 17)
  55. .with('classname', 'ImageButton')
  56. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  57.  
  58. $ruiObj.click
  59.  
  60. waitsecond(2)
  61. end
  62.  
  63. tcase.run(loopTime)
  64.  
  65. end
  66.  
  67. def self.Change_Mode_Food(loopTime)
  68.  
  69. tcase = TestCase.new("Change_Mode_Food")
  70.  
  71. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  72. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  73. .with('uitreeindex', 3)
  74. .with('classname', 'ImageButton')
  75. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  76. .with('content-desc', 'Mode')
  77.  
  78. $ruiObj.click
  79.  
  80. waitsecond(2)
  81. end
  82.  
  83. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  84. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  85. .with('uitreeindex', 20)
  86. .with('classname', 'ImageButton')
  87. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  88.  
  89. $ruiObj.click
  90.  
  91. waitsecond(2)
  92. end
  93.  
  94. tcase.run(loopTime)
  95.  
  96. end
  97.  
  98. def self.Change_Mode_Panorama(loopTime)
  99.  
  100. tcase = TestCase.new("Change_Mode_Panorama")
  101.  
  102. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  103. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  104. .with('uitreeindex', 3)
  105. .with('classname', 'ImageButton')
  106. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  107. .with('content-desc', 'Mode')
  108.  
  109. $ruiObj.click
  110.  
  111. waitsecond(2)
  112. end
  113.  
  114. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  115. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  116. .with('uitreeindex', 18)
  117. .with('classname', 'ImageButton')
  118. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  119.  
  120. $ruiObj.click
  121.  
  122. waitsecond(2)
  123. end
  124.  
  125. tcase.run(loopTime)
  126.  
  127. end
  128.  
  129. def self.Change_Mode_Popout(loopTime)
  130.  
  131. tcase = TestCase.new("Change_Mode_Popout")
  132.  
  133. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  134. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  135. .with('uitreeindex', 3)
  136. .with('classname', 'ImageButton')
  137. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  138. .with('content-desc', 'Mode')
  139.  
  140. $ruiObj.click
  141.  
  142. waitsecond(2)
  143. end
  144.  
  145. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  146. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  147. .with('uitreeindex', 21)
  148. .with('classname', 'ImageButton')
  149. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  150.  
  151. $ruiObj.click
  152.  
  153. waitsecond(2)
  154. end
  155.  
  156. tcase.run(loopTime)
  157.  
  158. end
  159.  
  160. def self.Change_Mode_Slo_mo(loopTime)
  161.  
  162. tcase = TestCase.new("Change_Mode_Slo_mo")
  163.  
  164. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  165. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  166. .with('uitreeindex', 3)
  167. .with('classname', 'ImageButton')
  168. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  169. .with('content-desc', 'Mode')
  170.  
  171. $ruiObj.click
  172.  
  173. waitsecond(2)
  174. end
  175.  
  176. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  177. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  178. .with('uitreeindex', 23)
  179. .with('classname', 'ImageButton')
  180. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  181.  
  182. $ruiObj.click
  183.  
  184. waitsecond(2)
  185. end
  186.  
  187. tcase.run(loopTime)
  188.  
  189. end
  190.  
  191. def self.Change_Mode_Snap(loopTime)
  192.  
  193. tcase = TestCase.new("Change_Mode_Snap")
  194.  
  195. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  196. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  197. .with('uitreeindex', 3)
  198. .with('classname', 'ImageButton')
  199. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  200. .with('content-desc', 'Mode')
  201.  
  202. $ruiObj.click
  203.  
  204. waitsecond(2)
  205. end
  206.  
  207. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  208. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 0)
  209. .with('uitreeindex', 22)
  210. .with('classname', 'ImageButton')
  211. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  212.  
  213. $ruiObj.click
  214.  
  215. waitsecond(2)
  216. end
  217.  
  218. tcase.run(loopTime)
  219.  
  220. end
  221.  
  222. def self.Change_Mode_Time_Lapse(loopTime)
  223.  
  224. tcase = TestCase.new("Change_Mode_Time_Lapse")
  225.  
  226. tcase << TestAction.new(:ImageButton_QuickButtonMode_1) do
  227. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  228. .with('uitreeindex', 3)
  229. .with('classname', 'ImageButton')
  230. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  231. .with('content-desc', 'Mode')
  232.  
  233. $ruiObj.click
  234.  
  235. waitsecond(2)
  236. end
  237.  
  238. tcase << TestAction.new(:ImageButton_ModeMenuItemIcon_2) do
  239. $ruiObj = RUIObject.new.with('objectid', 1212118905).with('selfid', -710823836).with('textdescid', -1079019577).with('uniqueparentid', 861142202)
  240. .with('uitreeindex', 24)
  241. .with('classname', 'ImageButton')
  242. .with('resource-id', 'com.lge.camera:id/mode_menu_item_icon')
  243.  
  244. $ruiObj.click
  245.  
  246. waitsecond(2)
  247. end
  248.  
  249. tcase.run(loopTime)
  250.  
  251. end
  252.  
  253. def self.Pop_BW(loopTime)
  254.  
  255. tcase = TestCase.new("Pop_BW")
  256.  
  257. tcase << TestAction.new(:Start_Log) do
  258. logStartTest("Pop_BW")
  259.  
  260. waitsecond(2)
  261. end
  262.  
  263. tcase << TestAction.new(:Click_Mode) do
  264. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  265. .with('uitreeindex', 9)
  266. .with('classname', 'ImageButton')
  267. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  268. .with('content-desc', 'Mode')
  269.  
  270. $ruiObj.click
  271.  
  272. waitsecond(2)
  273. end
  274.  
  275. tcase << TestAction.new(:Click_Popout) do
  276. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  277. .with('classname', 'RelativeLayout')
  278. .with('content-desc', 'Popout')
  279.  
  280. $ruiObj.click
  281.  
  282. waitsecond(2)
  283. end
  284.  
  285. tcase << TestAction.new(:Disable_Vignette) do
  286. $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
  287. .with('uitreeindex', 5)
  288. .with('classname', 'ImageButton')
  289. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
  290. .with('content-desc', 'Vignette')
  291.  
  292. $ruiObj.click
  293.  
  294. waitsecond(2)
  295. end
  296.  
  297. tcase << TestAction.new(:Click_BW) do
  298. $ruiObj = RUIObject.new.with('objectid', 572543372).with('selfid', -1053101523).with('textdescid', 851527226).with('uniqueparentid', 0)
  299. .with('uitreeindex', 4)
  300. .with('classname', 'ImageButton')
  301. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_grayscale')
  302. .with('content-desc', 'Black & White')
  303.  
  304. $ruiObj.click
  305.  
  306. waitsecond(2)
  307. end
  308.  
  309. tcase << TestAction.new(:Click_Shutter) do
  310. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  311. .with('uitreeindex', 16)
  312. .with('classname', 'ImageButton')
  313. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  314.  
  315. $ruiObj.click
  316.  
  317. waitsecond(2)
  318. end
  319.  
  320. tcase << TestAction.new(:Click_Recent) do
  321. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  322. .with('uitreeindex', 19)
  323. .with('classname', 'ImageView')
  324. .with('resource-id', 'com.lge.camera:id/thumbnail')
  325. .with('content-desc', 'Gallery')
  326.  
  327. $ruiObj.click
  328.  
  329. waitsecond(2)
  330. end
  331.  
  332. tcase << TestAction.new(:Check_Delete) do
  333. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  334. .with('uitreeindex', 4)
  335. .with('classname', 'Button')
  336. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  337. .with('content-desc', 'Delete')
  338. .with('text', 'Delete')
  339.  
  340. $ruiObj.isExist
  341.  
  342. waitsecond(2)
  343. end
  344.  
  345. tcase << TestAction.new(:Click_Delete) do
  346. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  347. .with('uitreeindex', 4)
  348. .with('classname', 'Button')
  349. .with('content-desc', 'Delete')
  350. .with('text', 'Delete').click
  351.  
  352. $ruiObj.click
  353.  
  354. waitsecond(2)
  355. end
  356.  
  357. tcase << TestAction.new(:End_Log) do
  358. $myTestResult = checkLastExistResult
  359.  
  360. logStopTest("Pop_BW")
  361.  
  362.  
  363. waitsecond(2)
  364. end
  365.  
  366. tcase.run(loopTime)
  367.  
  368. end
  369.  
  370. def self.Pop_Fisheye(loopTime)
  371.  
  372. tcase = TestCase.new("Pop_Fisheye")
  373.  
  374. tcase << TestAction.new(:Start_Log) do
  375. logStartTest("Pop_Fisheye")
  376.  
  377. waitsecond(2)
  378. end
  379.  
  380. tcase << TestAction.new(:Click_Mode) do
  381. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  382. .with('uitreeindex', 9)
  383. .with('classname', 'ImageButton')
  384. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  385. .with('content-desc', 'Mode')
  386.  
  387. $ruiObj.click
  388.  
  389. waitsecond(2)
  390. end
  391.  
  392. tcase << TestAction.new(:Click_Popout) do
  393. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  394. .with('classname', 'RelativeLayout')
  395. .with('content-desc', 'Popout')
  396.  
  397. $ruiObj.click
  398.  
  399. waitsecond(2)
  400. end
  401.  
  402. tcase << TestAction.new(:Disable_Vignette) do
  403. $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
  404. .with('uitreeindex', 5)
  405. .with('classname', 'ImageButton')
  406. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
  407. .with('content-desc', 'Vignette')
  408.  
  409. $ruiObj.click
  410.  
  411. waitsecond(2)
  412. end
  413.  
  414. tcase << TestAction.new(:Click_Fisheye) do
  415. $ruiObj = RUIObject.new.with('objectid', -1111692863).with('selfid', 1198333335).with('textdescid', 1405400794).with('uniqueparentid', 0)
  416. .with('uitreeindex', 3)
  417. .with('classname', 'ImageButton')
  418. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_perspective')
  419. .with('content-desc', 'Fisheye')
  420.  
  421. $ruiObj.click
  422.  
  423. waitsecond(2)
  424. end
  425.  
  426. tcase << TestAction.new(:Click_Shutter) do
  427. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  428. .with('uitreeindex', 16)
  429. .with('classname', 'ImageButton')
  430. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  431.  
  432. $ruiObj.click
  433.  
  434. waitsecond(2)
  435. end
  436.  
  437. tcase << TestAction.new(:Click_Recent) do
  438. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 1541017985)
  439. .with('uitreeindex', 20)
  440. .with('classname', 'ImageView')
  441. .with('resource-id', 'com.lge.camera:id/thumbnail')
  442. .with('content-desc', 'Gallery')
  443.  
  444. $ruiObj.click
  445.  
  446. waitsecond(2)
  447. end
  448.  
  449. tcase << TestAction.new(:Check_Delete) do
  450. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  451. .with('uitreeindex', 4)
  452. .with('classname', 'Button')
  453. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  454. .with('content-desc', 'Delete')
  455. .with('text', 'Delete')
  456.  
  457. $ruiObj.isExist
  458.  
  459. waitsecond(2)
  460. end
  461.  
  462. tcase << TestAction.new(:Click_Delete) do
  463. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  464. .with('uitreeindex', 4)
  465. .with('classname', 'Button')
  466. .with('content-desc', 'Delete')
  467. .with('text', 'Delete').click
  468.  
  469. $ruiObj.click
  470.  
  471. waitsecond(2)
  472. end
  473.  
  474. tcase << TestAction.new(:End_Log) do
  475. $myTestResult = checkLastExistResult
  476.  
  477. logStopTest("Pop_Fisheye")
  478.  
  479.  
  480. waitsecond(2)
  481. end
  482.  
  483. tcase.run(loopTime)
  484.  
  485. end
  486.  
  487. def self.Pop_Lens_Blur(loopTime)
  488.  
  489. tcase = TestCase.new("Pop_Lens_Blur")
  490.  
  491. tcase << TestAction.new(:Start_Log) do
  492. logStartTest("Pop_Lens_Blur")
  493.  
  494.  
  495. waitsecond(2)
  496. end
  497.  
  498. tcase << TestAction.new(:Click_Mode) do
  499. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  500. .with('uitreeindex', 9)
  501. .with('classname', 'ImageButton')
  502. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  503. .with('content-desc', 'Mode')
  504.  
  505. $ruiObj.click
  506.  
  507. waitsecond(2)
  508. end
  509.  
  510. tcase << TestAction.new(:Click_Popout) do
  511. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  512. .with('classname', 'RelativeLayout')
  513. .with('content-desc', 'Popout')
  514.  
  515. $ruiObj.click
  516.  
  517. waitsecond(2)
  518. end
  519.  
  520. tcase << TestAction.new(:Disable_Vignette) do
  521. $ruiObj = RUIObject.new.with('objectid', 1313237842).with('selfid', -1288574077).with('textdescid', -1748211608).with('uniqueparentid', 0)
  522. .with('uitreeindex', 7)
  523. .with('classname', 'ImageButton')
  524. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_vignetting')
  525. .with('content-desc', 'Vignette')
  526.  
  527. $ruiObj.click
  528.  
  529. waitsecond(2)
  530. end
  531.  
  532. tcase << TestAction.new(:Click_Lens_Blur) do
  533. $ruiObj = RUIObject.new.with('objectid', 1004584066).with('selfid', 1867572010).with('textdescid', -134389429).with('uniqueparentid', 0)
  534. .with('uitreeindex', 6)
  535. .with('classname', 'ImageButton')
  536. .with('resource-id', 'com.lge.camera:id/btn_popout_effect_blur')
  537. .with('content-desc', 'Lens blur')
  538.  
  539. $ruiObj.click
  540.  
  541. waitsecond(2)
  542. end
  543.  
  544. tcase << TestAction.new(:Click_Shutter) do
  545. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  546. .with('uitreeindex', 16)
  547. .with('classname', 'ImageButton')
  548. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  549.  
  550. $ruiObj.click
  551.  
  552. waitsecond(2)
  553. end
  554.  
  555. tcase << TestAction.new(:Click_Recent) do
  556. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  557. .with('uitreeindex', 19)
  558. .with('classname', 'ImageView')
  559. .with('resource-id', 'com.lge.camera:id/thumbnail')
  560. .with('content-desc', 'Gallery')
  561.  
  562. $ruiObj.click
  563.  
  564. waitsecond(2)
  565. end
  566.  
  567. tcase << TestAction.new(:Check_Delete) do
  568. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  569. .with('uitreeindex', 4)
  570. .with('classname', 'Button')
  571. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  572. .with('content-desc', 'Delete')
  573. .with('text', 'Delete')
  574.  
  575. $ruiObj.isExist
  576.  
  577. waitsecond(2)
  578. end
  579.  
  580. tcase << TestAction.new(:Click_Delete) do
  581. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  582. .with('uitreeindex', 4)
  583. .with('classname', 'Button')
  584. .with('content-desc', 'Delete')
  585. .with('text', 'Delete').click
  586.  
  587. $ruiObj.click
  588.  
  589. waitsecond(2)
  590. end
  591.  
  592. tcase << TestAction.new(:End_Log) do
  593. $myTestResult = checkLastExistResult
  594.  
  595. logStopTest("Pop_Lens_Blur")
  596.  
  597.  
  598. waitsecond(2)
  599. end
  600.  
  601. tcase.run(loopTime)
  602.  
  603. end
  604.  
  605. def self.Pop_Pause_Resume_Video(loopTime)
  606.  
  607. tcase = TestCase.new("Pop_Pause_Resume_Video")
  608.  
  609. tcase << TestAction.new(:scriptAction_28) do
  610. logStartTest("Pop_Record_A_Video")
  611.  
  612. waitsecond(2)
  613. end
  614.  
  615. tcase << TestAction.new(:Click_Mode) do
  616. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  617. .with('uitreeindex', 11)
  618. .with('classname', 'ImageButton')
  619. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  620. .with('content-desc', 'Mode')
  621.  
  622. $ruiObj.click
  623.  
  624. waitsecond(2)
  625. end
  626.  
  627. tcase << TestAction.new(:Click_Popout) do
  628. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  629. .with('classname', 'RelativeLayout')
  630. .with('content-desc', 'Popout')
  631.  
  632. $ruiObj.click
  633.  
  634. waitsecond(2)
  635. end
  636.  
  637. tcase << TestAction.new(:Click_Record) do
  638. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  639. .with('uitreeindex', 20)
  640. .with('classname', 'ImageButton')
  641. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  642.  
  643. $ruiObj.click
  644.  
  645. waitsecond(2)
  646. end
  647.  
  648. tcase << TestAction.new(:Pause_Recording) do
  649. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  650. .with('uitreeindex', 4)
  651. .with('classname', 'ImageButton')
  652. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  653.  
  654. $ruiObj.click
  655.  
  656. waitsecond(2)
  657. end
  658.  
  659. tcase << TestAction.new(:Resume_Recording) do
  660. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  661. .with('uitreeindex', 4)
  662. .with('classname', 'ImageButton')
  663. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  664.  
  665. $ruiObj.click
  666.  
  667. waitsecond(2)
  668. end
  669.  
  670. tcase << TestAction.new(:Stop_Recording) do
  671. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  672. .with('uitreeindex', 6)
  673. .with('classname', 'ImageButton')
  674. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  675.  
  676. $ruiObj.click
  677.  
  678. waitsecond(2)
  679. end
  680.  
  681. tcase << TestAction.new(:Click_Recent) do
  682. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  683. .with('uitreeindex', 14)
  684. .with('classname', 'ImageView')
  685. .with('resource-id', 'com.lge.camera:id/thumbnail')
  686. .with('content-desc', 'Gallery')
  687.  
  688. $ruiObj.click
  689.  
  690. waitsecond(2)
  691. end
  692.  
  693. tcase << TestAction.new(:Check_Video_Delete) do
  694. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  695. .with('uitreeindex', 3)
  696. .with('classname', 'Button')
  697. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  698. .with('content-desc', 'Delete')
  699. .with('text', 'Delete')
  700.  
  701. $ruiObj.isExist
  702.  
  703. waitsecond(2)
  704. end
  705.  
  706. tcase << TestAction.new(:Click_Delete) do
  707. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  708. .with('uitreeindex', 4)
  709. .with('classname', 'Button')
  710. .with('content-desc', 'Delete')
  711. .with('text', 'Delete').click
  712.  
  713. $ruiObj.click
  714.  
  715. waitsecond(2)
  716. end
  717.  
  718. tcase << TestAction.new(:scriptAction_25) do
  719. $myTestResult = checkLastExistResult
  720.  
  721. logStopTest("Pop_Record_A_Video")
  722.  
  723.  
  724. waitsecond(2)
  725. end
  726.  
  727. tcase.run(loopTime)
  728.  
  729. end
  730.  
  731. def self.Pop_Photo_SIze_1(loopTime)
  732.  
  733. tcase = TestCase.new("Pop_Photo_SIze_1")
  734.  
  735. tcase << TestAction.new(:Start_Log) do
  736. logStartTest("Pop_Photo_Size_1")
  737.  
  738. waitsecond(2)
  739. end
  740.  
  741. tcase << TestAction.new(:Click_Mode) do
  742. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  743. .with('uitreeindex', 4)
  744. .with('classname', 'ImageButton')
  745. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  746. .with('content-desc', 'Mode')
  747.  
  748. $ruiObj.click
  749.  
  750. waitsecond(2)
  751. end
  752.  
  753. tcase << TestAction.new(:Click_Popout) do
  754. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  755. .with('classname', 'RelativeLayout')
  756. .with('content-desc', 'Popout')
  757.  
  758. $ruiObj.click
  759.  
  760. waitsecond(2)
  761. end
  762.  
  763. tcase << TestAction.new(:Click_Setting) do
  764. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  765. .with('uitreeindex', 3)
  766. .with('classname', 'ImageButton')
  767. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  768. .with('content-desc', 'Open settings')
  769.  
  770. $ruiObj.click
  771.  
  772. waitsecond(2)
  773. end
  774.  
  775. tcase << TestAction.new(:Click_Photo_Size) do
  776. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  777. .with('uitreeindex', 16)
  778. .with('classname', 'TextView')
  779. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  780. .with('content-desc', 'Photo size')
  781. .with('text', 'Photo size')
  782.  
  783. $ruiObj.click
  784.  
  785. waitsecond(2)
  786. end
  787.  
  788. tcase << TestAction.new(:Click_3264x2448) do
  789. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -2021332261).with('textdescid', 1929999013).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  790. .with('uitreeindex', 16)
  791. .with('classname', 'CheckedTextView')
  792. .with('resource-id', 'android:id/text1')
  793. .with('content-desc', '4:3 (8Point0 MP) 3264x2448')
  794. .with('text', '43 80MP 3264x2448')
  795.  
  796. $ruiObj.click
  797.  
  798. waitsecond(2)
  799. end
  800.  
  801. tcase << TestAction.new(:Click_Shutter) do
  802. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  803. .with('uitreeindex', 10)
  804. .with('classname', 'ImageButton')
  805. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  806. .with('content-desc', 'Shutter')
  807.  
  808. $ruiObj.click
  809.  
  810. waitsecond(2)
  811. end
  812.  
  813. tcase << TestAction.new(:Click_Recent) do
  814. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  815. .with('uitreeindex', 20)
  816. .with('classname', 'ImageView')
  817. .with('resource-id', 'com.lge.camera:id/thumbnail')
  818. .with('content-desc', 'Gallery')
  819.  
  820. $ruiObj.click
  821.  
  822. waitsecond(2)
  823. end
  824.  
  825. tcase << TestAction.new(:Check_Delete) do
  826. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  827. .with('uitreeindex', 4)
  828. .with('classname', 'Button')
  829. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  830. .with('content-desc', 'Delete')
  831. .with('text', 'Delete')
  832.  
  833. $ruiObj.isExist
  834.  
  835. waitsecond(2)
  836. end
  837.  
  838. tcase << TestAction.new(:Click_Delete) do
  839. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  840. .with('uitreeindex', 4)
  841. .with('classname', 'Button')
  842. .with('content-desc', 'Delete')
  843. .with('text', 'Delete').click
  844.  
  845. $ruiObj.click
  846.  
  847. waitsecond(2)
  848. end
  849.  
  850. tcase << TestAction.new(:End_Log) do
  851. $myTestResult = checkLastExistResult
  852.  
  853. logStopTest("Pop_Photo_Size_1")
  854.  
  855.  
  856. waitsecond(2)
  857. end
  858.  
  859. tcase.run(loopTime)
  860.  
  861. end
  862.  
  863. def self.Pop_Photo_Size_2(loopTime)
  864.  
  865. tcase = TestCase.new("Pop_Photo_Size_2")
  866.  
  867. tcase << TestAction.new(:Start_Log) do
  868. logStartTest("Pop_Photo_Size_2")
  869.  
  870. waitsecond(2)
  871. end
  872.  
  873. tcase << TestAction.new(:Click_Mode) do
  874. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  875. .with('uitreeindex', 4)
  876. .with('classname', 'ImageButton')
  877. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  878. .with('content-desc', 'Mode')
  879.  
  880. $ruiObj.click
  881.  
  882. waitsecond(2)
  883. end
  884.  
  885. tcase << TestAction.new(:Click_Popout) do
  886. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  887. .with('classname', 'RelativeLayout')
  888. .with('content-desc', 'Popout')
  889.  
  890. $ruiObj.click
  891.  
  892. waitsecond(2)
  893. end
  894.  
  895. tcase << TestAction.new(:Click_Setting) do
  896. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  897. .with('uitreeindex', 3)
  898. .with('classname', 'ImageButton')
  899. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  900. .with('content-desc', 'Open settings')
  901.  
  902. $ruiObj.click
  903.  
  904. waitsecond(2)
  905. end
  906.  
  907. tcase << TestAction.new(:Click_Photo_Size) do
  908. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  909. .with('uitreeindex', 16)
  910. .with('classname', 'TextView')
  911. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  912. .with('content-desc', 'Photo size')
  913. .with('text', 'Photo size')
  914.  
  915. $ruiObj.click
  916.  
  917. waitsecond(2)
  918. end
  919.  
  920. tcase << TestAction.new(:Click_2880x2160) do
  921. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1136545667).with('textdescid', 1931734653).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  922. .with('uitreeindex', 17)
  923. .with('classname', 'CheckedTextView')
  924. .with('resource-id', 'android:id/text1')
  925. .with('content-desc', '4:3 (6Point2 MP) 2880x2160')
  926. .with('text', '43 62MP 2880x2160')
  927.  
  928. $ruiObj.click
  929.  
  930. waitsecond(2)
  931. end
  932.  
  933. tcase << TestAction.new(:Click_Shutter) do
  934. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  935. .with('uitreeindex', 10)
  936. .with('classname', 'ImageButton')
  937. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  938. .with('content-desc', 'Shutter')
  939.  
  940. $ruiObj.click
  941.  
  942. waitsecond(2)
  943. end
  944.  
  945. tcase << TestAction.new(:Click_Recent) do
  946. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  947. .with('uitreeindex', 20)
  948. .with('classname', 'ImageView')
  949. .with('resource-id', 'com.lge.camera:id/thumbnail')
  950. .with('content-desc', 'Gallery')
  951.  
  952. $ruiObj.click
  953.  
  954. waitsecond(2)
  955. end
  956.  
  957. tcase << TestAction.new(:Check_Delete) do
  958. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  959. .with('uitreeindex', 4)
  960. .with('classname', 'Button')
  961. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  962. .with('content-desc', 'Delete')
  963. .with('text', 'Delete')
  964.  
  965. $ruiObj.isExist
  966.  
  967. waitsecond(2)
  968. end
  969.  
  970. tcase << TestAction.new(:Click_Delete) do
  971. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  972. .with('uitreeindex', 4)
  973. .with('classname', 'Button')
  974. .with('content-desc', 'Delete')
  975. .with('text', 'Delete').click
  976.  
  977. $ruiObj.click
  978.  
  979. waitsecond(2)
  980. end
  981.  
  982. tcase << TestAction.new(:End_Log) do
  983. $myTestResult = checkLastExistResult
  984.  
  985. logStopTest("Pop_Photo_Size_2")
  986.  
  987.  
  988. waitsecond(2)
  989. end
  990.  
  991. tcase.run(loopTime)
  992.  
  993. end
  994.  
  995. def self.Pop_Photo_Size_3(loopTime)
  996.  
  997. tcase = TestCase.new("Pop_Photo_Size_3")
  998.  
  999. tcase << TestAction.new(:Start_Log) do
  1000. logStartTest("Pop_Photo_Size_3")
  1001.  
  1002. waitsecond(2)
  1003. end
  1004.  
  1005. tcase << TestAction.new(:Click_Mode) do
  1006. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1007. .with('uitreeindex', 4)
  1008. .with('classname', 'ImageButton')
  1009. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1010. .with('content-desc', 'Mode')
  1011.  
  1012. $ruiObj.click
  1013.  
  1014. waitsecond(2)
  1015. end
  1016.  
  1017. tcase << TestAction.new(:Click_Popout) do
  1018. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1019. .with('classname', 'RelativeLayout')
  1020. .with('content-desc', 'Popout')
  1021.  
  1022. $ruiObj.click
  1023.  
  1024. waitsecond(2)
  1025. end
  1026.  
  1027. tcase << TestAction.new(:Click_Setting) do
  1028. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1029. .with('uitreeindex', 3)
  1030. .with('classname', 'ImageButton')
  1031. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1032. .with('content-desc', 'Open settings')
  1033.  
  1034. $ruiObj.click
  1035.  
  1036. waitsecond(2)
  1037. end
  1038.  
  1039. tcase << TestAction.new(:Click_Photo_Size) do
  1040. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1041. .with('uitreeindex', 16)
  1042. .with('classname', 'TextView')
  1043. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1044. .with('content-desc', 'Photo size')
  1045. .with('text', 'Photo size')
  1046.  
  1047. $ruiObj.click
  1048.  
  1049. waitsecond(2)
  1050. end
  1051.  
  1052. tcase << TestAction.new(:Click_3264x1836) do
  1053. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1054. .with('uitreeindex', 18)
  1055. .with('classname', 'CheckedTextView')
  1056. .with('resource-id', 'android:id/text1')
  1057. .with('content-desc', '16:9 (6Point0 MP) 3264x1836')
  1058. .with('text', '169 60MP 3264x1836')
  1059.  
  1060. $ruiObj.click
  1061.  
  1062. waitsecond(2)
  1063. end
  1064.  
  1065. tcase << TestAction.new(:Click_Shutter) do
  1066. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1067. .with('uitreeindex', 10)
  1068. .with('classname', 'ImageButton')
  1069. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1070. .with('content-desc', 'Shutter')
  1071.  
  1072. $ruiObj.click
  1073.  
  1074. waitsecond(2)
  1075. end
  1076.  
  1077. tcase << TestAction.new(:Click_Recent) do
  1078. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1079. .with('uitreeindex', 20)
  1080. .with('classname', 'ImageView')
  1081. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1082. .with('content-desc', 'Gallery')
  1083.  
  1084. $ruiObj.click
  1085.  
  1086. waitsecond(2)
  1087. end
  1088.  
  1089. tcase << TestAction.new(:Check_Delete) do
  1090. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1091. .with('uitreeindex', 4)
  1092. .with('classname', 'Button')
  1093. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1094. .with('content-desc', 'Delete')
  1095. .with('text', 'Delete')
  1096.  
  1097. $ruiObj.isExist
  1098.  
  1099. waitsecond(2)
  1100. end
  1101.  
  1102. tcase << TestAction.new(:Click_Delete) do
  1103. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1104. .with('uitreeindex', 4)
  1105. .with('classname', 'Button')
  1106. .with('content-desc', 'Delete')
  1107. .with('text', 'Delete').click
  1108.  
  1109. $ruiObj.click
  1110.  
  1111. waitsecond(2)
  1112. end
  1113.  
  1114. tcase << TestAction.new(:End_Log) do
  1115. $myTestResult = checkLastExistResult
  1116.  
  1117. logStopTest("Pop_Photo_Size_3")
  1118.  
  1119.  
  1120. waitsecond(2)
  1121. end
  1122.  
  1123. tcase.run(loopTime)
  1124.  
  1125. end
  1126.  
  1127. def self.Pop_Photo_size_4(loopTime)
  1128.  
  1129. tcase = TestCase.new("Pop_Photo_size_4")
  1130.  
  1131. tcase << TestAction.new(:Start_Log) do
  1132. logStartTest("Pop_Photo_Size_4")
  1133.  
  1134. waitsecond(2)
  1135. end
  1136.  
  1137. tcase << TestAction.new(:Click_Mode) do
  1138. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1139. .with('uitreeindex', 4)
  1140. .with('classname', 'ImageButton')
  1141. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1142. .with('content-desc', 'Mode')
  1143.  
  1144. $ruiObj.click
  1145.  
  1146. waitsecond(2)
  1147. end
  1148.  
  1149. tcase << TestAction.new(:Click_Popout) do
  1150. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1151. .with('classname', 'RelativeLayout')
  1152. .with('content-desc', 'Popout')
  1153.  
  1154. $ruiObj.click
  1155.  
  1156. waitsecond(2)
  1157. end
  1158.  
  1159. tcase << TestAction.new(:Click_Setting) do
  1160. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1161. .with('uitreeindex', 3)
  1162. .with('classname', 'ImageButton')
  1163. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1164. .with('content-desc', 'Open settings')
  1165.  
  1166. $ruiObj.click
  1167.  
  1168. waitsecond(2)
  1169. end
  1170.  
  1171. tcase << TestAction.new(:Click_Photo_Size) do
  1172. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1173. .with('uitreeindex', 16)
  1174. .with('classname', 'TextView')
  1175. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1176. .with('content-desc', 'Photo size')
  1177. .with('text', 'Photo size')
  1178.  
  1179. $ruiObj.click
  1180.  
  1181. waitsecond(2)
  1182. end
  1183.  
  1184. tcase << TestAction.new(:Click_2560x1440) do
  1185. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 2068446003).with('textdescid', -694779443).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1186. .with('uitreeindex', 19)
  1187. .with('classname', 'CheckedTextView')
  1188. .with('resource-id', 'android:id/text1')
  1189. .with('content-desc', '16:9 (3Point7 MP) 2560x1440')
  1190. .with('text', '169 37MP 2560x1440')
  1191.  
  1192. $ruiObj.click
  1193.  
  1194. waitsecond(2)
  1195. end
  1196.  
  1197. tcase << TestAction.new(:Click_Shutter) do
  1198. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1199. .with('uitreeindex', 10)
  1200. .with('classname', 'ImageButton')
  1201. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1202. .with('content-desc', 'Shutter')
  1203.  
  1204. $ruiObj.click
  1205.  
  1206. waitsecond(2)
  1207. end
  1208.  
  1209. tcase << TestAction.new(:Click_Recent) do
  1210. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1211. .with('uitreeindex', 20)
  1212. .with('classname', 'ImageView')
  1213. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1214. .with('content-desc', 'Gallery')
  1215.  
  1216. $ruiObj.click
  1217.  
  1218. waitsecond(2)
  1219. end
  1220.  
  1221. tcase << TestAction.new(:Check_Delete) do
  1222. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1223. .with('uitreeindex', 4)
  1224. .with('classname', 'Button')
  1225. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1226. .with('content-desc', 'Delete')
  1227. .with('text', 'Delete')
  1228.  
  1229. $ruiObj.isExist
  1230.  
  1231. waitsecond(2)
  1232. end
  1233.  
  1234. tcase << TestAction.new(:Click_Delete) do
  1235. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1236. .with('uitreeindex', 4)
  1237. .with('classname', 'Button')
  1238. .with('content-desc', 'Delete')
  1239. .with('text', 'Delete').click
  1240.  
  1241. $ruiObj.click
  1242.  
  1243. waitsecond(2)
  1244. end
  1245.  
  1246. tcase << TestAction.new(:End_Log) do
  1247. $myTestResult = checkLastExistResult
  1248.  
  1249. logStopTest("Pop_Photo_Size_4")
  1250.  
  1251.  
  1252. waitsecond(2)
  1253. end
  1254.  
  1255. tcase.run(loopTime)
  1256.  
  1257. end
  1258.  
  1259. def self.Pop_Photo_Size_5(loopTime)
  1260.  
  1261. tcase = TestCase.new("Pop_Photo_Size_5")
  1262.  
  1263. tcase << TestAction.new(:Start_Log) do
  1264. logStartTest("Pop_Photo_Size_5")
  1265.  
  1266. waitsecond(2)
  1267. end
  1268.  
  1269. tcase << TestAction.new(:Click_Mode) do
  1270. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1271. .with('uitreeindex', 4)
  1272. .with('classname', 'ImageButton')
  1273. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1274. .with('content-desc', 'Mode')
  1275.  
  1276. $ruiObj.click
  1277.  
  1278. waitsecond(2)
  1279. end
  1280.  
  1281. tcase << TestAction.new(:Click_Popout) do
  1282. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1283. .with('classname', 'RelativeLayout')
  1284. .with('content-desc', 'Popout')
  1285.  
  1286. $ruiObj.click
  1287.  
  1288. waitsecond(2)
  1289. end
  1290.  
  1291. tcase << TestAction.new(:Click_Setting) do
  1292. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1293. .with('uitreeindex', 3)
  1294. .with('classname', 'ImageButton')
  1295. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1296. .with('content-desc', 'Open settings')
  1297.  
  1298. $ruiObj.click
  1299.  
  1300. waitsecond(2)
  1301. end
  1302.  
  1303. tcase << TestAction.new(:Click_Photo_Size) do
  1304. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1305. .with('uitreeindex', 16)
  1306. .with('classname', 'TextView')
  1307. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1308. .with('content-desc', 'Photo size')
  1309. .with('text', 'Photo size')
  1310.  
  1311. $ruiObj.click
  1312.  
  1313. waitsecond(2)
  1314. end
  1315.  
  1316. tcase << TestAction.new(:Click_3360x1680) do
  1317. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 179193075).with('textdescid', 416514061).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1318. .with('uitreeindex', 20)
  1319. .with('classname', 'CheckedTextView')
  1320. .with('resource-id', 'android:id/text1')
  1321. .with('content-desc', '18:9 (5Point6 MP) 3360x1680')
  1322. .with('text', '189 56MP 3360x1680')
  1323.  
  1324. $ruiObj.click
  1325.  
  1326. waitsecond(2)
  1327. end
  1328.  
  1329. tcase << TestAction.new(:Click_Shutter) do
  1330. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1331. .with('uitreeindex', 10)
  1332. .with('classname', 'ImageButton')
  1333. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1334. .with('content-desc', 'Shutter')
  1335.  
  1336. $ruiObj.click
  1337.  
  1338. waitsecond(2)
  1339. end
  1340.  
  1341. tcase << TestAction.new(:Click_Recent) do
  1342. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1343. .with('uitreeindex', 20)
  1344. .with('classname', 'ImageView')
  1345. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1346. .with('content-desc', 'Gallery')
  1347.  
  1348. $ruiObj.click
  1349.  
  1350. waitsecond(2)
  1351. end
  1352.  
  1353. tcase << TestAction.new(:Check_Delete) do
  1354. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1355. .with('uitreeindex', 4)
  1356. .with('classname', 'Button')
  1357. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1358. .with('content-desc', 'Delete')
  1359. .with('text', 'Delete')
  1360.  
  1361. $ruiObj.isExist
  1362.  
  1363. waitsecond(2)
  1364. end
  1365.  
  1366. tcase << TestAction.new(:Click_Delete) do
  1367. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1368. .with('uitreeindex', 4)
  1369. .with('classname', 'Button')
  1370. .with('content-desc', 'Delete')
  1371. .with('text', 'Delete').click
  1372.  
  1373. $ruiObj.click
  1374.  
  1375. waitsecond(2)
  1376. end
  1377.  
  1378. tcase << TestAction.new(:End_Log) do
  1379. $myTestResult = checkLastExistResult
  1380.  
  1381. logStopTest("Pop_Photo_Size_5")
  1382.  
  1383.  
  1384. waitsecond(2)
  1385. end
  1386.  
  1387. tcase.run(loopTime)
  1388.  
  1389. end
  1390.  
  1391. def self.Pop_Photo_Size_6(loopTime)
  1392.  
  1393. tcase = TestCase.new("Pop_Photo_Size_6")
  1394.  
  1395. tcase << TestAction.new(:Start_Log) do
  1396. logStartTest("Pop_Photo_Size_6")
  1397.  
  1398. waitsecond(2)
  1399. end
  1400.  
  1401. tcase << TestAction.new(:Click_Mode) do
  1402. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1403. .with('uitreeindex', 4)
  1404. .with('classname', 'ImageButton')
  1405. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1406. .with('content-desc', 'Mode')
  1407.  
  1408. $ruiObj.click
  1409.  
  1410. waitsecond(2)
  1411. end
  1412.  
  1413. tcase << TestAction.new(:Click_Popout) do
  1414. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1415. .with('classname', 'RelativeLayout')
  1416. .with('content-desc', 'Popout')
  1417.  
  1418. $ruiObj.click
  1419.  
  1420. waitsecond(2)
  1421. end
  1422.  
  1423. tcase << TestAction.new(:Click_Setting) do
  1424. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1425. .with('uitreeindex', 3)
  1426. .with('classname', 'ImageButton')
  1427. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1428. .with('content-desc', 'Open settings')
  1429.  
  1430. $ruiObj.click
  1431.  
  1432. waitsecond(2)
  1433. end
  1434.  
  1435. tcase << TestAction.new(:Click_Photo_Size) do
  1436. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1437. .with('uitreeindex', 16)
  1438. .with('classname', 'TextView')
  1439. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1440. .with('content-desc', 'Photo size')
  1441. .with('text', 'Photo size')
  1442.  
  1443. $ruiObj.click
  1444.  
  1445. waitsecond(2)
  1446. end
  1447.  
  1448. tcase << TestAction.new(:Click_2560x1280) do
  1449. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1387509641).with('textdescid', 897718793).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1450. .with('uitreeindex', 21)
  1451. .with('classname', 'CheckedTextView')
  1452. .with('resource-id', 'android:id/text1')
  1453. .with('content-desc', '18:9 (3Point3 MP) 2560x1280')
  1454. .with('text', '189 33MP 2560x1280')
  1455.  
  1456. $ruiObj.click
  1457.  
  1458. waitsecond(2)
  1459. end
  1460.  
  1461. tcase << TestAction.new(:Click_Shutter) do
  1462. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1463. .with('uitreeindex', 10)
  1464. .with('classname', 'ImageButton')
  1465. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1466. .with('content-desc', 'Shutter')
  1467.  
  1468. $ruiObj.click
  1469.  
  1470. waitsecond(2)
  1471. end
  1472.  
  1473. tcase << TestAction.new(:Click_Recent) do
  1474. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1475. .with('uitreeindex', 20)
  1476. .with('classname', 'ImageView')
  1477. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1478. .with('content-desc', 'Gallery')
  1479.  
  1480. $ruiObj.click
  1481.  
  1482. waitsecond(2)
  1483. end
  1484.  
  1485. tcase << TestAction.new(:Check_Delete) do
  1486. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1487. .with('uitreeindex', 4)
  1488. .with('classname', 'Button')
  1489. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1490. .with('content-desc', 'Delete')
  1491. .with('text', 'Delete')
  1492.  
  1493. $ruiObj.isExist
  1494.  
  1495. waitsecond(2)
  1496. end
  1497.  
  1498. tcase << TestAction.new(:Click_Delete) do
  1499. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1500. .with('uitreeindex', 4)
  1501. .with('classname', 'Button')
  1502. .with('content-desc', 'Delete')
  1503. .with('text', 'Delete').click
  1504.  
  1505. $ruiObj.click
  1506.  
  1507. waitsecond(2)
  1508. end
  1509.  
  1510. tcase << TestAction.new(:End_Log) do
  1511. $myTestResult = checkLastExistResult
  1512.  
  1513. logStopTest("Pop_Photo_Size_6")
  1514.  
  1515.  
  1516. waitsecond(2)
  1517. end
  1518.  
  1519. tcase.run(loopTime)
  1520.  
  1521. end
  1522.  
  1523. def self.Pop_Photo_Size_7(loopTime)
  1524.  
  1525. tcase = TestCase.new("Pop_Photo_Size_7")
  1526.  
  1527. tcase << TestAction.new(:Start_Log) do
  1528. logStartTest("Pop_Photo_Size_7")
  1529.  
  1530. waitsecond(2)
  1531. end
  1532.  
  1533. tcase << TestAction.new(:Click_Mode) do
  1534. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1535. .with('uitreeindex', 4)
  1536. .with('classname', 'ImageButton')
  1537. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1538. .with('content-desc', 'Mode')
  1539.  
  1540. $ruiObj.click
  1541.  
  1542. waitsecond(2)
  1543. end
  1544.  
  1545. tcase << TestAction.new(:Click_Popout) do
  1546. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1547. .with('classname', 'RelativeLayout')
  1548. .with('content-desc', 'Popout')
  1549.  
  1550. $ruiObj.click
  1551.  
  1552. waitsecond(2)
  1553. end
  1554.  
  1555. tcase << TestAction.new(:Click_Setting) do
  1556. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1557. .with('uitreeindex', 3)
  1558. .with('classname', 'ImageButton')
  1559. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1560. .with('content-desc', 'Open settings')
  1561.  
  1562. $ruiObj.click
  1563.  
  1564. waitsecond(2)
  1565. end
  1566.  
  1567. tcase << TestAction.new(:Click_Photo_Size) do
  1568. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1569. .with('uitreeindex', 16)
  1570. .with('classname', 'TextView')
  1571. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1572. .with('content-desc', 'Photo size')
  1573. .with('text', 'Photo size')
  1574.  
  1575. $ruiObj.click
  1576.  
  1577. waitsecond(2)
  1578. end
  1579.  
  1580. tcase << TestAction.new(:Click_2448x2448) do
  1581. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1757568045).with('textdescid', 1318968595).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1582. .with('uitreeindex', 22)
  1583. .with('classname', 'CheckedTextView')
  1584. .with('resource-id', 'android:id/text1')
  1585. .with('content-desc', '1:1 (6Point0 MP) 2448x2448')
  1586. .with('text', '11 60MP 2448x2448')
  1587.  
  1588. $ruiObj.click
  1589.  
  1590. waitsecond(2)
  1591. end
  1592.  
  1593. tcase << TestAction.new(:Click_Shutter) do
  1594. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1595. .with('uitreeindex', 10)
  1596. .with('classname', 'ImageButton')
  1597. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1598. .with('content-desc', 'Shutter')
  1599.  
  1600. $ruiObj.click
  1601.  
  1602. waitsecond(2)
  1603. end
  1604.  
  1605. tcase << TestAction.new(:Click_Recent) do
  1606. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1607. .with('uitreeindex', 20)
  1608. .with('classname', 'ImageView')
  1609. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1610. .with('content-desc', 'Gallery')
  1611.  
  1612. $ruiObj.click
  1613.  
  1614. waitsecond(2)
  1615. end
  1616.  
  1617. tcase << TestAction.new(:Check_Delete) do
  1618. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1619. .with('uitreeindex', 4)
  1620. .with('classname', 'Button')
  1621. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1622. .with('content-desc', 'Delete')
  1623. .with('text', 'Delete')
  1624.  
  1625. $ruiObj.isExist
  1626.  
  1627. waitsecond(2)
  1628. end
  1629.  
  1630. tcase << TestAction.new(:Click_Delete) do
  1631. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1632. .with('uitreeindex', 4)
  1633. .with('classname', 'Button')
  1634. .with('content-desc', 'Delete')
  1635. .with('text', 'Delete').click
  1636.  
  1637. $ruiObj.click
  1638.  
  1639. waitsecond(2)
  1640. end
  1641.  
  1642. tcase << TestAction.new(:End_Log) do
  1643. $myTestResult = checkLastExistResult
  1644.  
  1645. logStopTest("Pop_Photo_Size_7")
  1646.  
  1647.  
  1648. waitsecond(2)
  1649. end
  1650.  
  1651. tcase.run(loopTime)
  1652.  
  1653. end
  1654.  
  1655. def self.Pop_Photo_Size_8(loopTime)
  1656.  
  1657. tcase = TestCase.new("Pop_Photo_Size_8")
  1658.  
  1659. tcase << TestAction.new(:Start_Log) do
  1660. logStartTest("Pop_Photo_Size_8")
  1661.  
  1662. waitsecond(2)
  1663. end
  1664.  
  1665. tcase << TestAction.new(:Click_Mode) do
  1666. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1667. .with('uitreeindex', 4)
  1668. .with('classname', 'ImageButton')
  1669. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1670. .with('content-desc', 'Mode')
  1671.  
  1672. $ruiObj.click
  1673.  
  1674. waitsecond(2)
  1675. end
  1676.  
  1677. tcase << TestAction.new(:Click_Popout) do
  1678. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1679. .with('classname', 'RelativeLayout')
  1680. .with('content-desc', 'Popout')
  1681.  
  1682. $ruiObj.click
  1683.  
  1684. waitsecond(2)
  1685. end
  1686.  
  1687. tcase << TestAction.new(:Click_Setting) do
  1688. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1689. .with('uitreeindex', 3)
  1690. .with('classname', 'ImageButton')
  1691. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1692. .with('content-desc', 'Open settings')
  1693.  
  1694. $ruiObj.click
  1695.  
  1696. waitsecond(2)
  1697. end
  1698.  
  1699. tcase << TestAction.new(:Click_Photo_Size) do
  1700. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1701. .with('uitreeindex', 16)
  1702. .with('classname', 'TextView')
  1703. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1704. .with('content-desc', 'Photo size')
  1705. .with('text', 'Photo size')
  1706.  
  1707. $ruiObj.click
  1708.  
  1709. waitsecond(2)
  1710. end
  1711.  
  1712. tcase << TestAction.new(:Click_2160x2160) do
  1713. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1625190011).with('textdescid', -1339361467).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1714. .with('uitreeindex', 23)
  1715. .with('classname', 'CheckedTextView')
  1716. .with('resource-id', 'android:id/text1')
  1717. .with('content-desc', '1:1 (4Point7 MP) 2160x2160')
  1718. .with('text', '11 47MP 2160x2160')
  1719.  
  1720. $ruiObj.click
  1721.  
  1722. waitsecond(2)
  1723. end
  1724.  
  1725. tcase << TestAction.new(:Click_Shutter) do
  1726. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1727. .with('uitreeindex', 10)
  1728. .with('classname', 'ImageButton')
  1729. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1730. .with('content-desc', 'Shutter')
  1731.  
  1732. $ruiObj.click
  1733.  
  1734. waitsecond(2)
  1735. end
  1736.  
  1737. tcase << TestAction.new(:Click_Recent) do
  1738. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1739. .with('uitreeindex', 20)
  1740. .with('classname', 'ImageView')
  1741. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1742. .with('content-desc', 'Gallery')
  1743.  
  1744. $ruiObj.click
  1745.  
  1746. waitsecond(2)
  1747. end
  1748.  
  1749. tcase << TestAction.new(:Check_Delete) do
  1750. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1751. .with('uitreeindex', 4)
  1752. .with('classname', 'Button')
  1753. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1754. .with('content-desc', 'Delete')
  1755. .with('text', 'Delete')
  1756.  
  1757. $ruiObj.isExist
  1758.  
  1759. waitsecond(2)
  1760. end
  1761.  
  1762. tcase << TestAction.new(:Click_Delete) do
  1763. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1764. .with('uitreeindex', 4)
  1765. .with('classname', 'Button')
  1766. .with('content-desc', 'Delete')
  1767. .with('text', 'Delete').click
  1768.  
  1769. $ruiObj.click
  1770.  
  1771. waitsecond(2)
  1772. end
  1773.  
  1774. tcase << TestAction.new(:End_Log) do
  1775. $myTestResult = checkLastExistResult
  1776.  
  1777. logStopTest("Pop_Photo_Size_8")
  1778.  
  1779.  
  1780. waitsecond(2)
  1781. end
  1782.  
  1783. tcase.run(loopTime)
  1784.  
  1785. end
  1786.  
  1787. def self.Pop_Record(loopTime)
  1788.  
  1789. tcase = TestCase.new("Pop_Record")
  1790.  
  1791. tcase << TestAction.new(:scriptAction_28) do
  1792. logStartTest("Pop_Record")
  1793.  
  1794. waitsecond(2)
  1795. end
  1796.  
  1797. tcase << TestAction.new(:Click_Mode) do
  1798. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1799. .with('uitreeindex', 11)
  1800. .with('classname', 'ImageButton')
  1801. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1802. .with('content-desc', 'Mode')
  1803.  
  1804. $ruiObj.click
  1805.  
  1806. waitsecond(2)
  1807. end
  1808.  
  1809. tcase << TestAction.new(:Click_Popout) do
  1810. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1811. .with('classname', 'RelativeLayout')
  1812. .with('content-desc', 'Popout')
  1813.  
  1814. $ruiObj.click
  1815.  
  1816. waitsecond(2)
  1817. end
  1818.  
  1819. tcase << TestAction.new(:Click_Record) do
  1820. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  1821. .with('uitreeindex', 13)
  1822. .with('classname', 'ImageButton')
  1823. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  1824.  
  1825. $ruiObj.click
  1826.  
  1827. waitsecond(2)
  1828. end
  1829.  
  1830. tcase << TestAction.new(:Stop_Recording) do
  1831. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  1832. .with('uitreeindex', 5)
  1833. .with('classname', 'ImageButton')
  1834. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  1835.  
  1836. $ruiObj.click
  1837.  
  1838. waitsecond(2)
  1839. end
  1840.  
  1841. tcase << TestAction.new(:Click_Recent) do
  1842. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1843. .with('uitreeindex', 14)
  1844. .with('classname', 'ImageView')
  1845. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1846. .with('content-desc', 'Gallery')
  1847.  
  1848. $ruiObj.click
  1849.  
  1850. waitsecond(2)
  1851. end
  1852.  
  1853. tcase << TestAction.new(:Check_Delete) do
  1854. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1855. .with('uitreeindex', 4)
  1856. .with('classname', 'Button')
  1857. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1858. .with('content-desc', 'Delete')
  1859. .with('text', 'Delete')
  1860.  
  1861. $ruiObj.isExist
  1862.  
  1863. waitsecond(2)
  1864. end
  1865.  
  1866. tcase << TestAction.new(:Click_Delete) do
  1867. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1868. .with('uitreeindex', 4)
  1869. .with('classname', 'Button')
  1870. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  1871. .with('content-desc', 'Delete')
  1872. .with('text', 'Delete')
  1873.  
  1874. $ruiObj.click
  1875.  
  1876. waitsecond(2)
  1877. end
  1878.  
  1879. tcase << TestAction.new(:scriptAction_25) do
  1880. $myTestResult = checkLastExistResult
  1881.  
  1882. logStopTest("Pop_Record")
  1883.  
  1884.  
  1885. waitsecond(2)
  1886. end
  1887.  
  1888. tcase.run(loopTime)
  1889.  
  1890. end
  1891.  
  1892. def self.Pop_Record_A_Video(loopTime)
  1893.  
  1894. tcase = TestCase.new("Pop_Record_A_Video")
  1895.  
  1896. tcase << TestAction.new(:scriptAction_28) do
  1897. logStartTest("Pop_Record_A_Video")
  1898.  
  1899. waitsecond(2)
  1900. end
  1901.  
  1902. tcase << TestAction.new(:Click_Mode) do
  1903. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  1904. .with('uitreeindex', 11)
  1905. .with('classname', 'ImageButton')
  1906. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  1907. .with('content-desc', 'Mode')
  1908.  
  1909. $ruiObj.click
  1910.  
  1911. waitsecond(2)
  1912. end
  1913.  
  1914. tcase << TestAction.new(:Click_Popout) do
  1915. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  1916. .with('classname', 'RelativeLayout')
  1917. .with('content-desc', 'Popout')
  1918.  
  1919. $ruiObj.click
  1920.  
  1921. waitsecond(2)
  1922. end
  1923.  
  1924. tcase << TestAction.new(:Click_Record) do
  1925. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  1926. .with('uitreeindex', 20)
  1927. .with('classname', 'ImageButton')
  1928. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  1929.  
  1930. $ruiObj.click
  1931.  
  1932. waitsecond(2)
  1933. end
  1934.  
  1935. tcase << TestAction.new(:Stop_Recording) do
  1936. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  1937. .with('uitreeindex', 6)
  1938. .with('classname', 'ImageButton')
  1939. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  1940.  
  1941. $ruiObj.click
  1942.  
  1943. waitsecond(2)
  1944. end
  1945.  
  1946. tcase << TestAction.new(:Click_Recent) do
  1947. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  1948. .with('uitreeindex', 14)
  1949. .with('classname', 'ImageView')
  1950. .with('resource-id', 'com.lge.camera:id/thumbnail')
  1951. .with('content-desc', 'Gallery')
  1952.  
  1953. $ruiObj.click
  1954.  
  1955. waitsecond(2)
  1956. end
  1957.  
  1958. tcase << TestAction.new(:Check_Video_Delete) do
  1959. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  1960. .with('uitreeindex', 3)
  1961. .with('classname', 'Button')
  1962. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  1963. .with('content-desc', 'Delete')
  1964. .with('text', 'Delete')
  1965.  
  1966. $ruiObj.isExist
  1967.  
  1968. waitsecond(2)
  1969. end
  1970.  
  1971. tcase << TestAction.new(:Click_Delete) do
  1972. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  1973. .with('uitreeindex', 4)
  1974. .with('classname', 'Button')
  1975. .with('content-desc', 'Delete')
  1976. .with('text', 'Delete').click
  1977.  
  1978. $ruiObj.click
  1979.  
  1980. waitsecond(2)
  1981. end
  1982.  
  1983. tcase << TestAction.new(:scriptAction_25) do
  1984. $myTestResult = checkLastExistResult
  1985.  
  1986. logStopTest("Pop_Record_A_Video")
  1987.  
  1988.  
  1989. waitsecond(2)
  1990. end
  1991.  
  1992. tcase.run(loopTime)
  1993.  
  1994. end
  1995.  
  1996. def self.Pop_Signature(loopTime)
  1997.  
  1998. tcase = TestCase.new("Pop_Signature")
  1999.  
  2000. tcase << TestAction.new(:Start_Log) do
  2001. logStartTest("Pop_Tag_Location")
  2002.  
  2003. waitsecond(2)
  2004. end
  2005.  
  2006. tcase << TestAction.new(:Click_Mode) do
  2007. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2008. .with('uitreeindex', 4)
  2009. .with('classname', 'ImageButton')
  2010. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2011. .with('content-desc', 'Mode')
  2012.  
  2013. $ruiObj.click
  2014.  
  2015. waitsecond(2)
  2016. end
  2017.  
  2018. tcase << TestAction.new(:Click_Popout) do
  2019. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2020. .with('classname', 'RelativeLayout')
  2021. .with('content-desc', 'Popout')
  2022.  
  2023. $ruiObj.click
  2024.  
  2025. waitsecond(2)
  2026. end
  2027.  
  2028. tcase << TestAction.new(:Click_Setting) do
  2029. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2030. .with('uitreeindex', 3)
  2031. .with('classname', 'ImageButton')
  2032. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2033. .with('content-desc', 'Open settings')
  2034.  
  2035. $ruiObj.click
  2036.  
  2037. waitsecond(2)
  2038. end
  2039.  
  2040. tcase << TestAction.new(:swipeDown_4) do
  2041. swipe(661.5,1989,697.5,513,25)
  2042.  
  2043. waitsecond(2)
  2044. end
  2045.  
  2046. tcase << TestAction.new(:Edit_Signature) do
  2047. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 396042911).with('textdescid', 562164781).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2048. .with('uitreeindex', 28)
  2049. .with('classname', 'TextView')
  2050. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2051. .with('content-desc', 'Add signature')
  2052. .with('text', 'Add signature')
  2053.  
  2054. $ruiObj.click
  2055.  
  2056. waitsecond(2)
  2057. end
  2058.  
  2059. tcase << TestAction.new(:Click_Add) do
  2060. $ruiObj = RUIObject.new.with('objectid', -367317206).with('selfid', 120621811).with('textdescid', -1407762699).with('uniqueparentid', 0)
  2061. .with('uitreeindex', 11)
  2062. .with('classname', 'Button')
  2063. .with('resource-id', 'com.android.gallery3d:id/selection_ok')
  2064. .with('text', 'ADD')
  2065.  
  2066. $ruiObj.click
  2067.  
  2068. waitsecond(2)
  2069. end
  2070.  
  2071. tcase << TestAction.new(:Click_Shutter) do
  2072. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2073. .with('uitreeindex', 10)
  2074. .with('classname', 'ImageButton')
  2075. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2076. .with('content-desc', 'Shutter')
  2077.  
  2078. $ruiObj.click
  2079.  
  2080. waitsecond(2)
  2081. end
  2082.  
  2083. tcase << TestAction.new(:Click_Recent) do
  2084. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2085. .with('uitreeindex', 20)
  2086. .with('classname', 'ImageView')
  2087. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2088. .with('content-desc', 'Gallery')
  2089.  
  2090. $ruiObj.click
  2091.  
  2092. waitsecond(2)
  2093. end
  2094.  
  2095. tcase << TestAction.new(:Check_Delete) do
  2096. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2097. .with('uitreeindex', 4)
  2098. .with('classname', 'Button')
  2099. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2100. .with('content-desc', 'Delete')
  2101. .with('text', 'Delete')
  2102.  
  2103. $ruiObj.isExist
  2104.  
  2105. waitsecond(2)
  2106. end
  2107.  
  2108. tcase << TestAction.new(:Click_Delete) do
  2109. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2110. .with('uitreeindex', 4)
  2111. .with('classname', 'Button')
  2112. .with('content-desc', 'Delete')
  2113. .with('text', 'Delete').click
  2114.  
  2115. $ruiObj.click
  2116.  
  2117. waitsecond(2)
  2118. end
  2119.  
  2120. tcase << TestAction.new(:End_Log) do
  2121. $myTestResult = checkLastExistResult
  2122.  
  2123. logStopTest("Pop_Tag_Location")
  2124.  
  2125.  
  2126. waitsecond(2)
  2127. end
  2128.  
  2129. tcase.run(loopTime)
  2130.  
  2131. end
  2132.  
  2133. def self.Pop_Tag_Location(loopTime)
  2134.  
  2135. tcase = TestCase.new("Pop_Tag_Location")
  2136.  
  2137. tcase << TestAction.new(:Start_Log) do
  2138. logStartTest("Pop_Tag_Location")
  2139.  
  2140. waitsecond(2)
  2141. end
  2142.  
  2143. tcase << TestAction.new(:Click_Mode) do
  2144. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2145. .with('uitreeindex', 4)
  2146. .with('classname', 'ImageButton')
  2147. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2148. .with('content-desc', 'Mode')
  2149.  
  2150. $ruiObj.click
  2151.  
  2152. waitsecond(2)
  2153. end
  2154.  
  2155. tcase << TestAction.new(:Click_Popout) do
  2156. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2157. .with('classname', 'RelativeLayout')
  2158. .with('content-desc', 'Popout')
  2159.  
  2160. $ruiObj.click
  2161.  
  2162. waitsecond(2)
  2163. end
  2164.  
  2165. tcase << TestAction.new(:Click_Setting) do
  2166. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2167. .with('uitreeindex', 3)
  2168. .with('classname', 'ImageButton')
  2169. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2170. .with('content-desc', 'Open settings')
  2171.  
  2172. $ruiObj.click
  2173.  
  2174. waitsecond(2)
  2175. end
  2176.  
  2177. tcase << TestAction.new(:swipeDown_2) do
  2178. swipe(661.5,1989,697.5,513,25)
  2179.  
  2180. waitsecond(2)
  2181. end
  2182.  
  2183. tcase << TestAction.new(:Click_Tag_Location) do
  2184. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2185. .with('uitreeindex', 24)
  2186. .with('classname', 'TextView')
  2187. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2188. .with('content-desc', 'Tag locations Off switch')
  2189. .with('text', 'Tag locations')
  2190.  
  2191. $ruiObj.click
  2192.  
  2193. waitsecond(2)
  2194. end
  2195.  
  2196. tcase << TestAction.new(:Click_Shutter) do
  2197. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2198. .with('uitreeindex', 16)
  2199. .with('classname', 'ImageButton')
  2200. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2201. .with('content-desc', 'Shutter')
  2202.  
  2203. $ruiObj.click
  2204.  
  2205. waitsecond(2)
  2206. end
  2207.  
  2208. tcase << TestAction.new(:Click_Recent) do
  2209. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2210. .with('uitreeindex', 20)
  2211. .with('classname', 'ImageView')
  2212. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2213. .with('content-desc', 'Gallery')
  2214.  
  2215. $ruiObj.click
  2216.  
  2217. waitsecond(2)
  2218. end
  2219.  
  2220. tcase << TestAction.new(:Check_Delete) do
  2221. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2222. .with('uitreeindex', 4)
  2223. .with('classname', 'Button')
  2224. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  2225. .with('content-desc', 'Delete')
  2226. .with('text', 'Delete')
  2227.  
  2228. $ruiObj.isExist
  2229.  
  2230. waitsecond(2)
  2231. end
  2232.  
  2233. tcase << TestAction.new(:Click_Delete) do
  2234. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2235. .with('uitreeindex', 4)
  2236. .with('classname', 'Button')
  2237. .with('content-desc', 'Delete')
  2238. .with('text', 'Delete').click
  2239.  
  2240. $ruiObj.click
  2241.  
  2242. waitsecond(2)
  2243. end
  2244.  
  2245. tcase << TestAction.new(:End_Log) do
  2246. $myTestResult = checkLastExistResult
  2247.  
  2248. logStopTest("Pop_Tag_Location")
  2249.  
  2250.  
  2251. waitsecond(2)
  2252. end
  2253.  
  2254. tcase.run(loopTime)
  2255.  
  2256. end
  2257.  
  2258. def self.Pop_Take_A_Picture(loopTime)
  2259.  
  2260. tcase = TestCase.new("Pop_Take_A_Picture")
  2261.  
  2262. tcase << TestAction.new(:scriptAction_28) do
  2263. logStartTest("Pop_Take_A_Picture")
  2264.  
  2265. waitsecond(2)
  2266. end
  2267.  
  2268. tcase << TestAction.new(:Click_Mode) do
  2269. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2270. .with('uitreeindex', 11)
  2271. .with('classname', 'ImageButton')
  2272. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2273. .with('content-desc', 'Mode')
  2274.  
  2275. $ruiObj.click
  2276.  
  2277. waitsecond(2)
  2278. end
  2279.  
  2280. tcase << TestAction.new(:Click_Popout) do
  2281. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2282. .with('classname', 'RelativeLayout')
  2283. .with('content-desc', 'Popout')
  2284.  
  2285. $ruiObj.click
  2286.  
  2287. waitsecond(2)
  2288. end
  2289.  
  2290. tcase << TestAction.new(:Click_Shutter) do
  2291. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2292. .with('uitreeindex', 18)
  2293. .with('classname', 'ImageButton')
  2294. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2295.  
  2296. $ruiObj.click
  2297.  
  2298. waitsecond(2)
  2299. end
  2300.  
  2301. tcase << TestAction.new(:Click_Recent) do
  2302. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2303. .with('uitreeindex', 14)
  2304. .with('classname', 'ImageView')
  2305. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2306. .with('content-desc', 'Gallery')
  2307.  
  2308. $ruiObj.click
  2309.  
  2310. waitsecond(2)
  2311. end
  2312.  
  2313. tcase << TestAction.new(:Check_Delete) do
  2314. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  2315. .with('uitreeindex', 3)
  2316. .with('classname', 'Button')
  2317. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  2318. .with('content-desc', 'Delete')
  2319. .with('text', 'Delete')
  2320.  
  2321. $ruiObj.isExist
  2322.  
  2323. waitsecond(2)
  2324. end
  2325.  
  2326. tcase << TestAction.new(:Click_Delete) do
  2327. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2328. .with('uitreeindex', 4)
  2329. .with('classname', 'Button')
  2330. .with('content-desc', 'Delete')
  2331. .with('text', 'Delete').click
  2332.  
  2333. $ruiObj.click
  2334.  
  2335. waitsecond(2)
  2336. end
  2337.  
  2338. tcase << TestAction.new(:scriptAction_25) do
  2339. $myTestResult = checkLastExistResult
  2340.  
  2341. logStopTest("Pop_Take_A_Picture")
  2342.  
  2343.  
  2344. waitsecond(2)
  2345. end
  2346.  
  2347. tcase.run(loopTime)
  2348.  
  2349. end
  2350.  
  2351. def self.Pop_Take_A_Picture_Frame_1(loopTime)
  2352.  
  2353. tcase = TestCase.new("Pop_Take_A_Picture_Frame_1")
  2354.  
  2355. tcase << TestAction.new(:Start_Log) do
  2356. logStartTest("Pop_Take_A_Vol_Picture_Frame_1")
  2357.  
  2358.  
  2359. waitsecond(2)
  2360. end
  2361.  
  2362. tcase << TestAction.new(:Click_Mode) do
  2363. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2364. .with('uitreeindex', 9)
  2365. .with('classname', 'ImageButton')
  2366. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2367. .with('content-desc', 'Mode')
  2368.  
  2369. $ruiObj.click
  2370.  
  2371. waitsecond(2)
  2372. end
  2373.  
  2374. tcase << TestAction.new(:Click_Popup) do
  2375. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2376. .with('classname', 'RelativeLayout')
  2377. .with('content-desc', 'Popout')
  2378.  
  2379. $ruiObj.click
  2380.  
  2381. waitsecond(2)
  2382. end
  2383.  
  2384. tcase << TestAction.new(:Click_Frame) do
  2385. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  2386. .with('uitreeindex', 1)
  2387. .with('classname', 'ImageView')
  2388. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  2389.  
  2390. $ruiObj.click
  2391.  
  2392. waitsecond(2)
  2393. end
  2394.  
  2395. tcase << TestAction.new(:Click_Vertical_Frame) do
  2396. $ruiObj = RUIObject.new.with('objectid', -2124628362).with('selfid', 2047937626).with('textdescid', -875765843).with('uniqueparentid', 0)
  2397. .with('uitreeindex', 1)
  2398. .with('classname', 'ImageButton')
  2399. .with('resource-id', 'com.lge.camera:id/popout_frame_division_vertical')
  2400. .with('content-desc', 'Vertical Division')
  2401.  
  2402. $ruiObj.click
  2403.  
  2404. waitsecond(2)
  2405. end
  2406.  
  2407. tcase << TestAction.new(:Click_Shutter) do
  2408. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2409. .with('uitreeindex', 16)
  2410. .with('classname', 'ImageButton')
  2411. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2412.  
  2413. $ruiObj.click
  2414.  
  2415. waitsecond(2)
  2416. end
  2417.  
  2418. tcase << TestAction.new(:Click_Recent) do
  2419. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2420. .with('uitreeindex', 20)
  2421. .with('classname', 'ImageView')
  2422. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2423. .with('content-desc', 'Gallery')
  2424.  
  2425. $ruiObj.click
  2426.  
  2427. waitsecond(2)
  2428. end
  2429.  
  2430. tcase << TestAction.new(:Check_Delete) do
  2431. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2432. .with('uitreeindex', 4)
  2433. .with('classname', 'Button')
  2434. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2435. .with('content-desc', 'Delete')
  2436. .with('text', 'Delete')
  2437.  
  2438. $ruiObj.isExist
  2439.  
  2440. waitsecond(2)
  2441. end
  2442.  
  2443. tcase << TestAction.new(:Click_Delete) do
  2444. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2445. .with('uitreeindex', 4)
  2446. .with('classname', 'Button')
  2447. .with('content-desc', 'Delete')
  2448. .with('text', 'Delete').click
  2449.  
  2450. $ruiObj.click
  2451.  
  2452. waitsecond(2)
  2453. end
  2454.  
  2455. tcase << TestAction.new(:End_Log) do
  2456. $myTestResult = checkLastExistResult
  2457.  
  2458. logStopTest("Pop_Take_A_Vol_Picture_Frame_1")
  2459.  
  2460.  
  2461. waitsecond(2)
  2462. end
  2463.  
  2464. tcase.run(loopTime)
  2465.  
  2466. end
  2467.  
  2468. def self.Pop_Take_A_Picture_Frame_2(loopTime)
  2469.  
  2470. tcase = TestCase.new("Pop_Take_A_Picture_Frame_2")
  2471.  
  2472. tcase << TestAction.new(:Start_Log) do
  2473. logStartTest("Pop_Take_A_Vol_Picture_Frame_2")
  2474.  
  2475.  
  2476. waitsecond(2)
  2477. end
  2478.  
  2479. tcase << TestAction.new(:Click_Mode) do
  2480. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2481. .with('uitreeindex', 9)
  2482. .with('classname', 'ImageButton')
  2483. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2484. .with('content-desc', 'Mode')
  2485.  
  2486. $ruiObj.click
  2487.  
  2488. waitsecond(2)
  2489. end
  2490.  
  2491. tcase << TestAction.new(:Click_Popup) do
  2492. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2493. .with('classname', 'RelativeLayout')
  2494. .with('content-desc', 'Popout')
  2495.  
  2496. $ruiObj.click
  2497.  
  2498. waitsecond(2)
  2499. end
  2500.  
  2501. tcase << TestAction.new(:Click_Frame) do
  2502. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  2503. .with('uitreeindex', 1)
  2504. .with('classname', 'ImageView')
  2505. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  2506.  
  2507. $ruiObj.click
  2508.  
  2509. waitsecond(2)
  2510. end
  2511.  
  2512. tcase << TestAction.new(:Click_Horizonal_Frame) do
  2513. $ruiObj = RUIObject.new.with('objectid', -476306652).with('selfid', 707988150).with('textdescid', -1084998931).with('uniqueparentid', 0)
  2514. .with('uitreeindex', 2)
  2515. .with('classname', 'ImageButton')
  2516. .with('resource-id', 'com.lge.camera:id/popout_frame_division_horizontal')
  2517. .with('content-desc', 'Horizontal Division')
  2518.  
  2519. $ruiObj.click
  2520.  
  2521. waitsecond(2)
  2522. end
  2523.  
  2524. tcase << TestAction.new(:Click_Shutter) do
  2525. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2526. .with('uitreeindex', 16)
  2527. .with('classname', 'ImageButton')
  2528. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2529.  
  2530. $ruiObj.click
  2531.  
  2532. waitsecond(2)
  2533. end
  2534.  
  2535. tcase << TestAction.new(:Click_Recent) do
  2536. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2537. .with('uitreeindex', 19)
  2538. .with('classname', 'ImageView')
  2539. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2540. .with('content-desc', 'Gallery')
  2541.  
  2542. $ruiObj.click
  2543.  
  2544. waitsecond(2)
  2545. end
  2546.  
  2547. tcase << TestAction.new(:Check_Delete) do
  2548. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2549. .with('uitreeindex', 4)
  2550. .with('classname', 'Button')
  2551. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2552. .with('content-desc', 'Delete')
  2553. .with('text', 'Delete')
  2554.  
  2555. $ruiObj.isExist
  2556.  
  2557. waitsecond(2)
  2558. end
  2559.  
  2560. tcase << TestAction.new(:Click_Delete) do
  2561. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2562. .with('uitreeindex', 4)
  2563. .with('classname', 'Button')
  2564. .with('content-desc', 'Delete')
  2565. .with('text', 'Delete').click
  2566.  
  2567. $ruiObj.click
  2568.  
  2569. waitsecond(2)
  2570. end
  2571.  
  2572. tcase << TestAction.new(:End_Log) do
  2573. $myTestResult = checkLastExistResult
  2574.  
  2575. logStopTest("Pop_Take_A_Picture_Frame_2")
  2576.  
  2577.  
  2578. waitsecond(2)
  2579. end
  2580.  
  2581. tcase.run(loopTime)
  2582.  
  2583. end
  2584.  
  2585. def self.Pop_Take_A_Picture_Frame_3(loopTime)
  2586.  
  2587. tcase = TestCase.new("Pop_Take_A_Picture_Frame_3")
  2588.  
  2589. tcase << TestAction.new(:Start_Log) do
  2590. logStartTest("Pop_Take_A_Vol_Picture_Frame_3")
  2591.  
  2592.  
  2593. waitsecond(2)
  2594. end
  2595.  
  2596. tcase << TestAction.new(:Click_Mode) do
  2597. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2598. .with('uitreeindex', 9)
  2599. .with('classname', 'ImageButton')
  2600. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2601. .with('content-desc', 'Mode')
  2602.  
  2603. $ruiObj.click
  2604.  
  2605. waitsecond(2)
  2606. end
  2607.  
  2608. tcase << TestAction.new(:Click_Popup) do
  2609. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2610. .with('classname', 'RelativeLayout')
  2611. .with('content-desc', 'Popout')
  2612.  
  2613. $ruiObj.click
  2614.  
  2615. waitsecond(2)
  2616. end
  2617.  
  2618. tcase << TestAction.new(:Click_Frame) do
  2619. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  2620. .with('uitreeindex', 1)
  2621. .with('classname', 'ImageView')
  2622. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  2623.  
  2624. $ruiObj.click
  2625.  
  2626. waitsecond(2)
  2627. end
  2628.  
  2629. tcase << TestAction.new(:Click_Hexagon_Frame) do
  2630. $ruiObj = RUIObject.new.with('objectid', -631948466).with('selfid', 1555010409).with('textdescid', 1988847534).with('uniqueparentid', 0)
  2631. .with('uitreeindex', 3)
  2632. .with('classname', 'ImageButton')
  2633. .with('resource-id', 'com.lge.camera:id/popout_frame_hexagon')
  2634. .with('content-desc', 'Hexagon')
  2635.  
  2636. $ruiObj.click
  2637.  
  2638. waitsecond(2)
  2639. end
  2640.  
  2641. tcase << TestAction.new(:Click_Shutter) do
  2642. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2643. .with('uitreeindex', 16)
  2644. .with('classname', 'ImageButton')
  2645. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2646.  
  2647. $ruiObj.click
  2648.  
  2649. waitsecond(2)
  2650. end
  2651.  
  2652. tcase << TestAction.new(:Click_Recent) do
  2653. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2654. .with('uitreeindex', 19)
  2655. .with('classname', 'ImageView')
  2656. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2657. .with('content-desc', 'Gallery')
  2658.  
  2659. $ruiObj.click
  2660.  
  2661. waitsecond(2)
  2662. end
  2663.  
  2664. tcase << TestAction.new(:Check_Delete) do
  2665. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2666. .with('uitreeindex', 4)
  2667. .with('classname', 'Button')
  2668. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2669. .with('content-desc', 'Delete')
  2670. .with('text', 'Delete')
  2671.  
  2672. $ruiObj.isExist
  2673.  
  2674. waitsecond(2)
  2675. end
  2676.  
  2677. tcase << TestAction.new(:Click_Delete) do
  2678. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2679. .with('uitreeindex', 4)
  2680. .with('classname', 'Button')
  2681. .with('content-desc', 'Delete')
  2682. .with('text', 'Delete').click
  2683.  
  2684. $ruiObj.click
  2685.  
  2686. waitsecond(2)
  2687. end
  2688.  
  2689. tcase << TestAction.new(:End_Log) do
  2690. $myTestResult = checkLastExistResult
  2691.  
  2692. logStopTest("Pop_Take_A_Picture_Frame_3")
  2693.  
  2694.  
  2695. waitsecond(2)
  2696. end
  2697.  
  2698. tcase.run(loopTime)
  2699.  
  2700. end
  2701.  
  2702. def self.Pop_Take_A_Picture_Frame_4(loopTime)
  2703.  
  2704. tcase = TestCase.new("Pop_Take_A_Picture_Frame_4")
  2705.  
  2706. tcase << TestAction.new(:Start_Log) do
  2707. logStartTest("Pop_Take_A_Vol_Picture_Frame_4")
  2708.  
  2709.  
  2710. waitsecond(2)
  2711. end
  2712.  
  2713. tcase << TestAction.new(:Click_Mode) do
  2714. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2715. .with('uitreeindex', 9)
  2716. .with('classname', 'ImageButton')
  2717. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2718. .with('content-desc', 'Mode')
  2719.  
  2720. $ruiObj.click
  2721.  
  2722. waitsecond(2)
  2723. end
  2724.  
  2725. tcase << TestAction.new(:Click_Popup) do
  2726. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2727. .with('classname', 'RelativeLayout')
  2728. .with('content-desc', 'Popout')
  2729.  
  2730. $ruiObj.click
  2731.  
  2732. waitsecond(2)
  2733. end
  2734.  
  2735. tcase << TestAction.new(:Click_Frame) do
  2736. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  2737. .with('uitreeindex', 1)
  2738. .with('classname', 'ImageView')
  2739. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  2740.  
  2741. $ruiObj.click
  2742.  
  2743. waitsecond(2)
  2744. end
  2745.  
  2746. tcase << TestAction.new(:Click_Circle_Frame) do
  2747. $ruiObj = RUIObject.new.with('objectid', 1918196194).with('selfid', 322839881).with('textdescid', -1047677586).with('uniqueparentid', 0)
  2748. .with('uitreeindex', 4)
  2749. .with('classname', 'ImageButton')
  2750. .with('resource-id', 'com.lge.camera:id/popout_frame_circle')
  2751. .with('content-desc', 'Circle')
  2752.  
  2753. $ruiObj.click
  2754.  
  2755. waitsecond(2)
  2756. end
  2757.  
  2758. tcase << TestAction.new(:Click_Shutter) do
  2759. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2760. .with('uitreeindex', 16)
  2761. .with('classname', 'ImageButton')
  2762. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2763.  
  2764. $ruiObj.click
  2765.  
  2766. waitsecond(2)
  2767. end
  2768.  
  2769. tcase << TestAction.new(:Click_Recent) do
  2770. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2771. .with('uitreeindex', 19)
  2772. .with('classname', 'ImageView')
  2773. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2774. .with('content-desc', 'Gallery')
  2775.  
  2776. $ruiObj.click
  2777.  
  2778. waitsecond(2)
  2779. end
  2780.  
  2781. tcase << TestAction.new(:Check_Delete) do
  2782. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2783. .with('uitreeindex', 4)
  2784. .with('classname', 'Button')
  2785. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2786. .with('content-desc', 'Delete')
  2787. .with('text', 'Delete')
  2788.  
  2789. $ruiObj.isExist
  2790.  
  2791. waitsecond(2)
  2792. end
  2793.  
  2794. tcase << TestAction.new(:Click_Delete) do
  2795. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2796. .with('uitreeindex', 4)
  2797. .with('classname', 'Button')
  2798. .with('content-desc', 'Delete')
  2799. .with('text', 'Delete').click
  2800.  
  2801. $ruiObj.click
  2802.  
  2803. waitsecond(2)
  2804. end
  2805.  
  2806. tcase << TestAction.new(:End_Log) do
  2807. $myTestResult = checkLastExistResult
  2808.  
  2809. logStopTest("Pop_Take_A_Picture_Frame_4")
  2810.  
  2811.  
  2812. waitsecond(2)
  2813. end
  2814.  
  2815. tcase.run(loopTime)
  2816.  
  2817. end
  2818.  
  2819. def self.Pop_Take_A_Picture_Frame_5(loopTime)
  2820.  
  2821. tcase = TestCase.new("Pop_Take_A_Picture_Frame_5")
  2822.  
  2823. tcase << TestAction.new(:Start_Log) do
  2824. logStartTest("Pop_Take_A_Vol_Picture_Frame_5")
  2825.  
  2826.  
  2827. waitsecond(2)
  2828. end
  2829.  
  2830. tcase << TestAction.new(:Click_Mode) do
  2831. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2832. .with('uitreeindex', 9)
  2833. .with('classname', 'ImageButton')
  2834. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2835. .with('content-desc', 'Mode')
  2836.  
  2837. $ruiObj.click
  2838.  
  2839. waitsecond(2)
  2840. end
  2841.  
  2842. tcase << TestAction.new(:Click_Popout) do
  2843. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2844. .with('classname', 'RelativeLayout')
  2845. .with('content-desc', 'Popout')
  2846.  
  2847. $ruiObj.click
  2848.  
  2849. waitsecond(2)
  2850. end
  2851.  
  2852. tcase << TestAction.new(:Click_Frame) do
  2853. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  2854. .with('uitreeindex', 1)
  2855. .with('classname', 'ImageView')
  2856. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  2857.  
  2858. $ruiObj.click
  2859.  
  2860. waitsecond(2)
  2861. end
  2862.  
  2863. tcase << TestAction.new(:Click_Rectangle_Frame) do
  2864. $ruiObj = RUIObject.new.with('objectid', 753275766).with('selfid', 809437900).with('textdescid', -343607323).with('uniqueparentid', 0)
  2865. .with('uitreeindex', 5)
  2866. .with('classname', 'ImageButton')
  2867. .with('resource-id', 'com.lge.camera:id/popout_frame_rect')
  2868. .with('content-desc', 'Rectangle')
  2869.  
  2870. $ruiObj.click
  2871.  
  2872. waitsecond(2)
  2873. end
  2874.  
  2875. tcase << TestAction.new(:Click_Shutter) do
  2876. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  2877. .with('uitreeindex', 16)
  2878. .with('classname', 'ImageButton')
  2879. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  2880.  
  2881. $ruiObj.click
  2882.  
  2883. waitsecond(2)
  2884. end
  2885.  
  2886. tcase << TestAction.new(:Click_Recent) do
  2887. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2888. .with('uitreeindex', 19)
  2889. .with('classname', 'ImageView')
  2890. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2891. .with('content-desc', 'Gallery')
  2892.  
  2893. $ruiObj.click
  2894.  
  2895. waitsecond(2)
  2896. end
  2897.  
  2898. tcase << TestAction.new(:Check_Delete) do
  2899. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2900. .with('uitreeindex', 4)
  2901. .with('classname', 'Button')
  2902. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2903. .with('content-desc', 'Delete')
  2904. .with('text', 'Delete')
  2905.  
  2906. $ruiObj.isExist
  2907.  
  2908. waitsecond(2)
  2909. end
  2910.  
  2911. tcase << TestAction.new(:Click_Delete) do
  2912. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2913. .with('uitreeindex', 4)
  2914. .with('classname', 'Button')
  2915. .with('content-desc', 'Delete')
  2916. .with('text', 'Delete').click
  2917.  
  2918. $ruiObj.click
  2919.  
  2920. waitsecond(2)
  2921. end
  2922.  
  2923. tcase << TestAction.new(:End_Log) do
  2924. $myTestResult = checkLastExistResult
  2925.  
  2926. logStopTest("Pop_Take_A_Picture_Frame_5")
  2927.  
  2928.  
  2929. waitsecond(2)
  2930. end
  2931.  
  2932. tcase.run(loopTime)
  2933.  
  2934. end
  2935.  
  2936. def self.Pop_Take_A_Vol_Picture(loopTime)
  2937.  
  2938. tcase = TestCase.new("Pop_Take_A_Vol_Picture")
  2939.  
  2940. tcase << TestAction.new(:Start_Log) do
  2941. logStartTest("Pop_Take_A_Vol_Picture")
  2942.  
  2943.  
  2944. waitsecond(2)
  2945. end
  2946.  
  2947. tcase << TestAction.new(:Click_Mode) do
  2948. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  2949. .with('uitreeindex', 4)
  2950. .with('classname', 'ImageButton')
  2951. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  2952. .with('content-desc', 'Mode')
  2953.  
  2954. $ruiObj.click
  2955.  
  2956. waitsecond(2)
  2957. end
  2958.  
  2959. tcase << TestAction.new(:Click_Popup) do
  2960. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  2961. .with('classname', 'RelativeLayout')
  2962. .with('content-desc', 'Popout')
  2963.  
  2964. $ruiObj.click
  2965.  
  2966. waitsecond(2)
  2967. end
  2968.  
  2969. tcase << TestAction.new(:Click_Volume_Key_up) do
  2970. pressVolumeKeyUp
  2971.  
  2972. waitsecond(2)
  2973. end
  2974.  
  2975. tcase << TestAction.new(:Click_Recent) do
  2976. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  2977. .with('uitreeindex', 19)
  2978. .with('classname', 'ImageView')
  2979. .with('resource-id', 'com.lge.camera:id/thumbnail')
  2980. .with('content-desc', 'Gallery')
  2981.  
  2982. $ruiObj.click
  2983.  
  2984. waitsecond(2)
  2985. end
  2986.  
  2987. tcase << TestAction.new(:Check_Delete) do
  2988. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  2989. .with('uitreeindex', 4)
  2990. .with('classname', 'Button')
  2991. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  2992. .with('content-desc', 'Delete')
  2993. .with('text', 'Delete')
  2994.  
  2995. $ruiObj.isExist
  2996.  
  2997. waitsecond(2)
  2998. end
  2999.  
  3000. tcase << TestAction.new(:Click_Delete) do
  3001. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3002. .with('uitreeindex', 4)
  3003. .with('classname', 'Button')
  3004. .with('content-desc', 'Delete')
  3005. .with('text', 'Delete').click
  3006.  
  3007. $ruiObj.click
  3008.  
  3009. waitsecond(2)
  3010. end
  3011.  
  3012. tcase << TestAction.new(:scriptAction_18) do
  3013. $myTestResult = checkLastExistResult
  3014.  
  3015. logStopTest("Pop_Take_A_Vol_Picture")
  3016.  
  3017.  
  3018. waitsecond(2)
  3019. end
  3020.  
  3021. tcase.run(loopTime)
  3022.  
  3023. end
  3024.  
  3025. def self.Pop_Take_A_Vol_Picture_Frame_1(loopTime)
  3026.  
  3027. tcase = TestCase.new("Pop_Take_A_Vol_Picture_Frame_1")
  3028.  
  3029. tcase << TestAction.new(:scriptAction_3) do
  3030. logStartTest("Pop_Take_A_Vol_Picture_Frame_1")
  3031.  
  3032.  
  3033. waitsecond(2)
  3034. end
  3035.  
  3036. tcase << TestAction.new(:ImageButton_QuickButtonMode_4) do
  3037. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3038. .with('uitreeindex', 9)
  3039. .with('classname', 'ImageButton')
  3040. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3041. .with('content-desc', 'Mode')
  3042.  
  3043. $ruiObj.click
  3044.  
  3045. waitsecond(2)
  3046. end
  3047.  
  3048. tcase << TestAction.new(:RelativeLayout_Popout_6) do
  3049. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3050. .with('classname', 'RelativeLayout')
  3051. .with('content-desc', 'Popout')
  3052.  
  3053. $ruiObj.click
  3054.  
  3055. waitsecond(2)
  3056. end
  3057.  
  3058. tcase << TestAction.new(:ImageView_PopoutFrameParentItemArrow_8) do
  3059. $ruiObj = RUIObject.new.with('objectid', -1510074051).with('selfid', -468947474).with('textdescid', 432344707).with('uniqueparentid', 0)
  3060. .with('uitreeindex', 1)
  3061. .with('classname', 'ImageView')
  3062. .with('resource-id', 'com.lge.camera:id/popout_frame_parent_item_arrow')
  3063.  
  3064. $ruiObj.click
  3065.  
  3066. waitsecond(2)
  3067. end
  3068.  
  3069. tcase << TestAction.new(:ImageButton_PopoutFrameDivisionVertical_10) do
  3070. $ruiObj = RUIObject.new.with('objectid', -2124628362).with('selfid', 2047937626).with('textdescid', -875765843).with('uniqueparentid', 0)
  3071. .with('uitreeindex', 1)
  3072. .with('classname', 'ImageButton')
  3073. .with('resource-id', 'com.lge.camera:id/popout_frame_division_vertical')
  3074. .with('content-desc', 'Vertical Division')
  3075.  
  3076. $ruiObj.click
  3077.  
  3078. waitsecond(2)
  3079. end
  3080.  
  3081. tcase << TestAction.new(:ImageButton_ShutterBottomCompType_13) do
  3082. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  3083. .with('uitreeindex', 16)
  3084. .with('classname', 'ImageButton')
  3085. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  3086.  
  3087. $ruiObj.click
  3088.  
  3089. waitsecond(2)
  3090. end
  3091.  
  3092. tcase << TestAction.new(:ImageView_Thumbnail_14) do
  3093. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3094. .with('uitreeindex', 20)
  3095. .with('classname', 'ImageView')
  3096. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3097. .with('content-desc', 'Gallery')
  3098.  
  3099. $ruiObj.click
  3100.  
  3101. waitsecond(2)
  3102. end
  3103.  
  3104. tcase << TestAction.new(:Button_BottomMenuLayerItem5_15) do
  3105. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3106. .with('uitreeindex', 4)
  3107. .with('classname', 'Button')
  3108. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3109. .with('content-desc', 'Delete')
  3110. .with('text', 'Delete')
  3111.  
  3112. $ruiObj.isExist
  3113.  
  3114. waitsecond(2)
  3115. end
  3116.  
  3117. tcase << TestAction.new(:Button_BottomMenuLayerItem5_16) do
  3118. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3119. .with('uitreeindex', 4)
  3120. .with('classname', 'Button')
  3121. .with('content-desc', 'Delete')
  3122. .with('text', 'Delete').click
  3123.  
  3124. $ruiObj.click
  3125.  
  3126. waitsecond(2)
  3127. end
  3128.  
  3129. tcase << TestAction.new(:scriptAction_18) do
  3130. $myTestResult = checkLastExistResult
  3131.  
  3132. logStopTest("Pop_Take_A_Vol_Picture_Frame_1")
  3133.  
  3134.  
  3135. waitsecond(2)
  3136. end
  3137.  
  3138. tcase.run(loopTime)
  3139.  
  3140. end
  3141.  
  3142. def self.Pop_Timer_10_Sec(loopTime)
  3143.  
  3144. tcase = TestCase.new("Pop_Timer_10_Sec")
  3145.  
  3146. tcase << TestAction.new(:Start_Log) do
  3147. logStartTest("Pop_Timer_10_Sec")
  3148.  
  3149. waitsecond(2)
  3150. end
  3151.  
  3152. tcase << TestAction.new(:Click_Mode) do
  3153. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3154. .with('uitreeindex', 4)
  3155. .with('classname', 'ImageButton')
  3156. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3157. .with('content-desc', 'Mode')
  3158.  
  3159. $ruiObj.click
  3160.  
  3161. waitsecond(2)
  3162. end
  3163.  
  3164. tcase << TestAction.new(:Click_Popout) do
  3165. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3166. .with('classname', 'RelativeLayout')
  3167. .with('content-desc', 'Popout')
  3168.  
  3169. $ruiObj.click
  3170.  
  3171. waitsecond(2)
  3172. end
  3173.  
  3174. tcase << TestAction.new(:Click_Setting) do
  3175. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3176. .with('uitreeindex', 3)
  3177. .with('classname', 'ImageButton')
  3178. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3179. .with('content-desc', 'Open settings')
  3180.  
  3181. $ruiObj.click
  3182.  
  3183. waitsecond(2)
  3184. end
  3185.  
  3186. tcase << TestAction.new(:Click_Timer) do
  3187. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3188. .with('uitreeindex', 30)
  3189. .with('classname', 'TextView')
  3190. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3191. .with('content-desc', 'Timer')
  3192. .with('text', 'Timer')
  3193.  
  3194. $ruiObj.click
  3195.  
  3196. waitsecond(2)
  3197. end
  3198.  
  3199. tcase << TestAction.new(:Click_10_Sec) do
  3200. $ruiObj = RUIObject.new.with('objectid', -767304239).with('selfid', 1127291599).with('textdescid', 1186088343).with('uniqueparentid', 0)
  3201. .with('classname', 'LinearLayout')
  3202.  
  3203. $ruiObj.click
  3204.  
  3205. waitsecond(2)
  3206. end
  3207.  
  3208. tcase << TestAction.new(:Click_Shutter) do
  3209. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  3210. .with('uitreeindex', 10)
  3211. .with('classname', 'ImageButton')
  3212. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  3213. .with('content-desc', 'Shutter')
  3214.  
  3215. $ruiObj.click
  3216.  
  3217. waitsecond(2)
  3218. end
  3219.  
  3220. tcase << TestAction.new(:Wait) do
  3221. waitsecond(8)
  3222.  
  3223. waitsecond(2)
  3224. end
  3225.  
  3226. tcase << TestAction.new(:Click_Recent) do
  3227. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3228. .with('uitreeindex', 20)
  3229. .with('classname', 'ImageView')
  3230. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3231. .with('content-desc', 'Gallery')
  3232.  
  3233. $ruiObj.click
  3234.  
  3235. waitsecond(2)
  3236. end
  3237.  
  3238. tcase << TestAction.new(:Check_Delete) do
  3239. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3240. .with('uitreeindex', 4)
  3241. .with('classname', 'Button')
  3242. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3243. .with('content-desc', 'Delete')
  3244. .with('text', 'Delete')
  3245.  
  3246. $ruiObj.isExist
  3247.  
  3248. waitsecond(2)
  3249. end
  3250.  
  3251. tcase << TestAction.new(:Click_Delete) do
  3252. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3253. .with('uitreeindex', 4)
  3254. .with('classname', 'Button')
  3255. .with('content-desc', 'Delete')
  3256. .with('text', 'Delete').click
  3257.  
  3258. $ruiObj.click
  3259.  
  3260. waitsecond(2)
  3261. end
  3262.  
  3263. tcase << TestAction.new(:End_Log) do
  3264. $myTestResult = checkLastExistResult
  3265.  
  3266. logStopTest("Pop_Timer_10_Sec")
  3267.  
  3268.  
  3269. waitsecond(2)
  3270. end
  3271.  
  3272. tcase.run(loopTime)
  3273.  
  3274. end
  3275.  
  3276. def self.Pop_Timer_3_Sec(loopTime)
  3277.  
  3278. tcase = TestCase.new("Pop_Timer_3_Sec")
  3279.  
  3280. tcase << TestAction.new(:Start_Log) do
  3281. logStartTest("Pop_Timer_3_Sec")
  3282.  
  3283. waitsecond(2)
  3284. end
  3285.  
  3286. tcase << TestAction.new(:Click_Mode) do
  3287. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3288. .with('uitreeindex', 4)
  3289. .with('classname', 'ImageButton')
  3290. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3291. .with('content-desc', 'Mode')
  3292.  
  3293. $ruiObj.click
  3294.  
  3295. waitsecond(2)
  3296. end
  3297.  
  3298. tcase << TestAction.new(:Click_Popout) do
  3299. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3300. .with('classname', 'RelativeLayout')
  3301. .with('content-desc', 'Popout')
  3302.  
  3303. $ruiObj.click
  3304.  
  3305. waitsecond(2)
  3306. end
  3307.  
  3308. tcase << TestAction.new(:Click_Setting) do
  3309. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3310. .with('uitreeindex', 3)
  3311. .with('classname', 'ImageButton')
  3312. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3313. .with('content-desc', 'Open settings')
  3314.  
  3315. $ruiObj.click
  3316.  
  3317. waitsecond(2)
  3318. end
  3319.  
  3320. tcase << TestAction.new(:Click_Timer) do
  3321. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3322. .with('uitreeindex', 30)
  3323. .with('classname', 'TextView')
  3324. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3325. .with('content-desc', 'Timer')
  3326. .with('text', 'Timer')
  3327.  
  3328. $ruiObj.click
  3329.  
  3330. waitsecond(2)
  3331. end
  3332.  
  3333. tcase << TestAction.new(:Click_3_Sec) do
  3334. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3335. .with('uitreeindex', 17)
  3336. .with('classname', 'CheckedTextView')
  3337. .with('resource-id', 'android:id/text1')
  3338. .with('content-desc', '3 sec')
  3339. .with('text', '3 sec')
  3340.  
  3341. $ruiObj.click
  3342.  
  3343. waitsecond(2)
  3344. end
  3345.  
  3346. tcase << TestAction.new(:ImageButton_ShutterBottomComp_2) do
  3347. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  3348. .with('uitreeindex', 9)
  3349. .with('classname', 'ImageButton')
  3350. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  3351. .with('content-desc', 'Shutter')
  3352.  
  3353. $ruiObj.click
  3354.  
  3355. waitsecond(2)
  3356. end
  3357.  
  3358. tcase << TestAction.new(:Wait) do
  3359. waitsecond(2)
  3360.  
  3361. waitsecond(2)
  3362. end
  3363.  
  3364. tcase << TestAction.new(:Click_Recent) do
  3365. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3366. .with('uitreeindex', 20)
  3367. .with('classname', 'ImageView')
  3368. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3369. .with('content-desc', 'Gallery')
  3370.  
  3371. $ruiObj.click
  3372.  
  3373. waitsecond(2)
  3374. end
  3375.  
  3376. tcase << TestAction.new(:Check_Delete) do
  3377. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3378. .with('uitreeindex', 4)
  3379. .with('classname', 'Button')
  3380. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3381. .with('content-desc', 'Delete')
  3382. .with('text', 'Delete')
  3383.  
  3384. $ruiObj.isExist
  3385.  
  3386. waitsecond(2)
  3387. end
  3388.  
  3389. tcase << TestAction.new(:Click_Delete) do
  3390. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3391. .with('uitreeindex', 4)
  3392. .with('classname', 'Button')
  3393. .with('content-desc', 'Delete')
  3394. .with('text', 'Delete').click
  3395.  
  3396. $ruiObj.click
  3397.  
  3398. waitsecond(2)
  3399. end
  3400.  
  3401. tcase << TestAction.new(:End_Log) do
  3402. $myTestResult = checkLastExistResult
  3403.  
  3404. logStopTest("Pop_Timer_3_Sec")
  3405.  
  3406.  
  3407. waitsecond(2)
  3408. end
  3409.  
  3410. tcase.run(loopTime)
  3411.  
  3412. end
  3413.  
  3414. def self.Pop_Video_Res_1(loopTime)
  3415.  
  3416. tcase = TestCase.new("Pop_Video_Res_1")
  3417.  
  3418. tcase << TestAction.new(:scriptAction_28) do
  3419. logStartTest("Pop_Video_Res_1")
  3420.  
  3421. waitsecond(2)
  3422. end
  3423.  
  3424. tcase << TestAction.new(:Click_Mode) do
  3425. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3426. .with('uitreeindex', 11)
  3427. .with('classname', 'ImageButton')
  3428. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3429. .with('content-desc', 'Mode')
  3430.  
  3431. $ruiObj.click
  3432.  
  3433. waitsecond(2)
  3434. end
  3435.  
  3436. tcase << TestAction.new(:Click_Popout) do
  3437. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3438. .with('classname', 'RelativeLayout')
  3439. .with('content-desc', 'Popout')
  3440.  
  3441. $ruiObj.click
  3442.  
  3443. waitsecond(2)
  3444. end
  3445.  
  3446. tcase << TestAction.new(:Click_Settings) do
  3447. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3448. .with('uitreeindex', 10)
  3449. .with('classname', 'ImageButton')
  3450. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3451. .with('content-desc', 'Open settings')
  3452.  
  3453. $ruiObj.click
  3454.  
  3455. waitsecond(2)
  3456. end
  3457.  
  3458. tcase << TestAction.new(:Click_Video_Res) do
  3459. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3460. .with('uitreeindex', 19)
  3461. .with('classname', 'TextView')
  3462. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3463. .with('content-desc', 'Video resolution')
  3464. .with('text', 'Video resolution')
  3465.  
  3466. $ruiObj.click
  3467.  
  3468. waitsecond(2)
  3469. end
  3470.  
  3471. tcase << TestAction.new(:Click_2160x1080) do
  3472. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 450107480).with('textdescid', 1439023304).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3473. .with('uitreeindex', 17)
  3474. .with('classname', 'CheckedTextView')
  3475. .with('resource-id', 'android:id/text1')
  3476. .with('content-desc', 'FHD 18:9 2160x1080')
  3477. .with('text', 'FHD 189 2160x1080')
  3478.  
  3479. $ruiObj.click
  3480.  
  3481. waitsecond(2)
  3482. end
  3483.  
  3484. tcase << TestAction.new(:Click_Record) do
  3485. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3486. .with('uitreeindex', 20)
  3487. .with('classname', 'ImageButton')
  3488. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3489.  
  3490. $ruiObj.click
  3491.  
  3492. waitsecond(2)
  3493. end
  3494.  
  3495. tcase << TestAction.new(:Stop_Recording) do
  3496. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3497. .with('uitreeindex', 6)
  3498. .with('classname', 'ImageButton')
  3499. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3500.  
  3501. $ruiObj.click
  3502.  
  3503. waitsecond(2)
  3504. end
  3505.  
  3506. tcase << TestAction.new(:Click_Recent) do
  3507. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3508. .with('uitreeindex', 14)
  3509. .with('classname', 'ImageView')
  3510. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3511. .with('content-desc', 'Gallery')
  3512.  
  3513. $ruiObj.click
  3514.  
  3515. waitsecond(2)
  3516. end
  3517.  
  3518. tcase << TestAction.new(:Check_Video_Delete) do
  3519. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  3520. .with('uitreeindex', 3)
  3521. .with('classname', 'Button')
  3522. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  3523. .with('content-desc', 'Delete')
  3524. .with('text', 'Delete')
  3525.  
  3526. $ruiObj.isExist
  3527.  
  3528. waitsecond(2)
  3529. end
  3530.  
  3531. tcase << TestAction.new(:Click_Delete) do
  3532. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3533. .with('uitreeindex', 4)
  3534. .with('classname', 'Button')
  3535. .with('content-desc', 'Delete')
  3536. .with('text', 'Delete').click
  3537.  
  3538. $ruiObj.click
  3539.  
  3540. waitsecond(2)
  3541. end
  3542.  
  3543. tcase << TestAction.new(:scriptAction_25) do
  3544. $myTestResult = checkLastExistResult
  3545.  
  3546. logStopTest("Pop_Video_Res_1")
  3547.  
  3548.  
  3549. waitsecond(2)
  3550. end
  3551.  
  3552. tcase.run(loopTime)
  3553.  
  3554. end
  3555.  
  3556. def self.Pop_Video_Res_2(loopTime)
  3557.  
  3558. tcase = TestCase.new("Pop_Video_Res_2")
  3559.  
  3560. tcase << TestAction.new(:scriptAction_28) do
  3561. logStartTest("Pop_Video_Res_2")
  3562.  
  3563. waitsecond(2)
  3564. end
  3565.  
  3566. tcase << TestAction.new(:Click_Mode) do
  3567. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3568. .with('uitreeindex', 11)
  3569. .with('classname', 'ImageButton')
  3570. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3571. .with('content-desc', 'Mode')
  3572.  
  3573. $ruiObj.click
  3574.  
  3575. waitsecond(2)
  3576. end
  3577.  
  3578. tcase << TestAction.new(:Click_Popout) do
  3579. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3580. .with('classname', 'RelativeLayout')
  3581. .with('content-desc', 'Popout')
  3582.  
  3583. $ruiObj.click
  3584.  
  3585. waitsecond(2)
  3586. end
  3587.  
  3588. tcase << TestAction.new(:Click_Settings) do
  3589. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3590. .with('uitreeindex', 10)
  3591. .with('classname', 'ImageButton')
  3592. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3593. .with('content-desc', 'Open settings')
  3594.  
  3595. $ruiObj.click
  3596.  
  3597. waitsecond(2)
  3598. end
  3599.  
  3600. tcase << TestAction.new(:Click_Video_Res) do
  3601. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3602. .with('uitreeindex', 19)
  3603. .with('classname', 'TextView')
  3604. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3605. .with('content-desc', 'Video resolution')
  3606. .with('text', 'Video resolution')
  3607.  
  3608. $ruiObj.click
  3609.  
  3610. waitsecond(2)
  3611. end
  3612.  
  3613. tcase << TestAction.new(:Click_1920x1080) do
  3614. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1591833598).with('textdescid', 1225177506).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3615. .with('uitreeindex', 19)
  3616. .with('classname', 'CheckedTextView')
  3617. .with('resource-id', 'android:id/text1')
  3618. .with('content-desc', 'FHD 16:9 1920x1080')
  3619. .with('text', 'FHD 169 1920x1080')
  3620.  
  3621. $ruiObj.click
  3622.  
  3623. waitsecond(2)
  3624. end
  3625.  
  3626. tcase << TestAction.new(:Click_Record) do
  3627. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3628. .with('uitreeindex', 20)
  3629. .with('classname', 'ImageButton')
  3630. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3631.  
  3632. $ruiObj.click
  3633.  
  3634. waitsecond(2)
  3635. end
  3636.  
  3637. tcase << TestAction.new(:Stop_Recording) do
  3638. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3639. .with('uitreeindex', 6)
  3640. .with('classname', 'ImageButton')
  3641. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3642.  
  3643. $ruiObj.click
  3644.  
  3645. waitsecond(2)
  3646. end
  3647.  
  3648. tcase << TestAction.new(:Click_Recent) do
  3649. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3650. .with('uitreeindex', 14)
  3651. .with('classname', 'ImageView')
  3652. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3653. .with('content-desc', 'Gallery')
  3654.  
  3655. $ruiObj.click
  3656.  
  3657. waitsecond(2)
  3658. end
  3659.  
  3660. tcase << TestAction.new(:Check_Video_Delete) do
  3661. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  3662. .with('uitreeindex', 3)
  3663. .with('classname', 'Button')
  3664. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  3665. .with('content-desc', 'Delete')
  3666. .with('text', 'Delete')
  3667.  
  3668. $ruiObj.isExist
  3669.  
  3670. waitsecond(2)
  3671. end
  3672.  
  3673. tcase << TestAction.new(:Click_Delete) do
  3674. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3675. .with('uitreeindex', 4)
  3676. .with('classname', 'Button')
  3677. .with('content-desc', 'Delete')
  3678. .with('text', 'Delete').click
  3679.  
  3680. $ruiObj.click
  3681.  
  3682. waitsecond(2)
  3683. end
  3684.  
  3685. tcase << TestAction.new(:scriptAction_25) do
  3686. $myTestResult = checkLastExistResult
  3687.  
  3688. logStopTest("Pop_Video_Res_2")
  3689.  
  3690.  
  3691. waitsecond(2)
  3692. end
  3693.  
  3694. tcase.run(loopTime)
  3695.  
  3696. end
  3697.  
  3698. def self.Pop_Video_Res_3(loopTime)
  3699.  
  3700. tcase = TestCase.new("Pop_Video_Res_3")
  3701.  
  3702. tcase << TestAction.new(:scriptAction_28) do
  3703. logStartTest("Pop_Video_Res_3")
  3704.  
  3705. waitsecond(2)
  3706. end
  3707.  
  3708. tcase << TestAction.new(:Click_Mode) do
  3709. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3710. .with('uitreeindex', 11)
  3711. .with('classname', 'ImageButton')
  3712. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3713. .with('content-desc', 'Mode')
  3714.  
  3715. $ruiObj.click
  3716.  
  3717. waitsecond(2)
  3718. end
  3719.  
  3720. tcase << TestAction.new(:Click_Popout) do
  3721. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3722. .with('classname', 'RelativeLayout')
  3723. .with('content-desc', 'Popout')
  3724.  
  3725. $ruiObj.click
  3726.  
  3727. waitsecond(2)
  3728. end
  3729.  
  3730. tcase << TestAction.new(:Click_Settings) do
  3731. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3732. .with('uitreeindex', 10)
  3733. .with('classname', 'ImageButton')
  3734. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3735. .with('content-desc', 'Open settings')
  3736.  
  3737. $ruiObj.click
  3738.  
  3739. waitsecond(2)
  3740. end
  3741.  
  3742. tcase << TestAction.new(:Click_Video_Res) do
  3743. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3744. .with('uitreeindex', 19)
  3745. .with('classname', 'TextView')
  3746. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3747. .with('content-desc', 'Video resolution')
  3748. .with('text', 'Video resolution')
  3749.  
  3750. $ruiObj.click
  3751.  
  3752. waitsecond(2)
  3753. end
  3754.  
  3755. tcase << TestAction.new(:Click_1440x720) do
  3756. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1279034828).with('textdescid', 710939756).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3757. .with('uitreeindex', 20)
  3758. .with('classname', 'CheckedTextView')
  3759. .with('resource-id', 'android:id/text1')
  3760. .with('content-desc', 'HD 18:9 1440x720')
  3761. .with('text', 'HD 189 1440x720')
  3762.  
  3763. $ruiObj.click
  3764.  
  3765. waitsecond(2)
  3766. end
  3767.  
  3768. tcase << TestAction.new(:Click_Record) do
  3769. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3770. .with('uitreeindex', 20)
  3771. .with('classname', 'ImageButton')
  3772. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3773.  
  3774. $ruiObj.click
  3775.  
  3776. waitsecond(2)
  3777. end
  3778.  
  3779. tcase << TestAction.new(:Stop_Recording) do
  3780. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3781. .with('uitreeindex', 6)
  3782. .with('classname', 'ImageButton')
  3783. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3784.  
  3785. $ruiObj.click
  3786.  
  3787. waitsecond(2)
  3788. end
  3789.  
  3790. tcase << TestAction.new(:Click_Recent) do
  3791. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3792. .with('uitreeindex', 14)
  3793. .with('classname', 'ImageView')
  3794. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3795. .with('content-desc', 'Gallery')
  3796.  
  3797. $ruiObj.click
  3798.  
  3799. waitsecond(2)
  3800. end
  3801.  
  3802. tcase << TestAction.new(:Check_Video_Delete) do
  3803. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  3804. .with('uitreeindex', 3)
  3805. .with('classname', 'Button')
  3806. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  3807. .with('content-desc', 'Delete')
  3808. .with('text', 'Delete')
  3809.  
  3810. $ruiObj.isExist
  3811.  
  3812. waitsecond(2)
  3813. end
  3814.  
  3815. tcase << TestAction.new(:Click_Delete) do
  3816. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3817. .with('uitreeindex', 4)
  3818. .with('classname', 'Button')
  3819. .with('content-desc', 'Delete')
  3820. .with('text', 'Delete').click
  3821.  
  3822. $ruiObj.click
  3823.  
  3824. waitsecond(2)
  3825. end
  3826.  
  3827. tcase << TestAction.new(:scriptAction_25) do
  3828. $myTestResult = checkLastExistResult
  3829.  
  3830. logStopTest("Pop_Video_Res_3")
  3831.  
  3832.  
  3833. waitsecond(2)
  3834. end
  3835.  
  3836. tcase.run(loopTime)
  3837.  
  3838. end
  3839.  
  3840. def self.Pop_Video_Res_4(loopTime)
  3841.  
  3842. tcase = TestCase.new("Pop_Video_Res_4")
  3843.  
  3844. tcase << TestAction.new(:scriptAction_28) do
  3845. logStartTest("Pop_Video_Res_4")
  3846.  
  3847. waitsecond(2)
  3848. end
  3849.  
  3850. tcase << TestAction.new(:Click_Mode) do
  3851. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3852. .with('uitreeindex', 11)
  3853. .with('classname', 'ImageButton')
  3854. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3855. .with('content-desc', 'Mode')
  3856.  
  3857. $ruiObj.click
  3858.  
  3859. waitsecond(2)
  3860. end
  3861.  
  3862. tcase << TestAction.new(:Click_Popout) do
  3863. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  3864. .with('classname', 'RelativeLayout')
  3865. .with('content-desc', 'Popout')
  3866.  
  3867. $ruiObj.click
  3868.  
  3869. waitsecond(2)
  3870. end
  3871.  
  3872. tcase << TestAction.new(:Click_Settings) do
  3873. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3874. .with('uitreeindex', 10)
  3875. .with('classname', 'ImageButton')
  3876. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3877. .with('content-desc', 'Open settings')
  3878.  
  3879. $ruiObj.click
  3880.  
  3881. waitsecond(2)
  3882. end
  3883.  
  3884. tcase << TestAction.new(:Click_Video_Res) do
  3885. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 48019021).with('textdescid', 2046901823).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3886. .with('uitreeindex', 19)
  3887. .with('classname', 'TextView')
  3888. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3889. .with('content-desc', 'Video resolution')
  3890. .with('text', 'Video resolution')
  3891.  
  3892. $ruiObj.click
  3893.  
  3894. waitsecond(2)
  3895. end
  3896.  
  3897. tcase << TestAction.new(:Click_1280x720) do
  3898. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 223169256).with('textdescid', -50930888).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3899. .with('uitreeindex', 21)
  3900. .with('classname', 'CheckedTextView')
  3901. .with('resource-id', 'android:id/text1')
  3902. .with('content-desc', 'HD 16:9 1280x720')
  3903. .with('text', 'HD 169 1280x720')
  3904.  
  3905. $ruiObj.click
  3906.  
  3907. waitsecond(2)
  3908. end
  3909.  
  3910. tcase << TestAction.new(:Click_Record) do
  3911. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3912. .with('uitreeindex', 20)
  3913. .with('classname', 'ImageButton')
  3914. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3915.  
  3916. $ruiObj.click
  3917.  
  3918. waitsecond(2)
  3919. end
  3920.  
  3921. tcase << TestAction.new(:Stop_Recording) do
  3922. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  3923. .with('uitreeindex', 6)
  3924. .with('classname', 'ImageButton')
  3925. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  3926.  
  3927. $ruiObj.click
  3928.  
  3929. waitsecond(2)
  3930. end
  3931.  
  3932. tcase << TestAction.new(:Click_Recent) do
  3933. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3934. .with('uitreeindex', 14)
  3935. .with('classname', 'ImageView')
  3936. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3937. .with('content-desc', 'Gallery')
  3938.  
  3939. $ruiObj.click
  3940.  
  3941. waitsecond(2)
  3942. end
  3943.  
  3944. tcase << TestAction.new(:Check_Video_Delete) do
  3945. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  3946. .with('uitreeindex', 3)
  3947. .with('classname', 'Button')
  3948. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  3949. .with('content-desc', 'Delete')
  3950. .with('text', 'Delete')
  3951.  
  3952. $ruiObj.isExist
  3953.  
  3954. waitsecond(2)
  3955. end
  3956.  
  3957. tcase << TestAction.new(:Click_Delete) do
  3958. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3959. .with('uitreeindex', 4)
  3960. .with('classname', 'Button')
  3961. .with('content-desc', 'Delete')
  3962. .with('text', 'Delete').click
  3963.  
  3964. $ruiObj.click
  3965.  
  3966. waitsecond(2)
  3967. end
  3968.  
  3969. tcase << TestAction.new(:scriptAction_25) do
  3970. $myTestResult = checkLastExistResult
  3971.  
  3972. logStopTest("Pop_Video_Res_4")
  3973.  
  3974.  
  3975. waitsecond(2)
  3976. end
  3977.  
  3978. tcase.run(loopTime)
  3979.  
  3980. end
  3981.  
  3982. def self.Pop_Video_Tag_Location(loopTime)
  3983.  
  3984. tcase = TestCase.new("Pop_Video_Tag_Location")
  3985.  
  3986. tcase << TestAction.new(:Start_Log) do
  3987. logStartTest("Pop_Video_Tag_Location")
  3988.  
  3989. waitsecond(2)
  3990. end
  3991.  
  3992. tcase << TestAction.new(:Click_Mode) do
  3993. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  3994. .with('uitreeindex', 4)
  3995. .with('classname', 'ImageButton')
  3996. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  3997. .with('content-desc', 'Mode')
  3998.  
  3999. $ruiObj.click
  4000.  
  4001. waitsecond(2)
  4002. end
  4003.  
  4004. tcase << TestAction.new(:Click_Popout) do
  4005. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4006. .with('classname', 'RelativeLayout')
  4007. .with('content-desc', 'Popout')
  4008.  
  4009. $ruiObj.click
  4010.  
  4011. waitsecond(2)
  4012. end
  4013.  
  4014. tcase << TestAction.new(:Click_Setting) do
  4015. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4016. .with('uitreeindex', 3)
  4017. .with('classname', 'ImageButton')
  4018. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4019. .with('content-desc', 'Open settings')
  4020.  
  4021. $ruiObj.click
  4022.  
  4023. waitsecond(2)
  4024. end
  4025.  
  4026. tcase << TestAction.new(:swipeDown_2) do
  4027. swipe_vertical 500
  4028.  
  4029. waitsecond(2)
  4030. end
  4031.  
  4032. tcase << TestAction.new(:Click_Tag_Location) do
  4033. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4034. .with('uitreeindex', 24)
  4035. .with('classname', 'TextView')
  4036. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4037. .with('content-desc', 'Tag locations Off switch')
  4038. .with('text', 'Tag locations')
  4039.  
  4040. $ruiObj.click
  4041.  
  4042. waitsecond(2)
  4043. end
  4044.  
  4045. tcase << TestAction.new(:Click_Record) do
  4046. $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
  4047. .with('uitreeindex', 11)
  4048. .with('classname', 'ImageButton')
  4049. .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
  4050. .with('content-desc', 'Start recording')
  4051.  
  4052. $ruiObj.click
  4053.  
  4054. waitsecond(2)
  4055. end
  4056.  
  4057. tcase << TestAction.new(:Stop_Recording) do
  4058. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  4059. .with('uitreeindex', 4)
  4060. .with('classname', 'ImageButton')
  4061. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  4062.  
  4063. $ruiObj.click
  4064.  
  4065. waitsecond(2)
  4066. end
  4067.  
  4068. tcase << TestAction.new(:Click_Recent) do
  4069. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4070. .with('uitreeindex', 20)
  4071. .with('classname', 'ImageView')
  4072. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4073. .with('content-desc', 'Gallery')
  4074.  
  4075. $ruiObj.click
  4076.  
  4077. waitsecond(2)
  4078. end
  4079.  
  4080. tcase << TestAction.new(:Check_Delete) do
  4081. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4082. .with('uitreeindex', 4)
  4083. .with('classname', 'Button')
  4084. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  4085. .with('content-desc', 'Delete')
  4086. .with('text', 'Delete')
  4087.  
  4088. $ruiObj.isExist
  4089.  
  4090. waitsecond(2)
  4091. end
  4092.  
  4093. tcase << TestAction.new(:Click_Delete) do
  4094. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4095. .with('uitreeindex', 4)
  4096. .with('classname', 'Button')
  4097. .with('content-desc', 'Delete')
  4098. .with('text', 'Delete').click
  4099.  
  4100. $ruiObj.click
  4101.  
  4102. waitsecond(2)
  4103. end
  4104.  
  4105. tcase << TestAction.new(:End_Log) do
  4106. $myTestResult = checkLastExistResult
  4107.  
  4108. logStopTest("Pop_Video_Tag_Location")
  4109.  
  4110.  
  4111. waitsecond(2)
  4112. end
  4113.  
  4114. tcase.run(loopTime)
  4115.  
  4116. end
  4117.  
  4118. def self.Pop_Video_Timer_10_Sec(loopTime)
  4119.  
  4120. tcase = TestCase.new("Pop_Video_Timer_10_Sec")
  4121.  
  4122. tcase << TestAction.new(:Start_Log) do
  4123. logStartTest("Pop_Video_Timer_10_Sec")
  4124.  
  4125. waitsecond(2)
  4126. end
  4127.  
  4128. tcase << TestAction.new(:Click_Mode) do
  4129. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4130. .with('uitreeindex', 4)
  4131. .with('classname', 'ImageButton')
  4132. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4133. .with('content-desc', 'Mode')
  4134.  
  4135. $ruiObj.click
  4136.  
  4137. waitsecond(2)
  4138. end
  4139.  
  4140. tcase << TestAction.new(:Click_Popout) do
  4141. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4142. .with('classname', 'RelativeLayout')
  4143. .with('content-desc', 'Popout')
  4144.  
  4145. $ruiObj.click
  4146.  
  4147. waitsecond(2)
  4148. end
  4149.  
  4150. tcase << TestAction.new(:Click_Setting) do
  4151. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4152. .with('uitreeindex', 3)
  4153. .with('classname', 'ImageButton')
  4154. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4155. .with('content-desc', 'Open settings')
  4156.  
  4157. $ruiObj.click
  4158.  
  4159. waitsecond(2)
  4160. end
  4161.  
  4162. tcase << TestAction.new(:Click_Timer) do
  4163. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4164. .with('uitreeindex', 30)
  4165. .with('classname', 'TextView')
  4166. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4167. .with('content-desc', 'Timer')
  4168. .with('text', 'Timer')
  4169.  
  4170. $ruiObj.click
  4171.  
  4172. waitsecond(2)
  4173. end
  4174.  
  4175. tcase << TestAction.new(:Click_10_Sec) do
  4176. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  4177. .with('uitreeindex', 18)
  4178. .with('classname', 'CheckedTextView')
  4179. .with('resource-id', 'android:id/text1')
  4180. .with('content-desc', '10 sec')
  4181. .with('text', '10 sec')
  4182.  
  4183. $ruiObj.click
  4184.  
  4185. waitsecond(2)
  4186. end
  4187.  
  4188. tcase << TestAction.new(:Click_Record) do
  4189. $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
  4190. .with('uitreeindex', 11)
  4191. .with('classname', 'ImageButton')
  4192. .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
  4193. .with('content-desc', 'Start recording')
  4194.  
  4195. $ruiObj.click
  4196.  
  4197. waitsecond(2)
  4198. end
  4199.  
  4200. tcase << TestAction.new(:Wait) do
  4201. waitsecond(10)
  4202.  
  4203. waitsecond(2)
  4204. end
  4205.  
  4206. tcase << TestAction.new(:Pause_Record) do
  4207. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4208. .with('uitreeindex', 4)
  4209. .with('classname', 'ImageButton')
  4210. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4211.  
  4212. $ruiObj.click
  4213.  
  4214. waitsecond(2)
  4215. end
  4216.  
  4217. tcase << TestAction.new(:Stop_Recording) do
  4218. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  4219. .with('uitreeindex', 6)
  4220. .with('classname', 'ImageButton')
  4221. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  4222.  
  4223. $ruiObj.click
  4224.  
  4225. waitsecond(2)
  4226. end
  4227.  
  4228. tcase << TestAction.new(:Click_Recent) do
  4229. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4230. .with('uitreeindex', 20)
  4231. .with('classname', 'ImageView')
  4232. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4233. .with('content-desc', 'Gallery')
  4234.  
  4235. $ruiObj.click
  4236.  
  4237. waitsecond(2)
  4238. end
  4239.  
  4240. tcase << TestAction.new(:Check_Delete) do
  4241. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4242. .with('uitreeindex', 4)
  4243. .with('classname', 'Button')
  4244. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  4245. .with('content-desc', 'Delete')
  4246. .with('text', 'Delete')
  4247.  
  4248. $ruiObj.isExist
  4249.  
  4250. waitsecond(2)
  4251. end
  4252.  
  4253. tcase << TestAction.new(:Click_Delete) do
  4254. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4255. .with('uitreeindex', 4)
  4256. .with('classname', 'Button')
  4257. .with('content-desc', 'Delete')
  4258. .with('text', 'Delete').click
  4259.  
  4260. $ruiObj.click
  4261.  
  4262. waitsecond(2)
  4263. end
  4264.  
  4265. tcase << TestAction.new(:End_Log) do
  4266. $myTestResult = checkLastExistResult
  4267.  
  4268. logStopTest("Pop_Video_Timer_10_Sec")
  4269.  
  4270.  
  4271. waitsecond(2)
  4272. end
  4273.  
  4274. tcase.run(loopTime)
  4275.  
  4276. end
  4277.  
  4278. def self.Pop_Video_Timer_3_Sec(loopTime)
  4279.  
  4280. tcase = TestCase.new("Pop_Video_Timer_3_Sec")
  4281.  
  4282. tcase << TestAction.new(:Start_Log) do
  4283. logStartTest("Pop_Video_Timer_3_Sec")
  4284.  
  4285. waitsecond(2)
  4286. end
  4287.  
  4288. tcase << TestAction.new(:Click_Mode) do
  4289. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4290. .with('uitreeindex', 4)
  4291. .with('classname', 'ImageButton')
  4292. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4293. .with('content-desc', 'Mode')
  4294.  
  4295. $ruiObj.click
  4296.  
  4297. waitsecond(2)
  4298. end
  4299.  
  4300. tcase << TestAction.new(:Click_Popout) do
  4301. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4302. .with('classname', 'RelativeLayout')
  4303. .with('content-desc', 'Popout')
  4304.  
  4305. $ruiObj.click
  4306.  
  4307. waitsecond(2)
  4308. end
  4309.  
  4310. tcase << TestAction.new(:Click_Setting) do
  4311. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4312. .with('uitreeindex', 3)
  4313. .with('classname', 'ImageButton')
  4314. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4315. .with('content-desc', 'Open settings')
  4316.  
  4317. $ruiObj.click
  4318.  
  4319. waitsecond(2)
  4320. end
  4321.  
  4322. tcase << TestAction.new(:Click_Timer) do
  4323. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4324. .with('uitreeindex', 30)
  4325. .with('classname', 'TextView')
  4326. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4327. .with('content-desc', 'Timer')
  4328. .with('text', 'Timer')
  4329.  
  4330. $ruiObj.click
  4331.  
  4332. waitsecond(2)
  4333. end
  4334.  
  4335. tcase << TestAction.new(:Click_3_Sec) do
  4336. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  4337. .with('uitreeindex', 17)
  4338. .with('classname', 'CheckedTextView')
  4339. .with('resource-id', 'android:id/text1')
  4340. .with('content-desc', '3 sec')
  4341. .with('text', '3 sec')
  4342.  
  4343. $ruiObj.click
  4344.  
  4345. waitsecond(2)
  4346. end
  4347.  
  4348. tcase << TestAction.new(:Click_Record) do
  4349. $ruiObj = RUIObject.new.with('objectid', -1272519145).with('selfid', -1818636331).with('textdescid', -1380226806).with('uniqueparentid', 0)
  4350. .with('uitreeindex', 11)
  4351. .with('classname', 'ImageButton')
  4352. .with('resource-id', 'com.lge.camera:id/shutter_top_comp')
  4353. .with('content-desc', 'Start recording')
  4354.  
  4355. $ruiObj.click
  4356.  
  4357. waitsecond(2)
  4358. end
  4359.  
  4360. tcase << TestAction.new(:Wait) do
  4361. waitsecond(2)
  4362.  
  4363. waitsecond(2)
  4364. end
  4365.  
  4366. tcase << TestAction.new(:Pause_Record) do
  4367. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4368. .with('uitreeindex', 4)
  4369. .with('classname', 'ImageButton')
  4370. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4371.  
  4372. $ruiObj.click
  4373.  
  4374. waitsecond(2)
  4375. end
  4376.  
  4377. tcase << TestAction.new(:Stop_Recording) do
  4378. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  4379. .with('uitreeindex', 6)
  4380. .with('classname', 'ImageButton')
  4381. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  4382.  
  4383. $ruiObj.click
  4384.  
  4385. waitsecond(2)
  4386. end
  4387.  
  4388. tcase << TestAction.new(:Click_Recent) do
  4389. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4390. .with('uitreeindex', 20)
  4391. .with('classname', 'ImageView')
  4392. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4393. .with('content-desc', 'Gallery')
  4394.  
  4395. $ruiObj.click
  4396.  
  4397. waitsecond(2)
  4398. end
  4399.  
  4400. tcase << TestAction.new(:Check_Delete) do
  4401. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4402. .with('uitreeindex', 4)
  4403. .with('classname', 'Button')
  4404. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  4405. .with('content-desc', 'Delete')
  4406. .with('text', 'Delete')
  4407.  
  4408. $ruiObj.isExist
  4409.  
  4410. waitsecond(2)
  4411. end
  4412.  
  4413. tcase << TestAction.new(:Click_Delete) do
  4414. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4415. .with('uitreeindex', 4)
  4416. .with('classname', 'Button')
  4417. .with('content-desc', 'Delete')
  4418. .with('text', 'Delete').click
  4419.  
  4420. $ruiObj.click
  4421.  
  4422. waitsecond(2)
  4423. end
  4424.  
  4425. tcase << TestAction.new(:End_Log) do
  4426. $myTestResult = checkLastExistResult
  4427.  
  4428. logStopTest("Pop_Video_Timer_3_Sec")
  4429.  
  4430.  
  4431. waitsecond(2)
  4432. end
  4433.  
  4434. tcase.run(loopTime)
  4435.  
  4436. end
  4437.  
  4438. def self.Pop_Vignette(loopTime)
  4439.  
  4440. tcase = TestCase.new("Pop_Vignette")
  4441.  
  4442. tcase << TestAction.new(:Start_Log) do
  4443. logStartTest("Pop_Vignette")
  4444.  
  4445.  
  4446. waitsecond(2)
  4447. end
  4448.  
  4449. tcase << TestAction.new(:Click_Mode) do
  4450. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4451. .with('uitreeindex', 9)
  4452. .with('classname', 'ImageButton')
  4453. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4454. .with('content-desc', 'Mode')
  4455.  
  4456. $ruiObj.click
  4457.  
  4458. waitsecond(2)
  4459. end
  4460.  
  4461. tcase << TestAction.new(:Click_Popout) do
  4462. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4463. .with('classname', 'RelativeLayout')
  4464. .with('content-desc', 'Popout')
  4465.  
  4466. $ruiObj.click
  4467.  
  4468. waitsecond(2)
  4469. end
  4470.  
  4471. tcase << TestAction.new(:Click_Shutter) do
  4472. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4473. .with('uitreeindex', 16)
  4474. .with('classname', 'ImageButton')
  4475. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4476.  
  4477. $ruiObj.click
  4478.  
  4479. waitsecond(2)
  4480. end
  4481.  
  4482. tcase << TestAction.new(:Click_Recent) do
  4483. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4484. .with('uitreeindex', 19)
  4485. .with('classname', 'ImageView')
  4486. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4487. .with('content-desc', 'Gallery')
  4488.  
  4489. $ruiObj.click
  4490.  
  4491. waitsecond(2)
  4492. end
  4493.  
  4494. tcase << TestAction.new(:Check_Delete) do
  4495. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4496. .with('uitreeindex', 4)
  4497. .with('classname', 'Button')
  4498. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4499. .with('content-desc', 'Delete')
  4500. .with('text', 'Delete')
  4501.  
  4502. $ruiObj.isExist
  4503.  
  4504. waitsecond(2)
  4505. end
  4506.  
  4507. tcase << TestAction.new(:Click_Delete) do
  4508. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4509. .with('uitreeindex', 4)
  4510. .with('classname', 'Button')
  4511. .with('content-desc', 'Delete')
  4512. .with('text', 'Delete').click
  4513.  
  4514. $ruiObj.click
  4515.  
  4516. waitsecond(2)
  4517. end
  4518.  
  4519. tcase << TestAction.new(:End_Log) do
  4520. $myTestResult = checkLastExistResult
  4521.  
  4522. logStopTest("Pop_Vignette")
  4523.  
  4524.  
  4525. waitsecond(2)
  4526. end
  4527.  
  4528. tcase.run(loopTime)
  4529.  
  4530. end
  4531.  
  4532. def self.Pop_Zoom_Picture(loopTime)
  4533.  
  4534. tcase = TestCase.new("Pop_Zoom_Picture")
  4535.  
  4536. tcase << TestAction.new(:Start_Log) do
  4537. logStartTest("Pop_Zoom_Picture")
  4538.  
  4539. waitsecond(2)
  4540. end
  4541.  
  4542. tcase << TestAction.new(:Click_Mode) do
  4543. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4544. .with('uitreeindex', 9)
  4545. .with('classname', 'ImageButton')
  4546. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4547. .with('content-desc', 'Mode')
  4548.  
  4549. $ruiObj.click
  4550.  
  4551. waitsecond(2)
  4552. end
  4553.  
  4554. tcase << TestAction.new(:Click_Popup) do
  4555. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4556. .with('classname', 'RelativeLayout')
  4557. .with('content-desc', 'Popout')
  4558.  
  4559. $ruiObj.click
  4560.  
  4561. waitsecond(2)
  4562. end
  4563.  
  4564. tcase << TestAction.new(:Zoom) do
  4565. zoomIn
  4566.  
  4567. waitsecond(2)
  4568. end
  4569.  
  4570. tcase << TestAction.new(:Zoom) do
  4571. zoomIn
  4572.  
  4573. waitsecond(2)
  4574. end
  4575.  
  4576. tcase << TestAction.new(:Zoom) do
  4577. zoomIn
  4578.  
  4579. waitsecond(2)
  4580. end
  4581.  
  4582. tcase << TestAction.new(:Zoom) do
  4583. zoomIn
  4584.  
  4585. waitsecond(2)
  4586. end
  4587.  
  4588. tcase << TestAction.new(:Click_Shutter) do
  4589. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4590. .with('uitreeindex', 16)
  4591. .with('classname', 'ImageButton')
  4592. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4593.  
  4594. $ruiObj.click
  4595.  
  4596. waitsecond(2)
  4597. end
  4598.  
  4599. tcase << TestAction.new(:Click_Recent) do
  4600. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4601. .with('uitreeindex', 20)
  4602. .with('classname', 'ImageView')
  4603. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4604. .with('content-desc', 'Gallery')
  4605.  
  4606. $ruiObj.click
  4607.  
  4608. waitsecond(2)
  4609. end
  4610.  
  4611. tcase << TestAction.new(:Check_Delete) do
  4612. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4613. .with('uitreeindex', 4)
  4614. .with('classname', 'Button')
  4615. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4616. .with('content-desc', 'Delete')
  4617. .with('text', 'Delete')
  4618.  
  4619. $ruiObj.isExist
  4620.  
  4621. waitsecond(2)
  4622. end
  4623.  
  4624. tcase << TestAction.new(:Click_Delete) do
  4625. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4626. .with('uitreeindex', 4)
  4627. .with('classname', 'Button')
  4628. .with('content-desc', 'Delete')
  4629. .with('text', 'Delete').click
  4630.  
  4631. $ruiObj.click
  4632.  
  4633. waitsecond(2)
  4634. end
  4635.  
  4636. tcase << TestAction.new(:scriptAction_21) do
  4637. $myTestResult = checkLastExistResult
  4638.  
  4639. logStopTest("Pop_Zoom_Picture")
  4640.  
  4641.  
  4642. waitsecond(2)
  4643. end
  4644.  
  4645. tcase.run(loopTime)
  4646.  
  4647. end
  4648.  
  4649. def self.Pop_Zoom_Video(loopTime)
  4650.  
  4651. tcase = TestCase.new("Pop_Zoom_Video")
  4652.  
  4653. tcase << TestAction.new(:Start_Log) do
  4654. logStartTest("Pop_Zoom_Picture")
  4655.  
  4656. waitsecond(2)
  4657. end
  4658.  
  4659. tcase << TestAction.new(:Click_Mode) do
  4660. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4661. .with('uitreeindex', 9)
  4662. .with('classname', 'ImageButton')
  4663. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4664. .with('content-desc', 'Mode')
  4665.  
  4666. $ruiObj.click
  4667.  
  4668. waitsecond(2)
  4669. end
  4670.  
  4671. tcase << TestAction.new(:Click_Popup) do
  4672. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 1737579661).with('textdescid', -2140638168).with('uniqueparentid', 0)
  4673. .with('classname', 'RelativeLayout')
  4674. .with('content-desc', 'Popout')
  4675.  
  4676. $ruiObj.click
  4677.  
  4678. waitsecond(2)
  4679. end
  4680.  
  4681. tcase << TestAction.new(:Zoom) do
  4682. zoomIn
  4683.  
  4684. waitsecond(2)
  4685. end
  4686.  
  4687. tcase << TestAction.new(:Zoom) do
  4688. zoomIn
  4689.  
  4690. waitsecond(2)
  4691. end
  4692.  
  4693. tcase << TestAction.new(:Zoom) do
  4694. zoomIn
  4695.  
  4696. waitsecond(2)
  4697. end
  4698.  
  4699. tcase << TestAction.new(:Zoom) do
  4700. zoomIn
  4701.  
  4702. waitsecond(2)
  4703. end
  4704.  
  4705. tcase << TestAction.new(:Click_Record) do
  4706. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  4707. .with('uitreeindex', 20)
  4708. .with('classname', 'ImageButton')
  4709. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  4710.  
  4711. $ruiObj.click
  4712.  
  4713. waitsecond(2)
  4714. end
  4715.  
  4716. tcase << TestAction.new(:Stop_Recording) do
  4717. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  4718. .with('uitreeindex', 5)
  4719. .with('classname', 'ImageButton')
  4720. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  4721.  
  4722. $ruiObj.click
  4723.  
  4724. waitsecond(2)
  4725. end
  4726.  
  4727. tcase << TestAction.new(:Click_Recent) do
  4728. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4729. .with('uitreeindex', 20)
  4730. .with('classname', 'ImageView')
  4731. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4732. .with('content-desc', 'Gallery')
  4733.  
  4734. $ruiObj.click
  4735.  
  4736. waitsecond(2)
  4737. end
  4738.  
  4739. tcase << TestAction.new(:Button_BottomMenuLayerItem4_6) do
  4740. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  4741. .with('uitreeindex', 3)
  4742. .with('classname', 'Button')
  4743. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  4744. .with('content-desc', 'Delete')
  4745. .with('text', 'Delete')
  4746.  
  4747. $ruiObj.isExist
  4748.  
  4749. waitsecond(2)
  4750. end
  4751.  
  4752. tcase << TestAction.new(:Click_Delete) do
  4753. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4754. .with('uitreeindex', 4)
  4755. .with('classname', 'Button')
  4756. .with('content-desc', 'Delete')
  4757. .with('text', 'Delete').click
  4758.  
  4759. $ruiObj.click
  4760.  
  4761. waitsecond(2)
  4762. end
  4763.  
  4764. tcase << TestAction.new(:scriptAction_21) do
  4765. $myTestResult = checkLastExistResult
  4766.  
  4767. logStopTest("Pop_Zoom_Picture")
  4768.  
  4769.  
  4770. waitsecond(2)
  4771. end
  4772.  
  4773. tcase.run(loopTime)
  4774.  
  4775. end
  4776.  
  4777. def self.Precondition(loopTime)
  4778.  
  4779. tcase = TestCase.new("Precondition")
  4780.  
  4781. tcase << TestAction.new(:TextView_Settings_1) do
  4782. $ruiObj = RUIObject.new.with('objectid', 70668614).with('selfid', 1708699118).with('textdescid', -416294470).with('uniqueparentid', 0)
  4783. .with('uitreeindex', 16)
  4784. .with('classname', 'TextView')
  4785. .with('content-desc', 'Settings')
  4786. .with('text', 'Settings')
  4787.  
  4788. $ruiObj.click
  4789.  
  4790. waitsecond(2)
  4791. end
  4792.  
  4793. tcase << TestAction.new(:TextView_Title_2) do
  4794. $ruiObj = RUIObject.new.with('objectid', 10212784).with('selfid', 641711431).with('textdescid', -2085492536).with('uniqueparentid', 0)
  4795. .with('uitreeindex', 8)
  4796. .with('classname', 'TextView')
  4797. .with('resource-id', 'android:id/title')
  4798. .with('text', 'General')
  4799.  
  4800. $ruiObj.click
  4801.  
  4802. waitsecond(2)
  4803. end
  4804.  
  4805. tcase << TestAction.new(:swipeDown_3) do
  4806. swipe_vertical 500
  4807.  
  4808. waitsecond(2)
  4809. end
  4810.  
  4811. tcase << TestAction.new(:TextView_Title_4) do
  4812. $ruiObj = RUIObject.new.with('objectid', -2099539841).with('selfid', -590378381).with('textdescid', -1400202003).with('uniqueparentid', 0).with('classresourceid', 490183159)
  4813. .with('uitreeindex', 21)
  4814. .with('classname', 'TextView')
  4815. .with('resource-id', 'android:id/title')
  4816. .with('text', 'Apps')
  4817.  
  4818. $ruiObj.click
  4819.  
  4820. waitsecond(2)
  4821. end
  4822.  
  4823. tcase << TestAction.new(:scriptAction_6) do
  4824. scrollAndSearchText("Settings")
  4825.  
  4826. waitsecond(2)
  4827. end
  4828.  
  4829. tcase << TestAction.new(:TextView_Title_7) do
  4830. $ruiObj = RUIObject.new.with('objectid', -1175534066).with('selfid', -374634778).with('textdescid', 1973661033).with('uniqueparentid', 0).with('classresourceid', 490183159)
  4831. .with('uitreeindex', 28)
  4832. .with('classname', 'TextView')
  4833. .with('resource-id', 'android:id/title')
  4834. .with('text', 'Camera')
  4835.  
  4836. $ruiObj.click
  4837.  
  4838. waitsecond(2)
  4839. end
  4840.  
  4841. tcase << TestAction.new(:TextView_Title_8) do
  4842. $ruiObj = RUIObject.new.with('objectid', -2103271856).with('selfid', -1162414374).with('textdescid', -249377547).with('uniqueparentid', 0).with('classresourceid', 490183159)
  4843. .with('uitreeindex', 10)
  4844. .with('classname', 'TextView')
  4845. .with('resource-id', 'android:id/title')
  4846. .with('text', 'Storage')
  4847.  
  4848. $ruiObj.click
  4849.  
  4850. waitsecond(2)
  4851. end
  4852.  
  4853. tcase << TestAction.new(:Button_Button3_9) do
  4854. $ruiObj = RUIObject.new.with('objectid', 176250137).with('selfid', 72310979).with('textdescid', -665389700).with('uniqueparentid', 0).with('classresourceid', 1223821552)
  4855. .with('uitreeindex', 11)
  4856. .with('classname', 'Button')
  4857. .with('resource-id', 'com.android.settings:id/button3')
  4858. .with('text', 'Clear data')
  4859.  
  4860. $ruiObj.click
  4861.  
  4862. waitsecond(2)
  4863. end
  4864.  
  4865. tcase << TestAction.new(:Button_Button1_11) do
  4866. $ruiObj = RUIObject.new.with('objectid', -1004548822).with('selfid', -1318451484).with('textdescid', -405740082).with('uniqueparentid', 0).with('classresourceid', 1834539358)
  4867. .with('uitreeindex', 3)
  4868. .with('classname', 'Button')
  4869. .with('resource-id', 'android:id/button1')
  4870. .with('text', 'OK')
  4871.  
  4872. $ruiObj.click
  4873.  
  4874. waitsecond(2)
  4875. end
  4876.  
  4877. tcase << TestAction.new(:pressHome_12) do
  4878. pressHome
  4879.  
  4880. waitsecond(2)
  4881. end
  4882.  
  4883. tcase << TestAction.new(:TextView_Camera_1) do
  4884. $ruiObj = RUIObject.new.with('objectid', -479243074).with('selfid', -1103134098).with('textdescid', 1803325250).with('uniqueparentid', 0)
  4885. .with('uitreeindex', 22)
  4886. .with('classname', 'TextView')
  4887. .with('content-desc', 'Camera')
  4888. .with('text', 'Camera')
  4889.  
  4890. $ruiObj.click
  4891.  
  4892. waitsecond(2)
  4893. end
  4894.  
  4895. tcase << TestAction.new(:pressBack_2) do
  4896. pressBack
  4897.  
  4898. waitsecond(2)
  4899. end
  4900.  
  4901. tcase << TestAction.new(:Cick_Later) do
  4902. $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
  4903. .with('uitreeindex', 20)
  4904. .with('classname', 'Button')
  4905. .with('resource-id', 'com.lge.camera:id/cancel_button')
  4906. .with('text', 'LATER')
  4907.  
  4908. $ruiObj.click
  4909.  
  4910. waitsecond(2)
  4911. end
  4912.  
  4913. tcase << TestAction.new(:Button_CancelButton_4) do
  4914. $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
  4915. .with('uitreeindex', 20)
  4916. .with('classname', 'Button')
  4917. .with('resource-id', 'com.lge.camera:id/cancel_button')
  4918. .with('text', 'LATER')
  4919.  
  4920. $ruiObj.click
  4921.  
  4922. waitsecond(2)
  4923. end
  4924.  
  4925. tcase.run(loopTime)
  4926.  
  4927. end
  4928.  
  4929. def self.mainLoop(loopTime)
  4930.  
  4931. WebSocketXServer.setAutoUpdate(false)
  4932.  
  4933. index = $mainResumeMainLoop
  4934. $mainResumeMainLoop = 0
  4935.  
  4936. writelog("mainLoop::#{index}::Resume") if index > 0
  4937.  
  4938. while index < loopTime
  4939.  
  4940. $curMainLoopNum = index
  4941.  
  4942. $actionParamInput = "undefined"
  4943. startTest 1
  4944.  
  4945. waitsecond(2)
  4946.  
  4947.  
  4948. sendStatus("Done::mainLoop::Loop::#{index}")
  4949.  
  4950.  
  4951. writelog("Finish::Loop::#{$curMainLoopNum}")
  4952.  
  4953.  
  4954. saveLogFileToGist if $saveLogToGist
  4955.  
  4956. index += 1
  4957.  
  4958. end
  4959.  
  4960. $engineStatus = "Idle"
  4961. resetStatus
  4962. sendStatus("Finish::mainLoop::END")
  4963.  
  4964. end
  4965.  
  4966. def self.Slomo_Flash(loopTime)
  4967.  
  4968. tcase = TestCase.new("Slomo_Flash")
  4969.  
  4970. tcase << TestAction.new(:scriptAction_28) do
  4971. logStartTest("Slomo_Flash")
  4972.  
  4973. waitsecond(2)
  4974. end
  4975.  
  4976. tcase << TestAction.new(:Click_Mode) do
  4977. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  4978. .with('uitreeindex', 11)
  4979. .with('classname', 'ImageButton')
  4980. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  4981. .with('content-desc', 'Mode')
  4982.  
  4983. $ruiObj.click
  4984.  
  4985. waitsecond(2)
  4986. end
  4987.  
  4988. tcase << TestAction.new(:Click_Slomo) do
  4989. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  4990. .with('classname', 'RelativeLayout')
  4991. .with('content-desc', 'Slo-mo')
  4992.  
  4993. $ruiObj.click
  4994.  
  4995. waitsecond(2)
  4996. end
  4997.  
  4998. tcase << TestAction.new(:Click_Flash) do
  4999. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  5000. .with('uitreeindex', 6)
  5001. .with('classname', 'ImageButton')
  5002. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  5003. .with('content-desc', 'Switch to flash on')
  5004.  
  5005. $ruiObj.click
  5006.  
  5007. waitsecond(2)
  5008. end
  5009.  
  5010. tcase << TestAction.new(:Click_Recording) do
  5011. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5012. .with('uitreeindex', 10)
  5013. .with('classname', 'ImageButton')
  5014. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5015. .with('content-desc', 'Start recording')
  5016.  
  5017. $ruiObj.click
  5018.  
  5019. waitsecond(2)
  5020. end
  5021.  
  5022. tcase << TestAction.new(:Stop_Recording) do
  5023. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5024. .with('uitreeindex', 9)
  5025. .with('classname', 'ImageButton')
  5026. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5027.  
  5028. $ruiObj.click
  5029.  
  5030. waitsecond(2)
  5031. end
  5032.  
  5033. tcase << TestAction.new(:Click_Recent) do
  5034. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5035. .with('uitreeindex', 14)
  5036. .with('classname', 'ImageView')
  5037. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5038. .with('content-desc', 'Gallery')
  5039.  
  5040. $ruiObj.click
  5041.  
  5042. waitsecond(2)
  5043. end
  5044.  
  5045. tcase << TestAction.new(:Check_Video_Delete) do
  5046. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5047. .with('uitreeindex', 3)
  5048. .with('classname', 'Button')
  5049. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5050. .with('content-desc', 'Delete')
  5051. .with('text', 'Delete')
  5052.  
  5053. $ruiObj.isExist
  5054.  
  5055. waitsecond(2)
  5056. end
  5057.  
  5058. tcase << TestAction.new(:Click_Delete) do
  5059. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5060. .with('uitreeindex', 4)
  5061. .with('classname', 'Button')
  5062. .with('content-desc', 'Delete')
  5063. .with('text', 'Delete').click
  5064.  
  5065. $ruiObj.click
  5066.  
  5067. waitsecond(2)
  5068. end
  5069.  
  5070. tcase << TestAction.new(:scriptAction_25) do
  5071. $myTestResult = checkLastExistResult
  5072.  
  5073. logStopTest("Slomo_Flash")
  5074.  
  5075.  
  5076. waitsecond(2)
  5077. end
  5078.  
  5079. tcase.run(loopTime)
  5080.  
  5081. end
  5082.  
  5083. def self.Slomo_Grid(loopTime)
  5084.  
  5085. tcase = TestCase.new("Slomo_Grid")
  5086.  
  5087. tcase << TestAction.new(:scriptAction_28) do
  5088. logStartTest("Slomo_Grid")
  5089.  
  5090. waitsecond(2)
  5091. end
  5092.  
  5093. tcase << TestAction.new(:Click_Mode) do
  5094. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5095. .with('uitreeindex', 11)
  5096. .with('classname', 'ImageButton')
  5097. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5098. .with('content-desc', 'Mode')
  5099.  
  5100. $ruiObj.click
  5101.  
  5102. waitsecond(2)
  5103. end
  5104.  
  5105. tcase << TestAction.new(:Click_Slomo) do
  5106. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  5107. .with('classname', 'RelativeLayout')
  5108. .with('content-desc', 'Slo-mo')
  5109.  
  5110. $ruiObj.click
  5111.  
  5112. waitsecond(2)
  5113. end
  5114.  
  5115. tcase << TestAction.new(:Click_Settings) do
  5116. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5117. .with('uitreeindex', 3)
  5118. .with('classname', 'ImageButton')
  5119. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5120. .with('content-desc', 'Open settings')
  5121.  
  5122. $ruiObj.click
  5123.  
  5124. waitsecond(2)
  5125. end
  5126.  
  5127. tcase << TestAction.new(:scriptAction_2) do
  5128. swipe(661.5,1989,697.5,513,25)
  5129.  
  5130. waitsecond(2)
  5131. end
  5132.  
  5133. tcase << TestAction.new(:Click_Grid) do
  5134. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5135. .with('uitreeindex', 24)
  5136. .with('classname', 'TextView')
  5137. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5138. .with('content-desc', 'Grid Off switch')
  5139. .with('text', 'Grid')
  5140.  
  5141. $ruiObj.click
  5142.  
  5143. waitsecond(2)
  5144. end
  5145.  
  5146. tcase << TestAction.new(:Click_Recording) do
  5147. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5148. .with('uitreeindex', 10)
  5149. .with('classname', 'ImageButton')
  5150. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5151. .with('content-desc', 'Start recording')
  5152.  
  5153. $ruiObj.click
  5154.  
  5155. waitsecond(2)
  5156. end
  5157.  
  5158. tcase << TestAction.new(:Stop_Recording) do
  5159. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5160. .with('uitreeindex', 9)
  5161. .with('classname', 'ImageButton')
  5162. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5163.  
  5164. $ruiObj.click
  5165.  
  5166. waitsecond(2)
  5167. end
  5168.  
  5169. tcase << TestAction.new(:Click_Recent) do
  5170. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5171. .with('uitreeindex', 14)
  5172. .with('classname', 'ImageView')
  5173. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5174. .with('content-desc', 'Gallery')
  5175.  
  5176. $ruiObj.click
  5177.  
  5178. waitsecond(2)
  5179. end
  5180.  
  5181. tcase << TestAction.new(:Check_Video_Delete) do
  5182. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5183. .with('uitreeindex', 3)
  5184. .with('classname', 'Button')
  5185. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5186. .with('content-desc', 'Delete')
  5187. .with('text', 'Delete')
  5188.  
  5189. $ruiObj.isExist
  5190.  
  5191. waitsecond(2)
  5192. end
  5193.  
  5194. tcase << TestAction.new(:Click_Delete) do
  5195. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5196. .with('uitreeindex', 4)
  5197. .with('classname', 'Button')
  5198. .with('content-desc', 'Delete')
  5199. .with('text', 'Delete').click
  5200.  
  5201. $ruiObj.click
  5202.  
  5203. waitsecond(2)
  5204. end
  5205.  
  5206. tcase << TestAction.new(:scriptAction_25) do
  5207. $myTestResult = checkLastExistResult
  5208.  
  5209. logStopTest("Slomo_Grid")
  5210.  
  5211.  
  5212. waitsecond(2)
  5213. end
  5214.  
  5215. tcase.run(loopTime)
  5216.  
  5217. end
  5218.  
  5219. def self.Slomo_Record_A_Video(loopTime)
  5220.  
  5221. tcase = TestCase.new("Slomo_Record_A_Video")
  5222.  
  5223. tcase << TestAction.new(:scriptAction_28) do
  5224. logStartTest("Slomo_Record_A__Video")
  5225.  
  5226. waitsecond(2)
  5227. end
  5228.  
  5229. tcase << TestAction.new(:Click_Mode) do
  5230. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5231. .with('uitreeindex', 11)
  5232. .with('classname', 'ImageButton')
  5233. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5234. .with('content-desc', 'Mode')
  5235.  
  5236. $ruiObj.click
  5237.  
  5238. waitsecond(2)
  5239. end
  5240.  
  5241. tcase << TestAction.new(:Click_Slomo) do
  5242. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  5243. .with('classname', 'RelativeLayout')
  5244. .with('content-desc', 'Slo-mo')
  5245.  
  5246. $ruiObj.click
  5247.  
  5248. waitsecond(2)
  5249. end
  5250.  
  5251. tcase << TestAction.new(:Click_Recording) do
  5252. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5253. .with('uitreeindex', 10)
  5254. .with('classname', 'ImageButton')
  5255. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5256. .with('content-desc', 'Start recording')
  5257.  
  5258. $ruiObj.click
  5259.  
  5260. waitsecond(2)
  5261. end
  5262.  
  5263. tcase << TestAction.new(:Click_Pause) do
  5264. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  5265. .with('uitreeindex', 7)
  5266. .with('classname', 'ImageButton')
  5267. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  5268.  
  5269. $ruiObj.click
  5270.  
  5271. waitsecond(2)
  5272. end
  5273.  
  5274. tcase << TestAction.new(:Resume_Recording) do
  5275. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  5276. .with('uitreeindex', 8)
  5277. .with('classname', 'ImageButton')
  5278. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  5279.  
  5280. $ruiObj.click
  5281.  
  5282. waitsecond(2)
  5283. end
  5284.  
  5285. tcase << TestAction.new(:Stop_Recording) do
  5286. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5287. .with('uitreeindex', 9)
  5288. .with('classname', 'ImageButton')
  5289. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5290.  
  5291. $ruiObj.click
  5292.  
  5293. waitsecond(2)
  5294. end
  5295.  
  5296. tcase << TestAction.new(:Click_Recent) do
  5297. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5298. .with('uitreeindex', 14)
  5299. .with('classname', 'ImageView')
  5300. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5301. .with('content-desc', 'Gallery')
  5302.  
  5303. $ruiObj.click
  5304.  
  5305. waitsecond(2)
  5306. end
  5307.  
  5308. tcase << TestAction.new(:Check_Video_Delete) do
  5309. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5310. .with('uitreeindex', 3)
  5311. .with('classname', 'Button')
  5312. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5313. .with('content-desc', 'Delete')
  5314. .with('text', 'Delete')
  5315.  
  5316. $ruiObj.isExist
  5317.  
  5318. waitsecond(2)
  5319. end
  5320.  
  5321. tcase << TestAction.new(:Click_Delete) do
  5322. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5323. .with('uitreeindex', 4)
  5324. .with('classname', 'Button')
  5325. .with('content-desc', 'Delete')
  5326. .with('text', 'Delete').click
  5327.  
  5328. $ruiObj.click
  5329.  
  5330. waitsecond(2)
  5331. end
  5332.  
  5333. tcase << TestAction.new(:scriptAction_25) do
  5334. $myTestResult = checkLastExistResult
  5335.  
  5336. logStopTest("Slomo_Record_A_Video")
  5337.  
  5338.  
  5339. waitsecond(2)
  5340. end
  5341.  
  5342. tcase.run(loopTime)
  5343.  
  5344. end
  5345.  
  5346. def self.Slomo_Tag_Location(loopTime)
  5347.  
  5348. tcase = TestCase.new("Slomo_Tag_Location")
  5349.  
  5350. tcase << TestAction.new(:scriptAction_28) do
  5351. logStartTest("Slomo_Tag_Location")
  5352.  
  5353. waitsecond(2)
  5354. end
  5355.  
  5356. tcase << TestAction.new(:Click_Mode) do
  5357. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5358. .with('uitreeindex', 11)
  5359. .with('classname', 'ImageButton')
  5360. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5361. .with('content-desc', 'Mode')
  5362.  
  5363. $ruiObj.click
  5364.  
  5365. waitsecond(2)
  5366. end
  5367.  
  5368. tcase << TestAction.new(:Click_Slomo) do
  5369. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  5370. .with('classname', 'RelativeLayout')
  5371. .with('content-desc', 'Slo-mo')
  5372.  
  5373. $ruiObj.click
  5374.  
  5375. waitsecond(2)
  5376. end
  5377.  
  5378. tcase << TestAction.new(:Click_Settings) do
  5379. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5380. .with('uitreeindex', 3)
  5381. .with('classname', 'ImageButton')
  5382. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5383. .with('content-desc', 'Open settings')
  5384.  
  5385. $ruiObj.click
  5386.  
  5387. waitsecond(2)
  5388. end
  5389.  
  5390. tcase << TestAction.new(:scriptAction_2) do
  5391. swipe(661.5,1989,697.5,513,25)
  5392.  
  5393. waitsecond(2)
  5394. end
  5395.  
  5396. tcase << TestAction.new(:Click_Tag_Location) do
  5397. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5398. .with('uitreeindex', 22)
  5399. .with('classname', 'TextView')
  5400. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5401. .with('content-desc', 'Tag locations Off switch')
  5402. .with('text', 'Tag locations')
  5403.  
  5404. $ruiObj.click
  5405.  
  5406. waitsecond(2)
  5407. end
  5408.  
  5409. tcase << TestAction.new(:Click_Recording) do
  5410. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5411. .with('uitreeindex', 10)
  5412. .with('classname', 'ImageButton')
  5413. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5414. .with('content-desc', 'Start recording')
  5415.  
  5416. $ruiObj.click
  5417.  
  5418. waitsecond(2)
  5419. end
  5420.  
  5421. tcase << TestAction.new(:Stop_Recording) do
  5422. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5423. .with('uitreeindex', 9)
  5424. .with('classname', 'ImageButton')
  5425. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5426.  
  5427. $ruiObj.click
  5428.  
  5429. waitsecond(2)
  5430. end
  5431.  
  5432. tcase << TestAction.new(:Click_Recent) do
  5433. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5434. .with('uitreeindex', 14)
  5435. .with('classname', 'ImageView')
  5436. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5437. .with('content-desc', 'Gallery')
  5438.  
  5439. $ruiObj.click
  5440.  
  5441. waitsecond(2)
  5442. end
  5443.  
  5444. tcase << TestAction.new(:Check_Video_Delete) do
  5445. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5446. .with('uitreeindex', 3)
  5447. .with('classname', 'Button')
  5448. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5449. .with('content-desc', 'Delete')
  5450. .with('text', 'Delete')
  5451.  
  5452. $ruiObj.isExist
  5453.  
  5454. waitsecond(2)
  5455. end
  5456.  
  5457. tcase << TestAction.new(:Click_Delete) do
  5458. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5459. .with('uitreeindex', 4)
  5460. .with('classname', 'Button')
  5461. .with('content-desc', 'Delete')
  5462. .with('text', 'Delete').click
  5463.  
  5464. $ruiObj.click
  5465.  
  5466. waitsecond(2)
  5467. end
  5468.  
  5469. tcase << TestAction.new(:scriptAction_25) do
  5470. $myTestResult = checkLastExistResult
  5471.  
  5472. logStopTest("Slomo_Tag_Location")
  5473.  
  5474.  
  5475. waitsecond(2)
  5476. end
  5477.  
  5478. tcase.run(loopTime)
  5479.  
  5480. end
  5481.  
  5482. def self.Slomo_Timer_10_Sec(loopTime)
  5483.  
  5484. tcase = TestCase.new("Slomo_Timer_10_Sec")
  5485.  
  5486. tcase << TestAction.new(:scriptAction_28) do
  5487. logStartTest("Slomo_Timer_10_Sec")
  5488.  
  5489. waitsecond(2)
  5490. end
  5491.  
  5492. tcase << TestAction.new(:Click_Mode) do
  5493. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5494. .with('uitreeindex', 11)
  5495. .with('classname', 'ImageButton')
  5496. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5497. .with('content-desc', 'Mode')
  5498.  
  5499. $ruiObj.click
  5500.  
  5501. waitsecond(2)
  5502. end
  5503.  
  5504. tcase << TestAction.new(:Click_Slomo) do
  5505. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  5506. .with('classname', 'RelativeLayout')
  5507. .with('content-desc', 'Slo-mo')
  5508.  
  5509. $ruiObj.click
  5510.  
  5511. waitsecond(2)
  5512. end
  5513.  
  5514. tcase << TestAction.new(:Click_Settings) do
  5515. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5516. .with('uitreeindex', 3)
  5517. .with('classname', 'ImageButton')
  5518. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5519. .with('content-desc', 'Open settings')
  5520.  
  5521. $ruiObj.click
  5522.  
  5523. waitsecond(2)
  5524. end
  5525.  
  5526. tcase << TestAction.new(:Click_Timer) do
  5527. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5528. .with('uitreeindex', 30)
  5529. .with('classname', 'TextView')
  5530. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5531. .with('content-desc', 'Timer')
  5532. .with('text', 'Timer')
  5533.  
  5534. $ruiObj.click
  5535.  
  5536. waitsecond(2)
  5537. end
  5538.  
  5539. tcase << TestAction.new(:Click_10_Sec) do
  5540. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  5541. .with('uitreeindex', 18)
  5542. .with('classname', 'CheckedTextView')
  5543. .with('resource-id', 'android:id/text1')
  5544. .with('content-desc', '10 sec')
  5545. .with('text', '10 sec')
  5546.  
  5547. $ruiObj.click
  5548.  
  5549. waitsecond(2)
  5550. end
  5551.  
  5552. tcase << TestAction.new(:Click_Recording) do
  5553. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5554. .with('uitreeindex', 10)
  5555. .with('classname', 'ImageButton')
  5556. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5557. .with('content-desc', 'Start recording')
  5558.  
  5559. $ruiObj.click
  5560.  
  5561. waitsecond(2)
  5562. end
  5563.  
  5564. tcase << TestAction.new(:wait10second_9) do
  5565. waitsecond(10)
  5566. end
  5567.  
  5568. tcase << TestAction.new(:Stop_Recording) do
  5569. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5570. .with('uitreeindex', 9)
  5571. .with('classname', 'ImageButton')
  5572. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5573.  
  5574. $ruiObj.click
  5575.  
  5576. waitsecond(2)
  5577. end
  5578.  
  5579. tcase << TestAction.new(:Click_Recent) do
  5580. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5581. .with('uitreeindex', 14)
  5582. .with('classname', 'ImageView')
  5583. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5584. .with('content-desc', 'Gallery')
  5585.  
  5586. $ruiObj.click
  5587.  
  5588. waitsecond(2)
  5589. end
  5590.  
  5591. tcase << TestAction.new(:Check_Video_Delete) do
  5592. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5593. .with('uitreeindex', 3)
  5594. .with('classname', 'Button')
  5595. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5596. .with('content-desc', 'Delete')
  5597. .with('text', 'Delete')
  5598.  
  5599. $ruiObj.isExist
  5600.  
  5601. waitsecond(2)
  5602. end
  5603.  
  5604. tcase << TestAction.new(:Click_Delete) do
  5605. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5606. .with('uitreeindex', 4)
  5607. .with('classname', 'Button')
  5608. .with('content-desc', 'Delete')
  5609. .with('text', 'Delete').click
  5610.  
  5611. $ruiObj.click
  5612.  
  5613. waitsecond(2)
  5614. end
  5615.  
  5616. tcase << TestAction.new(:scriptAction_25) do
  5617. $myTestResult = checkLastExistResult
  5618.  
  5619. logStopTest("Slomo_Timer_10_Sec")
  5620.  
  5621.  
  5622. waitsecond(2)
  5623. end
  5624.  
  5625. tcase.run(loopTime)
  5626.  
  5627. end
  5628.  
  5629. def self.Slomo_Timer_3_Sec(loopTime)
  5630.  
  5631. tcase = TestCase.new("Slomo_Timer_3_Sec")
  5632.  
  5633. tcase << TestAction.new(:scriptAction_28) do
  5634. logStartTest("Slomo_Timer_3_Sec")
  5635.  
  5636. waitsecond(2)
  5637. end
  5638.  
  5639. tcase << TestAction.new(:Click_Mode) do
  5640. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5641. .with('uitreeindex', 11)
  5642. .with('classname', 'ImageButton')
  5643. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5644. .with('content-desc', 'Mode')
  5645.  
  5646. $ruiObj.click
  5647.  
  5648. waitsecond(2)
  5649. end
  5650.  
  5651. tcase << TestAction.new(:Click_Slomo) do
  5652. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 16338385).with('textdescid', 335457124).with('uniqueparentid', 0)
  5653. .with('classname', 'RelativeLayout')
  5654. .with('content-desc', 'Slo-mo')
  5655.  
  5656. $ruiObj.click
  5657.  
  5658. waitsecond(2)
  5659. end
  5660.  
  5661. tcase << TestAction.new(:Click_Settings) do
  5662. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5663. .with('uitreeindex', 3)
  5664. .with('classname', 'ImageButton')
  5665. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5666. .with('content-desc', 'Open settings')
  5667.  
  5668. $ruiObj.click
  5669.  
  5670. waitsecond(2)
  5671. end
  5672.  
  5673. tcase << TestAction.new(:Click_Timer) do
  5674. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5675. .with('uitreeindex', 30)
  5676. .with('classname', 'TextView')
  5677. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5678. .with('content-desc', 'Timer')
  5679. .with('text', 'Timer')
  5680.  
  5681. $ruiObj.click
  5682.  
  5683. waitsecond(2)
  5684. end
  5685.  
  5686. tcase << TestAction.new(:Click_3_Sec) do
  5687. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  5688. .with('uitreeindex', 17)
  5689. .with('classname', 'CheckedTextView')
  5690. .with('resource-id', 'android:id/text1')
  5691. .with('content-desc', '3 sec')
  5692. .with('text', '3 sec')
  5693.  
  5694. $ruiObj.click
  5695.  
  5696. waitsecond(2)
  5697. end
  5698.  
  5699. tcase << TestAction.new(:Click_Recording) do
  5700. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5701. .with('uitreeindex', 10)
  5702. .with('classname', 'ImageButton')
  5703. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5704. .with('content-desc', 'Start recording')
  5705.  
  5706. $ruiObj.click
  5707.  
  5708. waitsecond(2)
  5709. end
  5710.  
  5711. tcase << TestAction.new(:wait4second_9) do
  5712. waitsecond(4)
  5713. end
  5714.  
  5715. tcase << TestAction.new(:Stop_Recording) do
  5716. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  5717. .with('uitreeindex', 9)
  5718. .with('classname', 'ImageButton')
  5719. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  5720.  
  5721. $ruiObj.click
  5722.  
  5723. waitsecond(2)
  5724. end
  5725.  
  5726. tcase << TestAction.new(:Click_Recent) do
  5727. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5728. .with('uitreeindex', 14)
  5729. .with('classname', 'ImageView')
  5730. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5731. .with('content-desc', 'Gallery')
  5732.  
  5733. $ruiObj.click
  5734.  
  5735. waitsecond(2)
  5736. end
  5737.  
  5738. tcase << TestAction.new(:Check_Video_Delete) do
  5739. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5740. .with('uitreeindex', 3)
  5741. .with('classname', 'Button')
  5742. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5743. .with('content-desc', 'Delete')
  5744. .with('text', 'Delete')
  5745.  
  5746. $ruiObj.isExist
  5747.  
  5748. waitsecond(2)
  5749. end
  5750.  
  5751. tcase << TestAction.new(:Click_Delete) do
  5752. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5753. .with('uitreeindex', 4)
  5754. .with('classname', 'Button')
  5755. .with('content-desc', 'Delete')
  5756. .with('text', 'Delete').click
  5757.  
  5758. $ruiObj.click
  5759.  
  5760. waitsecond(2)
  5761. end
  5762.  
  5763. tcase << TestAction.new(:scriptAction_25) do
  5764. $myTestResult = checkLastExistResult
  5765.  
  5766. logStopTest("Slomo_Timer_3_Sec")
  5767.  
  5768.  
  5769. waitsecond(2)
  5770. end
  5771.  
  5772. tcase.run(loopTime)
  5773.  
  5774. end
  5775.  
  5776. def self.Snap_Back_Flash(loopTime)
  5777.  
  5778. tcase = TestCase.new("Snap_Back_Flash")
  5779.  
  5780. tcase << TestAction.new(:scriptAction_28) do
  5781. logStartTest("Snap_Back_Flash")
  5782.  
  5783. waitsecond(2)
  5784. end
  5785.  
  5786. tcase << TestAction.new(:Click_Mode) do
  5787. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5788. .with('uitreeindex', 11)
  5789. .with('classname', 'ImageButton')
  5790. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5791. .with('content-desc', 'Mode')
  5792.  
  5793. $ruiObj.click
  5794.  
  5795. waitsecond(2)
  5796. end
  5797.  
  5798. tcase << TestAction.new(:Click_Snap) do
  5799. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  5800. .with('classname', 'RelativeLayout')
  5801. .with('content-desc', 'Snap')
  5802.  
  5803. $ruiObj.click
  5804.  
  5805. waitsecond(2)
  5806. end
  5807.  
  5808. tcase << TestAction.new(:Click_Flash) do
  5809. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  5810. .with('uitreeindex', 7)
  5811. .with('classname', 'ImageButton')
  5812. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  5813. .with('content-desc', 'Switch to flash on')
  5814.  
  5815. $ruiObj.click
  5816.  
  5817. waitsecond(2)
  5818. end
  5819.  
  5820. tcase << TestAction.new(:Click_Recording) do
  5821. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5822. .with('uitreeindex', 10)
  5823. .with('classname', 'ImageButton')
  5824. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5825. .with('content-desc', 'Start recording')
  5826.  
  5827. $ruiObj.click
  5828.  
  5829. waitsecond(2)
  5830. end
  5831.  
  5832. tcase << TestAction.new(:wait4second_4) do
  5833. waitsecond(4)
  5834. end
  5835.  
  5836. tcase << TestAction.new(:Click_Save) do
  5837. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  5838. .with('uitreeindex', 5)
  5839. .with('classname', 'ImageButton')
  5840. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  5841. .with('content-desc', 'Save')
  5842.  
  5843. $ruiObj.click
  5844.  
  5845. waitsecond(2)
  5846. end
  5847.  
  5848. tcase << TestAction.new(:Button_OkButton_22) do
  5849. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  5850. .with('uitreeindex', 20)
  5851. .with('classname', 'Button')
  5852. .with('resource-id', 'com.lge.camera:id/ok_button')
  5853. .with('text', 'OK')
  5854.  
  5855. $ruiObj.click
  5856.  
  5857. waitsecond(2)
  5858. end
  5859.  
  5860. tcase << TestAction.new(:Click_Recent) do
  5861. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5862. .with('uitreeindex', 14)
  5863. .with('classname', 'ImageView')
  5864. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5865. .with('content-desc', 'Gallery')
  5866.  
  5867. $ruiObj.click
  5868.  
  5869. waitsecond(2)
  5870. end
  5871.  
  5872. tcase << TestAction.new(:Check_Video_Delete) do
  5873. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  5874. .with('uitreeindex', 3)
  5875. .with('classname', 'Button')
  5876. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  5877. .with('content-desc', 'Delete')
  5878. .with('text', 'Delete')
  5879.  
  5880. $ruiObj.isExist
  5881.  
  5882. waitsecond(2)
  5883. end
  5884.  
  5885. tcase << TestAction.new(:Click_Delete) do
  5886. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5887. .with('uitreeindex', 4)
  5888. .with('classname', 'Button')
  5889. .with('content-desc', 'Delete')
  5890. .with('text', 'Delete').click
  5891.  
  5892. $ruiObj.click
  5893.  
  5894. waitsecond(2)
  5895. end
  5896.  
  5897. tcase << TestAction.new(:scriptAction_25) do
  5898. $myTestResult = checkLastExistResult
  5899.  
  5900. logStopTest("Snap_Back_Flash")
  5901.  
  5902.  
  5903. waitsecond(2)
  5904. end
  5905.  
  5906. tcase.run(loopTime)
  5907.  
  5908. end
  5909.  
  5910. def self.Snap_Back_Grid(loopTime)
  5911.  
  5912. tcase = TestCase.new("Snap_Back_Grid")
  5913.  
  5914. tcase << TestAction.new(:scriptAction_28) do
  5915. logStartTest("Snap_Back_Grid")
  5916.  
  5917. waitsecond(2)
  5918. end
  5919.  
  5920. tcase << TestAction.new(:Click_Mode) do
  5921. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  5922. .with('uitreeindex', 11)
  5923. .with('classname', 'ImageButton')
  5924. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  5925. .with('content-desc', 'Mode')
  5926.  
  5927. $ruiObj.click
  5928.  
  5929. waitsecond(2)
  5930. end
  5931.  
  5932. tcase << TestAction.new(:Click_Snap) do
  5933. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  5934. .with('classname', 'RelativeLayout')
  5935. .with('content-desc', 'Snap')
  5936.  
  5937. $ruiObj.click
  5938.  
  5939. waitsecond(2)
  5940. end
  5941.  
  5942. tcase << TestAction.new(:Click_Settings) do
  5943. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5944. .with('uitreeindex', 3)
  5945. .with('classname', 'ImageButton')
  5946. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5947. .with('content-desc', 'Open settings')
  5948.  
  5949. $ruiObj.click
  5950.  
  5951. waitsecond(2)
  5952. end
  5953.  
  5954. tcase << TestAction.new(:swipeDown_2) do
  5955. swipe(661.5,1989,697.5,513,25)
  5956.  
  5957. waitsecond(2)
  5958. end
  5959.  
  5960. tcase << TestAction.new(:Click_Grid) do
  5961. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5962. .with('uitreeindex', 24)
  5963. .with('classname', 'TextView')
  5964. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5965. .with('content-desc', 'Grid Off switch')
  5966. .with('text', 'Grid')
  5967.  
  5968. $ruiObj.click
  5969.  
  5970. waitsecond(2)
  5971. end
  5972.  
  5973. tcase << TestAction.new(:Click_Recording) do
  5974. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  5975. .with('uitreeindex', 10)
  5976. .with('classname', 'ImageButton')
  5977. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  5978. .with('content-desc', 'Start recording')
  5979.  
  5980. $ruiObj.click
  5981.  
  5982. waitsecond(2)
  5983. end
  5984.  
  5985. tcase << TestAction.new(:wait2second_8) do
  5986. waitsecond(2)
  5987. end
  5988.  
  5989. tcase << TestAction.new(:Click_Save) do
  5990. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  5991. .with('uitreeindex', 5)
  5992. .with('classname', 'ImageButton')
  5993. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  5994. .with('content-desc', 'Save')
  5995.  
  5996. $ruiObj.click
  5997.  
  5998. waitsecond(2)
  5999. end
  6000.  
  6001. tcase << TestAction.new(:Button_OkButton_22) do
  6002. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6003. .with('uitreeindex', 20)
  6004. .with('classname', 'Button')
  6005. .with('resource-id', 'com.lge.camera:id/ok_button')
  6006. .with('text', 'OK')
  6007.  
  6008. $ruiObj.click
  6009.  
  6010. waitsecond(2)
  6011. end
  6012.  
  6013. tcase << TestAction.new(:Click_Recent) do
  6014. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6015. .with('uitreeindex', 14)
  6016. .with('classname', 'ImageView')
  6017. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6018. .with('content-desc', 'Gallery')
  6019.  
  6020. $ruiObj.click
  6021.  
  6022. waitsecond(2)
  6023. end
  6024.  
  6025. tcase << TestAction.new(:Check_Video_Delete) do
  6026. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6027. .with('uitreeindex', 3)
  6028. .with('classname', 'Button')
  6029. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6030. .with('content-desc', 'Delete')
  6031. .with('text', 'Delete')
  6032.  
  6033. $ruiObj.isExist
  6034.  
  6035. waitsecond(2)
  6036. end
  6037.  
  6038. tcase << TestAction.new(:Click_Delete) do
  6039. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6040. .with('uitreeindex', 4)
  6041. .with('classname', 'Button')
  6042. .with('content-desc', 'Delete')
  6043. .with('text', 'Delete').click
  6044.  
  6045. $ruiObj.click
  6046.  
  6047. waitsecond(2)
  6048. end
  6049.  
  6050. tcase << TestAction.new(:scriptAction_25) do
  6051. $myTestResult = checkLastExistResult
  6052.  
  6053. logStopTest("Snap_Back_Grid")
  6054.  
  6055.  
  6056. waitsecond(2)
  6057. end
  6058.  
  6059. tcase.run(loopTime)
  6060.  
  6061. end
  6062.  
  6063. def self.Snap_Back_Timer_10_Sec(loopTime)
  6064.  
  6065. tcase = TestCase.new("Snap_Back_Timer_10_Sec")
  6066.  
  6067. tcase << TestAction.new(:scriptAction_28) do
  6068. logStartTest("Snap_Back_Timer_10_Sec")
  6069.  
  6070. waitsecond(2)
  6071. end
  6072.  
  6073. tcase << TestAction.new(:Click_Mode) do
  6074. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6075. .with('uitreeindex', 11)
  6076. .with('classname', 'ImageButton')
  6077. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6078. .with('content-desc', 'Mode')
  6079.  
  6080. $ruiObj.click
  6081.  
  6082. waitsecond(2)
  6083. end
  6084.  
  6085. tcase << TestAction.new(:Click_Snap) do
  6086. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6087. .with('classname', 'RelativeLayout')
  6088. .with('content-desc', 'Snap')
  6089.  
  6090. $ruiObj.click
  6091.  
  6092. waitsecond(2)
  6093. end
  6094.  
  6095. tcase << TestAction.new(:Click_Settings) do
  6096. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6097. .with('uitreeindex', 3)
  6098. .with('classname', 'ImageButton')
  6099. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6100. .with('content-desc', 'Open settings')
  6101.  
  6102. $ruiObj.click
  6103.  
  6104. waitsecond(2)
  6105. end
  6106.  
  6107. tcase << TestAction.new(:Click_Timer) do
  6108. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  6109. .with('uitreeindex', 28)
  6110. .with('classname', 'TextView')
  6111. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  6112. .with('content-desc', 'Timer')
  6113. .with('text', 'Timer')
  6114.  
  6115. $ruiObj.click
  6116.  
  6117. waitsecond(2)
  6118. end
  6119.  
  6120. tcase << TestAction.new(:Click_10_Sec) do
  6121. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  6122. .with('uitreeindex', 16)
  6123. .with('classname', 'CheckedTextView')
  6124. .with('resource-id', 'android:id/text1')
  6125. .with('content-desc', '10 sec')
  6126. .with('text', '10 sec')
  6127.  
  6128. $ruiObj.click
  6129.  
  6130. waitsecond(2)
  6131. end
  6132.  
  6133. tcase << TestAction.new(:Click_Recording) do
  6134. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6135. .with('uitreeindex', 10)
  6136. .with('classname', 'ImageButton')
  6137. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6138. .with('content-desc', 'Start recording')
  6139.  
  6140. $ruiObj.click
  6141.  
  6142. waitsecond(2)
  6143. end
  6144.  
  6145. tcase << TestAction.new(:wait4second_12) do
  6146. waitsecond(12)
  6147. end
  6148.  
  6149. tcase << TestAction.new(:Click_Save) do
  6150. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  6151. .with('uitreeindex', 5)
  6152. .with('classname', 'ImageButton')
  6153. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  6154. .with('content-desc', 'Save')
  6155.  
  6156. $ruiObj.click
  6157.  
  6158. waitsecond(2)
  6159. end
  6160.  
  6161. tcase << TestAction.new(:Button_OkButton_22) do
  6162. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6163. .with('uitreeindex', 20)
  6164. .with('classname', 'Button')
  6165. .with('resource-id', 'com.lge.camera:id/ok_button')
  6166. .with('text', 'OK')
  6167.  
  6168. $ruiObj.click
  6169.  
  6170. waitsecond(2)
  6171. end
  6172.  
  6173. tcase << TestAction.new(:Click_Recent) do
  6174. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6175. .with('uitreeindex', 14)
  6176. .with('classname', 'ImageView')
  6177. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6178. .with('content-desc', 'Gallery')
  6179.  
  6180. $ruiObj.click
  6181.  
  6182. waitsecond(2)
  6183. end
  6184.  
  6185. tcase << TestAction.new(:Check_Video_Delete) do
  6186. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6187. .with('uitreeindex', 3)
  6188. .with('classname', 'Button')
  6189. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6190. .with('content-desc', 'Delete')
  6191. .with('text', 'Delete')
  6192.  
  6193. $ruiObj.isExist
  6194.  
  6195. waitsecond(2)
  6196. end
  6197.  
  6198. tcase << TestAction.new(:Click_Delete) do
  6199. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6200. .with('uitreeindex', 4)
  6201. .with('classname', 'Button')
  6202. .with('content-desc', 'Delete')
  6203. .with('text', 'Delete').click
  6204.  
  6205. $ruiObj.click
  6206.  
  6207. waitsecond(2)
  6208. end
  6209.  
  6210. tcase << TestAction.new(:scriptAction_25) do
  6211. $myTestResult = checkLastExistResult
  6212.  
  6213. logStopTest("Snap_Back_Timer_10_Sec")
  6214.  
  6215.  
  6216. waitsecond(2)
  6217. end
  6218.  
  6219. tcase.run(loopTime)
  6220.  
  6221. end
  6222.  
  6223. def self.Snap_Back_Timer_3_Sec(loopTime)
  6224.  
  6225. tcase = TestCase.new("Snap_Back_Timer_3_Sec")
  6226.  
  6227. tcase << TestAction.new(:scriptAction_28) do
  6228. logStartTest("Snap_Back_Timer_3_Sec")
  6229.  
  6230. waitsecond(2)
  6231. end
  6232.  
  6233. tcase << TestAction.new(:Click_Mode) do
  6234. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6235. .with('uitreeindex', 11)
  6236. .with('classname', 'ImageButton')
  6237. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6238. .with('content-desc', 'Mode')
  6239.  
  6240. $ruiObj.click
  6241.  
  6242. waitsecond(2)
  6243. end
  6244.  
  6245. tcase << TestAction.new(:Click_Snap) do
  6246. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6247. .with('classname', 'RelativeLayout')
  6248. .with('content-desc', 'Snap')
  6249.  
  6250. $ruiObj.click
  6251.  
  6252. waitsecond(2)
  6253. end
  6254.  
  6255. tcase << TestAction.new(:Click_Settings) do
  6256. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6257. .with('uitreeindex', 3)
  6258. .with('classname', 'ImageButton')
  6259. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6260. .with('content-desc', 'Open settings')
  6261.  
  6262. $ruiObj.click
  6263.  
  6264. waitsecond(2)
  6265. end
  6266.  
  6267. tcase << TestAction.new(:Click_Timer) do
  6268. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  6269. .with('uitreeindex', 28)
  6270. .with('classname', 'TextView')
  6271. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  6272. .with('content-desc', 'Timer')
  6273. .with('text', 'Timer')
  6274.  
  6275. $ruiObj.click
  6276.  
  6277. waitsecond(2)
  6278. end
  6279.  
  6280. tcase << TestAction.new(:Click_3_Sec) do
  6281. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  6282. .with('uitreeindex', 15)
  6283. .with('classname', 'CheckedTextView')
  6284. .with('resource-id', 'android:id/text1')
  6285. .with('content-desc', '3 sec')
  6286. .with('text', '3 sec')
  6287.  
  6288. $ruiObj.click
  6289.  
  6290. waitsecond(2)
  6291. end
  6292.  
  6293. tcase << TestAction.new(:Click_Recording) do
  6294. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6295. .with('uitreeindex', 10)
  6296. .with('classname', 'ImageButton')
  6297. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6298. .with('content-desc', 'Start recording')
  6299.  
  6300. $ruiObj.click
  6301.  
  6302. waitsecond(2)
  6303. end
  6304.  
  6305. tcase << TestAction.new(:wait4second_7) do
  6306. waitsecond(7)
  6307. end
  6308.  
  6309. tcase << TestAction.new(:Click_Save) do
  6310. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  6311. .with('uitreeindex', 5)
  6312. .with('classname', 'ImageButton')
  6313. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  6314. .with('content-desc', 'Save')
  6315.  
  6316. $ruiObj.click
  6317.  
  6318. waitsecond(2)
  6319. end
  6320.  
  6321. tcase << TestAction.new(:Button_OkButton_22) do
  6322. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6323. .with('uitreeindex', 20)
  6324. .with('classname', 'Button')
  6325. .with('resource-id', 'com.lge.camera:id/ok_button')
  6326. .with('text', 'OK')
  6327.  
  6328. $ruiObj.click
  6329.  
  6330. waitsecond(2)
  6331. end
  6332.  
  6333. tcase << TestAction.new(:Click_Recent) do
  6334. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6335. .with('uitreeindex', 14)
  6336. .with('classname', 'ImageView')
  6337. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6338. .with('content-desc', 'Gallery')
  6339.  
  6340. $ruiObj.click
  6341.  
  6342. waitsecond(2)
  6343. end
  6344.  
  6345. tcase << TestAction.new(:Check_Video_Delete) do
  6346. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6347. .with('uitreeindex', 3)
  6348. .with('classname', 'Button')
  6349. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6350. .with('content-desc', 'Delete')
  6351. .with('text', 'Delete')
  6352.  
  6353. $ruiObj.isExist
  6354.  
  6355. waitsecond(2)
  6356. end
  6357.  
  6358. tcase << TestAction.new(:Click_Delete) do
  6359. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6360. .with('uitreeindex', 4)
  6361. .with('classname', 'Button')
  6362. .with('content-desc', 'Delete')
  6363. .with('text', 'Delete').click
  6364.  
  6365. $ruiObj.click
  6366.  
  6367. waitsecond(2)
  6368. end
  6369.  
  6370. tcase << TestAction.new(:scriptAction_25) do
  6371. $myTestResult = checkLastExistResult
  6372.  
  6373. logStopTest("Snap_Back_Timer_3_Sec")
  6374.  
  6375.  
  6376. waitsecond(2)
  6377. end
  6378.  
  6379. tcase.run(loopTime)
  6380.  
  6381. end
  6382.  
  6383. def self.Snap_Back_Tracking_Focus(loopTime)
  6384.  
  6385. tcase = TestCase.new("Snap_Back_Tracking_Focus")
  6386.  
  6387. tcase << TestAction.new(:scriptAction_28) do
  6388. logStartTest("Snap_Back_Tracking_Focus")
  6389.  
  6390. waitsecond(2)
  6391. end
  6392.  
  6393. tcase << TestAction.new(:Click_Mode) do
  6394. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6395. .with('uitreeindex', 11)
  6396. .with('classname', 'ImageButton')
  6397. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6398. .with('content-desc', 'Mode')
  6399.  
  6400. $ruiObj.click
  6401.  
  6402. waitsecond(2)
  6403. end
  6404.  
  6405. tcase << TestAction.new(:Click_Snap) do
  6406. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6407. .with('classname', 'RelativeLayout')
  6408. .with('content-desc', 'Snap')
  6409.  
  6410. $ruiObj.click
  6411.  
  6412. waitsecond(2)
  6413. end
  6414.  
  6415. tcase << TestAction.new(:Click_Settings) do
  6416. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6417. .with('uitreeindex', 3)
  6418. .with('classname', 'ImageButton')
  6419. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6420. .with('content-desc', 'Open settings')
  6421.  
  6422. $ruiObj.click
  6423.  
  6424. waitsecond(2)
  6425. end
  6426.  
  6427. tcase << TestAction.new(:Click_Tracking_Focus) do
  6428. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  6429. .with('uitreeindex', 32)
  6430. .with('classname', 'TextView')
  6431. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  6432. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) Off switch')
  6433. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  6434.  
  6435. $ruiObj.click
  6436.  
  6437. waitsecond(2)
  6438. end
  6439.  
  6440. tcase << TestAction.new(:Click_Recording) do
  6441. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6442. .with('uitreeindex', 10)
  6443. .with('classname', 'ImageButton')
  6444. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6445. .with('content-desc', 'Start recording')
  6446.  
  6447. $ruiObj.click
  6448.  
  6449. waitsecond(2)
  6450. end
  6451.  
  6452. tcase << TestAction.new(:wait2second_8) do
  6453. waitsecond(2)
  6454. end
  6455.  
  6456. tcase << TestAction.new(:Click_Save) do
  6457. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  6458. .with('uitreeindex', 5)
  6459. .with('classname', 'ImageButton')
  6460. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  6461. .with('content-desc', 'Save')
  6462.  
  6463. $ruiObj.click
  6464.  
  6465. waitsecond(2)
  6466. end
  6467.  
  6468. tcase << TestAction.new(:Button_OkButton_22) do
  6469. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6470. .with('uitreeindex', 20)
  6471. .with('classname', 'Button')
  6472. .with('resource-id', 'com.lge.camera:id/ok_button')
  6473. .with('text', 'OK')
  6474.  
  6475. $ruiObj.click
  6476.  
  6477. waitsecond(2)
  6478. end
  6479.  
  6480. tcase << TestAction.new(:Click_Recent) do
  6481. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6482. .with('uitreeindex', 14)
  6483. .with('classname', 'ImageView')
  6484. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6485. .with('content-desc', 'Gallery')
  6486.  
  6487. $ruiObj.click
  6488.  
  6489. waitsecond(2)
  6490. end
  6491.  
  6492. tcase << TestAction.new(:Check_Video_Delete) do
  6493. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6494. .with('uitreeindex', 3)
  6495. .with('classname', 'Button')
  6496. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6497. .with('content-desc', 'Delete')
  6498. .with('text', 'Delete')
  6499.  
  6500. $ruiObj.isExist
  6501.  
  6502. waitsecond(2)
  6503. end
  6504.  
  6505. tcase << TestAction.new(:Click_Delete) do
  6506. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6507. .with('uitreeindex', 4)
  6508. .with('classname', 'Button')
  6509. .with('content-desc', 'Delete')
  6510. .with('text', 'Delete').click
  6511.  
  6512. $ruiObj.click
  6513.  
  6514. waitsecond(2)
  6515. end
  6516.  
  6517. tcase << TestAction.new(:scriptAction_25) do
  6518. $myTestResult = checkLastExistResult
  6519.  
  6520. logStopTest("Snap_Back_Tracking_Focus")
  6521.  
  6522.  
  6523. waitsecond(2)
  6524. end
  6525.  
  6526. tcase.run(loopTime)
  6527.  
  6528. end
  6529.  
  6530. def self.Snap_Front_Record_A_Normal_Video(loopTime)
  6531.  
  6532. tcase = TestCase.new("Snap_Front_Record_A_Normal_Video")
  6533.  
  6534. tcase << TestAction.new(:scriptAction_28) do
  6535. logStartTest("Snap_Front_Record_A_Normal_Video")
  6536.  
  6537. waitsecond(2)
  6538. end
  6539.  
  6540. tcase << TestAction.new(:Click_Mode) do
  6541. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6542. .with('uitreeindex', 11)
  6543. .with('classname', 'ImageButton')
  6544. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6545. .with('content-desc', 'Mode')
  6546.  
  6547. $ruiObj.click
  6548.  
  6549. waitsecond(2)
  6550. end
  6551.  
  6552. tcase << TestAction.new(:Click_Snap) do
  6553. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6554. .with('classname', 'RelativeLayout')
  6555. .with('content-desc', 'Snap')
  6556.  
  6557. $ruiObj.click
  6558.  
  6559. waitsecond(2)
  6560. end
  6561.  
  6562. tcase << TestAction.new(:Click_Swap_Camera) do
  6563. $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
  6564. .with('uitreeindex', 7)
  6565. .with('classname', 'ImageButton')
  6566. .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
  6567. .with('content-desc', 'Switch to front camera')
  6568.  
  6569. $ruiObj.click
  6570.  
  6571. waitsecond(2)
  6572. end
  6573.  
  6574. tcase << TestAction.new(:Click_Recording) do
  6575. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6576. .with('uitreeindex', 10)
  6577. .with('classname', 'ImageButton')
  6578. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6579. .with('content-desc', 'Start recording')
  6580.  
  6581. $ruiObj.click
  6582.  
  6583. waitsecond(2)
  6584. end
  6585.  
  6586. tcase << TestAction.new(:wait4second_4) do
  6587. waitsecond(4)
  6588. end
  6589.  
  6590. tcase << TestAction.new(:Click_Play) do
  6591. $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
  6592. .with('uitreeindex', 6)
  6593. .with('classname', 'ImageButton')
  6594. .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
  6595. .with('content-desc', 'Play')
  6596.  
  6597. $ruiObj.click
  6598.  
  6599. waitsecond(2)
  6600. end
  6601.  
  6602. tcase << TestAction.new(:Button_PermissionAllowButton_11) do
  6603. $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
  6604. .with('uitreeindex', 3)
  6605. .with('classname', 'Button')
  6606. .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
  6607. .with('text', 'ALLOW')
  6608.  
  6609. $ruiObj.click
  6610.  
  6611. waitsecond(2)
  6612. end
  6613.  
  6614. tcase << TestAction.new(:Click_Back) do
  6615. $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
  6616. .with('uitreeindex', 1)
  6617. .with('classname', 'ImageButton')
  6618. .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
  6619. .with('content-desc', 'Back')
  6620.  
  6621. $ruiObj.click
  6622.  
  6623. waitsecond(2)
  6624. end
  6625.  
  6626. tcase << TestAction.new(:Click_Reset) do
  6627. $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
  6628. .with('uitreeindex', 4)
  6629. .with('classname', 'ImageButton')
  6630. .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
  6631. .with('content-desc', 'Reset')
  6632.  
  6633. $ruiObj.click
  6634.  
  6635. waitsecond(2)
  6636. end
  6637.  
  6638. tcase << TestAction.new(:Click_Recording_1) do
  6639. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6640. .with('uitreeindex', 10)
  6641. .with('classname', 'ImageButton')
  6642. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6643. .with('content-desc', 'Start recording')
  6644.  
  6645. $ruiObj.click
  6646.  
  6647. waitsecond(2)
  6648. end
  6649.  
  6650. tcase << TestAction.new(:wait4second_4_1) do
  6651. waitsecond(4)
  6652. end
  6653.  
  6654. tcase << TestAction.new(:Click_Save) do
  6655. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  6656. .with('uitreeindex', 5)
  6657. .with('classname', 'ImageButton')
  6658. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  6659. .with('content-desc', 'Save')
  6660.  
  6661. $ruiObj.click
  6662.  
  6663. waitsecond(2)
  6664. end
  6665.  
  6666. tcase << TestAction.new(:Button_OkButton_22) do
  6667. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6668. .with('uitreeindex', 20)
  6669. .with('classname', 'Button')
  6670. .with('resource-id', 'com.lge.camera:id/ok_button')
  6671. .with('text', 'OK')
  6672.  
  6673. $ruiObj.click
  6674.  
  6675. waitsecond(2)
  6676. end
  6677.  
  6678. tcase << TestAction.new(:Click_Recent) do
  6679. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6680. .with('uitreeindex', 14)
  6681. .with('classname', 'ImageView')
  6682. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6683. .with('content-desc', 'Gallery')
  6684.  
  6685. $ruiObj.click
  6686.  
  6687. waitsecond(2)
  6688. end
  6689.  
  6690. tcase << TestAction.new(:Check_Video_Delete) do
  6691. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6692. .with('uitreeindex', 3)
  6693. .with('classname', 'Button')
  6694. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6695. .with('content-desc', 'Delete')
  6696. .with('text', 'Delete')
  6697.  
  6698. $ruiObj.isExist
  6699.  
  6700. waitsecond(2)
  6701. end
  6702.  
  6703. tcase << TestAction.new(:Click_Delete) do
  6704. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6705. .with('uitreeindex', 4)
  6706. .with('classname', 'Button')
  6707. .with('content-desc', 'Delete')
  6708. .with('text', 'Delete').click
  6709.  
  6710. $ruiObj.click
  6711.  
  6712. waitsecond(2)
  6713. end
  6714.  
  6715. tcase << TestAction.new(:scriptAction_25) do
  6716. $myTestResult = checkLastExistResult
  6717.  
  6718. logStopTest("Snap_Front_Record_A_Normal_Video")
  6719.  
  6720.  
  6721. waitsecond(2)
  6722. end
  6723.  
  6724. tcase.run(loopTime)
  6725.  
  6726. end
  6727.  
  6728. def self.Snap_Front_Record_A_Wide_Video(loopTime)
  6729.  
  6730. tcase = TestCase.new("Snap_Front_Record_A_Wide_Video")
  6731.  
  6732. tcase << TestAction.new(:scriptAction_28) do
  6733. logStartTest("Snap_Front_Record_A_Wide_Video")
  6734.  
  6735. waitsecond(2)
  6736. end
  6737.  
  6738. tcase << TestAction.new(:Click_Mode) do
  6739. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6740. .with('uitreeindex', 11)
  6741. .with('classname', 'ImageButton')
  6742. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6743. .with('content-desc', 'Mode')
  6744.  
  6745. $ruiObj.click
  6746.  
  6747. waitsecond(2)
  6748. end
  6749.  
  6750. tcase << TestAction.new(:Click_Snap) do
  6751. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6752. .with('classname', 'RelativeLayout')
  6753. .with('content-desc', 'Snap')
  6754.  
  6755. $ruiObj.click
  6756.  
  6757. waitsecond(2)
  6758. end
  6759.  
  6760. tcase << TestAction.new(:Click_Swap_Camera) do
  6761. $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
  6762. .with('uitreeindex', 7)
  6763. .with('classname', 'ImageButton')
  6764. .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
  6765. .with('content-desc', 'Switch to front camera')
  6766.  
  6767. $ruiObj.click
  6768.  
  6769. waitsecond(2)
  6770. end
  6771.  
  6772. tcase << TestAction.new(:Click_Wide) do
  6773. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
  6774. .with('uitreeindex', 14)
  6775. .with('classname', 'ImageButton')
  6776. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  6777. .with('content-desc', 'Groupfie camera')
  6778.  
  6779. $ruiObj.click
  6780.  
  6781. waitsecond(2)
  6782. end
  6783.  
  6784. tcase << TestAction.new(:Click_Recording) do
  6785. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6786. .with('uitreeindex', 10)
  6787. .with('classname', 'ImageButton')
  6788. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6789. .with('content-desc', 'Start recording')
  6790.  
  6791. $ruiObj.click
  6792.  
  6793. waitsecond(2)
  6794. end
  6795.  
  6796. tcase << TestAction.new(:wait4second_4) do
  6797. waitsecond(4)
  6798. end
  6799.  
  6800. tcase << TestAction.new(:Click_Play) do
  6801. $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
  6802. .with('uitreeindex', 6)
  6803. .with('classname', 'ImageButton')
  6804. .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
  6805. .with('content-desc', 'Play')
  6806.  
  6807. $ruiObj.click
  6808.  
  6809. waitsecond(2)
  6810. end
  6811.  
  6812. tcase << TestAction.new(:Button_PermissionAllowButton_11) do
  6813. $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
  6814. .with('uitreeindex', 3)
  6815. .with('classname', 'Button')
  6816. .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
  6817. .with('text', 'ALLOW')
  6818.  
  6819. $ruiObj.click
  6820.  
  6821. waitsecond(2)
  6822. end
  6823.  
  6824. tcase << TestAction.new(:Click_Back) do
  6825. $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
  6826. .with('uitreeindex', 1)
  6827. .with('classname', 'ImageButton')
  6828. .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
  6829. .with('content-desc', 'Back')
  6830.  
  6831. $ruiObj.click
  6832.  
  6833. waitsecond(2)
  6834. end
  6835.  
  6836. tcase << TestAction.new(:Click_Reset) do
  6837. $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
  6838. .with('uitreeindex', 4)
  6839. .with('classname', 'ImageButton')
  6840. .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
  6841. .with('content-desc', 'Reset')
  6842.  
  6843. $ruiObj.click
  6844.  
  6845. waitsecond(2)
  6846. end
  6847.  
  6848. tcase << TestAction.new(:Click_Recording_1) do
  6849. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  6850. .with('uitreeindex', 10)
  6851. .with('classname', 'ImageButton')
  6852. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  6853. .with('content-desc', 'Start recording')
  6854.  
  6855. $ruiObj.click
  6856.  
  6857. waitsecond(2)
  6858. end
  6859.  
  6860. tcase << TestAction.new(:wait4second_4_1) do
  6861. waitsecond(4)
  6862. end
  6863.  
  6864. tcase << TestAction.new(:Click_Save) do
  6865. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  6866. .with('uitreeindex', 5)
  6867. .with('classname', 'ImageButton')
  6868. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  6869. .with('content-desc', 'Save')
  6870.  
  6871. $ruiObj.click
  6872.  
  6873. waitsecond(2)
  6874. end
  6875.  
  6876. tcase << TestAction.new(:Button_OkButton_22) do
  6877. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  6878. .with('uitreeindex', 20)
  6879. .with('classname', 'Button')
  6880. .with('resource-id', 'com.lge.camera:id/ok_button')
  6881. .with('text', 'OK')
  6882.  
  6883. $ruiObj.click
  6884.  
  6885. waitsecond(2)
  6886. end
  6887.  
  6888. tcase << TestAction.new(:Click_Recent) do
  6889. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6890. .with('uitreeindex', 14)
  6891. .with('classname', 'ImageView')
  6892. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6893. .with('content-desc', 'Gallery')
  6894.  
  6895. $ruiObj.click
  6896.  
  6897. waitsecond(2)
  6898. end
  6899.  
  6900. tcase << TestAction.new(:Check_Video_Delete) do
  6901. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  6902. .with('uitreeindex', 3)
  6903. .with('classname', 'Button')
  6904. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  6905. .with('content-desc', 'Delete')
  6906. .with('text', 'Delete')
  6907.  
  6908. $ruiObj.isExist
  6909.  
  6910. waitsecond(2)
  6911. end
  6912.  
  6913. tcase << TestAction.new(:Click_Delete) do
  6914. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6915. .with('uitreeindex', 4)
  6916. .with('classname', 'Button')
  6917. .with('content-desc', 'Delete')
  6918. .with('text', 'Delete').click
  6919.  
  6920. $ruiObj.click
  6921.  
  6922. waitsecond(2)
  6923. end
  6924.  
  6925. tcase << TestAction.new(:scriptAction_25) do
  6926. $myTestResult = checkLastExistResult
  6927.  
  6928. logStopTest("Snap_Front_Record_A_Wide_Video")
  6929.  
  6930.  
  6931. waitsecond(2)
  6932. end
  6933.  
  6934. tcase.run(loopTime)
  6935.  
  6936. end
  6937.  
  6938. def self.Snap_Front_Timer_10_Sec(loopTime)
  6939.  
  6940. tcase = TestCase.new("Snap_Front_Timer_10_Sec")
  6941.  
  6942. tcase << TestAction.new(:scriptAction_28) do
  6943. logStartTest("Snap_Front_Timer_10_Sec")
  6944.  
  6945. waitsecond(2)
  6946. end
  6947.  
  6948. tcase << TestAction.new(:Click_Mode) do
  6949. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  6950. .with('uitreeindex', 11)
  6951. .with('classname', 'ImageButton')
  6952. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  6953. .with('content-desc', 'Mode')
  6954.  
  6955. $ruiObj.click
  6956.  
  6957. waitsecond(2)
  6958. end
  6959.  
  6960. tcase << TestAction.new(:Click_Snap) do
  6961. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  6962. .with('classname', 'RelativeLayout')
  6963. .with('content-desc', 'Snap')
  6964.  
  6965. $ruiObj.click
  6966.  
  6967. waitsecond(2)
  6968. end
  6969.  
  6970. tcase << TestAction.new(:Click_Swap_Camera) do
  6971. $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
  6972. .with('uitreeindex', 7)
  6973. .with('classname', 'ImageButton')
  6974. .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
  6975. .with('content-desc', 'Switch to front camera')
  6976.  
  6977. $ruiObj.click
  6978.  
  6979. waitsecond(2)
  6980. end
  6981.  
  6982. tcase << TestAction.new(:Click_Wide) do
  6983. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
  6984. .with('uitreeindex', 14)
  6985. .with('classname', 'ImageButton')
  6986. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  6987. .with('content-desc', 'Groupfie camera')
  6988.  
  6989. $ruiObj.click
  6990.  
  6991. waitsecond(2)
  6992. end
  6993.  
  6994. tcase << TestAction.new(:Click_Settings) do
  6995. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6996. .with('uitreeindex', 3)
  6997. .with('classname', 'ImageButton')
  6998. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6999. .with('content-desc', 'Open settings')
  7000.  
  7001. $ruiObj.click
  7002.  
  7003. waitsecond(2)
  7004. end
  7005.  
  7006. tcase << TestAction.new(:Click_Timer) do
  7007. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  7008. .with('uitreeindex', 28)
  7009. .with('classname', 'TextView')
  7010. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  7011. .with('content-desc', 'Timer')
  7012. .with('text', 'Timer')
  7013.  
  7014. $ruiObj.click
  7015.  
  7016. waitsecond(2)
  7017. end
  7018.  
  7019. tcase << TestAction.new(:Click_10_Sec) do
  7020. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  7021. .with('uitreeindex', 16)
  7022. .with('classname', 'CheckedTextView')
  7023. .with('resource-id', 'android:id/text1')
  7024. .with('content-desc', '10 sec')
  7025. .with('text', '10 sec')
  7026.  
  7027. $ruiObj.click
  7028.  
  7029. waitsecond(2)
  7030. end
  7031.  
  7032. tcase << TestAction.new(:Click_Recording) do
  7033. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7034. .with('uitreeindex', 10)
  7035. .with('classname', 'ImageButton')
  7036. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7037. .with('content-desc', 'Start recording')
  7038.  
  7039. $ruiObj.click
  7040.  
  7041. waitsecond(2)
  7042. end
  7043.  
  7044. tcase << TestAction.new(:wait12second_4) do
  7045. waitsecond(12)
  7046. end
  7047.  
  7048. tcase << TestAction.new(:Click_Save) do
  7049. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  7050. .with('uitreeindex', 5)
  7051. .with('classname', 'ImageButton')
  7052. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  7053. .with('content-desc', 'Save')
  7054.  
  7055. $ruiObj.click
  7056.  
  7057. waitsecond(2)
  7058. end
  7059.  
  7060. tcase << TestAction.new(:Button_OkButton_22) do
  7061. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  7062. .with('uitreeindex', 20)
  7063. .with('classname', 'Button')
  7064. .with('resource-id', 'com.lge.camera:id/ok_button')
  7065. .with('text', 'OK')
  7066.  
  7067. $ruiObj.click
  7068.  
  7069. waitsecond(2)
  7070. end
  7071.  
  7072. tcase << TestAction.new(:Click_Recent) do
  7073. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7074. .with('uitreeindex', 14)
  7075. .with('classname', 'ImageView')
  7076. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7077. .with('content-desc', 'Gallery')
  7078.  
  7079. $ruiObj.click
  7080.  
  7081. waitsecond(2)
  7082. end
  7083.  
  7084. tcase << TestAction.new(:Check_Video_Delete) do
  7085. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  7086. .with('uitreeindex', 3)
  7087. .with('classname', 'Button')
  7088. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  7089. .with('content-desc', 'Delete')
  7090. .with('text', 'Delete')
  7091.  
  7092. $ruiObj.isExist
  7093.  
  7094. waitsecond(2)
  7095. end
  7096.  
  7097. tcase << TestAction.new(:Click_Delete) do
  7098. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7099. .with('uitreeindex', 4)
  7100. .with('classname', 'Button')
  7101. .with('content-desc', 'Delete')
  7102. .with('text', 'Delete').click
  7103.  
  7104. $ruiObj.click
  7105.  
  7106. waitsecond(2)
  7107. end
  7108.  
  7109. tcase << TestAction.new(:scriptAction_25) do
  7110. $myTestResult = checkLastExistResult
  7111.  
  7112. logStopTest("Snap_Front_Timer_10_Sec")
  7113.  
  7114.  
  7115. waitsecond(2)
  7116. end
  7117.  
  7118. tcase.run(loopTime)
  7119.  
  7120. end
  7121.  
  7122. def self.Snap_Front_Timer_3_Sec(loopTime)
  7123.  
  7124. tcase = TestCase.new("Snap_Front_Timer_3_Sec")
  7125.  
  7126. tcase << TestAction.new(:scriptAction_28) do
  7127. logStartTest("Snap_Front_Timer_3_Sec")
  7128.  
  7129. waitsecond(2)
  7130. end
  7131.  
  7132. tcase << TestAction.new(:Click_Mode) do
  7133. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  7134. .with('uitreeindex', 11)
  7135. .with('classname', 'ImageButton')
  7136. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  7137. .with('content-desc', 'Mode')
  7138.  
  7139. $ruiObj.click
  7140.  
  7141. waitsecond(2)
  7142. end
  7143.  
  7144. tcase << TestAction.new(:Click_Snap) do
  7145. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  7146. .with('classname', 'RelativeLayout')
  7147. .with('content-desc', 'Snap')
  7148.  
  7149. $ruiObj.click
  7150.  
  7151. waitsecond(2)
  7152. end
  7153.  
  7154. tcase << TestAction.new(:Click_Swap_Camera) do
  7155. $ruiObj = RUIObject.new.with('objectid', -1381054635).with('selfid', -2039839496).with('textdescid', -1741286688).with('uniqueparentid', 0)
  7156. .with('uitreeindex', 7)
  7157. .with('classname', 'ImageButton')
  7158. .with('resource-id', 'com.lge.camera:id/quick_button_swap_camera')
  7159. .with('content-desc', 'Switch to front camera')
  7160.  
  7161. $ruiObj.click
  7162.  
  7163. waitsecond(2)
  7164. end
  7165.  
  7166. tcase << TestAction.new(:Click_Wide) do
  7167. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -742280435).with('textdescid', -634856532).with('uniqueparentid', 0)
  7168. .with('uitreeindex', 14)
  7169. .with('classname', 'ImageButton')
  7170. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  7171. .with('content-desc', 'Groupfie camera')
  7172.  
  7173. $ruiObj.click
  7174.  
  7175. waitsecond(2)
  7176. end
  7177.  
  7178. tcase << TestAction.new(:Click_Settings) do
  7179. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  7180. .with('uitreeindex', 3)
  7181. .with('classname', 'ImageButton')
  7182. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  7183. .with('content-desc', 'Open settings')
  7184.  
  7185. $ruiObj.click
  7186.  
  7187. waitsecond(2)
  7188. end
  7189.  
  7190. tcase << TestAction.new(:Click_Timer) do
  7191. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  7192. .with('uitreeindex', 28)
  7193. .with('classname', 'TextView')
  7194. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  7195. .with('content-desc', 'Timer')
  7196. .with('text', 'Timer')
  7197.  
  7198. $ruiObj.click
  7199.  
  7200. waitsecond(2)
  7201. end
  7202.  
  7203. tcase << TestAction.new(:Click_3_Sec) do
  7204. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  7205. .with('uitreeindex', 15)
  7206. .with('classname', 'CheckedTextView')
  7207. .with('resource-id', 'android:id/text1')
  7208. .with('content-desc', '3 sec')
  7209. .with('text', '3 sec')
  7210.  
  7211. $ruiObj.click
  7212.  
  7213. waitsecond(2)
  7214. end
  7215.  
  7216. tcase << TestAction.new(:Click_Recording) do
  7217. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7218. .with('uitreeindex', 10)
  7219. .with('classname', 'ImageButton')
  7220. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7221. .with('content-desc', 'Start recording')
  7222.  
  7223. $ruiObj.click
  7224.  
  7225. waitsecond(2)
  7226. end
  7227.  
  7228. tcase << TestAction.new(:wait4second_4) do
  7229. waitsecond(4)
  7230. end
  7231.  
  7232. tcase << TestAction.new(:Click_Save) do
  7233. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  7234. .with('uitreeindex', 5)
  7235. .with('classname', 'ImageButton')
  7236. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  7237. .with('content-desc', 'Save')
  7238.  
  7239. $ruiObj.click
  7240.  
  7241. waitsecond(2)
  7242. end
  7243.  
  7244. tcase << TestAction.new(:Button_OkButton_22) do
  7245. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  7246. .with('uitreeindex', 20)
  7247. .with('classname', 'Button')
  7248. .with('resource-id', 'com.lge.camera:id/ok_button')
  7249. .with('text', 'OK')
  7250.  
  7251. $ruiObj.click
  7252.  
  7253. waitsecond(2)
  7254. end
  7255.  
  7256. tcase << TestAction.new(:Click_Recent) do
  7257. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7258. .with('uitreeindex', 14)
  7259. .with('classname', 'ImageView')
  7260. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7261. .with('content-desc', 'Gallery')
  7262.  
  7263. $ruiObj.click
  7264.  
  7265. waitsecond(2)
  7266. end
  7267.  
  7268. tcase << TestAction.new(:Check_Video_Delete) do
  7269. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  7270. .with('uitreeindex', 3)
  7271. .with('classname', 'Button')
  7272. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  7273. .with('content-desc', 'Delete')
  7274. .with('text', 'Delete')
  7275.  
  7276. $ruiObj.isExist
  7277.  
  7278. waitsecond(2)
  7279. end
  7280.  
  7281. tcase << TestAction.new(:Click_Delete) do
  7282. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7283. .with('uitreeindex', 4)
  7284. .with('classname', 'Button')
  7285. .with('content-desc', 'Delete')
  7286. .with('text', 'Delete').click
  7287.  
  7288. $ruiObj.click
  7289.  
  7290. waitsecond(2)
  7291. end
  7292.  
  7293. tcase << TestAction.new(:scriptAction_25) do
  7294. $myTestResult = checkLastExistResult
  7295.  
  7296. logStopTest("Snap_Front_Timer_3_Sec")
  7297.  
  7298.  
  7299. waitsecond(2)
  7300. end
  7301.  
  7302. tcase.run(loopTime)
  7303.  
  7304. end
  7305.  
  7306. def self.Snap_Record_A_Normal_Video(loopTime)
  7307.  
  7308. tcase = TestCase.new("Snap_Record_A_Normal_Video")
  7309.  
  7310. tcase << TestAction.new(:scriptAction_28) do
  7311. logStartTest("Snap_Record_A_Normal_Video")
  7312.  
  7313. waitsecond(2)
  7314. end
  7315.  
  7316. tcase << TestAction.new(:Click_Mode) do
  7317. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  7318. .with('uitreeindex', 11)
  7319. .with('classname', 'ImageButton')
  7320. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  7321. .with('content-desc', 'Mode')
  7322.  
  7323. $ruiObj.click
  7324.  
  7325. waitsecond(2)
  7326. end
  7327.  
  7328. tcase << TestAction.new(:Click_Snap) do
  7329. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  7330. .with('classname', 'RelativeLayout')
  7331. .with('content-desc', 'Snap')
  7332.  
  7333. $ruiObj.click
  7334.  
  7335. waitsecond(2)
  7336. end
  7337.  
  7338. tcase << TestAction.new(:Click_Recording) do
  7339. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7340. .with('uitreeindex', 10)
  7341. .with('classname', 'ImageButton')
  7342. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7343. .with('content-desc', 'Start recording')
  7344.  
  7345. $ruiObj.click
  7346.  
  7347. waitsecond(2)
  7348. end
  7349.  
  7350. tcase << TestAction.new(:wait4second_4) do
  7351. waitsecond(4)
  7352. end
  7353.  
  7354. tcase << TestAction.new(:Click_Play) do
  7355. $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
  7356. .with('uitreeindex', 6)
  7357. .with('classname', 'ImageButton')
  7358. .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
  7359. .with('content-desc', 'Play')
  7360.  
  7361. $ruiObj.click
  7362.  
  7363. waitsecond(2)
  7364. end
  7365.  
  7366. tcase << TestAction.new(:Button_PermissionAllowButton_11) do
  7367. $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
  7368. .with('uitreeindex', 3)
  7369. .with('classname', 'Button')
  7370. .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
  7371. .with('text', 'ALLOW')
  7372.  
  7373. $ruiObj.click
  7374.  
  7375. waitsecond(2)
  7376. end
  7377.  
  7378. tcase << TestAction.new(:Click_Back) do
  7379. $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
  7380. .with('uitreeindex', 1)
  7381. .with('classname', 'ImageButton')
  7382. .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
  7383. .with('content-desc', 'Back')
  7384.  
  7385. $ruiObj.click
  7386.  
  7387. waitsecond(2)
  7388. end
  7389.  
  7390. tcase << TestAction.new(:Click_Reset) do
  7391. $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
  7392. .with('uitreeindex', 4)
  7393. .with('classname', 'ImageButton')
  7394. .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
  7395. .with('content-desc', 'Reset')
  7396.  
  7397. $ruiObj.click
  7398.  
  7399. waitsecond(2)
  7400. end
  7401.  
  7402. tcase << TestAction.new(:Click_Recording_1) do
  7403. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7404. .with('uitreeindex', 10)
  7405. .with('classname', 'ImageButton')
  7406. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7407. .with('content-desc', 'Start recording')
  7408.  
  7409. $ruiObj.click
  7410.  
  7411. waitsecond(2)
  7412. end
  7413.  
  7414. tcase << TestAction.new(:wait4second_4_1) do
  7415. waitsecond(4)
  7416. end
  7417.  
  7418. tcase << TestAction.new(:Click_Save) do
  7419. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  7420. .with('uitreeindex', 5)
  7421. .with('classname', 'ImageButton')
  7422. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  7423. .with('content-desc', 'Save')
  7424.  
  7425. $ruiObj.click
  7426.  
  7427. waitsecond(2)
  7428. end
  7429.  
  7430. tcase << TestAction.new(:Button_OkButton_22) do
  7431. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  7432. .with('uitreeindex', 20)
  7433. .with('classname', 'Button')
  7434. .with('resource-id', 'com.lge.camera:id/ok_button')
  7435. .with('text', 'OK')
  7436.  
  7437. $ruiObj.click
  7438.  
  7439. waitsecond(2)
  7440. end
  7441.  
  7442. tcase << TestAction.new(:Click_Recent) do
  7443. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7444. .with('uitreeindex', 14)
  7445. .with('classname', 'ImageView')
  7446. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7447. .with('content-desc', 'Gallery')
  7448.  
  7449. $ruiObj.click
  7450.  
  7451. waitsecond(2)
  7452. end
  7453.  
  7454. tcase << TestAction.new(:Check_Video_Delete) do
  7455. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  7456. .with('uitreeindex', 3)
  7457. .with('classname', 'Button')
  7458. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  7459. .with('content-desc', 'Delete')
  7460. .with('text', 'Delete')
  7461.  
  7462. $ruiObj.isExist
  7463.  
  7464. waitsecond(2)
  7465. end
  7466.  
  7467. tcase << TestAction.new(:Click_Delete) do
  7468. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7469. .with('uitreeindex', 4)
  7470. .with('classname', 'Button')
  7471. .with('content-desc', 'Delete')
  7472. .with('text', 'Delete').click
  7473.  
  7474. $ruiObj.click
  7475.  
  7476. waitsecond(2)
  7477. end
  7478.  
  7479. tcase << TestAction.new(:scriptAction_25) do
  7480. $myTestResult = checkLastExistResult
  7481.  
  7482. logStopTest("Snap_Record_A_Normal_Video")
  7483.  
  7484.  
  7485. waitsecond(2)
  7486. end
  7487.  
  7488. tcase.run(loopTime)
  7489.  
  7490. end
  7491.  
  7492. def self.Snap_Record_A_Video(loopTime)
  7493.  
  7494. tcase = TestCase.new("Snap_Record_A_Video")
  7495.  
  7496. tcase << TestAction.new(:scriptAction_28) do
  7497. logStartTest("Pop_Record_A_Video")
  7498.  
  7499. waitsecond(2)
  7500. end
  7501.  
  7502. tcase << TestAction.new(:Click_Mode) do
  7503. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  7504. .with('uitreeindex', 11)
  7505. .with('classname', 'ImageButton')
  7506. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  7507. .with('content-desc', 'Mode')
  7508.  
  7509. $ruiObj.click
  7510.  
  7511. waitsecond(2)
  7512. end
  7513.  
  7514. tcase << TestAction.new(:Click_Snap) do
  7515. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  7516. .with('classname', 'RelativeLayout')
  7517. .with('content-desc', 'Snap')
  7518.  
  7519. $ruiObj.click
  7520.  
  7521. waitsecond(2)
  7522. end
  7523.  
  7524. tcase << TestAction.new(:Click_Recording) do
  7525. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7526. .with('uitreeindex', 10)
  7527. .with('classname', 'ImageButton')
  7528. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7529. .with('content-desc', 'Start recording')
  7530.  
  7531. $ruiObj.click
  7532.  
  7533. waitsecond(2)
  7534. end
  7535.  
  7536. tcase << TestAction.new(:wait4second_4) do
  7537. waitsecond(4)
  7538. end
  7539.  
  7540. tcase << TestAction.new(:Click_Play) do
  7541. $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
  7542. .with('uitreeindex', 6)
  7543. .with('classname', 'ImageButton')
  7544. .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
  7545. .with('content-desc', 'Play')
  7546.  
  7547. $ruiObj.click
  7548.  
  7549. waitsecond(2)
  7550. end
  7551.  
  7552. tcase << TestAction.new(:Button_PermissionAllowButton_11) do
  7553. $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
  7554. .with('uitreeindex', 3)
  7555. .with('classname', 'Button')
  7556. .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
  7557. .with('text', 'ALLOW')
  7558.  
  7559. $ruiObj.click
  7560.  
  7561. waitsecond(2)
  7562. end
  7563.  
  7564. tcase << TestAction.new(:Click_Back) do
  7565. $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
  7566. .with('uitreeindex', 1)
  7567. .with('classname', 'ImageButton')
  7568. .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
  7569. .with('content-desc', 'Back')
  7570.  
  7571. $ruiObj.click
  7572.  
  7573. waitsecond(2)
  7574. end
  7575.  
  7576. tcase << TestAction.new(:Click_Reset) do
  7577. $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
  7578. .with('uitreeindex', 4)
  7579. .with('classname', 'ImageButton')
  7580. .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
  7581. .with('content-desc', 'Reset')
  7582.  
  7583. $ruiObj.click
  7584.  
  7585. waitsecond(2)
  7586. end
  7587.  
  7588. tcase << TestAction.new(:Click_Recording_1) do
  7589. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7590. .with('uitreeindex', 10)
  7591. .with('classname', 'ImageButton')
  7592. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7593. .with('content-desc', 'Start recording')
  7594.  
  7595. $ruiObj.click
  7596.  
  7597. waitsecond(2)
  7598. end
  7599.  
  7600. tcase << TestAction.new(:wait4second_4_1) do
  7601. waitsecond(4)
  7602. end
  7603.  
  7604. tcase << TestAction.new(:Click_Save) do
  7605. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  7606. .with('uitreeindex', 5)
  7607. .with('classname', 'ImageButton')
  7608. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  7609. .with('content-desc', 'Save')
  7610.  
  7611. $ruiObj.click
  7612.  
  7613. waitsecond(2)
  7614. end
  7615.  
  7616. tcase << TestAction.new(:Button_OkButton_22) do
  7617. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  7618. .with('uitreeindex', 20)
  7619. .with('classname', 'Button')
  7620. .with('resource-id', 'com.lge.camera:id/ok_button')
  7621. .with('text', 'OK')
  7622.  
  7623. $ruiObj.click
  7624.  
  7625. waitsecond(2)
  7626. end
  7627.  
  7628. tcase << TestAction.new(:Click_Recent) do
  7629. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7630. .with('uitreeindex', 14)
  7631. .with('classname', 'ImageView')
  7632. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7633. .with('content-desc', 'Gallery')
  7634.  
  7635. $ruiObj.click
  7636.  
  7637. waitsecond(2)
  7638. end
  7639.  
  7640. tcase << TestAction.new(:Check_Video_Delete) do
  7641. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  7642. .with('uitreeindex', 3)
  7643. .with('classname', 'Button')
  7644. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  7645. .with('content-desc', 'Delete')
  7646. .with('text', 'Delete')
  7647.  
  7648. $ruiObj.isExist
  7649.  
  7650. waitsecond(2)
  7651. end
  7652.  
  7653. tcase << TestAction.new(:Click_Delete) do
  7654. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7655. .with('uitreeindex', 4)
  7656. .with('classname', 'Button')
  7657. .with('content-desc', 'Delete')
  7658. .with('text', 'Delete').click
  7659.  
  7660. $ruiObj.click
  7661.  
  7662. waitsecond(2)
  7663. end
  7664.  
  7665. tcase << TestAction.new(:scriptAction_25) do
  7666. $myTestResult = checkLastExistResult
  7667.  
  7668. logStopTest("Pop_Record_A_Video")
  7669.  
  7670.  
  7671. waitsecond(2)
  7672. end
  7673.  
  7674. tcase.run(loopTime)
  7675.  
  7676. end
  7677.  
  7678. def self.Snap_Record_A_Wide_Video(loopTime)
  7679.  
  7680. tcase = TestCase.new("Snap_Record_A_Wide_Video")
  7681.  
  7682. tcase << TestAction.new(:scriptAction_28) do
  7683. logStartTest("Snap_Record_A_Wide_Video")
  7684.  
  7685. waitsecond(2)
  7686. end
  7687.  
  7688. tcase << TestAction.new(:Click_Mode) do
  7689. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  7690. .with('uitreeindex', 11)
  7691. .with('classname', 'ImageButton')
  7692. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  7693. .with('content-desc', 'Mode')
  7694.  
  7695. $ruiObj.click
  7696.  
  7697. waitsecond(2)
  7698. end
  7699.  
  7700. tcase << TestAction.new(:Click_Snap) do
  7701. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', -2100491200).with('textdescid', 1369437205).with('uniqueparentid', 0)
  7702. .with('classname', 'RelativeLayout')
  7703. .with('content-desc', 'Snap')
  7704.  
  7705. $ruiObj.click
  7706.  
  7707. waitsecond(2)
  7708. end
  7709.  
  7710. tcase << TestAction.new(:Click_Wide) do
  7711. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
  7712. .with('uitreeindex', 14)
  7713. .with('classname', 'ImageButton')
  7714. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  7715. .with('content-desc', 'Wide angle lens')
  7716.  
  7717. $ruiObj.click
  7718.  
  7719. waitsecond(2)
  7720. end
  7721.  
  7722. tcase << TestAction.new(:Click_Recording) do
  7723. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7724. .with('uitreeindex', 10)
  7725. .with('classname', 'ImageButton')
  7726. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7727. .with('content-desc', 'Start recording')
  7728.  
  7729. $ruiObj.click
  7730.  
  7731. waitsecond(2)
  7732. end
  7733.  
  7734. tcase << TestAction.new(:wait4second_4) do
  7735. waitsecond(4)
  7736. end
  7737.  
  7738. tcase << TestAction.new(:Click_Play) do
  7739. $ruiObj = RUIObject.new.with('objectid', 1122399329).with('selfid', 1471998550).with('textdescid', 1584132851).with('uniqueparentid', 0)
  7740. .with('uitreeindex', 6)
  7741. .with('classname', 'ImageButton')
  7742. .with('resource-id', 'com.lge.camera:id/snap_movie_play_button')
  7743. .with('content-desc', 'Play')
  7744.  
  7745. $ruiObj.click
  7746.  
  7747. waitsecond(2)
  7748. end
  7749.  
  7750. tcase << TestAction.new(:Button_PermissionAllowButton_11) do
  7751. $ruiObj = RUIObject.new.with('objectid', -1492498299).with('selfid', 1443382411).with('textdescid', -1772738030).with('uniqueparentid', 0).with('classresourceid', -227364920)
  7752. .with('uitreeindex', 3)
  7753. .with('classname', 'Button')
  7754. .with('resource-id', 'com.android.packageinstaller:id/permission_allow_button')
  7755. .with('text', 'ALLOW')
  7756.  
  7757. $ruiObj.click
  7758.  
  7759. waitsecond(2)
  7760. end
  7761.  
  7762. tcase << TestAction.new(:Click_Back) do
  7763. $ruiObj = RUIObject.new.with('objectid', -1388301646).with('selfid', 1284255107).with('textdescid', 855736437).with('uniqueparentid', 0)
  7764. .with('uitreeindex', 1)
  7765. .with('classname', 'ImageButton')
  7766. .with('resource-id', 'com.lge.videostudio:id/preview_only_back')
  7767. .with('content-desc', 'Back')
  7768.  
  7769. $ruiObj.click
  7770.  
  7771. waitsecond(2)
  7772. end
  7773.  
  7774. tcase << TestAction.new(:Click_Reset) do
  7775. $ruiObj = RUIObject.new.with('objectid', -1512663113).with('selfid', -236169222).with('textdescid', 1794977286).with('uniqueparentid', 0)
  7776. .with('uitreeindex', 4)
  7777. .with('classname', 'ImageButton')
  7778. .with('resource-id', 'com.lge.camera:id/snap_movie_reset_button')
  7779. .with('content-desc', 'Reset')
  7780.  
  7781. $ruiObj.click
  7782.  
  7783. waitsecond(2)
  7784. end
  7785.  
  7786. tcase << TestAction.new(:Click_Recording_1) do
  7787. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  7788. .with('uitreeindex', 10)
  7789. .with('classname', 'ImageButton')
  7790. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  7791. .with('content-desc', 'Start recording')
  7792.  
  7793. $ruiObj.click
  7794.  
  7795. waitsecond(2)
  7796. end
  7797.  
  7798. tcase << TestAction.new(:wait4second_4_1) do
  7799. waitsecond(4)
  7800. end
  7801.  
  7802. tcase << TestAction.new(:Click_Save) do
  7803. $ruiObj = RUIObject.new.with('objectid', -493351425).with('selfid', -1440841802).with('textdescid', -1695370338).with('uniqueparentid', 0)
  7804. .with('uitreeindex', 5)
  7805. .with('classname', 'ImageButton')
  7806. .with('resource-id', 'com.lge.camera:id/snap_movie_save_button')
  7807. .with('content-desc', 'Save')
  7808.  
  7809. $ruiObj.click
  7810.  
  7811. waitsecond(2)
  7812. end
  7813.  
  7814. tcase << TestAction.new(:Button_OkButton_22) do
  7815. $ruiObj = RUIObject.new.with('objectid', 598194823).with('selfid', -2071126929).with('textdescid', 1018748075).with('uniqueparentid', 0)
  7816. .with('uitreeindex', 20)
  7817. .with('classname', 'Button')
  7818. .with('resource-id', 'com.lge.camera:id/ok_button')
  7819. .with('text', 'OK')
  7820.  
  7821. $ruiObj.click
  7822.  
  7823. waitsecond(2)
  7824. end
  7825.  
  7826. tcase << TestAction.new(:Click_Recent) do
  7827. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7828. .with('uitreeindex', 14)
  7829. .with('classname', 'ImageView')
  7830. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7831. .with('content-desc', 'Gallery')
  7832.  
  7833. $ruiObj.click
  7834.  
  7835. waitsecond(2)
  7836. end
  7837.  
  7838. tcase << TestAction.new(:Check_Video_Delete) do
  7839. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  7840. .with('uitreeindex', 3)
  7841. .with('classname', 'Button')
  7842. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  7843. .with('content-desc', 'Delete')
  7844. .with('text', 'Delete')
  7845.  
  7846. $ruiObj.isExist
  7847.  
  7848. waitsecond(2)
  7849. end
  7850.  
  7851. tcase << TestAction.new(:Click_Delete) do
  7852. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7853. .with('uitreeindex', 4)
  7854. .with('classname', 'Button')
  7855. .with('content-desc', 'Delete')
  7856. .with('text', 'Delete').click
  7857.  
  7858. $ruiObj.click
  7859.  
  7860. waitsecond(2)
  7861. end
  7862.  
  7863. tcase << TestAction.new(:scriptAction_25) do
  7864. $myTestResult = checkLastExistResult
  7865.  
  7866. logStopTest("Snap_Record_A_Wide_Video")
  7867.  
  7868.  
  7869. waitsecond(2)
  7870. end
  7871.  
  7872. tcase.run(loopTime)
  7873.  
  7874. end
  7875.  
  7876. def self.startTest(loopTime)
  7877.  
  7878. tcase = TestCase.new("startTest")
  7879.  
  7880. tcase << TestAction.new(:blankaction) do
  7881. waitsecond(0)
  7882. end
  7883.  
  7884. tcase.run(loopTime)
  7885.  
  7886. end
  7887.  
  7888. def self.Take_A_Picture(loopTime)
  7889.  
  7890. tcase = TestCase.new("Take_A_Picture")
  7891.  
  7892. tcase << TestAction.new(:Click_Shutter) do
  7893. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  7894. .with('uitreeindex', 11)
  7895. .with('classname', 'ImageButton')
  7896. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  7897.  
  7898. $ruiObj.click
  7899.  
  7900. waitsecond(2)
  7901. end
  7902.  
  7903. tcase << TestAction.new(:Click_Recent) do
  7904. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  7905. .with('uitreeindex', 14)
  7906. .with('classname', 'ImageView')
  7907. .with('resource-id', 'com.lge.camera:id/thumbnail')
  7908. .with('content-desc', 'Gallery')
  7909.  
  7910. $ruiObj.click
  7911.  
  7912. waitsecond(2)
  7913. end
  7914.  
  7915. tcase << TestAction.new(:Check_Delete) do
  7916. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  7917. .with('uitreeindex', 4)
  7918. .with('classname', 'Button')
  7919. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  7920. .with('content-desc', 'Delete')
  7921. .with('text', 'Delete')
  7922.  
  7923. $ruiObj.isExist
  7924.  
  7925. waitsecond(2)
  7926. end
  7927.  
  7928. tcase << TestAction.new(:scriptAction_2) do
  7929.  
  7930.  
  7931. waitsecond(2)
  7932. end
  7933.  
  7934. tcase.run(loopTime)
  7935.  
  7936. end
  7937.  
  7938. def self.Take_A_Picture_With_Volume(loopTime)
  7939.  
  7940. tcase = TestCase.new("Take_A_Picture_With_Volume")
  7941.  
  7942. tcase << TestAction.new(:scriptAction_3) do
  7943.  
  7944.  
  7945. waitsecond(2)
  7946. end
  7947.  
  7948. tcase.run(loopTime)
  7949.  
  7950. end
  7951.  
  7952. def self.Test(loopTime)
  7953.  
  7954. tcase = TestCase.new("Test")
  7955.  
  7956. tcase << TestAction.new(:TextView_Settings_1) do
  7957. $ruiObj = RUIObject.new.with('objectid', 70668614).with('selfid', 1708699118).with('textdescid', -416294470).with('uniqueparentid', 0)
  7958. .with('uitreeindex', 16)
  7959. .with('classname', 'TextView')
  7960. .with('content-desc', 'Settings')
  7961. .with('text', 'Settings')
  7962.  
  7963. $ruiObj.click
  7964.  
  7965. waitsecond(2)
  7966. end
  7967.  
  7968. tcase << TestAction.new(:TextView_Title_2) do
  7969. $ruiObj = RUIObject.new.with('objectid', 10212784).with('selfid', 641711431).with('textdescid', -2085492536).with('uniqueparentid', 0)
  7970. .with('uitreeindex', 8)
  7971. .with('classname', 'TextView')
  7972. .with('resource-id', 'android:id/title')
  7973. .with('text', 'General')
  7974.  
  7975. $ruiObj.click
  7976.  
  7977. waitsecond(2)
  7978. end
  7979.  
  7980. tcase << TestAction.new(:swipeDown_3) do
  7981. swipe_vertical 5030
  7982.  
  7983. waitsecond(2)
  7984. end
  7985.  
  7986. tcase << TestAction.new(:TextView_Title_4) do
  7987. $ruiObj = RUIObject.new.with('objectid', -2099539841).with('selfid', -590378381).with('textdescid', -1400202003).with('uniqueparentid', 0).with('classresourceid', 490183159)
  7988. .with('uitreeindex', 21)
  7989. .with('classname', 'TextView')
  7990. .with('resource-id', 'android:id/title')
  7991. .with('text', 'Apps')
  7992.  
  7993. $ruiObj.click
  7994.  
  7995. waitsecond(2)
  7996. end
  7997.  
  7998. tcase << TestAction.new(:scriptAction_6) do
  7999. scrollAndSearchText("Camera")
  8000.  
  8001. waitsecond(2)
  8002. end
  8003.  
  8004. tcase << TestAction.new(:TextView_Title_7) do
  8005. $ruiObj = RUIObject.new.with('objectid', -1175534066).with('selfid', -374634778).with('textdescid', 1973661033).with('uniqueparentid', 0).with('classresourceid', 490183159)
  8006. .with('uitreeindex', 28)
  8007. .with('classname', 'TextView')
  8008. .with('resource-id', 'android:id/title')
  8009. .with('text', 'Camera')
  8010.  
  8011. $ruiObj.click
  8012.  
  8013. waitsecond(2)
  8014. end
  8015.  
  8016. tcase << TestAction.new(:TextView_Title_8) do
  8017. $ruiObj = RUIObject.new.with('objectid', -2103271856).with('selfid', -1162414374).with('textdescid', -249377547).with('uniqueparentid', 0).with('classresourceid', 490183159)
  8018. .with('uitreeindex', 10)
  8019. .with('classname', 'TextView')
  8020. .with('resource-id', 'android:id/title')
  8021. .with('text', 'Storage')
  8022.  
  8023. $ruiObj.click
  8024.  
  8025. waitsecond(2)
  8026. end
  8027.  
  8028. tcase << TestAction.new(:Button_Button3_9) do
  8029. $ruiObj = RUIObject.new.with('objectid', 176250137).with('selfid', 72310979).with('textdescid', -665389700).with('uniqueparentid', 0).with('classresourceid', 1223821552)
  8030. .with('uitreeindex', 11)
  8031. .with('classname', 'Button')
  8032. .with('resource-id', 'com.android.settings:id/button3')
  8033. .with('text', 'Clear data')
  8034.  
  8035. $ruiObj.click
  8036.  
  8037. waitsecond(2)
  8038. end
  8039.  
  8040. tcase << TestAction.new(:Button_Button1_11) do
  8041. $ruiObj = RUIObject.new.with('objectid', -1004548822).with('selfid', -1318451484).with('textdescid', -405740082).with('uniqueparentid', 0).with('classresourceid', 1834539358)
  8042. .with('uitreeindex', 3)
  8043. .with('classname', 'Button')
  8044. .with('resource-id', 'android:id/button1')
  8045. .with('text', 'OK')
  8046.  
  8047. $ruiObj.click
  8048.  
  8049. waitsecond(2)
  8050. end
  8051.  
  8052. tcase << TestAction.new(:pressHome_12) do
  8053. pressHome
  8054.  
  8055. waitsecond(2)
  8056. end
  8057.  
  8058. tcase << TestAction.new(:TextView_Camera_1) do
  8059. $ruiObj = RUIObject.new.with('objectid', -479243074).with('selfid', -1103134098).with('textdescid', 1803325250).with('uniqueparentid', 0)
  8060. .with('uitreeindex', 22)
  8061. .with('classname', 'TextView')
  8062. .with('content-desc', 'Camera')
  8063. .with('text', 'Camera')
  8064.  
  8065. $ruiObj.click
  8066.  
  8067. waitsecond(2)
  8068. end
  8069.  
  8070. tcase << TestAction.new(:pressBack_2) do
  8071. pressBack
  8072.  
  8073. waitsecond(2)
  8074. end
  8075.  
  8076. tcase << TestAction.new(:Cick_Later) do
  8077. $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
  8078. .with('uitreeindex', 20)
  8079. .with('classname', 'Button')
  8080. .with('resource-id', 'com.lge.camera:id/cancel_button')
  8081. .with('text', 'LATER')
  8082.  
  8083. $ruiObj.click
  8084.  
  8085. waitsecond(2)
  8086. end
  8087.  
  8088. tcase << TestAction.new(:Button_CancelButton_4) do
  8089. $ruiObj = RUIObject.new.with('objectid', 2138780457).with('selfid', 765132311).with('textdescid', -782727157).with('uniqueparentid', 0)
  8090. .with('uitreeindex', 20)
  8091. .with('classname', 'Button')
  8092. .with('resource-id', 'com.lge.camera:id/cancel_button')
  8093. .with('text', 'LATER')
  8094.  
  8095. $ruiObj.click
  8096.  
  8097. waitsecond(2)
  8098. end
  8099.  
  8100. tcase.run(loopTime)
  8101.  
  8102. end
  8103.  
  8104. def self.TimeLapse_Flash(loopTime)
  8105.  
  8106. tcase = TestCase.new("TimeLapse_Flash")
  8107.  
  8108. tcase << TestAction.new(:scriptAction_28) do
  8109. logStartTest("TimeLapse_Flash")
  8110.  
  8111. waitsecond(2)
  8112. end
  8113.  
  8114. tcase << TestAction.new(:Click_Mode) do
  8115. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  8116. .with('uitreeindex', 11)
  8117. .with('classname', 'ImageButton')
  8118. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  8119. .with('content-desc', 'Mode')
  8120.  
  8121. $ruiObj.click
  8122.  
  8123. waitsecond(2)
  8124. end
  8125.  
  8126. tcase << TestAction.new(:Click_TimeLapse) do
  8127. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
  8128. .with('classname', 'RelativeLayout')
  8129. .with('content-desc', 'Time-lapse')
  8130.  
  8131. $ruiObj.click
  8132.  
  8133. waitsecond(2)
  8134. end
  8135.  
  8136. tcase << TestAction.new(:Click_Flash) do
  8137. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  8138. .with('uitreeindex', 6)
  8139. .with('classname', 'ImageButton')
  8140. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  8141. .with('content-desc', 'Switch to flash on')
  8142.  
  8143. $ruiObj.click
  8144.  
  8145. waitsecond(2)
  8146. end
  8147.  
  8148. tcase << TestAction.new(:Click_Recording) do
  8149. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  8150. .with('uitreeindex', 10)
  8151. .with('classname', 'ImageButton')
  8152. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  8153. .with('content-desc', 'Start recording')
  8154.  
  8155. $ruiObj.click
  8156.  
  8157. waitsecond(2)
  8158. end
  8159.  
  8160. tcase << TestAction.new(:Stop_Recording) do
  8161. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  8162. .with('uitreeindex', 9)
  8163. .with('classname', 'ImageButton')
  8164. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  8165.  
  8166. $ruiObj.click
  8167.  
  8168. waitsecond(2)
  8169. end
  8170.  
  8171. tcase << TestAction.new(:Click_Recent) do
  8172. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  8173. .with('uitreeindex', 14)
  8174. .with('classname', 'ImageView')
  8175. .with('resource-id', 'com.lge.camera:id/thumbnail')
  8176. .with('content-desc', 'Gallery')
  8177.  
  8178. $ruiObj.click
  8179.  
  8180. waitsecond(2)
  8181. end
  8182.  
  8183. tcase << TestAction.new(:Check_Video_Delete) do
  8184. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  8185. .with('uitreeindex', 3)
  8186. .with('classname', 'Button')
  8187. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  8188. .with('content-desc', 'Delete')
  8189. .with('text', 'Delete')
  8190.  
  8191. $ruiObj.isExist
  8192.  
  8193. waitsecond(2)
  8194. end
  8195.  
  8196. tcase << TestAction.new(:Click_Delete) do
  8197. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  8198. .with('uitreeindex', 4)
  8199. .with('classname', 'Button')
  8200. .with('content-desc', 'Delete')
  8201. .with('text', 'Delete').click
  8202.  
  8203. $ruiObj.click
  8204.  
  8205. waitsecond(2)
  8206. end
  8207.  
  8208. tcase << TestAction.new(:scriptAction_25) do
  8209. $myTestResult = checkLastExistResult
  8210.  
  8211. logStopTest("TimeLapse_Flash")
  8212.  
  8213.  
  8214. waitsecond(2)
  8215. end
  8216.  
  8217. tcase.run(loopTime)
  8218.  
  8219. end
  8220.  
  8221. def self.TimeLapse_Record_A_Video(loopTime)
  8222.  
  8223. tcase = TestCase.new("TimeLapse_Record_A_Video")
  8224.  
  8225. tcase << TestAction.new(:scriptAction_28) do
  8226. logStartTest("TimeLapse_Record_A__Video")
  8227.  
  8228. waitsecond(2)
  8229. end
  8230.  
  8231. tcase << TestAction.new(:Click_Mode) do
  8232. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  8233. .with('uitreeindex', 11)
  8234. .with('classname', 'ImageButton')
  8235. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  8236. .with('content-desc', 'Mode')
  8237.  
  8238. $ruiObj.click
  8239.  
  8240. waitsecond(2)
  8241. end
  8242.  
  8243. tcase << TestAction.new(:Click_TimeLapse) do
  8244. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
  8245. .with('classname', 'RelativeLayout')
  8246. .with('content-desc', 'Time-lapse')
  8247.  
  8248. $ruiObj.click
  8249.  
  8250. waitsecond(2)
  8251. end
  8252.  
  8253. tcase << TestAction.new(:Click_Recording) do
  8254. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  8255. .with('uitreeindex', 10)
  8256. .with('classname', 'ImageButton')
  8257. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  8258. .with('content-desc', 'Start recording')
  8259.  
  8260. $ruiObj.click
  8261.  
  8262. waitsecond(2)
  8263. end
  8264.  
  8265. tcase << TestAction.new(:Click_Pause) do
  8266. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  8267. .with('uitreeindex', 7)
  8268. .with('classname', 'ImageButton')
  8269. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  8270.  
  8271. $ruiObj.click
  8272.  
  8273. waitsecond(2)
  8274. end
  8275.  
  8276. tcase << TestAction.new(:Resume_Recording) do
  8277. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  8278. .with('uitreeindex', 8)
  8279. .with('classname', 'ImageButton')
  8280. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  8281.  
  8282. $ruiObj.click
  8283.  
  8284. waitsecond(2)
  8285. end
  8286.  
  8287. tcase << TestAction.new(:Stop_Recording) do
  8288. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  8289. .with('uitreeindex', 9)
  8290. .with('classname', 'ImageButton')
  8291. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  8292.  
  8293. $ruiObj.click
  8294.  
  8295. waitsecond(2)
  8296. end
  8297.  
  8298. tcase << TestAction.new(:Click_Recent) do
  8299. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  8300. .with('uitreeindex', 14)
  8301. .with('classname', 'ImageView')
  8302. .with('resource-id', 'com.lge.camera:id/thumbnail')
  8303. .with('content-desc', 'Gallery')
  8304.  
  8305. $ruiObj.click
  8306.  
  8307. waitsecond(2)
  8308. end
  8309.  
  8310. tcase << TestAction.new(:Check_Video_Delete) do
  8311. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  8312. .with('uitreeindex', 3)
  8313. .with('classname', 'Button')
  8314. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  8315. .with('content-desc', 'Delete')
  8316. .with('text', 'Delete')
  8317.  
  8318. $ruiObj.isExist
  8319.  
  8320. waitsecond(2)
  8321. end
  8322.  
  8323. tcase << TestAction.new(:Click_Delete) do
  8324. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  8325. .with('uitreeindex', 4)
  8326. .with('classname', 'Button')
  8327. .with('content-desc', 'Delete')
  8328. .with('text', 'Delete').click
  8329.  
  8330. $ruiObj.click
  8331.  
  8332. waitsecond(2)
  8333. end
  8334.  
  8335. tcase << TestAction.new(:scriptAction_25) do
  8336. $myTestResult = checkLastExistResult
  8337.  
  8338. logStopTest("TimeLapse_Record_A_Video")
  8339.  
  8340.  
  8341. waitsecond(2)
  8342. end
  8343.  
  8344. tcase.run(loopTime)
  8345.  
  8346. end
  8347.  
  8348. def self.TimeLapse_Zoom(loopTime)
  8349.  
  8350. tcase = TestCase.new("TimeLapse_Zoom")
  8351.  
  8352. tcase << TestAction.new(:scriptAction_28) do
  8353. logStartTest("TimeLapse_Zoom")
  8354.  
  8355. waitsecond(2)
  8356. end
  8357.  
  8358. tcase << TestAction.new(:Click_Mode) do
  8359. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  8360. .with('uitreeindex', 11)
  8361. .with('classname', 'ImageButton')
  8362. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  8363. .with('content-desc', 'Mode')
  8364.  
  8365. $ruiObj.click
  8366.  
  8367. waitsecond(2)
  8368. end
  8369.  
  8370. tcase << TestAction.new(:Click_TimeLapse) do
  8371. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
  8372. .with('classname', 'RelativeLayout')
  8373. .with('content-desc', 'Time-lapse')
  8374.  
  8375. $ruiObj.click
  8376.  
  8377. waitsecond(2)
  8378. end
  8379.  
  8380. tcase << TestAction.new(:Zoom_1) do
  8381. zoomIn
  8382.  
  8383. waitsecond(2)
  8384. end
  8385.  
  8386. tcase << TestAction.new(:Zoom_1_1) do
  8387. zoomIn
  8388.  
  8389. waitsecond(2)
  8390. end
  8391.  
  8392. tcase << TestAction.new(:Zoom_1_1_1) do
  8393. zoomIn
  8394.  
  8395. waitsecond(2)
  8396. end
  8397.  
  8398. tcase << TestAction.new(:Zoom_1_1_1_1) do
  8399. zoomIn
  8400.  
  8401. waitsecond(2)
  8402. end
  8403.  
  8404. tcase << TestAction.new(:Click_Recording) do
  8405. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  8406. .with('uitreeindex', 10)
  8407. .with('classname', 'ImageButton')
  8408. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  8409. .with('content-desc', 'Start recording')
  8410.  
  8411. $ruiObj.click
  8412.  
  8413. waitsecond(2)
  8414. end
  8415.  
  8416. tcase << TestAction.new(:Stop_Recording) do
  8417. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  8418. .with('uitreeindex', 9)
  8419. .with('classname', 'ImageButton')
  8420. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  8421.  
  8422. $ruiObj.click
  8423.  
  8424. waitsecond(2)
  8425. end
  8426.  
  8427. tcase << TestAction.new(:Click_Recent) do
  8428. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  8429. .with('uitreeindex', 14)
  8430. .with('classname', 'ImageView')
  8431. .with('resource-id', 'com.lge.camera:id/thumbnail')
  8432. .with('content-desc', 'Gallery')
  8433.  
  8434. $ruiObj.click
  8435.  
  8436. waitsecond(2)
  8437. end
  8438.  
  8439. tcase << TestAction.new(:Check_Video_Delete) do
  8440. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  8441. .with('uitreeindex', 3)
  8442. .with('classname', 'Button')
  8443. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  8444. .with('content-desc', 'Delete')
  8445. .with('text', 'Delete')
  8446.  
  8447. $ruiObj.isExist
  8448.  
  8449. waitsecond(2)
  8450. end
  8451.  
  8452. tcase << TestAction.new(:Click_Delete) do
  8453. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  8454. .with('uitreeindex', 4)
  8455. .with('classname', 'Button')
  8456. .with('content-desc', 'Delete')
  8457. .with('text', 'Delete').click
  8458.  
  8459. $ruiObj.click
  8460.  
  8461. waitsecond(2)
  8462. end
  8463.  
  8464. tcase << TestAction.new(:scriptAction_25) do
  8465. $myTestResult = checkLastExistResult
  8466.  
  8467. logStopTest("TimeLapse_Zoom")
  8468.  
  8469.  
  8470. waitsecond(2)
  8471. end
  8472.  
  8473. tcase.run(loopTime)
  8474.  
  8475. end
  8476.  
  8477. def self.TimeLapse_Speed_Change(loopTime)
  8478.  
  8479. tcase = TestCase.new("TimeLapse_Speed_Change")
  8480.  
  8481. tcase << TestAction.new(:scriptAction_28) do
  8482. logStartTest("TimeLapse_Speed_Change")
  8483.  
  8484. waitsecond(2)
  8485. end
  8486.  
  8487. tcase << TestAction.new(:Click_Mode) do
  8488. $ruiObj = RUIObject.new.with('objectid', 516981279).with('selfid', 684862812).with('textdescid', -1430953436).with('uniqueparentid', 0)
  8489. .with('uitreeindex', 11)
  8490. .with('classname', 'ImageButton')
  8491. .with('resource-id', 'com.lge.camera:id/quick_button_mode')
  8492. .with('content-desc', 'Mode')
  8493.  
  8494. $ruiObj.click
  8495.  
  8496. waitsecond(2)
  8497. end
  8498.  
  8499. tcase << TestAction.new(:Click_TimeLapse) do
  8500. $ruiObj = RUIObject.new.with('objectid', 1758658517).with('selfid', 854102717).with('textdescid', 2457976).with('uniqueparentid', 0)
  8501. .with('classname', 'RelativeLayout')
  8502. .with('content-desc', 'Time-lapse')
  8503.  
  8504. $ruiObj.click
  8505.  
  8506. waitsecond(2)
  8507. end
  8508.  
  8509. tcase << TestAction.new(:Click_Speed) do
  8510. $ruiObj = RUIObject.new.with('objectid', -152775856).with('selfid', 880959774).with('textdescid', -441084208).with('uniqueparentid', 0)
  8511. .with('uitreeindex', 10)
  8512. .with('classname', 'ImageView')
  8513. .with('resource-id', 'com.lge.camera:id/time_lapse_parent_item_arrow')
  8514.  
  8515. $ruiObj.click
  8516.  
  8517. waitsecond(2)
  8518. end
  8519.  
  8520. tcase << TestAction.new(:Click_Speed_60) do
  8521. $ruiObj = RUIObject.new.with('objectid', -1291437158).with('selfid', -1486073746).with('textdescid', 130993795).with('uniqueparentid', 0)
  8522. .with('uitreeindex', 10)
  8523. .with('classname', 'ImageButton')
  8524. .with('resource-id', 'com.lge.camera:id/time_lapse_speed60_btn')
  8525. .with('content-desc', '60 times faster')
  8526.  
  8527. $ruiObj.click
  8528.  
  8529. waitsecond(2)
  8530. end
  8531.  
  8532. tcase << TestAction.new(:Click_Recording) do
  8533. $ruiObj = RUIObject.new.with('objectid', -1054310016).with('selfid', 1481655151).with('textdescid', 1619942451).with('uniqueparentid', 0)
  8534. .with('uitreeindex', 10)
  8535. .with('classname', 'ImageButton')
  8536. .with('resource-id', 'com.lge.camera:id/shutter_large_comp')
  8537. .with('content-desc', 'Start recording')
  8538.  
  8539. $ruiObj.click
  8540.  
  8541. waitsecond(2)
  8542. end
  8543.  
  8544. tcase << TestAction.new(:Stop_Recording) do
  8545. $ruiObj = RUIObject.new.with('objectid', -1695967134).with('selfid', 685856113).with('textdescid', -1035373570).with('uniqueparentid', 0)
  8546. .with('uitreeindex', 9)
  8547. .with('classname', 'ImageButton')
  8548. .with('resource-id', 'com.lge.camera:id/shutter_top_comp_type')
  8549.  
  8550. $ruiObj.click
  8551.  
  8552. waitsecond(2)
  8553. end
  8554.  
  8555. tcase << TestAction.new(:Click_Recent) do
  8556. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  8557. .with('uitreeindex', 14)
  8558. .with('classname', 'ImageView')
  8559. .with('resource-id', 'com.lge.camera:id/thumbnail')
  8560. .with('content-desc', 'Gallery')
  8561.  
  8562. $ruiObj.click
  8563.  
  8564. waitsecond(2)
  8565. end
  8566.  
  8567. tcase << TestAction.new(:Check_Video_Delete) do
  8568. $ruiObj = RUIObject.new.with('objectid', 722824296).with('selfid', 700531896).with('textdescid', 309025048).with('uniqueparentid', 0)
  8569. .with('uitreeindex', 3)
  8570. .with('classname', 'Button')
  8571. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item4')
  8572. .with('content-desc', 'Delete')
  8573. .with('text', 'Delete')
  8574.  
  8575. $ruiObj.isExist
  8576.  
  8577. waitsecond(2)
  8578. end
  8579.  
  8580. tcase << TestAction.new(:Click_Delete) do
  8581. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  8582. .with('uitreeindex', 4)
  8583. .with('classname', 'Button')
  8584. .with('content-desc', 'Delete')
  8585. .with('text', 'Delete').click
  8586.  
  8587. $ruiObj.click
  8588.  
  8589. waitsecond(2)
  8590. end
  8591.  
  8592. tcase << TestAction.new(:scriptAction_25) do
  8593. $myTestResult = checkLastExistResult
  8594.  
  8595. logStopTest("TimeLapse_Speed_Change")
  8596.  
  8597.  
  8598. waitsecond(2)
  8599. end
  8600.  
  8601. tcase.run(loopTime)
  8602.  
  8603. end
  8604.  
  8605. def self.exception_handler
  8606. puts "Module Exception Hanlder..."
  8607. end
  8608.  
  8609. def self.run(loop)
  8610. mainLoop loop
  8611. end
  8612.  
  8613. end
  8614.  
  8615. $exceptionPackageNameList = []
  8616. $exceptionPackageNameList_exclude = []
  8617.  
  8618. def exception_handler
  8619. Sanity_Camera_Test_2_5.exception_handler
  8620. end
  8621.  
  8622. $curProjectLogFile = $useLastLogFile
  8623.  
  8624. $curProjectLogFile = "Sanity_Camera_Test_2_5_#{getTimeStamp}.log" if $useLastLogFile.nil?
  8625.  
  8626. $useLastLogFile = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement