{ "description": "Configuration for photoAccess Tests", "driver": { "type": "OHJSUnitTest", "test-timeout": "180000", "bundle-name": "ohos.acts.multimedia.photoaccess", "module-name": "phone", "shell-timeout": "600000", "testcase-timeout": 10000 }, "kits": [ { "type": "ShellKit", "pre-push": [], "run-command": [ "rm -rf /storage/media/100/local/files/Audios/*", "rm -rf /storage/media/100/local/files/Audios/.*", "rm -rf /storage/media/100/local/files/Camera/*", "rm -rf /storage/media/100/local/files/Camera/.*", "rm -rf /storage/media/100/local/files/Documents/*", "rm -rf /storage/media/100/local/files/Documents/.*", "rm -rf /storage/media/100/local/files/Download/*", "rm -rf /storage/media/100/local/files/Download/.*", "rm -rf /storage/media/100/local/files/Pictures/*", "rm -rf /storage/media/100/local/files/Pictures/.*", "rm -rf /storage/media/100/local/files/Videos/*", "rm -rf /storage/media/100/local/files/Videos/.*", "sleep 5", "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", "scanner", "sleep 5", "mkdir /storage/media/100/local/temp", "param set persist.ace.testmode.enabled 1" ] }, { "type": "PushKit", "pre-push": [], "push": [ "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/01.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/noExif.jpg", "./resource/medialibrary/getExif.jpg ->/storage/media/100/local/temp/getExif.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb01.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb02.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb03.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb04.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb05.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentCb06.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro01.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro02.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro03.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro04.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro05.jpg", "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp/userCommentPro06.jpg", "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp/01.mp4" ] }, { "type": "ShellKit", "run-command": [ "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/02.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/01.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/deleteCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/deletePro01.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/deleteCb01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/deletePro01.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashCb01.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/trashCb01.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashPro01.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/trashPro01.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openCb02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openCb03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openPro02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/openPro03.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openCb01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openCb02.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openCb03.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openPro01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openPro02.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/openPro03.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/recoverCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/recoverPro01.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/recoverCb01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/recoverPro01.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favCb02.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/favCb01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/favCb02.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favPro02.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/favPro01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/favPro02.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenCb02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenCb03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenPro02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenPro03.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenCb01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenCb02.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenCb03.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenPro01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenPro02.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/hiddenPro03.mp4", "mkdir -p /storage/media/100/local/files/Pictures/Screenshots", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/albumGetAssetsCb01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/albumGetAssetsPro01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/addCb02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/addCb04.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/removeCb02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/off02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/off03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/off04.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/off13.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/off14.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on04.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on10.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on13.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on14.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on15.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/on16.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/addPro02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/addPro04.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/removePro02.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb01.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb02.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb03.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb04.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb05.jpg", "mediatool send /storage/media/100/local/temp/userCommentCb06.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro01.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro02.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro03.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro04.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro05.jpg", "mediatool send /storage/media/100/local/temp/userCommentPro06.jpg", "mediatool send /storage/media/100/local/temp/getExif.jpg", "mediatool send /storage/media/100/local/temp/noExif.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/getPhotoIndex03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Screenshots/screenshotsIndex03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Camera/cameraIndex03.jpg", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex01.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex02.mp4", "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/videoIndex03.mp4", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/favoriteIndex03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/trashIndex03.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex01.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex02.jpg", "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/hiddenIndex03.jpg", "chmod -R 777 /storage/media/100/local/files/*", "hilog -p off", "hilog -Q pidoff", "hilog -Q domainoff", "hilog -b D -D 0xD002B70", "scanner", "sleep 10" ], "teardown-command": [ "power-shell setmode 600", "rm -rf /storage/media/100/local/files/Audios/*", "rm -rf /storage/media/100/local/files/Audios/.*", "rm -rf /storage/media/100/local/files/Camera/*", "rm -rf /storage/media/100/local/files/Camera/.*", "rm -rf /storage/media/100/local/files/Documents/*", "rm -rf /storage/media/100/local/files/Documents/.*", "rm -rf /storage/media/100/local/files/Download/*", "rm -rf /storage/media/100/local/files/Download/.*", "rm -rf /storage/media/100/local/files/Pictures/*", "rm -rf /storage/media/100/local/files/Pictures/.*", "rm -rf /storage/media/100/local/files/Videos/*", "rm -rf /storage/media/100/local/files/Videos/.*", "sleep 5", "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", "scanner" ] }, { "test-file-name": [ "ActsPhotoAccessSysTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true } ] }