发现 ActsSecurityAccessAblityCtrlTest 测试用例代码里面,有对const.product.model的参数值进行获取,并判断获取的值是否为 ohos。如果不是该值,这些测试用例 testCheckAccessToken001~testGrantStatus002都没被执行,在task_log.log日志文件中,没有看到各个执行用例的日志信息。并且都报 execute timeout 5000ms, error in beforeAll function 错误。
修改product-model为 ohos 值,ActsSecurityAccessAblityCtrlTest 在被执行时,模块中的各个测试用例都有被执行到,并且在task_log.log日志文件中,可以看到用例打印信息。
附:源码路径test/xts/acts/security/crossplatform/securityacessAblityCtrletstest/src/main/ets/test/AccessToken.test.ets
执行 run -l ActsSecurityAccessAblityCtrlTest,所有,用例测试 pass。
1)hdc shell mount -o remount,rw /
2)hdc file recv /system/etc/param/ohos.para
3)修改ohos.para文件中的const.product.model=ohos为const.product.model=abc
4)hdc file send .\ohos.para /system/etc/param
5)hdc shell reboot
6)在测试套件里,运行run.bat,弹出终端,输入run -l ActsSecurityAccessAblityCtrlTest
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @jiyong @ry @logic42 @揣振中 @金海 @bayanxing @秦莉文 @Nicklaus @张馨月 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @jiyong @ry @logic42 @揣振中 @金海 @bayanxing @秦莉文 @Nicklaus @张馨月 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论