Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题 :
在为应用程序编写 UI 测试用例时,我还需要为登录编写测试用例吗?
已经完成:目前我已经为各种场景编写了测试用例,但是如果我不会登录应用程序并运行测试用例,那么我所有的测试用例都会失败。
我不明白该怎么办?
让我知道任何建议。
提前致谢
好的,所以(从评论中)用户需要登录。所以如果有用户登录,你至少应该检查你的测试,如果没有,然后登录。此外,应该测试登录过程本身。
理想情况下,您的每个测试用例都应该以注销的用户开始并以这种状态结束。所以每个看起来像这样:
这样你就可以在你的应用中测试一个特性的整个流程。