File tree 2 files changed +23
-0
lines changed
functional/android/android
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,28 @@ def test_battery_info
401
401
assert !result [ :level ] . nil?
402
402
end
403
403
404
+ def test_file_management
405
+ test_file = 'test/functional/data/test_element_image.png'
406
+ sdcard_path = '/sdcard/Pictures'
407
+ sdcard_file_path = "#{ sdcard_path } /test_element_image.png"
408
+
409
+ file = File . read test_file
410
+ @@driver . push_file sdcard_file_path , file
411
+
412
+ read_file = @@driver . pull_file sdcard_file_path
413
+ File . write 'test.png' , read_file
414
+
415
+ assert_equal File . size ( test_file ) , File . size ( 'test.png' )
416
+
417
+ folder = @@driver . pull_folder sdcard_path
418
+ File . write 'pic_folder.zip' , folder
419
+
420
+ assert File . exist? ( 'pic_folder.zip' )
421
+
422
+ File . delete 'test.png'
423
+ File . delete 'pic_folder.zip'
424
+ end
425
+
404
426
private
405
427
406
428
def scroll_to ( text )
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ def android
87
87
someCapability : 'some_capability' ,
88
88
unicodeKeyboard : true ,
89
89
resetKeyboard : true ,
90
+ disableWindowAnimation : true ,
90
91
newCommandTimeout : 300
91
92
} ,
92
93
appium_lib : {
You can’t perform that action at this time.
0 commit comments