diff --git a/screenshot/resource/app_capture_screen_test_config.json b/screenshot/resource/app_capture_screen_test_config.json index 040e60e8ef790cf6ca0a137a0005e9fdb1b8bdd0..d0d03c285eb837eb9d38c9eec2d080ab555ece59 100644 --- a/screenshot/resource/app_capture_screen_test_config.json +++ b/screenshot/resource/app_capture_screen_test_config.json @@ -48,6 +48,26 @@ "compress_log":["hdc_std shell \"cd /data/log/hilog && tar -cf wifi_connect_log.tar *\""], "all_actions": [[2, "connect_wifi"], [2, "check_ping_baidu"], [2, "stop_hilog"], [2, "compress_log"], [2, "recv_log-file", "/data/log/hilog/wifi_connect_log.tar"]] }, + { + "app_name": "vedio_test", + "entry": "", + "install_vedio_test":["hdc_std install D:\\DeviceTestTools\\screenshot\\vediotest\\ActsVideoPlayerJsTest.hap"], + "mk_test_dir":["hdc_std shell mkdir -p /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile"], + "send_vedio":["hdc_std file send D:\\DeviceTestTools\\screenshot\\vediotest\\H264_AAC.mp4 /data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/"], + "close_auto_log":["hdc_std shell \"hilog -w stop;rm /data/log/hilog/*\""], + "start_vedio_log":["hdc_std shell \"hilog -b X;hilog -b D -T JSApp;hilog -r\""], + "start_test":["hdc_std shell aa start -a ohos.acts.multimedia.video.videoplayer.MainAbility -b ohos.acts.multimedia.video.videoplayer"], + "recover_log":["hdc_std shell \"cd data/log/hilog/;hilog -x > vedio_log.txt;hilog -b D"], + "stop_hilog":["hdc_std shell hilog -w stop"], + "check_result":["hdc_std shell \"cd /data/log/hilog && grep -nr 'total cases'\"", "failure 0,error 0,pass 1"], + "compress_log":["hdc_std shell \"cd /data/log/hilog && tar -cf vedio_log.tar vedio_*\""], + "clear_log":["hdc_std shell rm /data/log/hilog/*"], + "all_actions": [ + [2, "install_vedio_test"], [2, "mk_test_dir"], [2, "remount"], [2, "send_vedio"], [2, "close_auto_log"], + [0, "start_vedio_log"], [15, "start_test"],[2, "recover_log"], [2, "stop_hilog"], [2, "check_result"], [2, "compress_log"], + [2, "recv_log-file", "/data/log/hilog/vedio_log.tar"], [2, "clear_log"], [2, "recent-x-y"], [2, "recent_del-x-y"], [2, "recent-x-y"], [2, "recent_del-x-y"] + ] + }, { "app_name": "audio_render", "entry": "", diff --git a/screenshot/vediotest/ActsVideoPlayerJsTest.hap b/screenshot/vediotest/ActsVideoPlayerJsTest.hap index aa4914cdef81510542ee34024f048e340369d11d..18dd9c656e1e43cac146d03b42c42d9ceec3b5dd 100755 Binary files a/screenshot/vediotest/ActsVideoPlayerJsTest.hap and b/screenshot/vediotest/ActsVideoPlayerJsTest.hap differ