UI用例判断操作的执行逻辑可以解释一下吗?

提问 1 186
要努力的佩佩呀~
要努力的佩佩呀~ LV1 2023年5月15日 19:55 编辑
<h3><span style="font-weight: bold;">UI用例中判断操作,判断为true或false后会如何执行?</span></h3><p id="descriptionP">背景:&nbsp;</p><p id="descriptionP">我想去遍历列表的几条数据,如果某个元素的文本与预期值相同,则执行操作1;</p><p id="descriptionP">如果不相同则继续比对后续的数据。&nbsp;</p><p id="descriptionP"><img src="http://www.liumatest.cn/community/editor-md-upload/c2767dcdf36b49b188a7a1a089d78371.png" style="max-width:50%;"><br></p><p id="descriptionP"><img src="http://www.liumatest.cn/community/editor-md-upload/28da482ba1e042368dbc2ac9c7ddb7a7.png" style="max-width:100%;"><br></p><p id="descriptionP"><span style="font-weight: bold;">问题1:</span> 比如我在“true”输入2,,“false”输入1,是不是就是说执行条件判断时,判断为true则执行后两行;如果判断为false则跳过后两行直接执行第三行?&nbsp;</p><p id="descriptionP"><span style="font-weight: bold;">问题2:</span> 条件判断执行完后,是继续执行后面的行数吗?有没有方法停止?</p><p id="descriptionP"><span style="font-weight: bold;">问题3:</span> 有没有操作,可以直接遍历一个列表,不用写多个判断呢?</p><p><br></p>
收藏(0)  分享
相关标签: 提问
注意:本文归作者所有,未经作者允许,不得转载
1个回复
  • Chras-fu
    2023年5月14日 12:01
    1. 你理解的没错。2. 不太理解你的意思,但我理解如果你想判断失败不执行的话,就用断言。3. 你说的是循环操作,接口目前有,UI没有,在版本预告有说下个版本会发布。
    0 1