Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 189.09 KB | None | 0 0
  1. loadTestDB
  2.  
  3. module Picture_Auto_2_1
  4.  
  5. def self.Photo_Size_16_9_12MP(loopTime)
  6.  
  7. tcase = TestCase.new("Photo_Size_16_9_12MP")
  8.  
  9. tcase << TestAction.new(:Open_Camera_Settings) do
  10. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  11. .with('uitreeindex', 3)
  12. .with('classname', 'ImageButton')
  13. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  14. .with('content-desc', 'Open settings')
  15.  
  16. $ruiObj.click
  17.  
  18. waitsecond(2)
  19. end
  20.  
  21. tcase << TestAction.new(:Photo_Size) do
  22. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  23. .with('uitreeindex', 16)
  24. .with('classname', 'TextView')
  25. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  26. .with('content-desc', 'Photo size')
  27. .with('text', 'Photo size')
  28.  
  29. $ruiObj.click
  30.  
  31. waitsecond(2)
  32. end
  33.  
  34. tcase << TestAction.new(:Size_16_9_12MP) do
  35. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 210818313).with('textdescid', -122535369).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  36. .with('uitreeindex', 18)
  37. .with('classname', 'CheckedTextView')
  38. .with('resource-id', 'android:id/text1')
  39. .with('content-desc', '16:9 (12 MP) 4656x2620')
  40. .with('text', '169 12MP 4656x2620')
  41.  
  42. $ruiObj.click
  43.  
  44. waitsecond(2)
  45. end
  46.  
  47. tcase << TestAction.new(:Exit_Camera_Settings) do
  48. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  49. .with('uitreeindex', 2)
  50. .with('classname', 'ImageButton')
  51. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  52. .with('content-desc', 'Close settings')
  53.  
  54. $ruiObj.click
  55.  
  56. waitsecond(2)
  57. end
  58.  
  59. tcase.run(loopTime)
  60.  
  61. end
  62.  
  63. def self.Photo_Size_16_9_6MP(loopTime)
  64.  
  65. tcase = TestCase.new("Photo_Size_16_9_6MP")
  66.  
  67. tcase << TestAction.new(:Open_Camera_Settings) do
  68. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  69. .with('uitreeindex', 3)
  70. .with('classname', 'ImageButton')
  71. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  72. .with('content-desc', 'Open settings')
  73.  
  74. $ruiObj.click
  75.  
  76. waitsecond(2)
  77. end
  78.  
  79. tcase << TestAction.new(:Photo_Size) do
  80. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  81. .with('uitreeindex', 16)
  82. .with('classname', 'TextView')
  83. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  84. .with('content-desc', 'Photo size')
  85. .with('text', 'Photo size')
  86.  
  87. $ruiObj.click
  88.  
  89. waitsecond(2)
  90. end
  91.  
  92. tcase << TestAction.new(:CheckedTextView_Text1_2) do
  93. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 506453037).with('textdescid', -465902125).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  94. .with('uitreeindex', 19)
  95. .with('classname', 'CheckedTextView')
  96. .with('resource-id', 'android:id/text1')
  97. .with('content-desc', '16:9 (6Point0 MP) 3264x1836')
  98. .with('text', '169 60MP 3264x1836')
  99.  
  100. $ruiObj.click
  101.  
  102. waitsecond(2)
  103. end
  104.  
  105. tcase << TestAction.new(:Exit_Camera_Settings) do
  106. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  107. .with('uitreeindex', 2)
  108. .with('classname', 'ImageButton')
  109. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  110. .with('content-desc', 'Close settings')
  111.  
  112. $ruiObj.click
  113.  
  114. waitsecond(2)
  115. end
  116.  
  117. tcase.run(loopTime)
  118.  
  119. end
  120.  
  121. def self.Photo_Size_18_9_11MP(loopTime)
  122.  
  123. tcase = TestCase.new("Photo_Size_18_9_11MP")
  124.  
  125. tcase << TestAction.new(:Open_Camera_Settings) do
  126. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  127. .with('uitreeindex', 3)
  128. .with('classname', 'ImageButton')
  129. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  130. .with('content-desc', 'Open settings')
  131.  
  132. $ruiObj.click
  133.  
  134. waitsecond(2)
  135. end
  136.  
  137. tcase << TestAction.new(:Photo_Size) do
  138. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  139. .with('uitreeindex', 16)
  140. .with('classname', 'TextView')
  141. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  142. .with('content-desc', 'Photo size')
  143. .with('text', 'Photo size')
  144.  
  145. $ruiObj.click
  146.  
  147. waitsecond(2)
  148. end
  149.  
  150. tcase << TestAction.new(:CheckedTextView_Text1_2) do
  151. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1709844087).with('textdescid', -661563593).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  152. .with('uitreeindex', 20)
  153. .with('classname', 'CheckedTextView')
  154. .with('resource-id', 'android:id/text1')
  155. .with('content-desc', '18:9 (11 MP) 4656x2328')
  156. .with('text', '189 11MP 4656x2328')
  157.  
  158. $ruiObj.click
  159.  
  160. waitsecond(2)
  161. end
  162.  
  163. tcase << TestAction.new(:Exit_Camera_Settings) do
  164. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  165. .with('uitreeindex', 2)
  166. .with('classname', 'ImageButton')
  167. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  168. .with('content-desc', 'Close settings')
  169.  
  170. $ruiObj.click
  171.  
  172. waitsecond(2)
  173. end
  174.  
  175. tcase.run(loopTime)
  176.  
  177. end
  178.  
  179. def self.Photo_Size_18_9_33MP(loopTime)
  180.  
  181. tcase = TestCase.new("Photo_Size_18_9_33MP")
  182.  
  183. tcase << TestAction.new(:Open_Camera_Settings) do
  184. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  185. .with('uitreeindex', 3)
  186. .with('classname', 'ImageButton')
  187. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  188. .with('content-desc', 'Open settings')
  189.  
  190. $ruiObj.click
  191.  
  192. waitsecond(2)
  193. end
  194.  
  195. tcase << TestAction.new(:Photo_Size) do
  196. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  197. .with('uitreeindex', 16)
  198. .with('classname', 'TextView')
  199. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  200. .with('content-desc', 'Photo size')
  201. .with('text', 'Photo size')
  202.  
  203. $ruiObj.click
  204.  
  205. waitsecond(2)
  206. end
  207.  
  208. tcase << TestAction.new(:CheckedTextView_Text1_2) do
  209. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1387509641).with('textdescid', 897718793).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  210. .with('uitreeindex', 21)
  211. .with('classname', 'CheckedTextView')
  212. .with('resource-id', 'android:id/text1')
  213. .with('content-desc', '18:9 (3Point3 MP) 2560x1280')
  214. .with('text', '189 33MP 2560x1280')
  215.  
  216. $ruiObj.click
  217.  
  218. waitsecond(2)
  219. end
  220.  
  221. tcase << TestAction.new(:Exit_Camera_Settings) do
  222. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  223. .with('uitreeindex', 2)
  224. .with('classname', 'ImageButton')
  225. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  226. .with('content-desc', 'Close settings')
  227.  
  228. $ruiObj.click
  229.  
  230. waitsecond(2)
  231. end
  232.  
  233. tcase.run(loopTime)
  234.  
  235. end
  236.  
  237. def self.Photo_Size_1_1_12MP(loopTime)
  238.  
  239. tcase = TestCase.new("Photo_Size_1_1_12MP")
  240.  
  241. tcase << TestAction.new(:Open_Camera_Settings) do
  242. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  243. .with('uitreeindex', 3)
  244. .with('classname', 'ImageButton')
  245. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  246. .with('content-desc', 'Open settings')
  247.  
  248. $ruiObj.click
  249.  
  250. waitsecond(2)
  251. end
  252.  
  253. tcase << TestAction.new(:Photo_Size) do
  254. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  255. .with('uitreeindex', 16)
  256. .with('classname', 'TextView')
  257. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  258. .with('content-desc', 'Photo size')
  259. .with('text', 'Photo size')
  260.  
  261. $ruiObj.click
  262.  
  263. waitsecond(2)
  264. end
  265.  
  266. tcase << TestAction.new(:CheckedTextView_Text1_2) do
  267. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1583081847).with('textdescid', 1000213193).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  268. .with('uitreeindex', 22)
  269. .with('classname', 'CheckedTextView')
  270. .with('resource-id', 'android:id/text1')
  271. .with('content-desc', '1:1 (12 MP) 3492x3492')
  272. .with('text', '11 12MP 3492x3492')
  273.  
  274. $ruiObj.click
  275.  
  276. waitsecond(2)
  277. end
  278.  
  279. tcase << TestAction.new(:Exit_Camera_Settings) do
  280. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  281. .with('uitreeindex', 2)
  282. .with('classname', 'ImageButton')
  283. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  284. .with('content-desc', 'Close settings')
  285.  
  286. $ruiObj.click
  287.  
  288. waitsecond(2)
  289. end
  290.  
  291. tcase.run(loopTime)
  292.  
  293. end
  294.  
  295. def self.Photo_Size_1_1_34MP(loopTime)
  296.  
  297. tcase = TestCase.new("Photo_Size_1_1_34MP")
  298.  
  299. tcase << TestAction.new(:Open_Camera_Settings) do
  300. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  301. .with('uitreeindex', 3)
  302. .with('classname', 'ImageButton')
  303. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  304. .with('content-desc', 'Open settings')
  305.  
  306. $ruiObj.click
  307.  
  308. waitsecond(2)
  309. end
  310.  
  311. tcase << TestAction.new(:Photo_Size) do
  312. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  313. .with('uitreeindex', 16)
  314. .with('classname', 'TextView')
  315. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  316. .with('content-desc', 'Photo size')
  317. .with('text', 'Photo size')
  318.  
  319. $ruiObj.click
  320.  
  321. waitsecond(2)
  322. end
  323.  
  324. tcase << TestAction.new(:Size_1_1_34MP) do
  325. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 799358037).with('textdescid', 553147819).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  326. .with('uitreeindex', 23)
  327. .with('classname', 'CheckedTextView')
  328. .with('resource-id', 'android:id/text1')
  329. .with('content-desc', '1:1 (3Point4 MP) 1836x1836')
  330. .with('text', '11 34MP 1836x1836')
  331.  
  332. $ruiObj.click
  333.  
  334. waitsecond(2)
  335. end
  336.  
  337. tcase << TestAction.new(:Exit_Camera_Settings) do
  338. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  339. .with('uitreeindex', 2)
  340. .with('classname', 'ImageButton')
  341. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  342. .with('content-desc', 'Close settings')
  343.  
  344. $ruiObj.click
  345.  
  346. waitsecond(2)
  347. end
  348.  
  349. tcase.run(loopTime)
  350.  
  351. end
  352.  
  353. def self.Photo_Size_4_3_8MP(loopTime)
  354.  
  355. tcase = TestCase.new("Photo_Size_4_3_8MP")
  356.  
  357. tcase << TestAction.new(:Open_Camera_Settings) do
  358. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  359. .with('uitreeindex', 3)
  360. .with('classname', 'ImageButton')
  361. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  362. .with('content-desc', 'Open settings')
  363.  
  364. $ruiObj.click
  365.  
  366. waitsecond(2)
  367. end
  368.  
  369. tcase << TestAction.new(:Photo_Size) do
  370. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  371. .with('uitreeindex', 16)
  372. .with('classname', 'TextView')
  373. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  374. .with('content-desc', 'Photo size')
  375. .with('text', 'Photo size')
  376.  
  377. $ruiObj.click
  378.  
  379. waitsecond(2)
  380. end
  381.  
  382. tcase << TestAction.new(:Size_4_3_8MP) do
  383. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -2021332261).with('textdescid', 1929999013).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  384. .with('uitreeindex', 17)
  385. .with('classname', 'CheckedTextView')
  386. .with('resource-id', 'android:id/text1')
  387. .with('content-desc', '4:3 (8Point0 MP) 3264x2448')
  388. .with('text', '43 80MP 3264x2448')
  389.  
  390. $ruiObj.click
  391.  
  392. waitsecond(2)
  393. end
  394.  
  395. tcase << TestAction.new(:Exit_Camera_Settings) do
  396. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  397. .with('uitreeindex', 2)
  398. .with('classname', 'ImageButton')
  399. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  400. .with('content-desc', 'Close settings')
  401.  
  402. $ruiObj.click
  403.  
  404. waitsecond(2)
  405. end
  406.  
  407. tcase.run(loopTime)
  408.  
  409. end
  410.  
  411. def self.PictureAuto(loopTime)
  412.  
  413. tcase = TestCase.new("PictureAuto")
  414.  
  415. tcase << TestAction.new(:gotoApp_Camera) do
  416. gotoApp('Camera')
  417.  
  418. waitsecond(2)
  419. end
  420.  
  421. tcase << TestAction.new(:ImageButton_ShutterBottomCompType_4) do
  422. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  423. .with('uitreeindex', 13)
  424. .with('classname', 'ImageButton')
  425. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  426.  
  427. $ruiObj.click
  428.  
  429. waitsecond(2)
  430. end
  431.  
  432. tcase << TestAction.new(:Open_Camera_Settings) do
  433. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  434. .with('uitreeindex', 37)
  435. .with('classname', 'ImageButton')
  436. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  437. .with('content-desc', 'Open settings')
  438.  
  439. $ruiObj.click
  440.  
  441. waitsecond(2)
  442. end
  443.  
  444. tcase << TestAction.new(:Open_Photo_Size) do
  445. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  446. .with('uitreeindex', 51)
  447. .with('classname', 'TextView')
  448. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  449. .with('content-desc', 'Photo size')
  450. .with('text', 'Photo size')
  451.  
  452. $ruiObj.click
  453.  
  454. waitsecond(2)
  455. end
  456.  
  457. tcase << TestAction.new(:Choose_Size) do
  458. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  459. .with('uitreeindex', 51)
  460. .with('classname', 'CheckedTextView')
  461. .with('resource-id', 'android:id/text1')
  462. .with('content-desc', '4:3 (16 MP) 4656x3492')
  463. .with('text', '43 16MP 4656x3492')
  464.  
  465. $ruiObj.click
  466.  
  467. waitsecond(2)
  468. end
  469.  
  470. tcase << TestAction.new(:CameraRoll_Off) do
  471. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  472. .with('uitreeindex', 34)
  473. .with('classname', 'TextView')
  474. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  475. .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
  476. .with('text', 'Show your recent photos and videos on the camera preview')
  477.  
  478. $ruiObj.click
  479.  
  480. waitsecond(2)
  481. end
  482.  
  483. tcase << TestAction.new(:HDR) do
  484. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  485. .with('uitreeindex', 38)
  486. .with('classname', 'TextView')
  487. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  488. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  489.  
  490. $ruiObj.click
  491.  
  492. waitsecond(2)
  493. end
  494.  
  495. tcase << TestAction.new(:HDR_Auto) do
  496. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  497. .with('uitreeindex', 27)
  498. .with('classname', 'CheckedTextView')
  499. .with('resource-id', 'android:id/text1')
  500. .with('content-desc', 'Auto')
  501. .with('text', 'Auto')
  502.  
  503. $ruiObj.click
  504.  
  505. waitsecond(2)
  506. end
  507.  
  508. tcase << TestAction.new(:Timer) do
  509. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  510. .with('uitreeindex', 43)
  511. .with('classname', 'TextView')
  512. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  513. .with('content-desc', 'Timer')
  514. .with('text', 'Timer')
  515.  
  516. $ruiObj.click
  517.  
  518. waitsecond(2)
  519. end
  520.  
  521. tcase << TestAction.new(:Timer_Off) do
  522. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  523. .with('uitreeindex', 27)
  524. .with('classname', 'CheckedTextView')
  525. .with('resource-id', 'android:id/text1')
  526. .with('content-desc', 'Off')
  527. .with('text', 'Off')
  528.  
  529. $ruiObj.click
  530.  
  531. waitsecond(2)
  532. end
  533.  
  534. tcase << TestAction.new(:Swipe_Down_1) do
  535. swipe_vertical 500
  536.  
  537. waitsecond(2)
  538. end
  539.  
  540. tcase << TestAction.new(:CheeseShutter_Off) do
  541. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1656152154).with('textdescid', 268940314).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  542. .with('uitreeindex', 30)
  543. .with('classname', 'TextView')
  544. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  545. .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". On switch')
  546. .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
  547.  
  548. $ruiObj.click
  549.  
  550. waitsecond(2)
  551. end
  552.  
  553. tcase << TestAction.new(:TrackingFocus_Off) do
  554. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  555. .with('uitreeindex', 33)
  556. .with('classname', 'TextView')
  557. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  558. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) On switch')
  559. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  560.  
  561. $ruiObj.click
  562.  
  563. waitsecond(2)
  564. end
  565.  
  566. tcase << TestAction.new(:SteadyRecording_Off) do
  567. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1883243620).with('textdescid', -1717296872).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  568. .with('uitreeindex', 36)
  569. .with('classname', 'TextView')
  570. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  571. .with('content-desc', 'Reduce motion blur in videos On switch')
  572. .with('text', 'Reduce motion blur in videos')
  573.  
  574. $ruiObj.click
  575.  
  576. waitsecond(2)
  577. end
  578.  
  579. tcase << TestAction.new(:TagLocations_Off) do
  580. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  581. .with('uitreeindex', 38)
  582. .with('classname', 'TextView')
  583. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  584. .with('content-desc', 'Tag locations On switch')
  585. .with('text', 'Tag locations')
  586.  
  587. $ruiObj.click
  588.  
  589. waitsecond(2)
  590. end
  591.  
  592. tcase << TestAction.new(:Grid_Off) do
  593. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  594. .with('uitreeindex', 40)
  595. .with('classname', 'TextView')
  596. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  597. .with('content-desc', 'Grid On switch')
  598. .with('text', 'Grid')
  599.  
  600. $ruiObj.click
  601.  
  602. waitsecond(2)
  603. end
  604.  
  605. tcase << TestAction.new(:Shutter_Button_Picture) do
  606. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  607. .with('uitreeindex', 45)
  608. .with('classname', 'ImageButton')
  609. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  610.  
  611. $ruiObj.click
  612.  
  613. waitsecond(2)
  614. end
  615.  
  616. tcase << TestAction.new(:Volume_Key_Down_Picture) do
  617. pressVolumeKeyDown
  618.  
  619. waitsecond(2)
  620. end
  621.  
  622. tcase << TestAction.new(:Zoom_In) do
  623. zoomIn
  624. zoomIn
  625. zoomIn
  626. zoomIn
  627. zoomIn
  628. zoomIn
  629. zoomIn
  630. zoomIn
  631. zoomIn
  632. zoomIn
  633.  
  634. waitsecond(2)
  635. end
  636.  
  637. tcase << TestAction.new(:Zoom_Out) do
  638. zoomOut
  639. zoomOut
  640. zoomOut
  641. zoomOut
  642. zoomOut
  643. zoomOut
  644. zoomOut
  645. zoomOut
  646. zoomOut
  647. zoomOut
  648.  
  649. waitsecond(2)
  650. end
  651.  
  652. tcase << TestAction.new(:Wide_View) do
  653. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
  654. .with('uitreeindex', 49)
  655. .with('classname', 'ImageButton')
  656. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  657. .with('content-desc', 'Wide angle lens')
  658.  
  659. $ruiObj.click
  660.  
  661. waitsecond(2)
  662. end
  663.  
  664. tcase << TestAction.new(:Normal_View) do
  665. $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
  666. .with('uitreeindex', 47)
  667. .with('classname', 'ImageButton')
  668. .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
  669. .with('content-desc', 'Normal angle lens')
  670.  
  671. $ruiObj.click
  672.  
  673. waitsecond(2)
  674. end
  675.  
  676. tcase << TestAction.new(:Toggle_Flash_1) do
  677. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  678. .with('uitreeindex', 40)
  679. .with('classname', 'ImageButton')
  680. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  681. .with('content-desc', 'Switch to flash on')
  682.  
  683. $ruiObj.click
  684.  
  685. waitsecond(2)
  686. end
  687.  
  688. tcase << TestAction.new(:Picture_Flash_1) do
  689. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  690. .with('uitreeindex', 40)
  691. .with('classname', 'ImageButton')
  692. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  693.  
  694. $ruiObj.click
  695.  
  696. waitsecond(2)
  697. end
  698.  
  699. tcase << TestAction.new(:Toggle_Flash_2) do
  700. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  701. .with('uitreeindex', 34)
  702. .with('classname', 'ImageButton')
  703. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  704. .with('content-desc', 'Switch to flash on')
  705.  
  706. $ruiObj.click
  707.  
  708. waitsecond(2)
  709. end
  710.  
  711. tcase << TestAction.new(:Picture_Flash_2) do
  712. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  713. .with('uitreeindex', 38)
  714. .with('classname', 'ImageButton')
  715. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  716.  
  717. $ruiObj.click
  718.  
  719. waitsecond(2)
  720. end
  721.  
  722. tcase << TestAction.new(:Toggle_Flash_3) do
  723. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  724. .with('uitreeindex', 33)
  725. .with('classname', 'ImageButton')
  726. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  727. .with('content-desc', 'Switch to flash on')
  728.  
  729. $ruiObj.click
  730.  
  731. waitsecond(2)
  732. end
  733.  
  734. tcase << TestAction.new(:Film_Nostalgia) do
  735. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  736. .with('uitreeindex', 31)
  737. .with('classname', 'ImageButton')
  738. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  739. .with('content-desc', 'Filter')
  740.  
  741. $ruiObj.click
  742.  
  743. waitsecond(2)
  744. end
  745.  
  746. tcase << TestAction.new(:Nostalgia) do
  747. $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
  748. .with('uitreeindex', 30)
  749. .with('classname', 'android.view.View')
  750. .with('content-desc', 'Nostalgia')
  751.  
  752. $ruiObj.click
  753.  
  754. waitsecond(2)
  755. end
  756.  
  757. tcase << TestAction.new(:Picture_Nostalgia) do
  758. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  759. .with('uitreeindex', 36)
  760. .with('classname', 'ImageButton')
  761. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  762.  
  763. $ruiObj.click
  764.  
  765. waitsecond(2)
  766. end
  767.  
  768. tcase << TestAction.new(:Film_Vintage) do
  769. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  770. .with('uitreeindex', 30)
  771. .with('classname', 'ImageButton')
  772. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  773. .with('content-desc', 'Filter')
  774.  
  775. $ruiObj.click
  776.  
  777. waitsecond(2)
  778. end
  779.  
  780. tcase << TestAction.new(:Vintage) do
  781. $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', -1080487287).with('textdescid', 1015726315).with('uniqueparentid', 0)
  782. .with('uitreeindex', 31)
  783. .with('classname', 'android.view.View')
  784. .with('content-desc', 'Vintage')
  785.  
  786. $ruiObj.click
  787.  
  788. waitsecond(2)
  789. end
  790.  
  791. tcase << TestAction.new(:Picture_Vintage) do
  792. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  793. .with('uitreeindex', 62)
  794. .with('classname', 'ImageButton')
  795. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  796.  
  797. $ruiObj.click
  798.  
  799. waitsecond(2)
  800. end
  801.  
  802. tcase << TestAction.new(:Film_Urban) do
  803. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  804. .with('uitreeindex', 30)
  805. .with('classname', 'ImageButton')
  806. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  807. .with('content-desc', 'Filter')
  808.  
  809. $ruiObj.click
  810.  
  811. waitsecond(2)
  812. end
  813.  
  814. tcase << TestAction.new(:Urban) do
  815. $ruiObj = RUIObject.new.with('objectid', -1312790971).with('selfid', 1940191773).with('textdescid', -2128688937).with('uniqueparentid', 0)
  816. .with('uitreeindex', 33)
  817. .with('classname', 'android.view.View')
  818. .with('content-desc', 'Urban')
  819.  
  820. $ruiObj.click
  821.  
  822. waitsecond(2)
  823. end
  824.  
  825. tcase << TestAction.new(:Picture_Urban) do
  826. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  827. .with('uitreeindex', 36)
  828. .with('classname', 'ImageButton')
  829. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  830.  
  831. $ruiObj.click
  832.  
  833. waitsecond(2)
  834. end
  835.  
  836. tcase << TestAction.new(:Film_BW) do
  837. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  838. .with('uitreeindex', 30)
  839. .with('classname', 'ImageButton')
  840. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  841. .with('content-desc', 'Filter')
  842.  
  843. $ruiObj.click
  844.  
  845. waitsecond(2)
  846. end
  847.  
  848. tcase << TestAction.new(:BW) do
  849. $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 854397148).with('textdescid', -581214946).with('uniqueparentid', 0)
  850. .with('uitreeindex', 37)
  851. .with('classname', 'android.view.View')
  852. .with('content-desc', 'BW')
  853.  
  854. $ruiObj.click
  855.  
  856. waitsecond(2)
  857. end
  858.  
  859. tcase << TestAction.new(:Picture_BW) do
  860. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  861. .with('uitreeindex', 36)
  862. .with('classname', 'ImageButton')
  863. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  864.  
  865. $ruiObj.click
  866.  
  867. waitsecond(2)
  868. end
  869.  
  870. tcase << TestAction.new(:Film_Vivid) do
  871. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  872. .with('uitreeindex', 30)
  873. .with('classname', 'ImageButton')
  874. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  875. .with('content-desc', 'Filter')
  876.  
  877. $ruiObj.click
  878.  
  879. waitsecond(2)
  880. end
  881.  
  882. tcase << TestAction.new(:Vivid) do
  883. $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 1961112433).with('textdescid', -794062283).with('uniqueparentid', 0)
  884. .with('uitreeindex', 41)
  885. .with('classname', 'android.view.View')
  886. .with('content-desc', 'Vivid')
  887.  
  888. $ruiObj.click
  889.  
  890. waitsecond(2)
  891. end
  892.  
  893. tcase << TestAction.new(:Picture_Vivid) do
  894. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  895. .with('uitreeindex', 36)
  896. .with('classname', 'ImageButton')
  897. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  898.  
  899. $ruiObj.click
  900.  
  901. waitsecond(2)
  902. end
  903.  
  904. tcase << TestAction.new(:Film_1839) do
  905. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  906. .with('uitreeindex', 5)
  907. .with('classname', 'ImageButton')
  908. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  909. .with('content-desc', 'Filter')
  910.  
  911. $ruiObj.click
  912.  
  913. waitsecond(2)
  914. end
  915.  
  916. tcase << TestAction.new(:Film1839) do
  917. $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 720302372).with('textdescid', 1325839409).with('uniqueparentid', 0)
  918. .with('uitreeindex', 28)
  919. .with('classname', 'android.view.View')
  920. .with('content-desc', '1839')
  921.  
  922. $ruiObj.click
  923.  
  924. waitsecond(2)
  925. end
  926.  
  927. tcase << TestAction.new(:Picture_1839) do
  928. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  929. .with('uitreeindex', 11)
  930. .with('classname', 'ImageButton')
  931. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  932.  
  933. $ruiObj.click
  934.  
  935. waitsecond(2)
  936. end
  937.  
  938. tcase << TestAction.new(:Film_Jade) do
  939. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  940. .with('uitreeindex', 4)
  941. .with('classname', 'ImageButton')
  942. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  943. .with('content-desc', 'Filter')
  944.  
  945. $ruiObj.click
  946.  
  947. waitsecond(2)
  948. end
  949.  
  950. tcase << TestAction.new(:Jade) do
  951. $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 744660281).with('textdescid', 2080934588).with('uniqueparentid', 0)
  952. .with('uitreeindex', 30)
  953. .with('classname', 'android.view.View')
  954. .with('content-desc', 'Jade')
  955.  
  956. $ruiObj.click
  957.  
  958. waitsecond(2)
  959. end
  960.  
  961. tcase << TestAction.new(:Picture_Jade) do
  962. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  963. .with('uitreeindex', 11)
  964. .with('classname', 'ImageButton')
  965. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  966.  
  967. $ruiObj.click
  968.  
  969. waitsecond(2)
  970. end
  971.  
  972. tcase << TestAction.new(:Film_Violet) do
  973. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  974. .with('uitreeindex', 4)
  975. .with('classname', 'ImageButton')
  976. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  977. .with('content-desc', 'Filter')
  978.  
  979. $ruiObj.click
  980.  
  981. waitsecond(2)
  982. end
  983.  
  984. tcase << TestAction.new(:Violet) do
  985. $ruiObj = RUIObject.new.with('objectid', -1164565508).with('selfid', 658571602).with('textdescid', 890851459).with('uniqueparentid', 0)
  986. .with('uitreeindex', 32)
  987. .with('classname', 'android.view.View')
  988. .with('content-desc', 'Violet')
  989.  
  990. $ruiObj.click
  991.  
  992. waitsecond(2)
  993. end
  994.  
  995. tcase << TestAction.new(:Picture_Violet) do
  996. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  997. .with('uitreeindex', 11)
  998. .with('classname', 'ImageButton')
  999. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1000.  
  1001. $ruiObj.click
  1002.  
  1003. waitsecond(2)
  1004. end
  1005.  
  1006. tcase << TestAction.new(:Film_None) do
  1007. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  1008. .with('uitreeindex', 4)
  1009. .with('classname', 'ImageButton')
  1010. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  1011. .with('content-desc', 'Filter')
  1012.  
  1013. $ruiObj.click
  1014.  
  1015. waitsecond(2)
  1016. end
  1017.  
  1018. tcase << TestAction.new(:None) do
  1019. $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 748781049).with('textdescid', 166290721).with('uniqueparentid', 0)
  1020. .with('uitreeindex', 22)
  1021. .with('classname', 'android.view.View')
  1022. .with('content-desc', 'None')
  1023.  
  1024. $ruiObj.click
  1025.  
  1026. waitsecond(2)
  1027. end
  1028.  
  1029. tcase << TestAction.new(:Open_Camera_Settings_CameraRoll) do
  1030. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1031. .with('uitreeindex', 2)
  1032. .with('classname', 'ImageButton')
  1033. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1034. .with('content-desc', 'Open settings')
  1035.  
  1036. $ruiObj.click
  1037.  
  1038. waitsecond(2)
  1039. end
  1040.  
  1041. tcase << TestAction.new(:CameraRoll_On) do
  1042. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1043. .with('uitreeindex', 24)
  1044. .with('classname', 'TextView')
  1045. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1046. .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
  1047. .with('text', 'Show your recent photos and videos on the camera preview')
  1048.  
  1049. $ruiObj.click
  1050.  
  1051. waitsecond(2)
  1052. end
  1053.  
  1054. tcase << TestAction.new(:Exit_Settings_CameraRoll) do
  1055. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  1056. .with('uitreeindex', 2)
  1057. .with('classname', 'ImageButton')
  1058. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1059. .with('content-desc', 'Close settings')
  1060.  
  1061. $ruiObj.click
  1062.  
  1063. waitsecond(2)
  1064. end
  1065.  
  1066. tcase << TestAction.new(:Check_CameraRoll) do
  1067. $ruiObj = RUIObject.new.with('objectid', -2121216327).with('selfid', -1434280311).with('textdescid', -1333196665).with('uniqueparentid', 0)
  1068. .with('classname', 'ListView')
  1069. .with('resource-id', 'com.lge.camera:id/thumbnail_listview')
  1070.  
  1071. $ruiObj.click
  1072.  
  1073. waitsecond(2)
  1074. end
  1075.  
  1076. tcase << TestAction.new(:Exit_CameraRoll) do
  1077. $ruiObj = RUIObject.new.with('objectid', -1549616416).with('selfid', -767978611).with('textdescid', -793468608).with('uniqueparentid', 0)
  1078. .with('uitreeindex', 33)
  1079. .with('classname', 'ImageButton')
  1080. .with('resource-id', 'com.lge.camera:id/back_button')
  1081.  
  1082. $ruiObj.click
  1083.  
  1084. waitsecond(2)
  1085. end
  1086.  
  1087. tcase << TestAction.new(:Open_Camera_Settings_HDR_On) do
  1088. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', -1333196665)
  1089. .with('uitreeindex', 17)
  1090. .with('classname', 'ImageButton')
  1091. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1092. .with('content-desc', 'Open settings')
  1093.  
  1094. $ruiObj.click
  1095.  
  1096. waitsecond(2)
  1097. end
  1098.  
  1099. tcase << TestAction.new(:Post_CameraRoll_Off) do
  1100. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1101. .with('uitreeindex', 34)
  1102. .with('classname', 'TextView')
  1103. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1104. .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
  1105. .with('text', 'Show your recent photos and videos on the camera preview')
  1106.  
  1107. $ruiObj.click
  1108.  
  1109. waitsecond(2)
  1110. end
  1111.  
  1112. tcase << TestAction.new(:HDR_1) do
  1113. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1114. .with('uitreeindex', 38)
  1115. .with('classname', 'TextView')
  1116. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1117. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1118.  
  1119. $ruiObj.click
  1120.  
  1121. waitsecond(2)
  1122. end
  1123.  
  1124. tcase << TestAction.new(:HDR_On) do
  1125. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1126. .with('uitreeindex', 28)
  1127. .with('classname', 'CheckedTextView')
  1128. .with('resource-id', 'android:id/text1')
  1129. .with('content-desc', 'On')
  1130. .with('text', 'On')
  1131.  
  1132. $ruiObj.click
  1133.  
  1134. waitsecond(2)
  1135. end
  1136.  
  1137. tcase << TestAction.new(:Picture_HDR_On) do
  1138. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1139. .with('uitreeindex', 10)
  1140. .with('classname', 'ImageButton')
  1141. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1142.  
  1143. $ruiObj.click
  1144.  
  1145. waitsecond(2)
  1146. end
  1147.  
  1148. tcase << TestAction.new(:Open_Camera_Settings_HDR_Off) do
  1149. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1150. .with('uitreeindex', 2)
  1151. .with('classname', 'ImageButton')
  1152. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1153. .with('content-desc', 'Open settings')
  1154.  
  1155. $ruiObj.click
  1156.  
  1157. waitsecond(2)
  1158. end
  1159.  
  1160. tcase << TestAction.new(:HDR_2) do
  1161. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1162. .with('uitreeindex', 27)
  1163. .with('classname', 'TextView')
  1164. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1165. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1166.  
  1167. $ruiObj.click
  1168.  
  1169. waitsecond(2)
  1170. end
  1171.  
  1172. tcase << TestAction.new(:HDR_Off) do
  1173. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1174. .with('uitreeindex', 18)
  1175. .with('classname', 'CheckedTextView')
  1176. .with('resource-id', 'android:id/text1')
  1177. .with('content-desc', 'Off')
  1178. .with('text', 'Off')
  1179.  
  1180. $ruiObj.click
  1181.  
  1182. waitsecond(2)
  1183. end
  1184.  
  1185. tcase << TestAction.new(:Picture_HDR_Off) do
  1186. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1187. .with('uitreeindex', 11)
  1188. .with('classname', 'ImageButton')
  1189. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1190.  
  1191. $ruiObj.click
  1192.  
  1193. waitsecond(2)
  1194. end
  1195.  
  1196. tcase << TestAction.new(:Open_Camera_Settings_Timer_3sec) do
  1197. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1198. .with('uitreeindex', 2)
  1199. .with('classname', 'ImageButton')
  1200. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1201. .with('content-desc', 'Open settings')
  1202.  
  1203. $ruiObj.click
  1204.  
  1205. waitsecond(2)
  1206. end
  1207.  
  1208. tcase << TestAction.new(:Post_HDR) do
  1209. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1210. .with('uitreeindex', 27)
  1211. .with('classname', 'TextView')
  1212. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1213. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1214.  
  1215. $ruiObj.click
  1216.  
  1217. waitsecond(2)
  1218. end
  1219.  
  1220. tcase << TestAction.new(:Post_HDR_Auto) do
  1221. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1222. .with('uitreeindex', 16)
  1223. .with('classname', 'CheckedTextView')
  1224. .with('resource-id', 'android:id/text1')
  1225. .with('content-desc', 'Auto')
  1226. .with('text', 'Auto')
  1227.  
  1228. $ruiObj.click
  1229.  
  1230. waitsecond(2)
  1231. end
  1232.  
  1233. tcase << TestAction.new(:Timer_1) do
  1234. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1235. .with('uitreeindex', 32)
  1236. .with('classname', 'TextView')
  1237. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1238. .with('content-desc', 'Timer')
  1239. .with('text', 'Timer')
  1240.  
  1241. $ruiObj.click
  1242.  
  1243. waitsecond(2)
  1244. end
  1245.  
  1246. tcase << TestAction.new(:Timer_3sec) do
  1247. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1248. .with('uitreeindex', 17)
  1249. .with('classname', 'CheckedTextView')
  1250. .with('resource-id', 'android:id/text1')
  1251. .with('content-desc', '3 sec')
  1252. .with('text', '3 sec')
  1253.  
  1254. $ruiObj.click
  1255.  
  1256. waitsecond(2)
  1257. end
  1258.  
  1259. tcase << TestAction.new(:Picture_Timer_3sec) do
  1260. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1261. .with('uitreeindex', 9)
  1262. .with('classname', 'ImageButton')
  1263. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1264. .with('content-desc', 'Shutter')
  1265.  
  1266. $ruiObj.click
  1267.  
  1268. waitsecond(5)
  1269. end
  1270.  
  1271. tcase << TestAction.new(:Open_Camera_Settings_Timer_10sec) do
  1272. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1273. .with('uitreeindex', 2)
  1274. .with('classname', 'ImageButton')
  1275. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1276. .with('content-desc', 'Open settings')
  1277.  
  1278. $ruiObj.click
  1279.  
  1280. waitsecond(2)
  1281. end
  1282.  
  1283. tcase << TestAction.new(:Timer_2) do
  1284. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1285. .with('uitreeindex', 30)
  1286. .with('classname', 'TextView')
  1287. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1288. .with('content-desc', 'Timer')
  1289. .with('text', 'Timer')
  1290.  
  1291. $ruiObj.click
  1292.  
  1293. waitsecond(2)
  1294. end
  1295.  
  1296. tcase << TestAction.new(:Timer_10sec) do
  1297. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1298. .with('uitreeindex', 18)
  1299. .with('classname', 'CheckedTextView')
  1300. .with('resource-id', 'android:id/text1')
  1301. .with('content-desc', '10 sec')
  1302. .with('text', '10 sec')
  1303.  
  1304. $ruiObj.click
  1305.  
  1306. waitsecond(2)
  1307. end
  1308.  
  1309. tcase << TestAction.new(:Picture_Timer_10sec) do
  1310. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1311. .with('uitreeindex', 9)
  1312. .with('classname', 'ImageButton')
  1313. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1314. .with('content-desc', 'Shutter')
  1315.  
  1316. $ruiObj.click
  1317.  
  1318. waitsecond(12)
  1319. end
  1320.  
  1321. tcase << TestAction.new(:Open_Camera_Settings_TrackingFocus) do
  1322. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1323. .with('uitreeindex', 2)
  1324. .with('classname', 'ImageButton')
  1325. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1326. .with('content-desc', 'Open settings')
  1327.  
  1328. $ruiObj.click
  1329.  
  1330. waitsecond(2)
  1331. end
  1332.  
  1333. tcase << TestAction.new(:Post_Timer) do
  1334. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1335. .with('uitreeindex', 30)
  1336. .with('classname', 'TextView')
  1337. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1338. .with('content-desc', 'Timer')
  1339. .with('text', 'Timer')
  1340.  
  1341. $ruiObj.click
  1342.  
  1343. waitsecond(2)
  1344. end
  1345.  
  1346. tcase << TestAction.new(:Post_Timer_Off) do
  1347. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1348. .with('uitreeindex', 16)
  1349. .with('classname', 'CheckedTextView')
  1350. .with('resource-id', 'android:id/text1')
  1351. .with('content-desc', 'Off')
  1352. .with('text', 'Off')
  1353.  
  1354. $ruiObj.click
  1355.  
  1356. waitsecond(2)
  1357. end
  1358.  
  1359. tcase << TestAction.new(:TrackingFocus_Test) do
  1360. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1361. .with('uitreeindex', 37)
  1362. .with('classname', 'TextView')
  1363. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1364. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) Off switch')
  1365. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  1366.  
  1367. $ruiObj.click
  1368.  
  1369. waitsecond(2)
  1370. end
  1371.  
  1372. tcase << TestAction.new(:Picture_TrackingFocus_On) do
  1373. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1374. .with('uitreeindex', 9)
  1375. .with('classname', 'ImageButton')
  1376. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1377. .with('content-desc', 'Shutter')
  1378.  
  1379. $ruiObj.click
  1380.  
  1381. waitsecond(2)
  1382. end
  1383.  
  1384. tcase << TestAction.new(:Open_Camera_Settings_TagLocations) do
  1385. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1386. .with('uitreeindex', 2)
  1387. .with('classname', 'ImageButton')
  1388. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1389. .with('content-desc', 'Open settings')
  1390.  
  1391. $ruiObj.click
  1392.  
  1393. waitsecond(2)
  1394. end
  1395.  
  1396. tcase << TestAction.new(:Swipe_Down_2) do
  1397. swipe_vertical 500
  1398.  
  1399. waitsecond(2)
  1400. end
  1401.  
  1402. tcase << TestAction.new(:Post_TrackingFocus_Off) do
  1403. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1404. .with('uitreeindex', 22)
  1405. .with('classname', 'TextView')
  1406. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1407. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) On switch')
  1408. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  1409.  
  1410. $ruiObj.click
  1411.  
  1412. waitsecond(2)
  1413. end
  1414.  
  1415. tcase << TestAction.new(:TagLocations_Test) do
  1416. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1417. .with('uitreeindex', 27)
  1418. .with('classname', 'TextView')
  1419. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1420. .with('content-desc', 'Tag locations Off switch')
  1421. .with('text', 'Tag locations')
  1422.  
  1423. $ruiObj.click
  1424.  
  1425. waitsecond(2)
  1426. end
  1427.  
  1428. tcase << TestAction.new(:Picture_TagLocations_On) do
  1429. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1430. .with('uitreeindex', 9)
  1431. .with('classname', 'ImageButton')
  1432. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1433. .with('content-desc', 'Shutter')
  1434.  
  1435. $ruiObj.click
  1436.  
  1437. waitsecond(2)
  1438. end
  1439.  
  1440. tcase << TestAction.new(:Open_Camera_Settings_Grid) do
  1441. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1442. .with('uitreeindex', 2)
  1443. .with('classname', 'ImageButton')
  1444. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1445. .with('content-desc', 'Open settings')
  1446.  
  1447. $ruiObj.click
  1448.  
  1449. waitsecond(2)
  1450. end
  1451.  
  1452. tcase << TestAction.new(:Swipe_Down_3) do
  1453. swipe_vertical 500
  1454.  
  1455. waitsecond(2)
  1456. end
  1457.  
  1458. tcase << TestAction.new(:Post_TagLocations_Off) do
  1459. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
  1460. .with('uitreeindex', 27)
  1461. .with('classname', 'TextView')
  1462. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1463. .with('content-desc', 'Tag locations On switch')
  1464. .with('text', 'Tag locations')
  1465.  
  1466. $ruiObj.click
  1467.  
  1468. waitsecond(2)
  1469. end
  1470.  
  1471. tcase << TestAction.new(:Grid_Test) do
  1472. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
  1473. .with('uitreeindex', 29)
  1474. .with('classname', 'TextView')
  1475. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1476. .with('content-desc', 'Grid Off switch')
  1477. .with('text', 'Grid')
  1478.  
  1479. $ruiObj.click
  1480.  
  1481. waitsecond(2)
  1482. end
  1483.  
  1484. tcase << TestAction.new(:Picture_Grid_On) do
  1485. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  1486. .with('uitreeindex', 9)
  1487. .with('classname', 'ImageButton')
  1488. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  1489. .with('content-desc', 'Shutter')
  1490.  
  1491. $ruiObj.click
  1492.  
  1493. waitsecond(2)
  1494. end
  1495.  
  1496. tcase << TestAction.new(:Open_Camera_Settings_SimpleView) do
  1497. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1498. .with('uitreeindex', 3)
  1499. .with('classname', 'ImageButton')
  1500. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1501. .with('content-desc', 'Open settings')
  1502.  
  1503. $ruiObj.click
  1504.  
  1505. waitsecond(2)
  1506. end
  1507.  
  1508. tcase << TestAction.new(:Swipe_Down_4) do
  1509. swipe_vertical 500
  1510.  
  1511. waitsecond(2)
  1512. end
  1513.  
  1514. tcase << TestAction.new(:Post_Grid_Off) do
  1515. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1516. .with('uitreeindex', 29)
  1517. .with('classname', 'TextView')
  1518. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1519. .with('content-desc', 'Grid On switch')
  1520. .with('text', 'Grid')
  1521.  
  1522. $ruiObj.click
  1523.  
  1524. waitsecond(2)
  1525. end
  1526.  
  1527. tcase << TestAction.new(:SimpleView_Test) do
  1528. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1529. .with('uitreeindex', 35)
  1530. .with('classname', 'TextView')
  1531. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1532. .with('content-desc', 'Simple view')
  1533. .with('text', 'Simple view')
  1534.  
  1535. $ruiObj.click
  1536.  
  1537. waitsecond(2)
  1538. end
  1539.  
  1540. tcase << TestAction.new(:SimpleView_ClickCenter) do
  1541. click(getDisplayWidth/2, getDisplayHeight/2)
  1542.  
  1543. waitsecond(2)
  1544. end
  1545.  
  1546. tcase << TestAction.new(:SimpleView_VolumeKey) do
  1547. pressVolumeKeyDown
  1548.  
  1549. waitsecond(2)
  1550. end
  1551.  
  1552. tcase << TestAction.new(:SimpleView_Zoom_In) do
  1553. zoomIn
  1554. zoomIn
  1555. zoomIn
  1556. zoomIn
  1557. zoomIn
  1558. zoomIn
  1559. zoomIn
  1560. zoomIn
  1561. zoomIn
  1562. zoomIn
  1563.  
  1564. waitsecond(2)
  1565. end
  1566.  
  1567. tcase << TestAction.new(:SimpleView_Zoom_Out) do
  1568. zoomOut
  1569. zoomOut
  1570. zoomOut
  1571. zoomOut
  1572. zoomOut
  1573. zoomOut
  1574. zoomOut
  1575. zoomOut
  1576. zoomOut
  1577. zoomOut
  1578.  
  1579. waitsecond(2)
  1580. end
  1581.  
  1582. tcase << TestAction.new(:SimpleView_Exit) do
  1583. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  1584. .with('uitreeindex', 3)
  1585. .with('classname', 'ImageButton')
  1586. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  1587. .with('content-desc', 'View')
  1588.  
  1589. $ruiObj.click
  1590.  
  1591. waitsecond(2)
  1592. end
  1593.  
  1594. tcase.run(loopTime)
  1595.  
  1596. end
  1597.  
  1598. def self.PictureAutoTest(loopTime)
  1599.  
  1600. tcase = TestCase.new("PictureAutoTest")
  1601.  
  1602. tcase << TestAction.new(:Shutter_Button_Picture) do
  1603. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1604. .with('uitreeindex', 45)
  1605. .with('classname', 'ImageButton')
  1606. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1607.  
  1608. $ruiObj.click
  1609.  
  1610. waitsecond(2)
  1611. end
  1612.  
  1613. tcase << TestAction.new(:Volume_Key_Down_Picture) do
  1614. pressVolumeKeyDown
  1615.  
  1616. waitsecond(2)
  1617. end
  1618.  
  1619. tcase << TestAction.new(:Zoom_In) do
  1620. zoomIn
  1621. zoomIn
  1622. zoomIn
  1623. zoomIn
  1624. zoomIn
  1625. zoomIn
  1626. zoomIn
  1627. zoomIn
  1628. zoomIn
  1629. zoomIn
  1630.  
  1631. waitsecond(2)
  1632. end
  1633.  
  1634. tcase << TestAction.new(:Zoom_Out) do
  1635. zoomOut
  1636. zoomOut
  1637. zoomOut
  1638. zoomOut
  1639. zoomOut
  1640. zoomOut
  1641. zoomOut
  1642. zoomOut
  1643. zoomOut
  1644. zoomOut
  1645.  
  1646. waitsecond(2)
  1647. end
  1648.  
  1649. tcase << TestAction.new(:Wide_View) do
  1650. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
  1651. .with('uitreeindex', 49)
  1652. .with('classname', 'ImageButton')
  1653. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  1654. .with('content-desc', 'Wide angle lens')
  1655.  
  1656. $ruiObj.click
  1657.  
  1658. waitsecond(2)
  1659. end
  1660.  
  1661. tcase << TestAction.new(:Normal_View) do
  1662. $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
  1663. .with('uitreeindex', 47)
  1664. .with('classname', 'ImageButton')
  1665. .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
  1666. .with('content-desc', 'Normal angle lens')
  1667.  
  1668. $ruiObj.click
  1669.  
  1670. waitsecond(2)
  1671. end
  1672.  
  1673. tcase << TestAction.new(:Toggle_Flash_1) do
  1674. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  1675. .with('uitreeindex', 40)
  1676. .with('classname', 'ImageButton')
  1677. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  1678. .with('content-desc', 'Switch to flash on')
  1679.  
  1680. $ruiObj.click
  1681.  
  1682. waitsecond(2)
  1683. end
  1684.  
  1685. tcase << TestAction.new(:Picture_Flash_1) do
  1686. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1687. .with('uitreeindex', 40)
  1688. .with('classname', 'ImageButton')
  1689. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1690.  
  1691. $ruiObj.click
  1692.  
  1693. waitsecond(2)
  1694. end
  1695.  
  1696. tcase << TestAction.new(:Toggle_Flash_2) do
  1697. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  1698. .with('uitreeindex', 34)
  1699. .with('classname', 'ImageButton')
  1700. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  1701. .with('content-desc', 'Switch to flash on')
  1702.  
  1703. $ruiObj.click
  1704.  
  1705. waitsecond(2)
  1706. end
  1707.  
  1708. tcase << TestAction.new(:Picture_Flash_2) do
  1709. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1710. .with('uitreeindex', 38)
  1711. .with('classname', 'ImageButton')
  1712. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1713.  
  1714. $ruiObj.click
  1715.  
  1716. waitsecond(2)
  1717. end
  1718.  
  1719. tcase << TestAction.new(:Toggle_Flash_3) do
  1720. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  1721. .with('uitreeindex', 33)
  1722. .with('classname', 'ImageButton')
  1723. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  1724. .with('content-desc', 'Switch to flash on')
  1725.  
  1726. $ruiObj.click
  1727.  
  1728. waitsecond(2)
  1729. end
  1730.  
  1731. tcase << TestAction.new(:FilmChange) do
  1732. rng = Random.new()
  1733.  
  1734. for i in 0..2
  1735.  
  1736. waitsecond(2)
  1737.  
  1738. RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  1739. .with('uitreeindex', 31)
  1740. .with('classname', 'ImageButton')
  1741. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  1742. .with('content-desc', 'Filter').click
  1743.  
  1744. waitsecond(2)
  1745.  
  1746. index = rng.rand(db('FilmChange').length-1)
  1747.  
  1748. RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
  1749. .with('uitreeindex', 30)
  1750. .with('classname', 'android.view.View')
  1751. .with('content-desc', db('FilmChange')[index]).click
  1752.  
  1753. waitsecond(2)
  1754.  
  1755. RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1756. .with('uitreeindex', 36)
  1757. .with('classname', 'ImageButton')
  1758. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type').click
  1759.  
  1760. end
  1761.  
  1762. waitsecond(2)
  1763.  
  1764. RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  1765. .with('uitreeindex', 31)
  1766. .with('classname', 'ImageButton')
  1767. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  1768. .with('content-desc', 'Filter').click
  1769.  
  1770. waitsecond(2)
  1771.  
  1772. RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
  1773. .with('uitreeindex', 30)
  1774. .with('classname', 'android.view.View')
  1775. .with('content-desc', 'None').click
  1776.  
  1777. waitsecond(2)
  1778. end
  1779.  
  1780. tcase << TestAction.new(:Open_Camera_Settings_CameraRoll) do
  1781. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1782. .with('uitreeindex', 2)
  1783. .with('classname', 'ImageButton')
  1784. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1785. .with('content-desc', 'Open settings')
  1786.  
  1787. $ruiObj.click
  1788.  
  1789. waitsecond(2)
  1790. end
  1791.  
  1792. tcase << TestAction.new(:CameraRoll_On) do
  1793. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1794. .with('uitreeindex', 24)
  1795. .with('classname', 'TextView')
  1796. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1797. .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
  1798. .with('text', 'Show your recent photos and videos on the camera preview')
  1799.  
  1800. $ruiObj.click
  1801.  
  1802. waitsecond(2)
  1803. end
  1804.  
  1805. tcase << TestAction.new(:Exit_Settings_CameraRoll) do
  1806. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  1807. .with('uitreeindex', 2)
  1808. .with('classname', 'ImageButton')
  1809. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1810. .with('content-desc', 'Close settings')
  1811.  
  1812. $ruiObj.click
  1813.  
  1814. waitsecond(2)
  1815. end
  1816.  
  1817. tcase << TestAction.new(:Check_CameraRoll) do
  1818. $ruiObj = RUIObject.new.with('objectid', -2121216327).with('selfid', -1434280311).with('textdescid', -1333196665).with('uniqueparentid', 0)
  1819. .with('classname', 'ListView')
  1820. .with('resource-id', 'com.lge.camera:id/thumbnail_listview')
  1821.  
  1822. $ruiObj.click
  1823.  
  1824. waitsecond(2)
  1825. end
  1826.  
  1827. tcase << TestAction.new(:Exit_CameraRoll) do
  1828. $ruiObj = RUIObject.new.with('objectid', -1549616416).with('selfid', -767978611).with('textdescid', -793468608).with('uniqueparentid', 0)
  1829. .with('uitreeindex', 33)
  1830. .with('classname', 'ImageButton')
  1831. .with('resource-id', 'com.lge.camera:id/back_button')
  1832.  
  1833. $ruiObj.click
  1834.  
  1835. waitsecond(2)
  1836. end
  1837.  
  1838. tcase << TestAction.new(:Open_Camera_Settings_HDR_On) do
  1839. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', -1333196665)
  1840. .with('uitreeindex', 17)
  1841. .with('classname', 'ImageButton')
  1842. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1843. .with('content-desc', 'Open settings')
  1844.  
  1845. $ruiObj.click
  1846.  
  1847. waitsecond(2)
  1848. end
  1849.  
  1850. tcase << TestAction.new(:Post_CameraRoll_Off) do
  1851. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1852. .with('uitreeindex', 34)
  1853. .with('classname', 'TextView')
  1854. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1855. .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
  1856. .with('text', 'Show your recent photos and videos on the camera preview')
  1857.  
  1858. $ruiObj.click
  1859.  
  1860. waitsecond(2)
  1861. end
  1862.  
  1863. tcase << TestAction.new(:HDR_1) do
  1864. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1865. .with('uitreeindex', 38)
  1866. .with('classname', 'TextView')
  1867. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1868. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1869.  
  1870. $ruiObj.click
  1871.  
  1872. waitsecond(2)
  1873. end
  1874.  
  1875. tcase << TestAction.new(:HDR_On) do
  1876. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1877. .with('uitreeindex', 28)
  1878. .with('classname', 'CheckedTextView')
  1879. .with('resource-id', 'android:id/text1')
  1880. .with('content-desc', 'On')
  1881. .with('text', 'On')
  1882.  
  1883. $ruiObj.click
  1884.  
  1885. waitsecond(2)
  1886. end
  1887.  
  1888. tcase << TestAction.new(:Picture_HDR_On) do
  1889. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1890. .with('uitreeindex', 10)
  1891. .with('classname', 'ImageButton')
  1892. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1893.  
  1894. $ruiObj.click
  1895.  
  1896. waitsecond(2)
  1897. end
  1898.  
  1899. tcase << TestAction.new(:Open_Camera_Settings_HDR_Off) do
  1900. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1901. .with('uitreeindex', 2)
  1902. .with('classname', 'ImageButton')
  1903. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1904. .with('content-desc', 'Open settings')
  1905.  
  1906. $ruiObj.click
  1907.  
  1908. waitsecond(2)
  1909. end
  1910.  
  1911. tcase << TestAction.new(:HDR_2) do
  1912. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1913. .with('uitreeindex', 27)
  1914. .with('classname', 'TextView')
  1915. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1916. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1917.  
  1918. $ruiObj.click
  1919.  
  1920. waitsecond(2)
  1921. end
  1922.  
  1923. tcase << TestAction.new(:HDR_Off) do
  1924. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1925. .with('uitreeindex', 18)
  1926. .with('classname', 'CheckedTextView')
  1927. .with('resource-id', 'android:id/text1')
  1928. .with('content-desc', 'Off')
  1929. .with('text', 'Off')
  1930.  
  1931. $ruiObj.click
  1932.  
  1933. waitsecond(2)
  1934. end
  1935.  
  1936. tcase << TestAction.new(:Picture_HDR_Off) do
  1937. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  1938. .with('uitreeindex', 11)
  1939. .with('classname', 'ImageButton')
  1940. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  1941.  
  1942. $ruiObj.click
  1943.  
  1944. waitsecond(2)
  1945. end
  1946.  
  1947. tcase << TestAction.new(:Open_Camera_Settings_Timer_3sec) do
  1948. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  1949. .with('uitreeindex', 2)
  1950. .with('classname', 'ImageButton')
  1951. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  1952. .with('content-desc', 'Open settings')
  1953.  
  1954. $ruiObj.click
  1955.  
  1956. waitsecond(2)
  1957. end
  1958.  
  1959. tcase << TestAction.new(:Post_HDR) do
  1960. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  1961. .with('uitreeindex', 27)
  1962. .with('classname', 'TextView')
  1963. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  1964. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  1965.  
  1966. $ruiObj.click
  1967.  
  1968. waitsecond(2)
  1969. end
  1970.  
  1971. tcase << TestAction.new(:Post_HDR_Auto) do
  1972. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1973. .with('uitreeindex', 16)
  1974. .with('classname', 'CheckedTextView')
  1975. .with('resource-id', 'android:id/text1')
  1976. .with('content-desc', 'Auto')
  1977. .with('text', 'Auto')
  1978.  
  1979. $ruiObj.click
  1980.  
  1981. waitsecond(2)
  1982. end
  1983.  
  1984. tcase << TestAction.new(:Timer_1) do
  1985. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  1986. .with('uitreeindex', 32)
  1987. .with('classname', 'TextView')
  1988. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  1989. .with('content-desc', 'Timer')
  1990. .with('text', 'Timer')
  1991.  
  1992. $ruiObj.click
  1993.  
  1994. waitsecond(2)
  1995. end
  1996.  
  1997. tcase << TestAction.new(:Timer_3sec) do
  1998. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  1999. .with('uitreeindex', 17)
  2000. .with('classname', 'CheckedTextView')
  2001. .with('resource-id', 'android:id/text1')
  2002. .with('content-desc', '3 sec')
  2003. .with('text', '3 sec')
  2004.  
  2005. $ruiObj.click
  2006.  
  2007. waitsecond(2)
  2008. end
  2009.  
  2010. tcase << TestAction.new(:Picture_Timer_3sec) do
  2011. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2012. .with('uitreeindex', 9)
  2013. .with('classname', 'ImageButton')
  2014. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2015. .with('content-desc', 'Shutter')
  2016.  
  2017. $ruiObj.click
  2018.  
  2019. waitsecond(5)
  2020. end
  2021.  
  2022. tcase << TestAction.new(:Open_Camera_Settings_Timer_10sec) do
  2023. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2024. .with('uitreeindex', 2)
  2025. .with('classname', 'ImageButton')
  2026. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2027. .with('content-desc', 'Open settings')
  2028.  
  2029. $ruiObj.click
  2030.  
  2031. waitsecond(2)
  2032. end
  2033.  
  2034. tcase << TestAction.new(:Timer_2) do
  2035. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2036. .with('uitreeindex', 30)
  2037. .with('classname', 'TextView')
  2038. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2039. .with('content-desc', 'Timer')
  2040. .with('text', 'Timer')
  2041.  
  2042. $ruiObj.click
  2043.  
  2044. waitsecond(2)
  2045. end
  2046.  
  2047. tcase << TestAction.new(:Timer_10sec) do
  2048. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  2049. .with('uitreeindex', 18)
  2050. .with('classname', 'CheckedTextView')
  2051. .with('resource-id', 'android:id/text1')
  2052. .with('content-desc', '10 sec')
  2053. .with('text', '10 sec')
  2054.  
  2055. $ruiObj.click
  2056.  
  2057. waitsecond(2)
  2058. end
  2059.  
  2060. tcase << TestAction.new(:Picture_Timer_10sec) do
  2061. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2062. .with('uitreeindex', 9)
  2063. .with('classname', 'ImageButton')
  2064. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2065. .with('content-desc', 'Shutter')
  2066.  
  2067. $ruiObj.click
  2068.  
  2069. waitsecond(12)
  2070. end
  2071.  
  2072. tcase << TestAction.new(:Open_Camera_Settings_TrackingFocus) do
  2073. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2074. .with('uitreeindex', 2)
  2075. .with('classname', 'ImageButton')
  2076. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2077. .with('content-desc', 'Open settings')
  2078.  
  2079. $ruiObj.click
  2080.  
  2081. waitsecond(2)
  2082. end
  2083.  
  2084. tcase << TestAction.new(:Post_Timer) do
  2085. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2086. .with('uitreeindex', 30)
  2087. .with('classname', 'TextView')
  2088. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2089. .with('content-desc', 'Timer')
  2090. .with('text', 'Timer')
  2091.  
  2092. $ruiObj.click
  2093.  
  2094. waitsecond(2)
  2095. end
  2096.  
  2097. tcase << TestAction.new(:Post_Timer_Off) do
  2098. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  2099. .with('uitreeindex', 16)
  2100. .with('classname', 'CheckedTextView')
  2101. .with('resource-id', 'android:id/text1')
  2102. .with('content-desc', 'Off')
  2103. .with('text', 'Off')
  2104.  
  2105. $ruiObj.click
  2106.  
  2107. waitsecond(2)
  2108. end
  2109.  
  2110. tcase << TestAction.new(:TrackingFocus_Test) do
  2111. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  2112. .with('uitreeindex', 37)
  2113. .with('classname', 'TextView')
  2114. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  2115. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) Off switch')
  2116. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  2117.  
  2118. $ruiObj.click
  2119.  
  2120. waitsecond(2)
  2121. end
  2122.  
  2123. tcase << TestAction.new(:Picture_TrackingFocus_On) do
  2124. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2125. .with('uitreeindex', 9)
  2126. .with('classname', 'ImageButton')
  2127. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2128. .with('content-desc', 'Shutter')
  2129.  
  2130. $ruiObj.click
  2131.  
  2132. waitsecond(2)
  2133. end
  2134.  
  2135. tcase << TestAction.new(:Open_Camera_Settings_TagLocations) do
  2136. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2137. .with('uitreeindex', 2)
  2138. .with('classname', 'ImageButton')
  2139. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2140. .with('content-desc', 'Open settings')
  2141.  
  2142. $ruiObj.click
  2143.  
  2144. waitsecond(2)
  2145. end
  2146.  
  2147. tcase << TestAction.new(:Swipe_Down_2) do
  2148. swipe_vertical 500
  2149.  
  2150. waitsecond(2)
  2151. end
  2152.  
  2153. tcase << TestAction.new(:Post_TrackingFocus_Off) do
  2154. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  2155. .with('uitreeindex', 22)
  2156. .with('classname', 'TextView')
  2157. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  2158. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) On switch')
  2159. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  2160.  
  2161. $ruiObj.click
  2162.  
  2163. waitsecond(2)
  2164. end
  2165.  
  2166. tcase << TestAction.new(:TagLocations_Test) do
  2167. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2168. .with('uitreeindex', 27)
  2169. .with('classname', 'TextView')
  2170. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2171. .with('content-desc', 'Tag locations Off switch')
  2172. .with('text', 'Tag locations')
  2173.  
  2174. $ruiObj.click
  2175.  
  2176. waitsecond(2)
  2177. end
  2178.  
  2179. tcase << TestAction.new(:Picture_TagLocations_On) do
  2180. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2181. .with('uitreeindex', 9)
  2182. .with('classname', 'ImageButton')
  2183. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2184. .with('content-desc', 'Shutter')
  2185.  
  2186. $ruiObj.click
  2187.  
  2188. waitsecond(2)
  2189. end
  2190.  
  2191. tcase << TestAction.new(:Open_Camera_Settings_Grid) do
  2192. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2193. .with('uitreeindex', 2)
  2194. .with('classname', 'ImageButton')
  2195. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2196. .with('content-desc', 'Open settings')
  2197.  
  2198. $ruiObj.click
  2199.  
  2200. waitsecond(2)
  2201. end
  2202.  
  2203. tcase << TestAction.new(:Swipe_Down_3) do
  2204. swipe_vertical 500
  2205.  
  2206. waitsecond(2)
  2207. end
  2208.  
  2209. tcase << TestAction.new(:Post_TagLocations_Off) do
  2210. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
  2211. .with('uitreeindex', 27)
  2212. .with('classname', 'TextView')
  2213. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2214. .with('content-desc', 'Tag locations On switch')
  2215. .with('text', 'Tag locations')
  2216.  
  2217. $ruiObj.click
  2218.  
  2219. waitsecond(2)
  2220. end
  2221.  
  2222. tcase << TestAction.new(:Grid_Test) do
  2223. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', -232487900).with('classresourceid', -1956269507)
  2224. .with('uitreeindex', 29)
  2225. .with('classname', 'TextView')
  2226. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2227. .with('content-desc', 'Grid Off switch')
  2228. .with('text', 'Grid')
  2229.  
  2230. $ruiObj.click
  2231.  
  2232. waitsecond(2)
  2233. end
  2234.  
  2235. tcase << TestAction.new(:Picture_Grid_On) do
  2236. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  2237. .with('uitreeindex', 9)
  2238. .with('classname', 'ImageButton')
  2239. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  2240. .with('content-desc', 'Shutter')
  2241.  
  2242. $ruiObj.click
  2243.  
  2244. waitsecond(2)
  2245. end
  2246.  
  2247. tcase << TestAction.new(:Open_Camera_Settings_SimpleView) do
  2248. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  2249. .with('uitreeindex', 3)
  2250. .with('classname', 'ImageButton')
  2251. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  2252. .with('content-desc', 'Open settings')
  2253.  
  2254. $ruiObj.click
  2255.  
  2256. waitsecond(2)
  2257. end
  2258.  
  2259. tcase << TestAction.new(:Swipe_Down_4) do
  2260. swipe_vertical 500
  2261.  
  2262. waitsecond(2)
  2263. end
  2264.  
  2265. tcase << TestAction.new(:Post_Grid_Off) do
  2266. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2267. .with('uitreeindex', 29)
  2268. .with('classname', 'TextView')
  2269. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2270. .with('content-desc', 'Grid On switch')
  2271. .with('text', 'Grid')
  2272.  
  2273. $ruiObj.click
  2274.  
  2275. waitsecond(2)
  2276. end
  2277.  
  2278. tcase << TestAction.new(:SimpleView_Test) do
  2279. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  2280. .with('uitreeindex', 35)
  2281. .with('classname', 'TextView')
  2282. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  2283. .with('content-desc', 'Simple view')
  2284. .with('text', 'Simple view')
  2285.  
  2286. $ruiObj.click
  2287.  
  2288. waitsecond(2)
  2289. end
  2290.  
  2291. tcase << TestAction.new(:SimpleView_ClickCenter) do
  2292. click(getDisplayWidth/2, getDisplayHeight/2)
  2293.  
  2294. waitsecond(2)
  2295. end
  2296.  
  2297. tcase << TestAction.new(:SimpleView_VolumeKey) do
  2298. pressVolumeKeyDown
  2299.  
  2300. waitsecond(2)
  2301. end
  2302.  
  2303. tcase << TestAction.new(:SimpleView_Zoom_In) do
  2304. zoomIn
  2305. zoomIn
  2306. zoomIn
  2307. zoomIn
  2308. zoomIn
  2309. zoomIn
  2310. zoomIn
  2311. zoomIn
  2312. zoomIn
  2313. zoomIn
  2314.  
  2315. waitsecond(2)
  2316. end
  2317.  
  2318. tcase << TestAction.new(:SimpleView_Zoom_Out) do
  2319. zoomOut
  2320. zoomOut
  2321. zoomOut
  2322. zoomOut
  2323. zoomOut
  2324. zoomOut
  2325. zoomOut
  2326. zoomOut
  2327. zoomOut
  2328. zoomOut
  2329.  
  2330. waitsecond(2)
  2331. end
  2332.  
  2333. tcase << TestAction.new(:SimpleView_Exit) do
  2334. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  2335. .with('uitreeindex', 3)
  2336. .with('classname', 'ImageButton')
  2337. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  2338. .with('content-desc', 'View')
  2339.  
  2340. $ruiObj.click
  2341.  
  2342. waitsecond(2)
  2343. end
  2344.  
  2345. tcase.run(loopTime)
  2346.  
  2347. end
  2348.  
  2349. def self.startTest(loopTime)
  2350.  
  2351. tcase = TestCase.new("startTest")
  2352.  
  2353. tcase << TestAction.new(:blankaction) do
  2354. waitsecond(0)
  2355. end
  2356.  
  2357. tcase.run(loopTime)
  2358.  
  2359. end
  2360.  
  2361. def self.mainLoop(loopTime)
  2362.  
  2363. WebSocketXServer.setAutoUpdate(false)
  2364.  
  2365. index = $mainResumeMainLoop
  2366. $mainResumeMainLoop = 0
  2367.  
  2368. writelog("mainLoop::#{index}::Resume") if index > 0
  2369.  
  2370. while index < loopTime
  2371.  
  2372. $curMainLoopNum = index
  2373.  
  2374. $actionParamInput = "none"
  2375. Preconditions 1
  2376.  
  2377. waitsecond(2)
  2378.  
  2379. $actionParamInput = "none"
  2380. Photo_Size_4_3_16MP 1
  2381.  
  2382. waitsecond(2)
  2383.  
  2384. $actionParamInput = "none"
  2385. PictureAuto_2_1_1_1 1
  2386.  
  2387. waitsecond(2)
  2388.  
  2389. $actionParamInput = "none"
  2390. PictureAuto_2_1_1_2 1
  2391.  
  2392. waitsecond(2)
  2393.  
  2394. $actionParamInput = "none"
  2395. PictureAuto_2_1_1_3_1 1
  2396.  
  2397. waitsecond(2)
  2398.  
  2399. $actionParamInput = "none"
  2400. PictureAuto_2_1_1_3_2 1
  2401.  
  2402. waitsecond(2)
  2403.  
  2404. $actionParamInput = "none"
  2405. PictureAuto_2_1_1_4_1 1
  2406.  
  2407. waitsecond(2)
  2408.  
  2409. $actionParamInput = "none"
  2410. PictureAuto_2_1_1_4_2 1
  2411.  
  2412. waitsecond(2)
  2413.  
  2414. $actionParamInput = "none"
  2415. PictureAuto_2_1_1_5 1
  2416.  
  2417. waitsecond(2)
  2418.  
  2419. $actionParamInput = "none"
  2420. PictureAuto_2_1_1_6 1
  2421.  
  2422. waitsecond(2)
  2423.  
  2424. $actionParamInput = "none"
  2425. PictureAuto_2_1_1_7 1
  2426.  
  2427. waitsecond(2)
  2428.  
  2429. $actionParamInput = "none"
  2430. PictureAuto_2_1_1_8 1
  2431.  
  2432. waitsecond(2)
  2433.  
  2434. $actionParamInput = "none"
  2435. PictureAuto_2_1_1_9_1 1
  2436.  
  2437. waitsecond(2)
  2438.  
  2439. $actionParamInput = "none"
  2440. PictureAuto_2_1_1_9_2 1
  2441.  
  2442. waitsecond(2)
  2443.  
  2444. $actionParamInput = "none"
  2445. PictureAuto_2_1_1_10 1
  2446.  
  2447. waitsecond(2)
  2448.  
  2449. $actionParamInput = "none"
  2450. PictureAuto_2_1_1_11 1
  2451.  
  2452. waitsecond(2)
  2453.  
  2454. $actionParamInput = "none"
  2455. PictureAuto_2_1_1_12 1
  2456.  
  2457. waitsecond(2)
  2458.  
  2459. $actionParamInput = "none"
  2460. PictureAuto_2_1_1_13 1
  2461.  
  2462. waitsecond(2)
  2463.  
  2464. $actionParamInput = "none"
  2465. PictureAuto_2_1_1_14 1
  2466.  
  2467. waitsecond(2)
  2468.  
  2469. $actionParamInput = "none"
  2470. PictureAuto_2_1_1_15 1
  2471.  
  2472. waitsecond(2)
  2473.  
  2474. $actionParamInput = "none"
  2475. PictureAuto_2_1_1_16 1
  2476.  
  2477. waitsecond(2)
  2478.  
  2479. $actionParamInput = "none"
  2480. PictureAuto_2_1_1_17 1
  2481.  
  2482. waitsecond(2)
  2483.  
  2484. $actionParamInput = "none"
  2485. PictureAuto_2_1_1_18 1
  2486.  
  2487. waitsecond(2)
  2488.  
  2489. $actionParamInput = "none"
  2490. PictureAuto_2_1_1_19 1
  2491.  
  2492. waitsecond(2)
  2493.  
  2494. $actionParamInput = "none"
  2495. PictureAuto_2_1_1_20 1
  2496.  
  2497. waitsecond(2)
  2498.  
  2499. $actionParamInput = "none"
  2500. PictureAuto_2_1_1_21 1
  2501.  
  2502. waitsecond(2)
  2503.  
  2504. $actionParamInput = "none"
  2505. PictureAuto_2_1_1_22 1
  2506.  
  2507. waitsecond(2)
  2508.  
  2509. $actionParamInput = "none"
  2510. PictureAuto_2_1_1_23_1 1
  2511.  
  2512. waitsecond(2)
  2513.  
  2514. $actionParamInput = "none"
  2515. PictureAuto_2_1_1_23_2 1
  2516.  
  2517. waitsecond(2)
  2518.  
  2519. $actionParamInput = "none"
  2520. Photo_Size_4_3_8MP 1
  2521.  
  2522. waitsecond(2)
  2523.  
  2524. $actionParamInput = "none"
  2525. PictureAuto_2_1_1_1 1
  2526.  
  2527. waitsecond(2)
  2528.  
  2529. $actionParamInput = "none"
  2530. PictureAuto_2_1_1_2 1
  2531.  
  2532. waitsecond(2)
  2533.  
  2534. $actionParamInput = "none"
  2535. PictureAuto_2_1_1_3_1 1
  2536.  
  2537. waitsecond(2)
  2538.  
  2539. $actionParamInput = "none"
  2540. PictureAuto_2_1_1_3_2 1
  2541.  
  2542. waitsecond(2)
  2543.  
  2544. $actionParamInput = "none"
  2545. PictureAuto_2_1_1_4_1 1
  2546.  
  2547. waitsecond(2)
  2548.  
  2549. $actionParamInput = "none"
  2550. PictureAuto_2_1_1_4_2 1
  2551.  
  2552. waitsecond(2)
  2553.  
  2554. $actionParamInput = "none"
  2555. PictureAuto_2_1_1_5 1
  2556.  
  2557. waitsecond(2)
  2558.  
  2559. $actionParamInput = "none"
  2560. PictureAuto_2_1_1_6 1
  2561.  
  2562. waitsecond(2)
  2563.  
  2564. $actionParamInput = "none"
  2565. PictureAuto_2_1_1_7 1
  2566.  
  2567. waitsecond(2)
  2568.  
  2569. $actionParamInput = "none"
  2570. PictureAuto_2_1_1_8 1
  2571.  
  2572. waitsecond(2)
  2573.  
  2574. $actionParamInput = "none"
  2575. PictureAuto_2_1_1_9_1 1
  2576.  
  2577. waitsecond(2)
  2578.  
  2579. $actionParamInput = "none"
  2580. PictureAuto_2_1_1_9_2 1
  2581.  
  2582. waitsecond(2)
  2583.  
  2584. $actionParamInput = "none"
  2585. PictureAuto_2_1_1_10 1
  2586.  
  2587. waitsecond(2)
  2588.  
  2589. $actionParamInput = "none"
  2590. PictureAuto_2_1_1_11 1
  2591.  
  2592. waitsecond(2)
  2593.  
  2594. $actionParamInput = "none"
  2595. PictureAuto_2_1_1_12 1
  2596.  
  2597. waitsecond(2)
  2598.  
  2599. $actionParamInput = "none"
  2600. PictureAuto_2_1_1_13 1
  2601.  
  2602. waitsecond(2)
  2603.  
  2604. $actionParamInput = "none"
  2605. PictureAuto_2_1_1_14 1
  2606.  
  2607. waitsecond(2)
  2608.  
  2609. $actionParamInput = "none"
  2610. PictureAuto_2_1_1_15 1
  2611.  
  2612. waitsecond(2)
  2613.  
  2614. $actionParamInput = "none"
  2615. PictureAuto_2_1_1_16 1
  2616.  
  2617. waitsecond(2)
  2618.  
  2619. $actionParamInput = "none"
  2620. PictureAuto_2_1_1_17 1
  2621.  
  2622. waitsecond(2)
  2623.  
  2624. $actionParamInput = "none"
  2625. PictureAuto_2_1_1_18 1
  2626.  
  2627. waitsecond(2)
  2628.  
  2629. $actionParamInput = "none"
  2630. PictureAuto_2_1_1_19 1
  2631.  
  2632. waitsecond(2)
  2633.  
  2634. $actionParamInput = "none"
  2635. PictureAuto_2_1_1_20 1
  2636.  
  2637. waitsecond(2)
  2638.  
  2639. $actionParamInput = "none"
  2640. PictureAuto_2_1_1_21 1
  2641.  
  2642. waitsecond(2)
  2643.  
  2644. $actionParamInput = "none"
  2645. PictureAuto_2_1_1_22 1
  2646.  
  2647. waitsecond(2)
  2648.  
  2649. $actionParamInput = "none"
  2650. PictureAuto_2_1_1_23_1 1
  2651.  
  2652. waitsecond(2)
  2653.  
  2654. $actionParamInput = "none"
  2655. PictureAuto_2_1_1_23_2 1
  2656.  
  2657. waitsecond(2)
  2658.  
  2659. $actionParamInput = "none"
  2660. Photo_Size_16_9_12MP 1
  2661.  
  2662. waitsecond(2)
  2663.  
  2664. $actionParamInput = "none"
  2665. PictureAuto_2_1_1_1 1
  2666.  
  2667. waitsecond(2)
  2668.  
  2669. $actionParamInput = "none"
  2670. PictureAuto_2_1_1_2 1
  2671.  
  2672. waitsecond(2)
  2673.  
  2674. $actionParamInput = "none"
  2675. PictureAuto_2_1_1_3_1 1
  2676.  
  2677. waitsecond(2)
  2678.  
  2679. $actionParamInput = "none"
  2680. PictureAuto_2_1_1_3_2 1
  2681.  
  2682. waitsecond(2)
  2683.  
  2684. $actionParamInput = "none"
  2685. PictureAuto_2_1_1_4_1 1
  2686.  
  2687. waitsecond(2)
  2688.  
  2689. $actionParamInput = "none"
  2690. PictureAuto_2_1_1_4_2 1
  2691.  
  2692. waitsecond(2)
  2693.  
  2694. $actionParamInput = "none"
  2695. PictureAuto_2_1_1_5 1
  2696.  
  2697. waitsecond(2)
  2698.  
  2699. $actionParamInput = "none"
  2700. PictureAuto_2_1_1_6 1
  2701.  
  2702. waitsecond(2)
  2703.  
  2704. $actionParamInput = "none"
  2705. PictureAuto_2_1_1_7 1
  2706.  
  2707. waitsecond(2)
  2708.  
  2709. $actionParamInput = "none"
  2710. PictureAuto_2_1_1_8 1
  2711.  
  2712. waitsecond(2)
  2713.  
  2714. $actionParamInput = "none"
  2715. PictureAuto_2_1_1_9_1 1
  2716.  
  2717. waitsecond(2)
  2718.  
  2719. $actionParamInput = "none"
  2720. PictureAuto_2_1_1_9_2 1
  2721.  
  2722. waitsecond(2)
  2723.  
  2724. $actionParamInput = "none"
  2725. PictureAuto_2_1_1_10 1
  2726.  
  2727. waitsecond(2)
  2728.  
  2729. $actionParamInput = "none"
  2730. PictureAuto_2_1_1_11 1
  2731.  
  2732. waitsecond(2)
  2733.  
  2734. $actionParamInput = "none"
  2735. PictureAuto_2_1_1_12 1
  2736.  
  2737. waitsecond(2)
  2738.  
  2739. $actionParamInput = "none"
  2740. PictureAuto_2_1_1_13 1
  2741.  
  2742. waitsecond(2)
  2743.  
  2744. $actionParamInput = "none"
  2745. PictureAuto_2_1_1_14 1
  2746.  
  2747. waitsecond(2)
  2748.  
  2749. $actionParamInput = "none"
  2750. PictureAuto_2_1_1_15 1
  2751.  
  2752. waitsecond(2)
  2753.  
  2754. $actionParamInput = "none"
  2755. PictureAuto_2_1_1_16 1
  2756.  
  2757. waitsecond(2)
  2758.  
  2759. $actionParamInput = "none"
  2760. PictureAuto_2_1_1_17 1
  2761.  
  2762. waitsecond(2)
  2763.  
  2764. $actionParamInput = "none"
  2765. PictureAuto_2_1_1_18 1
  2766.  
  2767. waitsecond(2)
  2768.  
  2769. $actionParamInput = "none"
  2770. PictureAuto_2_1_1_19 1
  2771.  
  2772. waitsecond(2)
  2773.  
  2774. $actionParamInput = "none"
  2775. PictureAuto_2_1_1_20 1
  2776.  
  2777. waitsecond(2)
  2778.  
  2779. $actionParamInput = "none"
  2780. PictureAuto_2_1_1_21 1
  2781.  
  2782. waitsecond(2)
  2783.  
  2784. $actionParamInput = "none"
  2785. PictureAuto_2_1_1_22 1
  2786.  
  2787. waitsecond(2)
  2788.  
  2789. $actionParamInput = "none"
  2790. PictureAuto_2_1_1_23_1 1
  2791.  
  2792. waitsecond(2)
  2793.  
  2794. $actionParamInput = "none"
  2795. PictureAuto_2_1_1_23_2 1
  2796.  
  2797. waitsecond(2)
  2798.  
  2799. $actionParamInput = "none"
  2800. Photo_Size_16_9_6MP 1
  2801.  
  2802. waitsecond(2)
  2803.  
  2804. $actionParamInput = "none"
  2805. PictureAuto_2_1_1_1 1
  2806.  
  2807. waitsecond(2)
  2808.  
  2809. $actionParamInput = "none"
  2810. PictureAuto_2_1_1_2 1
  2811.  
  2812. waitsecond(2)
  2813.  
  2814. $actionParamInput = "none"
  2815. PictureAuto_2_1_1_3_1 1
  2816.  
  2817. waitsecond(2)
  2818.  
  2819. $actionParamInput = "none"
  2820. PictureAuto_2_1_1_3_2 1
  2821.  
  2822. waitsecond(2)
  2823.  
  2824. $actionParamInput = "none"
  2825. PictureAuto_2_1_1_4_1 1
  2826.  
  2827. waitsecond(2)
  2828.  
  2829. $actionParamInput = "none"
  2830. PictureAuto_2_1_1_4_2 1
  2831.  
  2832. waitsecond(2)
  2833.  
  2834. $actionParamInput = "none"
  2835. PictureAuto_2_1_1_5 1
  2836.  
  2837. waitsecond(2)
  2838.  
  2839. $actionParamInput = "none"
  2840. PictureAuto_2_1_1_6 1
  2841.  
  2842. waitsecond(2)
  2843.  
  2844. $actionParamInput = "none"
  2845. PictureAuto_2_1_1_7 1
  2846.  
  2847. waitsecond(2)
  2848.  
  2849. $actionParamInput = "none"
  2850. PictureAuto_2_1_1_8 1
  2851.  
  2852. waitsecond(2)
  2853.  
  2854. $actionParamInput = "none"
  2855. PictureAuto_2_1_1_9_1 1
  2856.  
  2857. waitsecond(2)
  2858.  
  2859. $actionParamInput = "none"
  2860. PictureAuto_2_1_1_9_2 1
  2861.  
  2862. waitsecond(2)
  2863.  
  2864. $actionParamInput = "none"
  2865. PictureAuto_2_1_1_10 1
  2866.  
  2867. waitsecond(2)
  2868.  
  2869. $actionParamInput = "none"
  2870. PictureAuto_2_1_1_11 1
  2871.  
  2872. waitsecond(2)
  2873.  
  2874. $actionParamInput = "none"
  2875. PictureAuto_2_1_1_12 1
  2876.  
  2877. waitsecond(2)
  2878.  
  2879. $actionParamInput = "none"
  2880. PictureAuto_2_1_1_13 1
  2881.  
  2882. waitsecond(2)
  2883.  
  2884. $actionParamInput = "none"
  2885. PictureAuto_2_1_1_14 1
  2886.  
  2887. waitsecond(2)
  2888.  
  2889. $actionParamInput = "none"
  2890. PictureAuto_2_1_1_15 1
  2891.  
  2892. waitsecond(2)
  2893.  
  2894. $actionParamInput = "none"
  2895. PictureAuto_2_1_1_16 1
  2896.  
  2897. waitsecond(2)
  2898.  
  2899. $actionParamInput = "none"
  2900. PictureAuto_2_1_1_17 1
  2901.  
  2902. waitsecond(2)
  2903.  
  2904. $actionParamInput = "none"
  2905. PictureAuto_2_1_1_18 1
  2906.  
  2907. waitsecond(2)
  2908.  
  2909. $actionParamInput = "none"
  2910. PictureAuto_2_1_1_19 1
  2911.  
  2912. waitsecond(2)
  2913.  
  2914. $actionParamInput = "none"
  2915. PictureAuto_2_1_1_20 1
  2916.  
  2917. waitsecond(2)
  2918.  
  2919. $actionParamInput = "none"
  2920. PictureAuto_2_1_1_21 1
  2921.  
  2922. waitsecond(2)
  2923.  
  2924. $actionParamInput = "none"
  2925. PictureAuto_2_1_1_22 1
  2926.  
  2927. waitsecond(2)
  2928.  
  2929. $actionParamInput = "none"
  2930. PictureAuto_2_1_1_23_1 1
  2931.  
  2932. waitsecond(2)
  2933.  
  2934. $actionParamInput = "none"
  2935. PictureAuto_2_1_1_23_2 1
  2936.  
  2937. waitsecond(2)
  2938.  
  2939. $actionParamInput = "none"
  2940. Photo_Size_18_9_11MP 1
  2941.  
  2942. waitsecond(2)
  2943.  
  2944. $actionParamInput = "none"
  2945. PictureAuto_2_1_1_1 1
  2946.  
  2947. waitsecond(2)
  2948.  
  2949. $actionParamInput = "none"
  2950. PictureAuto_2_1_1_2 1
  2951.  
  2952. waitsecond(2)
  2953.  
  2954. $actionParamInput = "none"
  2955. PictureAuto_2_1_1_3_1 1
  2956.  
  2957. waitsecond(2)
  2958.  
  2959. $actionParamInput = "none"
  2960. PictureAuto_2_1_1_3_2 1
  2961.  
  2962. waitsecond(2)
  2963.  
  2964. $actionParamInput = "none"
  2965. PictureAuto_2_1_1_4_1 1
  2966.  
  2967. waitsecond(2)
  2968.  
  2969. $actionParamInput = "none"
  2970. PictureAuto_2_1_1_4_2 1
  2971.  
  2972. waitsecond(2)
  2973.  
  2974. $actionParamInput = "none"
  2975. PictureAuto_2_1_1_5 1
  2976.  
  2977. waitsecond(2)
  2978.  
  2979. $actionParamInput = "none"
  2980. PictureAuto_2_1_1_6 1
  2981.  
  2982. waitsecond(2)
  2983.  
  2984. $actionParamInput = "none"
  2985. PictureAuto_2_1_1_7 1
  2986.  
  2987. waitsecond(2)
  2988.  
  2989. $actionParamInput = "none"
  2990. PictureAuto_2_1_1_8 1
  2991.  
  2992. waitsecond(2)
  2993.  
  2994. $actionParamInput = "none"
  2995. PictureAuto_2_1_1_9_1 1
  2996.  
  2997. waitsecond(2)
  2998.  
  2999. $actionParamInput = "none"
  3000. PictureAuto_2_1_1_9_2 1
  3001.  
  3002. waitsecond(2)
  3003.  
  3004. $actionParamInput = "none"
  3005. PictureAuto_2_1_1_10 1
  3006.  
  3007. waitsecond(2)
  3008.  
  3009. $actionParamInput = "none"
  3010. PictureAuto_2_1_1_11 1
  3011.  
  3012. waitsecond(2)
  3013.  
  3014. $actionParamInput = "none"
  3015. PictureAuto_2_1_1_12 1
  3016.  
  3017. waitsecond(2)
  3018.  
  3019. $actionParamInput = "none"
  3020. PictureAuto_2_1_1_13 1
  3021.  
  3022. waitsecond(2)
  3023.  
  3024. $actionParamInput = "none"
  3025. PictureAuto_2_1_1_14 1
  3026.  
  3027. waitsecond(2)
  3028.  
  3029. $actionParamInput = "none"
  3030. PictureAuto_2_1_1_15 1
  3031.  
  3032. waitsecond(2)
  3033.  
  3034. $actionParamInput = "none"
  3035. PictureAuto_2_1_1_16 1
  3036.  
  3037. waitsecond(2)
  3038.  
  3039. $actionParamInput = "none"
  3040. PictureAuto_2_1_1_17 1
  3041.  
  3042. waitsecond(2)
  3043.  
  3044. $actionParamInput = "none"
  3045. PictureAuto_2_1_1_18 1
  3046.  
  3047. waitsecond(2)
  3048.  
  3049. $actionParamInput = "none"
  3050. PictureAuto_2_1_1_19 1
  3051.  
  3052. waitsecond(2)
  3053.  
  3054. $actionParamInput = "none"
  3055. PictureAuto_2_1_1_20 1
  3056.  
  3057. waitsecond(2)
  3058.  
  3059. $actionParamInput = "none"
  3060. PictureAuto_2_1_1_21 1
  3061.  
  3062. waitsecond(2)
  3063.  
  3064. $actionParamInput = "none"
  3065. PictureAuto_2_1_1_22 1
  3066.  
  3067. waitsecond(2)
  3068.  
  3069. $actionParamInput = "none"
  3070. PictureAuto_2_1_1_23_1 1
  3071.  
  3072. waitsecond(2)
  3073.  
  3074. $actionParamInput = "none"
  3075. PictureAuto_2_1_1_23_2 1
  3076.  
  3077. waitsecond(2)
  3078.  
  3079. $actionParamInput = "none"
  3080. Photo_Size_18_9_33MP 1
  3081.  
  3082. waitsecond(2)
  3083.  
  3084. $actionParamInput = "none"
  3085. PictureAuto_2_1_1_1 1
  3086.  
  3087. waitsecond(2)
  3088.  
  3089. $actionParamInput = "none"
  3090. PictureAuto_2_1_1_2 1
  3091.  
  3092. waitsecond(2)
  3093.  
  3094. $actionParamInput = "none"
  3095. PictureAuto_2_1_1_3_1 1
  3096.  
  3097. waitsecond(2)
  3098.  
  3099. $actionParamInput = "none"
  3100. PictureAuto_2_1_1_3_2 1
  3101.  
  3102. waitsecond(2)
  3103.  
  3104. $actionParamInput = "none"
  3105. PictureAuto_2_1_1_4_1 1
  3106.  
  3107. waitsecond(2)
  3108.  
  3109. $actionParamInput = "none"
  3110. PictureAuto_2_1_1_4_2 1
  3111.  
  3112. waitsecond(2)
  3113.  
  3114. $actionParamInput = "none"
  3115. PictureAuto_2_1_1_5 1
  3116.  
  3117. waitsecond(2)
  3118.  
  3119. $actionParamInput = "none"
  3120. PictureAuto_2_1_1_6 1
  3121.  
  3122. waitsecond(2)
  3123.  
  3124. $actionParamInput = "none"
  3125. PictureAuto_2_1_1_7 1
  3126.  
  3127. waitsecond(2)
  3128.  
  3129. $actionParamInput = "none"
  3130. PictureAuto_2_1_1_8 1
  3131.  
  3132. waitsecond(2)
  3133.  
  3134. $actionParamInput = "none"
  3135. PictureAuto_2_1_1_9_1 1
  3136.  
  3137. waitsecond(2)
  3138.  
  3139. $actionParamInput = "none"
  3140. PictureAuto_2_1_1_9_2 1
  3141.  
  3142. waitsecond(2)
  3143.  
  3144. $actionParamInput = "none"
  3145. PictureAuto_2_1_1_10 1
  3146.  
  3147. waitsecond(2)
  3148.  
  3149. $actionParamInput = "none"
  3150. PictureAuto_2_1_1_11 1
  3151.  
  3152. waitsecond(2)
  3153.  
  3154. $actionParamInput = "none"
  3155. PictureAuto_2_1_1_12 1
  3156.  
  3157. waitsecond(2)
  3158.  
  3159. $actionParamInput = "none"
  3160. PictureAuto_2_1_1_13 1
  3161.  
  3162. waitsecond(2)
  3163.  
  3164. $actionParamInput = "none"
  3165. PictureAuto_2_1_1_14 1
  3166.  
  3167. waitsecond(2)
  3168.  
  3169. $actionParamInput = "none"
  3170. PictureAuto_2_1_1_15 1
  3171.  
  3172. waitsecond(2)
  3173.  
  3174. $actionParamInput = "none"
  3175. PictureAuto_2_1_1_16 1
  3176.  
  3177. waitsecond(2)
  3178.  
  3179. $actionParamInput = "none"
  3180. PictureAuto_2_1_1_17 1
  3181.  
  3182. waitsecond(2)
  3183.  
  3184. $actionParamInput = "none"
  3185. PictureAuto_2_1_1_18 1
  3186.  
  3187. waitsecond(2)
  3188.  
  3189. $actionParamInput = "none"
  3190. PictureAuto_2_1_1_19 1
  3191.  
  3192. waitsecond(2)
  3193.  
  3194. $actionParamInput = "none"
  3195. PictureAuto_2_1_1_20 1
  3196.  
  3197. waitsecond(2)
  3198.  
  3199. $actionParamInput = "none"
  3200. PictureAuto_2_1_1_21 1
  3201.  
  3202. waitsecond(2)
  3203.  
  3204. $actionParamInput = "none"
  3205. PictureAuto_2_1_1_22 1
  3206.  
  3207. waitsecond(2)
  3208.  
  3209. $actionParamInput = "none"
  3210. PictureAuto_2_1_1_23_1 1
  3211.  
  3212. waitsecond(2)
  3213.  
  3214. $actionParamInput = "none"
  3215. PictureAuto_2_1_1_23_2 1
  3216.  
  3217. waitsecond(2)
  3218.  
  3219. $actionParamInput = "none"
  3220. Photo_Size_1_1_12MP 1
  3221.  
  3222. waitsecond(2)
  3223.  
  3224. $actionParamInput = "none"
  3225. PictureAuto_2_1_1_1 1
  3226.  
  3227. waitsecond(2)
  3228.  
  3229. $actionParamInput = "none"
  3230. PictureAuto_2_1_1_2 1
  3231.  
  3232. waitsecond(2)
  3233.  
  3234. $actionParamInput = "none"
  3235. PictureAuto_2_1_1_3_1 1
  3236.  
  3237. waitsecond(2)
  3238.  
  3239. $actionParamInput = "none"
  3240. PictureAuto_2_1_1_3_2 1
  3241.  
  3242. waitsecond(2)
  3243.  
  3244. $actionParamInput = "none"
  3245. PictureAuto_2_1_1_4_1 1
  3246.  
  3247. waitsecond(2)
  3248.  
  3249. $actionParamInput = "none"
  3250. PictureAuto_2_1_1_4_2 1
  3251.  
  3252. waitsecond(2)
  3253.  
  3254. $actionParamInput = "none"
  3255. PictureAuto_2_1_1_5 1
  3256.  
  3257. waitsecond(2)
  3258.  
  3259. $actionParamInput = "none"
  3260. PictureAuto_2_1_1_6 1
  3261.  
  3262. waitsecond(2)
  3263.  
  3264. $actionParamInput = "none"
  3265. PictureAuto_2_1_1_7 1
  3266.  
  3267. waitsecond(2)
  3268.  
  3269. $actionParamInput = "none"
  3270. PictureAuto_2_1_1_8 1
  3271.  
  3272. waitsecond(2)
  3273.  
  3274. $actionParamInput = "none"
  3275. PictureAuto_2_1_1_9_1 1
  3276.  
  3277. waitsecond(2)
  3278.  
  3279. $actionParamInput = "none"
  3280. PictureAuto_2_1_1_9_2 1
  3281.  
  3282. waitsecond(2)
  3283.  
  3284. $actionParamInput = "none"
  3285. PictureAuto_2_1_1_10 1
  3286.  
  3287. waitsecond(2)
  3288.  
  3289. $actionParamInput = "none"
  3290. PictureAuto_2_1_1_11 1
  3291.  
  3292. waitsecond(2)
  3293.  
  3294. $actionParamInput = "none"
  3295. PictureAuto_2_1_1_12 1
  3296.  
  3297. waitsecond(2)
  3298.  
  3299. $actionParamInput = "none"
  3300. PictureAuto_2_1_1_13 1
  3301.  
  3302. waitsecond(2)
  3303.  
  3304. $actionParamInput = "none"
  3305. PictureAuto_2_1_1_14 1
  3306.  
  3307. waitsecond(2)
  3308.  
  3309. $actionParamInput = "none"
  3310. PictureAuto_2_1_1_15 1
  3311.  
  3312. waitsecond(2)
  3313.  
  3314. $actionParamInput = "none"
  3315. PictureAuto_2_1_1_16 1
  3316.  
  3317. waitsecond(2)
  3318.  
  3319. $actionParamInput = "none"
  3320. PictureAuto_2_1_1_17 1
  3321.  
  3322. waitsecond(2)
  3323.  
  3324. $actionParamInput = "none"
  3325. PictureAuto_2_1_1_18 1
  3326.  
  3327. waitsecond(2)
  3328.  
  3329. $actionParamInput = "none"
  3330. PictureAuto_2_1_1_19 1
  3331.  
  3332. waitsecond(2)
  3333.  
  3334. $actionParamInput = "none"
  3335. PictureAuto_2_1_1_20 1
  3336.  
  3337. waitsecond(2)
  3338.  
  3339. $actionParamInput = "none"
  3340. PictureAuto_2_1_1_21 1
  3341.  
  3342. waitsecond(2)
  3343.  
  3344. $actionParamInput = "none"
  3345. PictureAuto_2_1_1_22 1
  3346.  
  3347. waitsecond(2)
  3348.  
  3349. $actionParamInput = "none"
  3350. PictureAuto_2_1_1_23_1 1
  3351.  
  3352. waitsecond(2)
  3353.  
  3354. $actionParamInput = "none"
  3355. PictureAuto_2_1_1_23_2 1
  3356.  
  3357. waitsecond(2)
  3358.  
  3359. $actionParamInput = "none"
  3360. Photo_Size_1_1_34MP 1
  3361.  
  3362. waitsecond(2)
  3363.  
  3364. $actionParamInput = "none"
  3365. PictureAuto_2_1_1_1 1
  3366.  
  3367. waitsecond(2)
  3368.  
  3369. $actionParamInput = "none"
  3370. PictureAuto_2_1_1_2 1
  3371.  
  3372. waitsecond(2)
  3373.  
  3374. $actionParamInput = "none"
  3375. PictureAuto_2_1_1_3_1 1
  3376.  
  3377. waitsecond(2)
  3378.  
  3379. $actionParamInput = "none"
  3380. PictureAuto_2_1_1_3_2 1
  3381.  
  3382. waitsecond(2)
  3383.  
  3384. $actionParamInput = "none"
  3385. PictureAuto_2_1_1_4_1 1
  3386.  
  3387. waitsecond(2)
  3388.  
  3389. $actionParamInput = "none"
  3390. PictureAuto_2_1_1_4_2 1
  3391.  
  3392. waitsecond(2)
  3393.  
  3394. $actionParamInput = "none"
  3395. PictureAuto_2_1_1_5 1
  3396.  
  3397. waitsecond(2)
  3398.  
  3399. $actionParamInput = "none"
  3400. PictureAuto_2_1_1_6 1
  3401.  
  3402. waitsecond(2)
  3403.  
  3404. $actionParamInput = "none"
  3405. PictureAuto_2_1_1_7 1
  3406.  
  3407. waitsecond(2)
  3408.  
  3409. $actionParamInput = "none"
  3410. PictureAuto_2_1_1_8 1
  3411.  
  3412. waitsecond(2)
  3413.  
  3414. $actionParamInput = "none"
  3415. PictureAuto_2_1_1_9_1 1
  3416.  
  3417. waitsecond(2)
  3418.  
  3419. $actionParamInput = "none"
  3420. PictureAuto_2_1_1_9_2 1
  3421.  
  3422. waitsecond(2)
  3423.  
  3424. $actionParamInput = "none"
  3425. PictureAuto_2_1_1_10 1
  3426.  
  3427. waitsecond(2)
  3428.  
  3429. $actionParamInput = "none"
  3430. PictureAuto_2_1_1_11 1
  3431.  
  3432. waitsecond(2)
  3433.  
  3434. $actionParamInput = "none"
  3435. PictureAuto_2_1_1_12 1
  3436.  
  3437. waitsecond(2)
  3438.  
  3439. $actionParamInput = "none"
  3440. PictureAuto_2_1_1_13 1
  3441.  
  3442. waitsecond(2)
  3443.  
  3444. $actionParamInput = "none"
  3445. PictureAuto_2_1_1_14 1
  3446.  
  3447. waitsecond(2)
  3448.  
  3449. $actionParamInput = "none"
  3450. PictureAuto_2_1_1_15 1
  3451.  
  3452. waitsecond(2)
  3453.  
  3454. $actionParamInput = "none"
  3455. PictureAuto_2_1_1_16 1
  3456.  
  3457. waitsecond(2)
  3458.  
  3459. $actionParamInput = "none"
  3460. PictureAuto_2_1_1_17 1
  3461.  
  3462. waitsecond(2)
  3463.  
  3464. $actionParamInput = "none"
  3465. PictureAuto_2_1_1_18 1
  3466.  
  3467. waitsecond(2)
  3468.  
  3469. $actionParamInput = "none"
  3470. PictureAuto_2_1_1_19 1
  3471.  
  3472. waitsecond(2)
  3473.  
  3474. $actionParamInput = "none"
  3475. PictureAuto_2_1_1_20 1
  3476.  
  3477. waitsecond(2)
  3478.  
  3479. $actionParamInput = "none"
  3480. PictureAuto_2_1_1_21 1
  3481.  
  3482. waitsecond(2)
  3483.  
  3484. $actionParamInput = "none"
  3485. PictureAuto_2_1_1_22 1
  3486.  
  3487. waitsecond(2)
  3488.  
  3489. $actionParamInput = "none"
  3490. PictureAuto_2_1_1_23_1 1
  3491.  
  3492. waitsecond(2)
  3493.  
  3494. $actionParamInput = "none"
  3495. PictureAuto_2_1_1_23_2 1
  3496.  
  3497. waitsecond(2)
  3498.  
  3499.  
  3500. sendStatus("Done::mainLoop::Loop::#{index}")
  3501.  
  3502.  
  3503. writelog("Finish::Loop::#{$curMainLoopNum}")
  3504.  
  3505.  
  3506. saveLogFileToGist if $saveLogToGist
  3507.  
  3508. index += 1
  3509.  
  3510. end
  3511.  
  3512. $engineStatus = "Idle"
  3513. resetStatus
  3514. sendStatus("Finish::mainLoop::END")
  3515.  
  3516. end
  3517.  
  3518. def self.Preconditions(loopTime)
  3519.  
  3520. tcase = TestCase.new("Preconditions")
  3521.  
  3522. tcase << TestAction.new(:gotoApp_Camera) do
  3523. gotoApp('Camera')
  3524.  
  3525. waitsecond(2)
  3526. end
  3527.  
  3528. tcase << TestAction.new(:Open_Camera_Setting) do
  3529. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3530. .with('uitreeindex', 3)
  3531. .with('classname', 'ImageButton')
  3532. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3533. .with('content-desc', 'Open settings')
  3534.  
  3535. $ruiObj.click
  3536.  
  3537. waitsecond(2)
  3538. end
  3539.  
  3540. tcase << TestAction.new(:Open_Photo_Size) do
  3541. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3542. .with('uitreeindex', 17)
  3543. .with('classname', 'TextView')
  3544. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3545. .with('content-desc', 'Photo size')
  3546. .with('text', 'Photo size')
  3547.  
  3548. $ruiObj.click
  3549.  
  3550. waitsecond(2)
  3551. end
  3552.  
  3553. tcase << TestAction.new(:Photo_Size_43_16MP) do
  3554. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3555. .with('uitreeindex', 16)
  3556. .with('classname', 'CheckedTextView')
  3557. .with('resource-id', 'android:id/text1')
  3558. .with('content-desc', '4:3 (16 MP) 4656x3492')
  3559. .with('text', '43 16MP 4656x3492')
  3560.  
  3561. $ruiObj.click
  3562.  
  3563. waitsecond(2)
  3564. end
  3565.  
  3566. tcase << TestAction.new(:CameraRoll_Off) do
  3567. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  3568. .with('uitreeindex', 24)
  3569. .with('classname', 'TextView')
  3570. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  3571. .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
  3572. .with('text', 'Show your recent photos and videos on the camera preview')
  3573.  
  3574. $ruiObj.click
  3575.  
  3576. waitsecond(2)
  3577. end
  3578.  
  3579. tcase << TestAction.new(:HDR) do
  3580. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  3581. .with('uitreeindex', 27)
  3582. .with('classname', 'TextView')
  3583. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  3584. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  3585.  
  3586. $ruiObj.click
  3587.  
  3588. waitsecond(2)
  3589. end
  3590.  
  3591. tcase << TestAction.new(:HDR_Auto) do
  3592. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3593. .with('uitreeindex', 16)
  3594. .with('classname', 'CheckedTextView')
  3595. .with('resource-id', 'android:id/text1')
  3596. .with('content-desc', 'Auto')
  3597. .with('text', 'Auto')
  3598.  
  3599. $ruiObj.click
  3600.  
  3601. waitsecond(2)
  3602. end
  3603.  
  3604. tcase << TestAction.new(:Timer) do
  3605. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3606. .with('uitreeindex', 32)
  3607. .with('classname', 'TextView')
  3608. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3609. .with('content-desc', 'Timer')
  3610. .with('text', 'Timer')
  3611.  
  3612. $ruiObj.click
  3613.  
  3614. waitsecond(2)
  3615. end
  3616.  
  3617. tcase << TestAction.new(:Timer_Off) do
  3618. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3619. .with('uitreeindex', 16)
  3620. .with('classname', 'CheckedTextView')
  3621. .with('resource-id', 'android:id/text1')
  3622. .with('content-desc', 'Off')
  3623. .with('text', 'Off')
  3624.  
  3625. $ruiObj.click
  3626.  
  3627. waitsecond(2)
  3628. end
  3629.  
  3630. tcase << TestAction.new(:Swipe_Down) do
  3631. swipe(getDisplayHeight/2, getDisplayWidth/2, getDisplayWidth/2, getDisplayHeight/32, 10)
  3632.  
  3633. waitsecond(2)
  3634. end
  3635.  
  3636. tcase << TestAction.new(:CheeseShutter_Off) do
  3637. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 1656152154).with('textdescid', 268940314).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  3638. .with('uitreeindex', 19)
  3639. .with('classname', 'TextView')
  3640. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  3641. .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". On switch')
  3642. .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
  3643.  
  3644. $ruiObj.click
  3645.  
  3646. waitsecond(2)
  3647. end
  3648.  
  3649. tcase << TestAction.new(:TrackingFocus_Off) do
  3650. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -234528137).with('textdescid', -242443235).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  3651. .with('uitreeindex', 22)
  3652. .with('classname', 'TextView')
  3653. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  3654. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) On switch')
  3655. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  3656.  
  3657. $ruiObj.click
  3658.  
  3659. waitsecond(2)
  3660. end
  3661.  
  3662. tcase << TestAction.new(:TagLocations_Off) do
  3663. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -2083837582).with('textdescid', -1288971334).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3664. .with('uitreeindex', 27)
  3665. .with('classname', 'TextView')
  3666. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3667. .with('content-desc', 'Tag locations On switch')
  3668. .with('text', 'Tag locations')
  3669.  
  3670. $ruiObj.click
  3671.  
  3672. waitsecond(2)
  3673. end
  3674.  
  3675. tcase << TestAction.new(:Grid_Off) do
  3676. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 795465592).with('textdescid', -1093461516).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3677. .with('uitreeindex', 29)
  3678. .with('classname', 'TextView')
  3679. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3680. .with('content-desc', 'Grid On switch')
  3681. .with('text', 'Grid')
  3682.  
  3683. $ruiObj.click
  3684.  
  3685. waitsecond(2)
  3686. end
  3687.  
  3688. tcase << TestAction.new(:AddSignature_Off) do
  3689. $ruiObj = RUIObject.new.with('objectid', -683742256).with('selfid', -1859439098).with('textdescid', 55853521).with('uniqueparentid', 0).with('classresourceid', -1698211271)
  3690. .with('uitreeindex', 35)
  3691. .with('classname', 'Switch')
  3692. .with('resource-id', 'com.lge.camera:id/setting_switch')
  3693. .with('text', 'ON')
  3694.  
  3695. $ruiObj.select('ItemLast').click
  3696.  
  3697. waitsecond(2)
  3698. end
  3699.  
  3700. tcase << TestAction.new(:Exit_Camera_Setting) do
  3701. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  3702. .with('uitreeindex', 2)
  3703. .with('classname', 'ImageButton')
  3704. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3705. .with('content-desc', 'Close settings')
  3706.  
  3707. $ruiObj.click
  3708.  
  3709. waitsecond(2)
  3710. end
  3711.  
  3712. tcase.run(loopTime)
  3713.  
  3714. end
  3715.  
  3716. def self.Photo_Size_4_3_16MP(loopTime)
  3717.  
  3718. tcase = TestCase.new("Photo_Size_4_3_16MP")
  3719.  
  3720. tcase << TestAction.new(:Open_Camera_Settings) do
  3721. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  3722. .with('uitreeindex', 3)
  3723. .with('classname', 'ImageButton')
  3724. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3725. .with('content-desc', 'Open settings')
  3726.  
  3727. $ruiObj.click
  3728.  
  3729. waitsecond(2)
  3730. end
  3731.  
  3732. tcase << TestAction.new(:Photo_Size) do
  3733. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -430869043).with('textdescid', -1531619265).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  3734. .with('uitreeindex', 16)
  3735. .with('classname', 'TextView')
  3736. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  3737. .with('content-desc', 'Photo size')
  3738. .with('text', 'Photo size')
  3739.  
  3740. $ruiObj.click
  3741.  
  3742. waitsecond(2)
  3743. end
  3744.  
  3745. tcase << TestAction.new(:Size_4_3_16MP) do
  3746. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1696793267).with('textdescid', 743590157).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  3747. .with('uitreeindex', 16)
  3748. .with('classname', 'CheckedTextView')
  3749. .with('resource-id', 'android:id/text1')
  3750. .with('content-desc', '4:3 (16 MP) 4656x3492')
  3751. .with('text', '43 16MP 4656x3492')
  3752.  
  3753. $ruiObj.click
  3754.  
  3755. waitsecond(2)
  3756. end
  3757.  
  3758. tcase << TestAction.new(:Exit_Camera_Settings) do
  3759. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2071188370).with('textdescid', 469249158).with('uniqueparentid', 0)
  3760. .with('uitreeindex', 2)
  3761. .with('classname', 'ImageButton')
  3762. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  3763. .with('content-desc', 'Close settings')
  3764.  
  3765. $ruiObj.click
  3766.  
  3767. waitsecond(2)
  3768. end
  3769.  
  3770. tcase.run(loopTime)
  3771.  
  3772. end
  3773.  
  3774. def self.PictureAuto_2_1_1_2(loopTime)
  3775.  
  3776. tcase = TestCase.new("PictureAuto_2_1_1_2")
  3777.  
  3778. tcase << TestAction.new(:LogStart) do
  3779. logStartTest("2_1_1_2_Picture_Auto")
  3780.  
  3781. waitsecond(2)
  3782. end
  3783.  
  3784. tcase << TestAction.new(:Volume_Key_Button) do
  3785. pressVolumeKeyDown
  3786.  
  3787. waitsecond(2)
  3788. end
  3789.  
  3790. tcase << TestAction.new(:Open_Gallery) 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(:Delete_Photo) do
  3803. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3804. .with('uitreeindex', 4)
  3805. .with('classname', 'Button')
  3806. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3807. .with('content-desc', 'Delete')
  3808. .with('text', 'Delete')
  3809.  
  3810. $ruiObj.click
  3811.  
  3812. waitsecond(6)
  3813. end
  3814.  
  3815. tcase << TestAction.new(:Check_Delete_1) 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('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3820. .with('content-desc', 'Delete')
  3821. .with('text', 'Delete')
  3822.  
  3823. $ruiObj.isExist
  3824.  
  3825. waitsecond(2)
  3826. end
  3827.  
  3828. tcase << TestAction.new(:LogStop) do
  3829. $myTestResult = !checkLastExistResult
  3830.  
  3831. logStopTest("2_1_1_2_Picture_Auto")
  3832.  
  3833. waitsecond(2)
  3834. end
  3835.  
  3836. tcase.run(loopTime)
  3837.  
  3838. end
  3839.  
  3840. def self.PictureAuto_2_1_1_3_1(loopTime)
  3841.  
  3842. tcase = TestCase.new("PictureAuto_2_1_1_3_1")
  3843.  
  3844. tcase << TestAction.new(:LogStart) do
  3845. logStartTest("2_1_1_3_1_Picture_Auto")
  3846.  
  3847. waitsecond(2)
  3848. end
  3849.  
  3850. tcase << TestAction.new(:Zoom_In) do
  3851. zoomIn
  3852. zoomIn
  3853. zoomIn
  3854. zoomIn
  3855. zoomIn
  3856. zoomIn
  3857. zoomIn
  3858. zoomIn
  3859. zoomIn
  3860. zoomIn
  3861.  
  3862. waitsecond(2)
  3863. end
  3864.  
  3865. tcase << TestAction.new(:Shutter_Button) do
  3866. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  3867. .with('uitreeindex', 12)
  3868. .with('classname', 'ImageButton')
  3869. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  3870.  
  3871. $ruiObj.click
  3872.  
  3873. waitsecond(2)
  3874. end
  3875.  
  3876. tcase << TestAction.new(:Open_Gallery) do
  3877. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3878. .with('uitreeindex', 14)
  3879. .with('classname', 'ImageView')
  3880. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3881. .with('content-desc', 'Gallery')
  3882.  
  3883. $ruiObj.click
  3884.  
  3885. waitsecond(2)
  3886. end
  3887.  
  3888. tcase << TestAction.new(:Delete_Photo) do
  3889. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3890. .with('uitreeindex', 4)
  3891. .with('classname', 'Button')
  3892. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3893. .with('content-desc', 'Delete')
  3894. .with('text', 'Delete')
  3895.  
  3896. $ruiObj.click
  3897.  
  3898. waitsecond(6)
  3899. end
  3900.  
  3901. tcase << TestAction.new(:Check_Delete_1) do
  3902. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3903. .with('uitreeindex', 4)
  3904. .with('classname', 'Button')
  3905. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3906. .with('content-desc', 'Delete')
  3907. .with('text', 'Delete')
  3908.  
  3909. $ruiObj.isExist
  3910.  
  3911. waitsecond(2)
  3912. end
  3913.  
  3914. tcase << TestAction.new(:LogStop) do
  3915. $myTestResult = !checkLastExistResult
  3916.  
  3917. logStopTest("2_1_1_3_1_Picture_Auto")
  3918.  
  3919. waitsecond(2)
  3920. end
  3921.  
  3922. tcase.run(loopTime)
  3923.  
  3924. end
  3925.  
  3926. def self.PictureAuto_2_1_1_3_2(loopTime)
  3927.  
  3928. tcase = TestCase.new("PictureAuto_2_1_1_3_2")
  3929.  
  3930. tcase << TestAction.new(:LogStart) do
  3931. logStartTest("2_1_1_3_2_Picture_Auto")
  3932.  
  3933. waitsecond(2)
  3934. end
  3935.  
  3936. tcase << TestAction.new(:Zoom_Out) do
  3937. zoomOut
  3938. zoomOut
  3939. zoomOut
  3940. zoomOut
  3941. zoomOut
  3942. zoomOut
  3943. zoomOut
  3944. zoomOut
  3945. zoomOut
  3946. zoomOut
  3947.  
  3948. waitsecond(2)
  3949. end
  3950.  
  3951. tcase << TestAction.new(:Shutter_Button) do
  3952. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  3953. .with('uitreeindex', 11)
  3954. .with('classname', 'ImageButton')
  3955. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  3956.  
  3957. $ruiObj.click
  3958.  
  3959. waitsecond(2)
  3960. end
  3961.  
  3962. tcase << TestAction.new(:Open_Gallery) do
  3963. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  3964. .with('uitreeindex', 14)
  3965. .with('classname', 'ImageView')
  3966. .with('resource-id', 'com.lge.camera:id/thumbnail')
  3967. .with('content-desc', 'Gallery')
  3968.  
  3969. $ruiObj.click
  3970.  
  3971. waitsecond(2)
  3972. end
  3973.  
  3974. tcase << TestAction.new(:Delete_Photo) do
  3975. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3976. .with('uitreeindex', 4)
  3977. .with('classname', 'Button')
  3978. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3979. .with('content-desc', 'Delete')
  3980. .with('text', 'Delete')
  3981.  
  3982. $ruiObj.click
  3983.  
  3984. waitsecond(6)
  3985. end
  3986.  
  3987. tcase << TestAction.new(:Check_Delete_1) do
  3988. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  3989. .with('uitreeindex', 4)
  3990. .with('classname', 'Button')
  3991. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  3992. .with('content-desc', 'Delete')
  3993. .with('text', 'Delete')
  3994.  
  3995. $ruiObj.isExist
  3996.  
  3997. waitsecond(2)
  3998. end
  3999.  
  4000. tcase << TestAction.new(:LogStop) do
  4001. $myTestResult = !checkLastExistResult
  4002.  
  4003. logStopTest("2_1_1_3_2_Picture_Auto")
  4004.  
  4005. waitsecond(2)
  4006. end
  4007.  
  4008. tcase.run(loopTime)
  4009.  
  4010. end
  4011.  
  4012. def self.PictureAuto_2_1_1_4_2(loopTime)
  4013.  
  4014. tcase = TestCase.new("PictureAuto_2_1_1_4_2")
  4015.  
  4016. tcase << TestAction.new(:LogStart) do
  4017. logStartTest("2_1_1_4_2_Picture_Auto")
  4018.  
  4019. waitsecond(2)
  4020. end
  4021.  
  4022. tcase << TestAction.new(:Switch_Normal_View) do
  4023. $ruiObj = RUIObject.new.with('objectid', 717001470).with('selfid', 814879967).with('textdescid', 946505666).with('uniqueparentid', 0)
  4024. .with('uitreeindex', 15)
  4025. .with('classname', 'ImageButton')
  4026. .with('resource-id', 'com.lge.camera:id/btn_dualview_normal_range')
  4027. .with('content-desc', 'Normal angle lens')
  4028.  
  4029. $ruiObj.click
  4030.  
  4031. waitsecond(2)
  4032. end
  4033.  
  4034. tcase << TestAction.new(:Shutter_Button) do
  4035. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4036. .with('uitreeindex', 12)
  4037. .with('classname', 'ImageButton')
  4038. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4039.  
  4040. $ruiObj.click
  4041.  
  4042. waitsecond(2)
  4043. end
  4044.  
  4045. tcase << TestAction.new(:Open_Gallery) do
  4046. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4047. .with('uitreeindex', 14)
  4048. .with('classname', 'ImageView')
  4049. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4050. .with('content-desc', 'Gallery')
  4051.  
  4052. $ruiObj.click
  4053.  
  4054. waitsecond(2)
  4055. end
  4056.  
  4057. tcase << TestAction.new(:Delete_Photo) do
  4058. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4059. .with('uitreeindex', 5)
  4060. .with('classname', 'Button')
  4061. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4062. .with('content-desc', 'Delete')
  4063. .with('text', 'Delete')
  4064.  
  4065. $ruiObj.click
  4066.  
  4067. waitsecond(6)
  4068. end
  4069.  
  4070. tcase << TestAction.new(:Check_Delete_1) do
  4071. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4072. .with('uitreeindex', 5)
  4073. .with('classname', 'Button')
  4074. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4075. .with('content-desc', 'Delete')
  4076. .with('text', 'Delete')
  4077.  
  4078. $ruiObj.isExist
  4079.  
  4080. waitsecond(2)
  4081. end
  4082.  
  4083. tcase << TestAction.new(:LogStop) do
  4084. $myTestResult = !checkLastExistResult
  4085.  
  4086. logStopTest("2_1_1_4_2_Picture_Auto")
  4087.  
  4088. waitsecond(2)
  4089. end
  4090.  
  4091. tcase.run(loopTime)
  4092.  
  4093. end
  4094.  
  4095. def self.PictureAuto_2_1_1_22(loopTime)
  4096.  
  4097. tcase = TestCase.new("PictureAuto_2_1_1_22")
  4098.  
  4099. tcase << TestAction.new(:LogStart) do
  4100. logStartTest("2_1_1_22_Picture_Auto")
  4101.  
  4102. waitsecond(2)
  4103. end
  4104.  
  4105. tcase << TestAction.new(:Open_Camera_Settings) do
  4106. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4107. .with('uitreeindex', 3)
  4108. .with('classname', 'ImageButton')
  4109. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4110. .with('content-desc', 'Open settings')
  4111.  
  4112. $ruiObj.click
  4113.  
  4114. waitsecond(2)
  4115. end
  4116.  
  4117. tcase << TestAction.new(:Swipe_Down) do
  4118. swipe_vertical 500
  4119.  
  4120. waitsecond(2)
  4121. end
  4122.  
  4123. tcase << TestAction.new(:Simple_View_Enter) do
  4124. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4125. .with('uitreeindex', 35)
  4126. .with('classname', 'TextView')
  4127. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4128. .with('content-desc', 'Simple view')
  4129. .with('text', 'Simple view')
  4130.  
  4131. $ruiObj.click
  4132.  
  4133. waitsecond(2)
  4134. end
  4135.  
  4136. tcase << TestAction.new(:Simple_View_Volume_Key) do
  4137. pressVolumeKeyDown
  4138.  
  4139. waitsecond(2)
  4140. end
  4141.  
  4142. tcase << TestAction.new(:Simple_View_Exit) do
  4143. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  4144. .with('uitreeindex', 3)
  4145. .with('classname', 'ImageButton')
  4146. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  4147. .with('content-desc', 'View')
  4148.  
  4149. $ruiObj.click
  4150.  
  4151. waitsecond(2)
  4152. end
  4153.  
  4154. tcase << TestAction.new(:Open_Gallery) do
  4155. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4156. .with('uitreeindex', 15)
  4157. .with('classname', 'ImageView')
  4158. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4159. .with('content-desc', 'Gallery')
  4160.  
  4161. $ruiObj.click
  4162.  
  4163. waitsecond(2)
  4164. end
  4165.  
  4166. tcase << TestAction.new(:Delete_Photo) do
  4167. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4168. .with('uitreeindex', 4)
  4169. .with('classname', 'Button')
  4170. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4171. .with('content-desc', 'Delete')
  4172. .with('text', 'Delete')
  4173.  
  4174. $ruiObj.click
  4175.  
  4176. waitsecond(6)
  4177. end
  4178.  
  4179. tcase << TestAction.new(:Check_Delete_1) do
  4180. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4181. .with('uitreeindex', 4)
  4182. .with('classname', 'Button')
  4183. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4184. .with('content-desc', 'Delete')
  4185. .with('text', 'Delete')
  4186.  
  4187. $ruiObj.isExist
  4188.  
  4189. waitsecond(2)
  4190. end
  4191.  
  4192. tcase << TestAction.new(:LogStop) do
  4193. $myTestResult = !checkLastExistResult
  4194.  
  4195. logStopTest("2_1_1_22_Picture_Auto")
  4196.  
  4197. waitsecond(2)
  4198. end
  4199.  
  4200. tcase.run(loopTime)
  4201.  
  4202. end
  4203.  
  4204. def self.PictureAuto_2_1_1_23_1(loopTime)
  4205.  
  4206. tcase = TestCase.new("PictureAuto_2_1_1_23_1")
  4207.  
  4208. tcase << TestAction.new(:LogStart) do
  4209. logStartTest("2_1_1_23_1_Picture_Auto")
  4210.  
  4211. waitsecond(2)
  4212. end
  4213.  
  4214. tcase << TestAction.new(:Open_Camera_Settings) do
  4215. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4216. .with('uitreeindex', 3)
  4217. .with('classname', 'ImageButton')
  4218. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4219. .with('content-desc', 'Open settings')
  4220.  
  4221. $ruiObj.click
  4222.  
  4223. waitsecond(2)
  4224. end
  4225.  
  4226. tcase << TestAction.new(:Swipe_Down) do
  4227. swipe_vertical 500
  4228.  
  4229. waitsecond(2)
  4230. end
  4231.  
  4232. tcase << TestAction.new(:Simple_View_Enter) do
  4233. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4234. .with('uitreeindex', 35)
  4235. .with('classname', 'TextView')
  4236. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4237. .with('content-desc', 'Simple view')
  4238. .with('text', 'Simple view')
  4239.  
  4240. $ruiObj.click
  4241.  
  4242. waitsecond(2)
  4243. end
  4244.  
  4245. tcase << TestAction.new(:Zoom_In) do
  4246. zoomIn
  4247. zoomIn
  4248. zoomIn
  4249. zoomIn
  4250. zoomIn
  4251. zoomIn
  4252. zoomIn
  4253. zoomIn
  4254. zoomIn
  4255. zoomIn
  4256.  
  4257. waitsecond(2)
  4258. end
  4259.  
  4260. tcase << TestAction.new(:Simple_View_Picture) do
  4261. click(getDisplayWidth/2, getDisplayHeight/2)
  4262.  
  4263. waitsecond(2)
  4264. end
  4265.  
  4266. tcase << TestAction.new(:Simple_View_Exit) do
  4267. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  4268. .with('uitreeindex', 3)
  4269. .with('classname', 'ImageButton')
  4270. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  4271. .with('content-desc', 'View')
  4272.  
  4273. $ruiObj.click
  4274.  
  4275. waitsecond(2)
  4276. end
  4277.  
  4278. tcase << TestAction.new(:Open_Gallery) do
  4279. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4280. .with('uitreeindex', 15)
  4281. .with('classname', 'ImageView')
  4282. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4283. .with('content-desc', 'Gallery')
  4284.  
  4285. $ruiObj.click
  4286.  
  4287. waitsecond(2)
  4288. end
  4289.  
  4290. tcase << TestAction.new(:Delete_Photo) do
  4291. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4292. .with('uitreeindex', 4)
  4293. .with('classname', 'Button')
  4294. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4295. .with('content-desc', 'Delete')
  4296. .with('text', 'Delete')
  4297.  
  4298. $ruiObj.click
  4299.  
  4300. waitsecond(6)
  4301. end
  4302.  
  4303. tcase << TestAction.new(:Check_Delete_1) do
  4304. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4305. .with('uitreeindex', 4)
  4306. .with('classname', 'Button')
  4307. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4308. .with('content-desc', 'Delete')
  4309. .with('text', 'Delete')
  4310.  
  4311. $ruiObj.isExist
  4312.  
  4313. waitsecond(2)
  4314. end
  4315.  
  4316. tcase << TestAction.new(:LogStop) do
  4317. $myTestResult = !checkLastExistResult
  4318.  
  4319. logStopTest("2_1_1_23_1_Picture_Auto")
  4320.  
  4321. waitsecond(2)
  4322. end
  4323.  
  4324. tcase.run(loopTime)
  4325.  
  4326. end
  4327.  
  4328. def self.PictureAuto_2_1_1_23_2(loopTime)
  4329.  
  4330. tcase = TestCase.new("PictureAuto_2_1_1_23_2")
  4331.  
  4332. tcase << TestAction.new(:LogStart) do
  4333. logStartTest("2_1_1_23_2_Picture_Auto")
  4334.  
  4335. waitsecond(2)
  4336. end
  4337.  
  4338. tcase << TestAction.new(:Open_Camera_Settings) do
  4339. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4340. .with('uitreeindex', 3)
  4341. .with('classname', 'ImageButton')
  4342. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4343. .with('content-desc', 'Open settings')
  4344.  
  4345. $ruiObj.click
  4346.  
  4347. waitsecond(2)
  4348. end
  4349.  
  4350. tcase << TestAction.new(:Swipe_Down) do
  4351. swipe_vertical 500
  4352.  
  4353. waitsecond(2)
  4354. end
  4355.  
  4356. tcase << TestAction.new(:Simple_View_Enter) do
  4357. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  4358. .with('uitreeindex', 35)
  4359. .with('classname', 'TextView')
  4360. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  4361. .with('content-desc', 'Simple view')
  4362. .with('text', 'Simple view')
  4363.  
  4364. $ruiObj.click
  4365.  
  4366. waitsecond(2)
  4367. end
  4368.  
  4369. tcase << TestAction.new(:Zoom_Out) do
  4370. zoomOut
  4371. zoomOut
  4372. zoomOut
  4373. zoomOut
  4374. zoomOut
  4375. zoomOut
  4376. zoomOut
  4377. zoomOut
  4378. zoomOut
  4379. zoomOut
  4380.  
  4381. waitsecond(2)
  4382. end
  4383.  
  4384. tcase << TestAction.new(:Simple_View_Picture) do
  4385. click(getDisplayWidth/2, getDisplayHeight/2)
  4386.  
  4387. waitsecond(2)
  4388. end
  4389.  
  4390. tcase << TestAction.new(:Simple_View_Exit) do
  4391. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  4392. .with('uitreeindex', 3)
  4393. .with('classname', 'ImageButton')
  4394. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  4395. .with('content-desc', 'View')
  4396.  
  4397. $ruiObj.click
  4398.  
  4399. waitsecond(2)
  4400. end
  4401.  
  4402. tcase << TestAction.new(:Open_Gallery) do
  4403. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4404. .with('uitreeindex', 13)
  4405. .with('classname', 'ImageView')
  4406. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4407. .with('content-desc', 'Gallery')
  4408.  
  4409. $ruiObj.click
  4410.  
  4411. waitsecond(2)
  4412. end
  4413.  
  4414. tcase << TestAction.new(:Delete_Photo) do
  4415. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4416. .with('uitreeindex', 4)
  4417. .with('classname', 'Button')
  4418. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4419. .with('content-desc', 'Delete')
  4420. .with('text', 'Delete')
  4421.  
  4422. $ruiObj.click
  4423.  
  4424. waitsecond(6)
  4425. end
  4426.  
  4427. tcase << TestAction.new(:Check_Delete_1) do
  4428. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4429. .with('uitreeindex', 4)
  4430. .with('classname', 'Button')
  4431. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4432. .with('content-desc', 'Delete')
  4433. .with('text', 'Delete')
  4434.  
  4435. $ruiObj.isExist
  4436.  
  4437. waitsecond(2)
  4438. end
  4439.  
  4440. tcase << TestAction.new(:LogStop) do
  4441. $myTestResult = !checkLastExistResult
  4442.  
  4443. logStopTest("2_1_1_23_2_Picture_Auto")
  4444.  
  4445. waitsecond(2)
  4446. end
  4447.  
  4448. tcase.run(loopTime)
  4449.  
  4450. end
  4451.  
  4452. def self.PictureAuto_2_1_1_9_2(loopTime)
  4453.  
  4454. tcase = TestCase.new("PictureAuto_2_1_1_9_2")
  4455.  
  4456. tcase << TestAction.new(:LogStart) do
  4457. logStartTest("2_1_1_9_2_Picture_Auto")
  4458.  
  4459. waitsecond(2)
  4460. end
  4461.  
  4462. tcase << TestAction.new(:Open_Camera_Settings) do
  4463. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4464. .with('uitreeindex', 24)
  4465. .with('classname', 'ImageButton')
  4466. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4467. .with('content-desc', 'Open settings')
  4468.  
  4469. $ruiObj.click
  4470.  
  4471. waitsecond(2)
  4472. end
  4473.  
  4474. tcase << TestAction.new(:Camera_Roll_Off) do
  4475. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -1218314212).with('textdescid', -150235496).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  4476. .with('uitreeindex', 45)
  4477. .with('classname', 'TextView')
  4478. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  4479. .with('content-desc', 'Show your recent photos and videos on the camera preview On switch')
  4480. .with('text', 'Show your recent photos and videos on the camera preview')
  4481.  
  4482. $ruiObj.click
  4483.  
  4484. waitsecond(2)
  4485. end
  4486.  
  4487. tcase << TestAction.new(:Shutter_Button) do
  4488. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  4489. .with('uitreeindex', 30)
  4490. .with('classname', 'ImageButton')
  4491. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  4492. .with('content-desc', 'Shutter')
  4493.  
  4494. $ruiObj.click
  4495.  
  4496. waitsecond(2)
  4497. end
  4498.  
  4499. tcase << TestAction.new(:Open_Gallery) do
  4500. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4501. .with('uitreeindex', 14)
  4502. .with('classname', 'ImageView')
  4503. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4504. .with('content-desc', 'Gallery')
  4505.  
  4506. $ruiObj.click
  4507.  
  4508. waitsecond(2)
  4509. end
  4510.  
  4511. tcase << TestAction.new(:Delete_Photo) do
  4512. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4513. .with('uitreeindex', 5)
  4514. .with('classname', 'Button')
  4515. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4516. .with('content-desc', 'Delete')
  4517. .with('text', 'Delete')
  4518.  
  4519. $ruiObj.click
  4520.  
  4521. waitsecond(6)
  4522. end
  4523.  
  4524. tcase << TestAction.new(:Check_Delete_1) do
  4525. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4526. .with('uitreeindex', 5)
  4527. .with('classname', 'Button')
  4528. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4529. .with('content-desc', 'Delete')
  4530. .with('text', 'Delete')
  4531.  
  4532. $ruiObj.isExist
  4533.  
  4534. waitsecond(2)
  4535. end
  4536.  
  4537. tcase << TestAction.new(:LogStop) do
  4538. $myTestResult = !checkLastExistResult
  4539.  
  4540. logStopTest("2_1_1_9_2_Picture_Auto")
  4541.  
  4542. waitsecond(2)
  4543. end
  4544.  
  4545. tcase.run(loopTime)
  4546.  
  4547. end
  4548.  
  4549. def self.PictureAuto_2_1_1_9_1(loopTime)
  4550.  
  4551. tcase = TestCase.new("PictureAuto_2_1_1_9_1")
  4552.  
  4553. tcase << TestAction.new(:LogStart) do
  4554. logStartTest("2_1_1_9_1_Picture_Auto")
  4555.  
  4556. waitsecond(2)
  4557. end
  4558.  
  4559. tcase << TestAction.new(:Open_Camera_Settings) do
  4560. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  4561. .with('uitreeindex', 2)
  4562. .with('classname', 'ImageButton')
  4563. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  4564. .with('content-desc', 'Open settings')
  4565.  
  4566. $ruiObj.click
  4567.  
  4568. waitsecond(2)
  4569. end
  4570.  
  4571. tcase << TestAction.new(:Camera_Roll_On) do
  4572. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 257319662).with('textdescid', -1276262562).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  4573. .with('uitreeindex', 25)
  4574. .with('classname', 'TextView')
  4575. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  4576. .with('content-desc', 'Show your recent photos and videos on the camera preview Off switch')
  4577. .with('text', 'Show your recent photos and videos on the camera preview')
  4578.  
  4579. $ruiObj.click
  4580.  
  4581. waitsecond(2)
  4582. end
  4583.  
  4584. tcase << TestAction.new(:Shutter_Button) do
  4585. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  4586. .with('uitreeindex', 9)
  4587. .with('classname', 'ImageButton')
  4588. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  4589. .with('content-desc', 'Shutter')
  4590.  
  4591. $ruiObj.click
  4592.  
  4593. waitsecond(2)
  4594. end
  4595.  
  4596. tcase << TestAction.new(:Open_Gallery) do
  4597. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4598. .with('uitreeindex', 14)
  4599. .with('classname', 'ImageView')
  4600. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4601. .with('content-desc', 'Gallery')
  4602.  
  4603. $ruiObj.click
  4604.  
  4605. waitsecond(2)
  4606. end
  4607.  
  4608. tcase << TestAction.new(:Delete_Photo) do
  4609. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4610. .with('uitreeindex', 5)
  4611. .with('classname', 'Button')
  4612. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4613. .with('content-desc', 'Delete')
  4614. .with('text', 'Delete')
  4615.  
  4616. $ruiObj.click
  4617.  
  4618. waitsecond(6)
  4619. end
  4620.  
  4621. tcase << TestAction.new(:Check_Delete_1) do
  4622. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4623. .with('uitreeindex', 5)
  4624. .with('classname', 'Button')
  4625. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4626. .with('content-desc', 'Delete')
  4627. .with('text', 'Delete')
  4628.  
  4629. $ruiObj.isExist
  4630.  
  4631. waitsecond(2)
  4632. end
  4633.  
  4634. tcase << TestAction.new(:LogStop) do
  4635. $myTestResult = !checkLastExistResult
  4636.  
  4637. logStopTest("2_1_1_9_1_Picture_Auto")
  4638.  
  4639. waitsecond(2)
  4640. end
  4641.  
  4642. tcase.run(loopTime)
  4643.  
  4644. end
  4645.  
  4646. def self.PictureAuto_2_1_1_8(loopTime)
  4647.  
  4648. tcase = TestCase.new("PictureAuto_2_1_1_8")
  4649.  
  4650. tcase << TestAction.new(:LogStart) do
  4651. logStartTest("2_1_1_8_Picture_Auto")
  4652.  
  4653. waitsecond(2)
  4654. end
  4655.  
  4656. tcase << TestAction.new(:Change_Film) do
  4657. rng = Random.new()
  4658.  
  4659. waitsecond(2)
  4660.  
  4661. RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  4662. .with('uitreeindex', 31)
  4663. .with('classname', 'ImageButton')
  4664. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  4665. .with('content-desc', 'Filter').click
  4666.  
  4667. waitsecond(2)
  4668.  
  4669. index = rng.rand(db('FilmChange').length-1)
  4670.  
  4671. RUIObject.new.with('objectid', -1312790971).with('selfid', 479986141).with('textdescid', 1166933783).with('uniqueparentid', 0)
  4672. .with('uitreeindex', 30)
  4673. .with('classname', 'android.view.View')
  4674. .with('content-desc', db('FilmChange')[index]).click
  4675.  
  4676. waitsecond(2)
  4677. end
  4678.  
  4679. tcase << TestAction.new(:Shutter_Button) do
  4680. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4681. .with('uitreeindex', 11)
  4682. .with('classname', 'ImageButton')
  4683. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4684.  
  4685. $ruiObj.click
  4686.  
  4687. waitsecond(2)
  4688. end
  4689.  
  4690. tcase << TestAction.new(:Open_Film) do
  4691. $ruiObj = RUIObject.new.with('objectid', 1447192180).with('selfid', -170779466).with('textdescid', -373050940).with('uniqueparentid', 0)
  4692. .with('uitreeindex', 4)
  4693. .with('classname', 'ImageButton')
  4694. .with('resource-id', 'com.lge.camera:id/quick_button_film_emulator')
  4695. .with('content-desc', 'Filter')
  4696.  
  4697. $ruiObj.click
  4698.  
  4699. waitsecond(2)
  4700. end
  4701.  
  4702. tcase << TestAction.new(:Change_Film_None) do
  4703. $ruiObj = RUIObject.new.with('objectid', -1945005961).with('selfid', 748781049).with('textdescid', 166290721).with('uniqueparentid', 0)
  4704. .with('uitreeindex', 22)
  4705. .with('classname', 'android.view.View')
  4706. .with('content-desc', 'None')
  4707.  
  4708. $ruiObj.click
  4709.  
  4710. waitsecond(2)
  4711. end
  4712.  
  4713. tcase << TestAction.new(:Open_Gallery) do
  4714. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4715. .with('uitreeindex', 14)
  4716. .with('classname', 'ImageView')
  4717. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4718. .with('content-desc', 'Gallery')
  4719.  
  4720. $ruiObj.click
  4721.  
  4722. waitsecond(2)
  4723. end
  4724.  
  4725. tcase << TestAction.new(:Delete_Photo) do
  4726. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4727. .with('uitreeindex', 4)
  4728. .with('classname', 'Button')
  4729. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4730. .with('content-desc', 'Delete')
  4731. .with('text', 'Delete')
  4732.  
  4733. $ruiObj.click
  4734.  
  4735. waitsecond(6)
  4736. end
  4737.  
  4738. tcase << TestAction.new(:Check_Delete_1) do
  4739. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4740. .with('uitreeindex', 4)
  4741. .with('classname', 'Button')
  4742. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4743. .with('content-desc', 'Delete')
  4744. .with('text', 'Delete')
  4745.  
  4746. $ruiObj.isExist
  4747.  
  4748. waitsecond(2)
  4749. end
  4750.  
  4751. tcase << TestAction.new(:LogStop) do
  4752. $myTestResult = !checkLastExistResult
  4753.  
  4754. logStopTest("2_1_1_8_Picture_Auto")
  4755.  
  4756. waitsecond(2)
  4757. end
  4758.  
  4759. tcase.run(loopTime)
  4760.  
  4761. end
  4762.  
  4763. def self.PictureAuto_2_1_1_7(loopTime)
  4764.  
  4765. tcase = TestCase.new("PictureAuto_2_1_1_7")
  4766.  
  4767. tcase << TestAction.new(:LogStart) do
  4768. logStartTest("2_1_1_7_Picture_Auto")
  4769.  
  4770. waitsecond(2)
  4771. end
  4772.  
  4773. tcase << TestAction.new(:Flash_Auto) do
  4774. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  4775. .with('uitreeindex', 7)
  4776. .with('classname', 'ImageButton')
  4777. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  4778. .with('content-desc', 'Switch to flash on')
  4779.  
  4780. $ruiObj.click
  4781.  
  4782. waitsecond(2)
  4783. end
  4784.  
  4785. tcase << TestAction.new(:Shutter_Button) do
  4786. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4787. .with('uitreeindex', 12)
  4788. .with('classname', 'ImageButton')
  4789. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4790.  
  4791. $ruiObj.click
  4792.  
  4793. waitsecond(2)
  4794. end
  4795.  
  4796. tcase << TestAction.new(:Open_Gallery) do
  4797. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4798. .with('uitreeindex', 14)
  4799. .with('classname', 'ImageView')
  4800. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4801. .with('content-desc', 'Gallery')
  4802.  
  4803. $ruiObj.click
  4804.  
  4805. waitsecond(2)
  4806. end
  4807.  
  4808. tcase << TestAction.new(:Delete_Photo) do
  4809. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4810. .with('uitreeindex', 4)
  4811. .with('classname', 'Button')
  4812. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4813. .with('content-desc', 'Delete')
  4814. .with('text', 'Delete')
  4815.  
  4816. $ruiObj.click
  4817.  
  4818. waitsecond(6)
  4819. end
  4820.  
  4821. tcase << TestAction.new(:Check_Delete_1) do
  4822. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4823. .with('uitreeindex', 4)
  4824. .with('classname', 'Button')
  4825. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4826. .with('content-desc', 'Delete')
  4827. .with('text', 'Delete')
  4828.  
  4829. $ruiObj.isExist
  4830.  
  4831. waitsecond(2)
  4832. end
  4833.  
  4834. tcase << TestAction.new(:LogStop) do
  4835. $myTestResult = !checkLastExistResult
  4836.  
  4837. logStopTest("2_1_1_7_Picture_Auto")
  4838.  
  4839. waitsecond(2)
  4840. end
  4841.  
  4842. tcase.run(loopTime)
  4843.  
  4844. end
  4845.  
  4846. def self.PictureAuto_2_1_1_6(loopTime)
  4847.  
  4848. tcase = TestCase.new("PictureAuto_2_1_1_6")
  4849.  
  4850. tcase << TestAction.new(:LogStart) do
  4851. logStartTest("2_1_1_6_Picture_Auto")
  4852.  
  4853. waitsecond(2)
  4854. end
  4855.  
  4856. tcase << TestAction.new(:Flash_On) do
  4857. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  4858. .with('uitreeindex', 6)
  4859. .with('classname', 'ImageButton')
  4860. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  4861. .with('content-desc', 'Switch to flash on')
  4862.  
  4863. $ruiObj.click
  4864.  
  4865. waitsecond(2)
  4866. end
  4867.  
  4868. tcase << TestAction.new(:Shutter_Button) do
  4869. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4870. .with('uitreeindex', 13)
  4871. .with('classname', 'ImageButton')
  4872. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4873.  
  4874. $ruiObj.click
  4875.  
  4876. waitsecond(2)
  4877. end
  4878.  
  4879. tcase << TestAction.new(:Open_Gallery) do
  4880. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4881. .with('uitreeindex', 14)
  4882. .with('classname', 'ImageView')
  4883. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4884. .with('content-desc', 'Gallery')
  4885.  
  4886. $ruiObj.click
  4887.  
  4888. waitsecond(2)
  4889. end
  4890.  
  4891. tcase << TestAction.new(:Delete_Photo) do
  4892. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4893. .with('uitreeindex', 4)
  4894. .with('classname', 'Button')
  4895. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4896. .with('content-desc', 'Delete')
  4897. .with('text', 'Delete')
  4898.  
  4899. $ruiObj.click
  4900.  
  4901. waitsecond(6)
  4902. end
  4903.  
  4904. tcase << TestAction.new(:Check_Delete_1) do
  4905. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4906. .with('uitreeindex', 4)
  4907. .with('classname', 'Button')
  4908. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4909. .with('content-desc', 'Delete')
  4910. .with('text', 'Delete')
  4911.  
  4912. $ruiObj.isExist
  4913.  
  4914. waitsecond(2)
  4915. end
  4916.  
  4917. tcase << TestAction.new(:LogStop) do
  4918. $myTestResult = !checkLastExistResult
  4919.  
  4920. logStopTest("2_1_1_6_Picture_Auto")
  4921.  
  4922. waitsecond(2)
  4923. end
  4924.  
  4925. tcase.run(loopTime)
  4926.  
  4927. end
  4928.  
  4929. def self.PictureAuto_2_1_1_5(loopTime)
  4930.  
  4931. tcase = TestCase.new("PictureAuto_2_1_1_5")
  4932.  
  4933. tcase << TestAction.new(:LogStart) do
  4934. logStartTest("2_1_1_5_Picture_Auto")
  4935.  
  4936. waitsecond(2)
  4937. end
  4938.  
  4939. tcase << TestAction.new(:Flash_Off) do
  4940. $ruiObj = RUIObject.new.with('objectid', -1160005900).with('selfid', 183863686).with('textdescid', -1655596812).with('uniqueparentid', 0)
  4941. .with('uitreeindex', 6)
  4942. .with('classname', 'ImageButton')
  4943. .with('resource-id', 'com.lge.camera:id/quick_button_flash')
  4944. .with('content-desc', 'Switch to flash on')
  4945.  
  4946. $ruiObj.click
  4947.  
  4948. waitsecond(2)
  4949. end
  4950.  
  4951. tcase << TestAction.new(:Shutter_Button) do
  4952. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  4953. .with('uitreeindex', 11)
  4954. .with('classname', 'ImageButton')
  4955. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  4956.  
  4957. $ruiObj.click
  4958.  
  4959. waitsecond(2)
  4960. end
  4961.  
  4962. tcase << TestAction.new(:Open_Gallery) do
  4963. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  4964. .with('uitreeindex', 14)
  4965. .with('classname', 'ImageView')
  4966. .with('resource-id', 'com.lge.camera:id/thumbnail')
  4967. .with('content-desc', 'Gallery')
  4968.  
  4969. $ruiObj.click
  4970.  
  4971. waitsecond(2)
  4972. end
  4973.  
  4974. tcase << TestAction.new(:Check_Delete) do
  4975. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4976. .with('uitreeindex', 4)
  4977. .with('classname', 'Button')
  4978. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4979. .with('content-desc', 'Delete')
  4980. .with('text', 'Delete')
  4981.  
  4982. $ruiObj.isExist
  4983.  
  4984. waitsecond(2)
  4985. end
  4986.  
  4987. tcase << TestAction.new(:Delete_Photo) do
  4988. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  4989. .with('uitreeindex', 4)
  4990. .with('classname', 'Button')
  4991. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  4992. .with('content-desc', 'Delete')
  4993. .with('text', 'Delete')
  4994.  
  4995. $ruiObj.click
  4996.  
  4997. waitsecond(6)
  4998. end
  4999.  
  5000. tcase << TestAction.new(:Check_Delete_1) do
  5001. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5002. .with('uitreeindex', 4)
  5003. .with('classname', 'Button')
  5004. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5005. .with('content-desc', 'Delete')
  5006. .with('text', 'Delete')
  5007.  
  5008. $ruiObj.isExist
  5009.  
  5010. waitsecond(2)
  5011. end
  5012.  
  5013. tcase << TestAction.new(:LogStop) do
  5014. $myTestResult = !checkLastExistResult
  5015.  
  5016. logStopTest("2_1_1_5_Picture_Auto")
  5017.  
  5018. waitsecond(2)
  5019. end
  5020.  
  5021. tcase.run(loopTime)
  5022.  
  5023. end
  5024.  
  5025. def self.PictureAuto_2_1_1_4_1(loopTime)
  5026.  
  5027. tcase = TestCase.new("PictureAuto_2_1_1_4_1")
  5028.  
  5029. tcase << TestAction.new(:LogStart) do
  5030. logStartTest("2_1_1_4_1_Picture_Auto")
  5031.  
  5032. waitsecond(2)
  5033. end
  5034.  
  5035. tcase << TestAction.new(:Switch_Wide_View) do
  5036. $ruiObj = RUIObject.new.with('objectid', -355772886).with('selfid', -1759883529).with('textdescid', -2115781374).with('uniqueparentid', 0)
  5037. .with('uitreeindex', 16)
  5038. .with('classname', 'ImageButton')
  5039. .with('resource-id', 'com.lge.camera:id/btn_dualview_wide_range')
  5040. .with('content-desc', 'Wide angle lens')
  5041.  
  5042. $ruiObj.click
  5043.  
  5044. waitsecond(2)
  5045. end
  5046.  
  5047. tcase << TestAction.new(:Shutter_Button) do
  5048. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  5049. .with('uitreeindex', 11)
  5050. .with('classname', 'ImageButton')
  5051. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  5052.  
  5053. $ruiObj.click
  5054.  
  5055. waitsecond(2)
  5056. end
  5057.  
  5058. tcase << TestAction.new(:Open_Gallery) do
  5059. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5060. .with('uitreeindex', 14)
  5061. .with('classname', 'ImageView')
  5062. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5063. .with('content-desc', 'Gallery')
  5064.  
  5065. $ruiObj.click
  5066.  
  5067. waitsecond(2)
  5068. end
  5069.  
  5070. tcase << TestAction.new(:Delete_Photo) do
  5071. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5072. .with('uitreeindex', 4)
  5073. .with('classname', 'Button')
  5074. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5075. .with('content-desc', 'Delete')
  5076. .with('text', 'Delete')
  5077.  
  5078. $ruiObj.click
  5079.  
  5080. waitsecond(6)
  5081. end
  5082.  
  5083. tcase << TestAction.new(:Check_Delete_1) do
  5084. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5085. .with('uitreeindex', 4)
  5086. .with('classname', 'Button')
  5087. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5088. .with('content-desc', 'Delete')
  5089. .with('text', 'Delete')
  5090.  
  5091. $ruiObj.isExist
  5092.  
  5093. waitsecond(2)
  5094. end
  5095.  
  5096. tcase << TestAction.new(:LogStop) do
  5097. $myTestResult = !checkLastExistResult
  5098.  
  5099. logStopTest("2_1_1_4_1_Picture_Auto")
  5100.  
  5101. waitsecond(2)
  5102. end
  5103.  
  5104. tcase.run(loopTime)
  5105.  
  5106. end
  5107.  
  5108. def self.PictureAuto_2_1_1_21(loopTime)
  5109.  
  5110. tcase = TestCase.new("PictureAuto_2_1_1_21")
  5111.  
  5112. tcase << TestAction.new(:LogStart) do
  5113. logStartTest("2_1_1_21_Picture_Auto")
  5114.  
  5115. waitsecond(2)
  5116. end
  5117.  
  5118. tcase << TestAction.new(:Open_Camera_Settings) do
  5119. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5120. .with('uitreeindex', 3)
  5121. .with('classname', 'ImageButton')
  5122. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5123. .with('content-desc', 'Open settings')
  5124.  
  5125. $ruiObj.click
  5126.  
  5127. waitsecond(2)
  5128. end
  5129.  
  5130. tcase << TestAction.new(:Swipe_Down) do
  5131. swipe_vertical 500
  5132.  
  5133. waitsecond(2)
  5134. end
  5135.  
  5136. tcase << TestAction.new(:Simple_View_Enter) do
  5137. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -1638459757).with('textdescid', -1395718599).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5138. .with('uitreeindex', 35)
  5139. .with('classname', 'TextView')
  5140. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5141. .with('content-desc', 'Simple view')
  5142. .with('text', 'Simple view')
  5143.  
  5144. $ruiObj.click
  5145.  
  5146. waitsecond(2)
  5147. end
  5148.  
  5149. tcase << TestAction.new(:Simple_View_Picture) do
  5150. click(getDisplayWidth/2, getDisplayHeight/2)
  5151.  
  5152. waitsecond(2)
  5153. end
  5154.  
  5155. tcase << TestAction.new(:Simple_View_Exit) do
  5156. $ruiObj = RUIObject.new.with('objectid', 1601410951).with('selfid', 2479282).with('textdescid', -1209880514).with('uniqueparentid', 0)
  5157. .with('uitreeindex', 3)
  5158. .with('classname', 'ImageButton')
  5159. .with('resource-id', 'com.lge.camera:id/quick_button_clean_view_off')
  5160. .with('content-desc', 'View')
  5161.  
  5162. $ruiObj.click
  5163.  
  5164. waitsecond(2)
  5165. end
  5166.  
  5167. tcase << TestAction.new(:Open_Gallery) do
  5168. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5169. .with('uitreeindex', 15)
  5170. .with('classname', 'ImageView')
  5171. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5172. .with('content-desc', 'Gallery')
  5173.  
  5174. $ruiObj.click
  5175.  
  5176. waitsecond(2)
  5177. end
  5178.  
  5179. tcase << TestAction.new(:Delete_Photo) do
  5180. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5181. .with('uitreeindex', 4)
  5182. .with('classname', 'Button')
  5183. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5184. .with('content-desc', 'Delete')
  5185. .with('text', 'Delete')
  5186.  
  5187. $ruiObj.click
  5188.  
  5189. waitsecond(6)
  5190. end
  5191.  
  5192. tcase << TestAction.new(:Check_Delete_1) do
  5193. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5194. .with('uitreeindex', 4)
  5195. .with('classname', 'Button')
  5196. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5197. .with('content-desc', 'Delete')
  5198. .with('text', 'Delete')
  5199.  
  5200. $ruiObj.isExist
  5201.  
  5202. waitsecond(2)
  5203. end
  5204.  
  5205. tcase << TestAction.new(:LogStop) do
  5206. $myTestResult = !checkLastExistResult
  5207.  
  5208. logStopTest("2_1_1_21_Picture_Auto")
  5209.  
  5210. waitsecond(2)
  5211. end
  5212.  
  5213. tcase.run(loopTime)
  5214.  
  5215. end
  5216.  
  5217. def self.PictureAuto_2_1_1_20(loopTime)
  5218.  
  5219. tcase = TestCase.new("PictureAuto_2_1_1_20")
  5220.  
  5221. tcase << TestAction.new(:LogStart) do
  5222. logStartTest("2_1_1_20_Picture_Auto")
  5223.  
  5224. waitsecond(2)
  5225. end
  5226.  
  5227. tcase << TestAction.new(:Open_Camera_Settings) do
  5228. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5229. .with('uitreeindex', 3)
  5230. .with('classname', 'ImageButton')
  5231. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5232. .with('content-desc', 'Open settings')
  5233.  
  5234. $ruiObj.click
  5235.  
  5236. waitsecond(2)
  5237. end
  5238.  
  5239. tcase << TestAction.new(:Swipe_Down) do
  5240. swipe_vertical 500
  5241.  
  5242. waitsecond(2)
  5243. end
  5244.  
  5245. tcase << TestAction.new(:Add_Signature_On) do
  5246. $ruiObj = RUIObject.new.with('objectid', -683742256).with('selfid', -1808037368).with('textdescid', 1731452673).with('uniqueparentid', 0).with('classresourceid', -1698211271)
  5247. .with('uitreeindex', 34)
  5248. .with('classname', 'Switch')
  5249. .with('resource-id', 'com.lge.camera:id/setting_switch')
  5250. .with('text', 'OFF')
  5251.  
  5252. $ruiObj.click
  5253.  
  5254. waitsecond(2)
  5255. end
  5256.  
  5257. tcase << TestAction.new(:Shutter_Button) do
  5258. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5259. .with('uitreeindex', 9)
  5260. .with('classname', 'ImageButton')
  5261. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5262. .with('content-desc', 'Shutter')
  5263.  
  5264. $ruiObj.click
  5265.  
  5266. waitsecond(2)
  5267. end
  5268.  
  5269. tcase << TestAction.new(:Open_Gallery) do
  5270. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5271. .with('uitreeindex', 15)
  5272. .with('classname', 'ImageView')
  5273. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5274. .with('content-desc', 'Gallery')
  5275.  
  5276. $ruiObj.click
  5277.  
  5278. waitsecond(2)
  5279. end
  5280.  
  5281. tcase << TestAction.new(:Delete_Photo) do
  5282. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5283. .with('uitreeindex', 4)
  5284. .with('classname', 'Button')
  5285. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5286. .with('content-desc', 'Delete')
  5287. .with('text', 'Delete')
  5288.  
  5289. $ruiObj.click
  5290.  
  5291. waitsecond(6)
  5292. end
  5293.  
  5294. tcase << TestAction.new(:Check_Delete_1) do
  5295. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5296. .with('uitreeindex', 4)
  5297. .with('classname', 'Button')
  5298. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5299. .with('content-desc', 'Delete')
  5300. .with('text', 'Delete')
  5301.  
  5302. $ruiObj.isExist
  5303.  
  5304. waitsecond(2)
  5305. end
  5306.  
  5307. tcase << TestAction.new(:LogStop) do
  5308. $myTestResult = !checkLastExistResult
  5309.  
  5310. logStopTest("2_1_1_20_Picture_Auto")
  5311.  
  5312. waitsecond(2)
  5313. end
  5314.  
  5315. tcase.run(loopTime)
  5316.  
  5317. end
  5318.  
  5319. def self.PictureAuto_2_1_1_19(loopTime)
  5320.  
  5321. tcase = TestCase.new("PictureAuto_2_1_1_19")
  5322.  
  5323. tcase << TestAction.new(:LogStart) do
  5324. logStartTest("2_1_1_19_Picture_Auto")
  5325.  
  5326. waitsecond(2)
  5327. end
  5328.  
  5329. tcase << TestAction.new(:Open_Camera_Settings) do
  5330. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5331. .with('uitreeindex', 2)
  5332. .with('classname', 'ImageButton')
  5333. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5334. .with('content-desc', 'Open settings')
  5335.  
  5336. $ruiObj.click
  5337.  
  5338. waitsecond(2)
  5339. end
  5340.  
  5341. tcase << TestAction.new(:Swipe_Down) do
  5342. swipe_vertical 500
  5343.  
  5344. waitsecond(2)
  5345. end
  5346.  
  5347. tcase << TestAction.new(:Grid_On) do
  5348. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 2128769562).with('textdescid', -1368287878).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5349. .with('uitreeindex', 29)
  5350. .with('classname', 'TextView')
  5351. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5352. .with('content-desc', 'Grid Off switch')
  5353. .with('text', 'Grid')
  5354.  
  5355. $ruiObj.click
  5356.  
  5357. waitsecond(2)
  5358. end
  5359.  
  5360. tcase << TestAction.new(:Shutter_Button) do
  5361. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5362. .with('uitreeindex', 9)
  5363. .with('classname', 'ImageButton')
  5364. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5365. .with('content-desc', 'Shutter')
  5366.  
  5367. $ruiObj.click
  5368.  
  5369. waitsecond(2)
  5370. end
  5371.  
  5372. tcase << TestAction.new(:Open_Gallery) do
  5373. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5374. .with('uitreeindex', 15)
  5375. .with('classname', 'ImageView')
  5376. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5377. .with('content-desc', 'Gallery')
  5378.  
  5379. $ruiObj.click
  5380.  
  5381. waitsecond(2)
  5382. end
  5383.  
  5384. tcase << TestAction.new(:Delete_Photo) do
  5385. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5386. .with('uitreeindex', 4)
  5387. .with('classname', 'Button')
  5388. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5389. .with('content-desc', 'Delete')
  5390. .with('text', 'Delete')
  5391.  
  5392. $ruiObj.click
  5393.  
  5394. waitsecond(6)
  5395. end
  5396.  
  5397. tcase << TestAction.new(:Check_Delete_1) do
  5398. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5399. .with('uitreeindex', 4)
  5400. .with('classname', 'Button')
  5401. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5402. .with('content-desc', 'Delete')
  5403. .with('text', 'Delete')
  5404.  
  5405. $ruiObj.isExist
  5406.  
  5407. waitsecond(2)
  5408. end
  5409.  
  5410. tcase << TestAction.new(:LogStop) do
  5411. $myTestResult = !checkLastExistResult
  5412.  
  5413. logStopTest("2_1_1_19_Picture_Auto")
  5414.  
  5415. waitsecond(2)
  5416. end
  5417.  
  5418. tcase.run(loopTime)
  5419.  
  5420. end
  5421.  
  5422. def self.PictureAuto_2_1_1_18(loopTime)
  5423.  
  5424. tcase = TestCase.new("PictureAuto_2_1_1_18")
  5425.  
  5426. tcase << TestAction.new(:LogStart) do
  5427. logStartTest("2_1_1_18_Picture_Auto")
  5428.  
  5429. waitsecond(2)
  5430. end
  5431.  
  5432. tcase << TestAction.new(:Open_Camera_Settings) do
  5433. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5434. .with('uitreeindex', 3)
  5435. .with('classname', 'ImageButton')
  5436. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5437. .with('content-desc', 'Open settings')
  5438.  
  5439. $ruiObj.click
  5440.  
  5441. waitsecond(2)
  5442. end
  5443.  
  5444. tcase << TestAction.new(:Swipe_Down) do
  5445. swipe_vertical 500
  5446.  
  5447. waitsecond(2)
  5448. end
  5449.  
  5450. tcase << TestAction.new(:Tag_Locations_On) do
  5451. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', -550432648).with('textdescid', -1242618788).with('uniqueparentid', -1650613875).with('classresourceid', -1956269507)
  5452. .with('uitreeindex', 27)
  5453. .with('classname', 'TextView')
  5454. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5455. .with('content-desc', 'Tag locations Off switch')
  5456. .with('text', 'Tag locations')
  5457.  
  5458. $ruiObj.click
  5459.  
  5460. waitsecond(2)
  5461. end
  5462.  
  5463. tcase << TestAction.new(:Shutter_Button) do
  5464. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', -1650613875)
  5465. .with('uitreeindex', 9)
  5466. .with('classname', 'ImageButton')
  5467. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5468. .with('content-desc', 'Shutter')
  5469.  
  5470. $ruiObj.click
  5471.  
  5472. waitsecond(2)
  5473. end
  5474.  
  5475. tcase << TestAction.new(:Open_Gallery) do
  5476. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', -1654112402)
  5477. .with('uitreeindex', 15)
  5478. .with('classname', 'ImageView')
  5479. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5480. .with('content-desc', 'Gallery')
  5481.  
  5482. $ruiObj.click
  5483.  
  5484. waitsecond(2)
  5485. end
  5486.  
  5487. tcase << TestAction.new(:Delete_Photo) do
  5488. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5489. .with('uitreeindex', 4)
  5490. .with('classname', 'Button')
  5491. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5492. .with('content-desc', 'Delete')
  5493. .with('text', 'Delete')
  5494.  
  5495. $ruiObj.click
  5496.  
  5497. waitsecond(6)
  5498. end
  5499.  
  5500. tcase << TestAction.new(:Check_Delete_1) do
  5501. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5502. .with('uitreeindex', 4)
  5503. .with('classname', 'Button')
  5504. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5505. .with('content-desc', 'Delete')
  5506. .with('text', 'Delete')
  5507.  
  5508. $ruiObj.isExist
  5509.  
  5510. waitsecond(2)
  5511. end
  5512.  
  5513. tcase << TestAction.new(:LogStop) do
  5514. $myTestResult = !checkLastExistResult
  5515.  
  5516. logStopTest("2_1_1_18_Picture_Auto")
  5517.  
  5518. waitsecond(2)
  5519. end
  5520.  
  5521. tcase.run(loopTime)
  5522.  
  5523. end
  5524.  
  5525. def self.PictureAuto_2_1_1_17(loopTime)
  5526.  
  5527. tcase = TestCase.new("PictureAuto_2_1_1_17")
  5528.  
  5529. tcase << TestAction.new(:LogStart) do
  5530. logStartTest("2_1_1_17_Picture_Auto")
  5531.  
  5532. waitsecond(2)
  5533. end
  5534.  
  5535. tcase << TestAction.new(:Open_Camera_Settings) do
  5536. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5537. .with('uitreeindex', 2)
  5538. .with('classname', 'ImageButton')
  5539. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5540. .with('content-desc', 'Open settings')
  5541.  
  5542. $ruiObj.click
  5543.  
  5544. waitsecond(2)
  5545. end
  5546.  
  5547. tcase << TestAction.new(:Tracking_Focus_On) do
  5548. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', 540041269).with('textdescid', 1081855095).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  5549. .with('uitreeindex', 37)
  5550. .with('classname', 'TextView')
  5551. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  5552. .with('content-desc', 'Track and maintain focus on a moving object (FHD and HD only) Off switch')
  5553. .with('text', 'Track and maintain focus on a moving object FHD and HD only')
  5554.  
  5555. $ruiObj.click
  5556.  
  5557. waitsecond(2)
  5558. end
  5559.  
  5560. tcase << TestAction.new(:Shutter_Button) do
  5561. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5562. .with('uitreeindex', 9)
  5563. .with('classname', 'ImageButton')
  5564. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5565. .with('content-desc', 'Shutter')
  5566.  
  5567. $ruiObj.click
  5568.  
  5569. waitsecond(2)
  5570. end
  5571.  
  5572. tcase << TestAction.new(:Open_Gallery) do
  5573. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5574. .with('uitreeindex', 14)
  5575. .with('classname', 'ImageView')
  5576. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5577. .with('content-desc', 'Gallery')
  5578.  
  5579. $ruiObj.click
  5580.  
  5581. waitsecond(2)
  5582. end
  5583.  
  5584. tcase << TestAction.new(:Delete_Photo) do
  5585. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5586. .with('uitreeindex', 4)
  5587. .with('classname', 'Button')
  5588. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5589. .with('content-desc', 'Delete')
  5590. .with('text', 'Delete')
  5591.  
  5592. $ruiObj.click
  5593.  
  5594. waitsecond(6)
  5595. end
  5596.  
  5597. tcase << TestAction.new(:Check_Delete_1) do
  5598. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5599. .with('uitreeindex', 4)
  5600. .with('classname', 'Button')
  5601. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5602. .with('content-desc', 'Delete')
  5603. .with('text', 'Delete')
  5604.  
  5605. $ruiObj.isExist
  5606.  
  5607. waitsecond(2)
  5608. end
  5609.  
  5610. tcase << TestAction.new(:LogStop) do
  5611. $myTestResult = !checkLastExistResult
  5612.  
  5613. logStopTest("2_1_1_17_Picture_Auto")
  5614.  
  5615. waitsecond(2)
  5616. end
  5617.  
  5618. tcase.run(loopTime)
  5619.  
  5620. end
  5621.  
  5622. def self.PictureAuto_2_1_1_16(loopTime)
  5623.  
  5624. tcase = TestCase.new("PictureAuto_2_1_1_16")
  5625.  
  5626. tcase << TestAction.new(:LogStart) do
  5627. logStartTest("2_1_1_16_Picture_Auto")
  5628.  
  5629. waitsecond(2)
  5630. end
  5631.  
  5632. tcase << TestAction.new(:Open_Camera_Settings) do
  5633. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5634. .with('uitreeindex', 2)
  5635. .with('classname', 'ImageButton')
  5636. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5637. .with('content-desc', 'Open settings')
  5638.  
  5639. $ruiObj.click
  5640.  
  5641. waitsecond(2)
  5642. end
  5643.  
  5644. tcase << TestAction.new(:Cheese_Shutter_On) do
  5645. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -805427468).with('textdescid', -450343400).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  5646. .with('uitreeindex', 34)
  5647. .with('classname', 'TextView')
  5648. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  5649. .with('content-desc', 'Take a photo by saying "Cheese," "Smile," "Whiskey," "Kimchi" or "LG". Off switch')
  5650. .with('text', 'Take a photo by saying Cheese Smile Whiskey Kimchi or LG')
  5651.  
  5652. $ruiObj.click
  5653.  
  5654. waitsecond(2)
  5655. end
  5656.  
  5657. tcase << TestAction.new(:Shutter_Button) do
  5658. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5659. .with('uitreeindex', 9)
  5660. .with('classname', 'ImageButton')
  5661. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5662. .with('content-desc', 'Shutter')
  5663.  
  5664. $ruiObj.click
  5665.  
  5666. waitsecond(2)
  5667. end
  5668.  
  5669. tcase << TestAction.new(:Open_Gallery) do
  5670. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5671. .with('uitreeindex', 15)
  5672. .with('classname', 'ImageView')
  5673. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5674. .with('content-desc', 'Gallery')
  5675.  
  5676. $ruiObj.click
  5677.  
  5678. waitsecond(2)
  5679. end
  5680.  
  5681. tcase << TestAction.new(:Delete_Photo) do
  5682. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5683. .with('uitreeindex', 4)
  5684. .with('classname', 'Button')
  5685. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5686. .with('content-desc', 'Delete')
  5687. .with('text', 'Delete')
  5688.  
  5689. $ruiObj.click
  5690.  
  5691. waitsecond(6)
  5692. end
  5693.  
  5694. tcase << TestAction.new(:Check_Delete_1) do
  5695. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5696. .with('uitreeindex', 4)
  5697. .with('classname', 'Button')
  5698. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5699. .with('content-desc', 'Delete')
  5700. .with('text', 'Delete')
  5701.  
  5702. $ruiObj.click
  5703.  
  5704. waitsecond(2)
  5705. end
  5706.  
  5707. tcase << TestAction.new(:LogStop) do
  5708. $myTestResult = !checkLastExistResult
  5709.  
  5710. logStopTest("2_1_1_16_Picture_Auto")
  5711.  
  5712. waitsecond(2)
  5713. end
  5714.  
  5715. tcase.run(loopTime)
  5716.  
  5717. end
  5718.  
  5719. def self.PictureAuto_2_1_1_15(loopTime)
  5720.  
  5721. tcase = TestCase.new("PictureAuto_2_1_1_15")
  5722.  
  5723. tcase << TestAction.new(:LogStart) do
  5724. logStartTest("2_1_1_15_Picture_Auto")
  5725.  
  5726. waitsecond(2)
  5727. end
  5728.  
  5729. tcase << TestAction.new(:Open_Camera_Settings) do
  5730. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5731. .with('uitreeindex', 2)
  5732. .with('classname', 'ImageButton')
  5733. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5734. .with('content-desc', 'Open settings')
  5735.  
  5736. $ruiObj.click
  5737.  
  5738. waitsecond(2)
  5739. end
  5740.  
  5741. tcase << TestAction.new(:Timer_Menu) do
  5742. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5743. .with('uitreeindex', 30)
  5744. .with('classname', 'TextView')
  5745. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5746. .with('content-desc', 'Timer')
  5747. .with('text', 'Timer')
  5748.  
  5749. $ruiObj.click
  5750.  
  5751. waitsecond(2)
  5752. end
  5753.  
  5754. tcase << TestAction.new(:Timer_10sec) do
  5755. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1902492716).with('textdescid', 885416180).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  5756. .with('uitreeindex', 18)
  5757. .with('classname', 'CheckedTextView')
  5758. .with('resource-id', 'android:id/text1')
  5759. .with('content-desc', '10 sec')
  5760. .with('text', '10 sec')
  5761.  
  5762. $ruiObj.click
  5763.  
  5764. waitsecond(2)
  5765. end
  5766.  
  5767. tcase << TestAction.new(:Shutter_Button) do
  5768. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5769. .with('uitreeindex', 9)
  5770. .with('classname', 'ImageButton')
  5771. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5772. .with('content-desc', 'Shutter')
  5773.  
  5774. $ruiObj.click
  5775.  
  5776. waitsecond(12)
  5777. end
  5778.  
  5779. tcase << TestAction.new(:Open_Gallery) do
  5780. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5781. .with('uitreeindex', 15)
  5782. .with('classname', 'ImageView')
  5783. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5784. .with('content-desc', 'Gallery')
  5785.  
  5786. $ruiObj.click
  5787.  
  5788. waitsecond(2)
  5789. end
  5790.  
  5791. tcase << TestAction.new(:Delete_Photo) do
  5792. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5793. .with('uitreeindex', 4)
  5794. .with('classname', 'Button')
  5795. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5796. .with('content-desc', 'Delete')
  5797. .with('text', 'Delete')
  5798.  
  5799. $ruiObj.click
  5800.  
  5801. waitsecond(6)
  5802. end
  5803.  
  5804. tcase << TestAction.new(:Check_Delete_1) do
  5805. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5806. .with('uitreeindex', 4)
  5807. .with('classname', 'Button')
  5808. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5809. .with('content-desc', 'Delete')
  5810. .with('text', 'Delete')
  5811.  
  5812. $ruiObj.isExist
  5813.  
  5814. waitsecond(2)
  5815. end
  5816.  
  5817. tcase << TestAction.new(:LogStop) do
  5818. $myTestResult = !checkLastExistResult
  5819.  
  5820. logStopTest("2_1_1_15_Picture_Auto")
  5821.  
  5822. waitsecond(2)
  5823. end
  5824.  
  5825. tcase.run(loopTime)
  5826.  
  5827. end
  5828.  
  5829. def self.PictureAuto_2_1_1_14(loopTime)
  5830.  
  5831. tcase = TestCase.new("PictureAuto_2_1_1_14")
  5832.  
  5833. tcase << TestAction.new(:LogStart) do
  5834. logStartTest("2_1_1_14_Picture_Auto")
  5835.  
  5836. waitsecond(2)
  5837. end
  5838.  
  5839. tcase << TestAction.new(:Open_Camera_Settings) do
  5840. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5841. .with('uitreeindex', 2)
  5842. .with('classname', 'ImageButton')
  5843. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5844. .with('content-desc', 'Open settings')
  5845.  
  5846. $ruiObj.click
  5847.  
  5848. waitsecond(2)
  5849. end
  5850.  
  5851. tcase << TestAction.new(:Timer_Menu) do
  5852. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 0).with('classresourceid', -1956269507)
  5853. .with('uitreeindex', 30)
  5854. .with('classname', 'TextView')
  5855. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5856. .with('content-desc', 'Timer')
  5857. .with('text', 'Timer')
  5858.  
  5859. $ruiObj.click
  5860.  
  5861. waitsecond(2)
  5862. end
  5863.  
  5864. tcase << TestAction.new(:Timer_3sec) do
  5865. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1159119924).with('textdescid', -2081065364).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  5866. .with('uitreeindex', 17)
  5867. .with('classname', 'CheckedTextView')
  5868. .with('resource-id', 'android:id/text1')
  5869. .with('content-desc', '3 sec')
  5870. .with('text', '3 sec')
  5871.  
  5872. $ruiObj.click
  5873.  
  5874. waitsecond(2)
  5875. end
  5876.  
  5877. tcase << TestAction.new(:Shutter_Button) do
  5878. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5879. .with('uitreeindex', 9)
  5880. .with('classname', 'ImageButton')
  5881. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5882. .with('content-desc', 'Shutter')
  5883.  
  5884. $ruiObj.click
  5885.  
  5886. waitsecond(5)
  5887. end
  5888.  
  5889. tcase << TestAction.new(:Open_Gallery) do
  5890. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  5891. .with('uitreeindex', 14)
  5892. .with('classname', 'ImageView')
  5893. .with('resource-id', 'com.lge.camera:id/thumbnail')
  5894. .with('content-desc', 'Gallery')
  5895.  
  5896. $ruiObj.click
  5897.  
  5898. waitsecond(2)
  5899. end
  5900.  
  5901. tcase << TestAction.new(:Delete_Photo) do
  5902. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5903. .with('uitreeindex', 4)
  5904. .with('classname', 'Button')
  5905. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5906. .with('content-desc', 'Delete')
  5907. .with('text', 'Delete')
  5908.  
  5909. $ruiObj.click
  5910.  
  5911. waitsecond(6)
  5912. end
  5913.  
  5914. tcase << TestAction.new(:Check_Delete_1) do
  5915. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  5916. .with('uitreeindex', 4)
  5917. .with('classname', 'Button')
  5918. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  5919. .with('content-desc', 'Delete')
  5920. .with('text', 'Delete')
  5921.  
  5922. $ruiObj.click
  5923.  
  5924. waitsecond(2)
  5925. end
  5926.  
  5927. tcase << TestAction.new(:LogStop) do
  5928. $myTestResult = !checkLastExistResult
  5929.  
  5930. logStopTest("2_1_1_14_Picture_Auto")
  5931.  
  5932. waitsecond(2)
  5933. end
  5934.  
  5935. tcase.run(loopTime)
  5936.  
  5937. end
  5938.  
  5939. def self.PictureAuto_2_1_1_13(loopTime)
  5940.  
  5941. tcase = TestCase.new("PictureAuto_2_1_1_13")
  5942.  
  5943. tcase << TestAction.new(:LogStart) do
  5944. logStartTest("2_1_1_13_Picture_Auto")
  5945.  
  5946. waitsecond(2)
  5947. end
  5948.  
  5949. tcase << TestAction.new(:Open_Camera_Settings) do
  5950. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  5951. .with('uitreeindex', 2)
  5952. .with('classname', 'ImageButton')
  5953. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  5954. .with('content-desc', 'Open settings')
  5955.  
  5956. $ruiObj.click
  5957.  
  5958. waitsecond(2)
  5959. end
  5960.  
  5961. tcase << TestAction.new(:Time_Menu) do
  5962. $ruiObj = RUIObject.new.with('objectid', 1648677409).with('selfid', 1973970999).with('textdescid', -665586027).with('uniqueparentid', 1184885601).with('classresourceid', -1956269507)
  5963. .with('uitreeindex', 30)
  5964. .with('classname', 'TextView')
  5965. .with('resource-id', 'com.lge.camera:id/settings_title_textview')
  5966. .with('content-desc', 'Timer')
  5967. .with('text', 'Timer')
  5968.  
  5969. $ruiObj.click
  5970.  
  5971. waitsecond(2)
  5972. end
  5973.  
  5974. tcase << TestAction.new(:Timer_Off) do
  5975. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 1184885601).with('classresourceid', 2074814108)
  5976. .with('uitreeindex', 16)
  5977. .with('classname', 'CheckedTextView')
  5978. .with('resource-id', 'android:id/text1')
  5979. .with('content-desc', 'Off')
  5980. .with('text', 'Off')
  5981.  
  5982. $ruiObj.click
  5983.  
  5984. waitsecond(2)
  5985. end
  5986.  
  5987. tcase << TestAction.new(:Shutter_Button) do
  5988. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  5989. .with('uitreeindex', 9)
  5990. .with('classname', 'ImageButton')
  5991. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  5992. .with('content-desc', 'Shutter')
  5993.  
  5994. $ruiObj.click
  5995.  
  5996. waitsecond(2)
  5997. end
  5998.  
  5999. tcase << TestAction.new(:Open_Gallery) do
  6000. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6001. .with('uitreeindex', 14)
  6002. .with('classname', 'ImageView')
  6003. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6004. .with('content-desc', 'Gallery')
  6005.  
  6006. $ruiObj.click
  6007.  
  6008. waitsecond(2)
  6009. end
  6010.  
  6011. tcase << TestAction.new(:Delete_Photo) do
  6012. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6013. .with('uitreeindex', 4)
  6014. .with('classname', 'Button')
  6015. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6016. .with('content-desc', 'Delete')
  6017. .with('text', 'Delete')
  6018.  
  6019. $ruiObj.click
  6020.  
  6021. waitsecond(6)
  6022. end
  6023.  
  6024. tcase << TestAction.new(:Check_Delete_1) do
  6025. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6026. .with('uitreeindex', 4)
  6027. .with('classname', 'Button')
  6028. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6029. .with('content-desc', 'Delete')
  6030. .with('text', 'Delete')
  6031.  
  6032. $ruiObj.click
  6033.  
  6034. waitsecond(2)
  6035. end
  6036.  
  6037. tcase << TestAction.new(:scriptAction_4) do
  6038.  
  6039.  
  6040. waitsecond(2)
  6041. end
  6042.  
  6043. tcase.run(loopTime)
  6044.  
  6045. end
  6046.  
  6047. def self.PictureAuto_2_1_1_12(loopTime)
  6048.  
  6049. tcase = TestCase.new("PictureAuto_2_1_1_12")
  6050.  
  6051. tcase << TestAction.new(:LogStart) do
  6052. logStartTest("2_1_1_12_Picture_Auto")
  6053.  
  6054. waitsecond(2)
  6055. end
  6056.  
  6057. tcase << TestAction.new(:Open_Camera_Settings) do
  6058. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6059. .with('uitreeindex', 2)
  6060. .with('classname', 'ImageButton')
  6061. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6062. .with('content-desc', 'Open settings')
  6063.  
  6064. $ruiObj.click
  6065.  
  6066. waitsecond(2)
  6067. end
  6068.  
  6069. tcase << TestAction.new(:HDR_Menu) do
  6070. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  6071. .with('uitreeindex', 27)
  6072. .with('classname', 'TextView')
  6073. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  6074. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  6075.  
  6076. $ruiObj.click
  6077.  
  6078. waitsecond(2)
  6079. end
  6080.  
  6081. tcase << TestAction.new(:HDR_Off) do
  6082. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', -1313055798).with('textdescid', -439670058).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  6083. .with('uitreeindex', 18)
  6084. .with('classname', 'CheckedTextView')
  6085. .with('resource-id', 'android:id/text1')
  6086. .with('content-desc', 'Off')
  6087. .with('text', 'Off')
  6088.  
  6089. $ruiObj.click
  6090.  
  6091. waitsecond(2)
  6092. end
  6093.  
  6094. tcase << TestAction.new(:Shutter_Button) do
  6095. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  6096. .with('uitreeindex', 9)
  6097. .with('classname', 'ImageButton')
  6098. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  6099. .with('content-desc', 'Shutter')
  6100.  
  6101. $ruiObj.click
  6102.  
  6103. waitsecond(2)
  6104. end
  6105.  
  6106. tcase << TestAction.new(:Open_Gallery) do
  6107. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6108. .with('uitreeindex', 14)
  6109. .with('classname', 'ImageView')
  6110. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6111. .with('content-desc', 'Gallery')
  6112.  
  6113. $ruiObj.click
  6114.  
  6115. waitsecond(2)
  6116. end
  6117.  
  6118. tcase << TestAction.new(:Delete_Photo) do
  6119. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6120. .with('uitreeindex', 4)
  6121. .with('classname', 'Button')
  6122. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6123. .with('content-desc', 'Delete')
  6124. .with('text', 'Delete')
  6125.  
  6126. $ruiObj.click
  6127.  
  6128. waitsecond(6)
  6129. end
  6130.  
  6131. tcase << TestAction.new(:Check_Delete_1) do
  6132. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6133. .with('uitreeindex', 4)
  6134. .with('classname', 'Button')
  6135. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6136. .with('content-desc', 'Delete')
  6137. .with('text', 'Delete')
  6138.  
  6139. $ruiObj.isExist
  6140.  
  6141. waitsecond(2)
  6142. end
  6143.  
  6144. tcase << TestAction.new(:LogStop) do
  6145. $myTestResult = !checkLastExistResult
  6146.  
  6147. logStopTest("2_1_1_12_Picture_Auto")
  6148.  
  6149. waitsecond(2)
  6150. end
  6151.  
  6152. tcase.run(loopTime)
  6153.  
  6154. end
  6155.  
  6156. def self.PictureAuto_2_1_1_11(loopTime)
  6157.  
  6158. tcase = TestCase.new("PictureAuto_2_1_1_11")
  6159.  
  6160. tcase << TestAction.new(:LogStart) do
  6161. logStartTest("2_1_1_11_Picture_Auto")
  6162.  
  6163. waitsecond(2)
  6164. end
  6165.  
  6166. tcase << TestAction.new(:Open_Camera_Settings) do
  6167. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6168. .with('uitreeindex', 2)
  6169. .with('classname', 'ImageButton')
  6170. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6171. .with('content-desc', 'Open settings')
  6172.  
  6173. $ruiObj.click
  6174.  
  6175. waitsecond(2)
  6176. end
  6177.  
  6178. tcase << TestAction.new(:HDR_Menu) do
  6179. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  6180. .with('uitreeindex', 27)
  6181. .with('classname', 'TextView')
  6182. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  6183. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  6184.  
  6185. $ruiObj.click
  6186.  
  6187. waitsecond(2)
  6188. end
  6189.  
  6190. tcase << TestAction.new(:HDR_On) do
  6191. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 1200665996).with('textdescid', -406281388).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  6192. .with('uitreeindex', 17)
  6193. .with('classname', 'CheckedTextView')
  6194. .with('resource-id', 'android:id/text1')
  6195. .with('content-desc', 'On')
  6196. .with('text', 'On')
  6197.  
  6198. $ruiObj.click
  6199.  
  6200. waitsecond(2)
  6201. end
  6202.  
  6203. tcase << TestAction.new(:Shutter_Button) do
  6204. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  6205. .with('uitreeindex', 9)
  6206. .with('classname', 'ImageButton')
  6207. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  6208. .with('content-desc', 'Shutter')
  6209.  
  6210. $ruiObj.click
  6211.  
  6212. waitsecond(2)
  6213. end
  6214.  
  6215. tcase << TestAction.new(:Open_Gallery) do
  6216. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6217. .with('uitreeindex', 14)
  6218. .with('classname', 'ImageView')
  6219. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6220. .with('content-desc', 'Gallery')
  6221.  
  6222. $ruiObj.click
  6223.  
  6224. waitsecond(2)
  6225. end
  6226.  
  6227. tcase << TestAction.new(:Delete_Photo) do
  6228. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6229. .with('uitreeindex', 4)
  6230. .with('classname', 'Button')
  6231. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6232. .with('content-desc', 'Delete')
  6233. .with('text', 'Delete')
  6234.  
  6235. $ruiObj.click
  6236.  
  6237. waitsecond(6)
  6238. end
  6239.  
  6240. tcase << TestAction.new(:Check_Delete_1) do
  6241. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6242. .with('uitreeindex', 4)
  6243. .with('classname', 'Button')
  6244. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6245. .with('content-desc', 'Delete')
  6246. .with('text', 'Delete')
  6247.  
  6248. $ruiObj.isExist
  6249.  
  6250. waitsecond(2)
  6251. end
  6252.  
  6253. tcase << TestAction.new(:LogStop) do
  6254. $myTestResult = !checkLastExistResult
  6255.  
  6256. logStopTest("2_1_1_11_Picture_Auto")
  6257.  
  6258. waitsecond(2)
  6259. end
  6260.  
  6261. tcase.run(loopTime)
  6262.  
  6263. end
  6264.  
  6265. def self.PictureAuto_2_1_1_10(loopTime)
  6266.  
  6267. tcase = TestCase.new("PictureAuto_2_1_1_10")
  6268.  
  6269. tcase << TestAction.new(:LogStart) do
  6270. logStartTest("2_1_1_10_Picture_Auto")
  6271.  
  6272. waitsecond(2)
  6273. end
  6274.  
  6275. tcase << TestAction.new(:Open_Camera_Settings) do
  6276. $ruiObj = RUIObject.new.with('objectid', 999682277).with('selfid', -2110235986).with('textdescid', -1677427298).with('uniqueparentid', 0)
  6277. .with('uitreeindex', 2)
  6278. .with('classname', 'ImageButton')
  6279. .with('resource-id', 'com.lge.camera:id/quick_button_setting_expand')
  6280. .with('content-desc', 'Open settings')
  6281.  
  6282. $ruiObj.click
  6283.  
  6284. waitsecond(2)
  6285. end
  6286.  
  6287. tcase << TestAction.new(:HDR_Menu) do
  6288. $ruiObj = RUIObject.new.with('objectid', 475935229).with('selfid', -801213611).with('textdescid', 73758911).with('uniqueparentid', 0).with('classresourceid', 1165955609)
  6289. .with('uitreeindex', 27)
  6290. .with('classname', 'TextView')
  6291. .with('resource-id', 'com.lge.camera:id/settings_guide_textview')
  6292. .with('text', 'High Dynamic Range HDR combines multiple photos taken at different exposures to create the best photo')
  6293.  
  6294. $ruiObj.click
  6295.  
  6296. waitsecond(2)
  6297. end
  6298.  
  6299. tcase << TestAction.new(:HDR_Auto) do
  6300. $ruiObj = RUIObject.new.with('objectid', 129023916).with('selfid', 696310092).with('textdescid', -1563309164).with('uniqueparentid', 0).with('classresourceid', 2074814108)
  6301. .with('uitreeindex', 16)
  6302. .with('classname', 'CheckedTextView')
  6303. .with('resource-id', 'android:id/text1')
  6304. .with('content-desc', 'Auto')
  6305. .with('text', 'Auto')
  6306.  
  6307. $ruiObj.click
  6308.  
  6309. waitsecond(2)
  6310. end
  6311.  
  6312. tcase << TestAction.new(:Shutter_Button) do
  6313. $ruiObj = RUIObject.new.with('objectid', -370752327).with('selfid', -92772729).with('textdescid', -1122186778).with('uniqueparentid', 0)
  6314. .with('uitreeindex', 9)
  6315. .with('classname', 'ImageButton')
  6316. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp')
  6317. .with('content-desc', 'Shutter')
  6318.  
  6319. $ruiObj.click
  6320.  
  6321. waitsecond(2)
  6322. end
  6323.  
  6324. tcase << TestAction.new(:Open_Gallery) do
  6325. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6326. .with('uitreeindex', 13)
  6327. .with('classname', 'ImageView')
  6328. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6329. .with('content-desc', 'Gallery')
  6330.  
  6331. $ruiObj.click
  6332.  
  6333. waitsecond(2)
  6334. end
  6335.  
  6336. tcase << TestAction.new(:Delete_Photo) do
  6337. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6338. .with('uitreeindex', 4)
  6339. .with('classname', 'Button')
  6340. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6341. .with('content-desc', 'Delete')
  6342. .with('text', 'Delete')
  6343.  
  6344. $ruiObj.click
  6345.  
  6346. waitsecond(6)
  6347. end
  6348.  
  6349. tcase << TestAction.new(:Check_Delete_1) do
  6350. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6351. .with('uitreeindex', 4)
  6352. .with('classname', 'Button')
  6353. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6354. .with('content-desc', 'Delete')
  6355. .with('text', 'Delete')
  6356.  
  6357. $ruiObj.isExist
  6358.  
  6359. waitsecond(2)
  6360. end
  6361.  
  6362. tcase << TestAction.new(:LogStop) do
  6363. $myTestResult = !checkLastExistResult
  6364.  
  6365. logStopTest("2_1_1_10_Picture_Auto")
  6366.  
  6367. waitsecond(2)
  6368. end
  6369.  
  6370. tcase.run(loopTime)
  6371.  
  6372. end
  6373.  
  6374. def self.PictureAuto_2_1_1_1(loopTime)
  6375.  
  6376. tcase = TestCase.new("PictureAuto_2_1_1_1")
  6377.  
  6378. tcase << TestAction.new(:LogStart) do
  6379. logStartTest("2_1_1_1_Picture_Auto")
  6380.  
  6381. waitsecond(2)
  6382. end
  6383.  
  6384. tcase << TestAction.new(:Shutter_Button) do
  6385. $ruiObj = RUIObject.new.with('objectid', 215322368).with('selfid', -857985467).with('textdescid', -1914941152).with('uniqueparentid', 0)
  6386. .with('uitreeindex', 11)
  6387. .with('classname', 'ImageButton')
  6388. .with('resource-id', 'com.lge.camera:id/shutter_bottom_comp_type')
  6389.  
  6390. $ruiObj.click
  6391.  
  6392. waitsecond(2)
  6393. end
  6394.  
  6395. tcase << TestAction.new(:Open_Gallery) do
  6396. $ruiObj = RUIObject.new.with('objectid', -2123601541).with('selfid', -135259702).with('textdescid', 357252685).with('uniqueparentid', 0)
  6397. .with('uitreeindex', 14)
  6398. .with('classname', 'ImageView')
  6399. .with('resource-id', 'com.lge.camera:id/thumbnail')
  6400. .with('content-desc', 'Gallery')
  6401.  
  6402. $ruiObj.click
  6403.  
  6404. waitsecond(2)
  6405. end
  6406.  
  6407. tcase << TestAction.new(:Delete_Photo) do
  6408. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6409. .with('uitreeindex', 4)
  6410. .with('classname', 'Button')
  6411. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6412. .with('content-desc', 'Delete')
  6413. .with('text', 'Delete')
  6414.  
  6415. $ruiObj.click
  6416.  
  6417. waitsecond(6)
  6418. end
  6419.  
  6420. tcase << TestAction.new(:Check_Delete_1) do
  6421. $ruiObj = RUIObject.new.with('objectid', 722824297).with('selfid', -296540457).with('textdescid', -201509129).with('uniqueparentid', 0)
  6422. .with('uitreeindex', 4)
  6423. .with('classname', 'Button')
  6424. .with('resource-id', 'com.android.gallery3d:id/bottom_menu_layer_item5')
  6425. .with('content-desc', 'Delete')
  6426. .with('text', 'Delete')
  6427.  
  6428. $ruiObj.isExist
  6429.  
  6430. waitsecond(2)
  6431. end
  6432.  
  6433. tcase << TestAction.new(:LogStop) do
  6434. $myTestResult = !checkLastExistResult
  6435.  
  6436. logStopTest("2_1_1_1_Picture_Auto")
  6437.  
  6438. waitsecond(2)
  6439. end
  6440.  
  6441. tcase.run(loopTime)
  6442.  
  6443. end
  6444.  
  6445. def self.exception_handler
  6446. puts "Module Exception Hanlder..."
  6447. end
  6448.  
  6449. def self.run(loop)
  6450. mainLoop loop
  6451. end
  6452.  
  6453. end
  6454.  
  6455. $exceptionPackageNameList = []
  6456. $exceptionPackageNameList_exclude = []
  6457.  
  6458. def exception_handler
  6459. Picture_Auto_2_1.exception_handler
  6460. end
  6461.  
  6462. $curProjectLogFile = $useLastLogFile
  6463.  
  6464. $curProjectLogFile = "Picture_Auto_2_1_#{getTimeStamp}.log" if $useLastLogFile.nil?
  6465.  
  6466. $useLastLogFile = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement