Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用非公共协议跳转,增加页面覆盖率改造相关问题请教 #295

Open
nanski opened this issue Jul 31, 2024 · 0 comments
Open

Comments

@nanski
Copy link

nanski commented Jul 31, 2024

前提:APP大部分功能集中在侧边栏,仅使用基础功能进行稳定性测试,整体覆盖率较低,期望通过执行过程中增加跳转指定页面的手段提升覆盖率。

问题:
APP由于安全问题,schema基本没有开启,但支持通过websocket协议触发跳转能力。在执行fastbot稳定性任务同时,通过websocket消息固定间隔跳转一个页面,实测发现跳转后fastbot会直接返回,不会留在新页面继续进行随机测试,也不会统计覆盖率,有什么办法可以解决吗,以下列了2个解决思路,期望帮看下是否有更好方案?

尝试解决思路:
1、修改monkey.jar,在启动应用后通过websoket发跳转消息,再任务执行前进入新页面。 问题:一次只能跳转一个页面?待尝试。
2、屏蔽back按钮,参考https://github.com/bytedance/Fastbot_Android/issues/199。 已尝试,未生效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant