156 Star 255 Fork 3.3K

OpenHarmony / xts_acts

 / 详情

[Bug]: ActsSecurityAccessAblityCtrlTest 模块测试失败

待办的
创建于  
2024-05-08 17:49

发生了什么问题?

发现 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

其他补充信息

输入图片说明输入图片说明

版本或分支信息

  • master
  • Release 4.1
  • Release 4.0
  • Release 3.2

评论 (1)

卢伟明 创建了任务
卢伟明 添加了
 
bug
标签
展开全部操作日志

感谢提交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.

openharmony_ci 添加了
 
waiting_for_assign
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
C++
1
https://gitee.com/openharmony/xts_acts.git
git@gitee.com:openharmony/xts_acts.git
openharmony
xts_acts
xts_acts

搜索帮助

53164aa7 5694891 3bd8fe86 5694891