1{ 2 "description": "Configuration for mediaLibrary Tests", 3 "driver": { 4 "type": "OHJSUnitTest", 5 "test-timeout": "180000", 6 "bundle-name": "ohos.acts.multimedia.mediaLibrary", 7 "module-name": "phone", 8 "shell-timeout": "600000", 9 "testcase-timeout": 10000 10 }, 11 "kits": [ 12 { 13 "type": "ShellKit", 14 "pre-push": [], 15 "run-command": [ 16 "rm -rf /storage/media/100/local/files/Audios/*", 17 "rm -rf /storage/media/100/local/files/Audios/.*", 18 "rm -rf /storage/media/100/local/files/Camera/*", 19 "rm -rf /storage/media/100/local/files/Camera/.*", 20 "rm -rf /storage/media/100/local/files/Documents/*", 21 "rm -rf /storage/media/100/local/files/Documents/.*", 22 "rm -rf /storage/media/100/local/files/Download/*", 23 "rm -rf /storage/media/100/local/files/Download/.*", 24 "rm -rf /storage/media/100/local/files/Pictures/*", 25 "rm -rf /storage/media/100/local/files/Pictures/.*", 26 "rm -rf /storage/media/100/local/files/Videos/*", 27 "rm -rf /storage/media/100/local/files/Videos/.*", 28 "sleep 5", 29 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 30 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", 31 "scanner", 32 "sleep 5", 33 "mkdir /storage/media/100/local/temp", 34 "param set persist.ace.testmode.enabled 1", 35 "power-shell wakeup", 36 "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", 37 "power-shell setmode 602" 38 ] 39 }, 40 { 41 "type": "PushKit", 42 "pre-push": [], 43 "push": [ 44 "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp", 45 "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp", 46 "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp", 47 "./resource/medialibrary/01.dat ->/storage/media/100/local/temp" 48 ] 49 }, 50 { 51 "type": "ShellKit", 52 "run-command": [ 53 "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/01.jpg", 54 "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/01.mp3", 55 "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/01.mp4", 56 "cp /storage/media/100/local/temp/01.dat /storage/media/100/local/files/Documents/01.dat", 57 "chmod -R 777 /storage/media/100/local/files/*", 58 "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", 59 "hilog -Q pidoff", 60 "hilog -p off", 61 "hilog -b I", 62 "hilog -b D -D 0xD002B70", 63 "scanner", 64 "sleep 10" 65 ], 66 "teardown-command": [ 67 "power-shell setmode 600", 68 "rm -rf /storage/media/100/local/temp", 69 "rm -rf /storage/media/100/local/files/Audios/*", 70 "rm -rf /storage/media/100/local/files/Audios/.*", 71 "rm -rf /storage/media/100/local/files/Camera/*", 72 "rm -rf /storage/media/100/local/files/Camera/.*", 73 "rm -rf /storage/media/100/local/files/Documents/*", 74 "rm -rf /storage/media/100/local/files/Documents/.*", 75 "rm -rf /storage/media/100/local/files/Download/*", 76 "rm -rf /storage/media/100/local/files/Download/.*", 77 "rm -rf /storage/media/100/local/files/Pictures/*", 78 "rm -rf /storage/media/100/local/files/Pictures/.*", 79 "rm -rf /storage/media/100/local/files/Videos/*", 80 "rm -rf /storage/media/100/local/files/Videos/.*", 81 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 82 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", 83 "sleep 5" 84 ] 85 }, 86 { 87 "test-file-name": [ 88 "ActsMediaLibraryMediafetchoptionsTest.hap" 89 ], 90 "type": "AppInstallKit", 91 "cleanup-apps": true 92 } 93 ] 94}