gpt4 book ai didi

selenium - 在测试套件中运行特定测试 - Selenium Side Runner (IDE)

转载 作者:行者123 更新时间:2023-12-03 22:30:44 24 4
gpt4 key购买 nike

是否可以在我的 selenium side runner 测试套件中运行特定测试?例如,在测试套件中,我的第一个测试将我登录到一个网站,然后其他测试测试网站的特定区域。这些测试中的每一个在运行测试时首先继承登录测试以对“用户”进行身份验证。但是当我运行套件时,它会按顺序运行测试,所以它会首先运行登录测试,然后在我的其他测试中重新运行登录测试。希望这是有道理的。所以基本上我希望能够指定在我的测试套件中运行哪些测试。提前致谢

最佳答案

您可以使用 filter运行具有通用名称的测试:

Filter tests
You also have the option to run a targeted subset of your tests with the --filter
target command flag (where target is a regular expression value). Test names that
contain the given search criteria will be the only ones run.

[example] selenium-side-runner --filter smoke

关于selenium - 在测试套件中运行特定测试 - Selenium Side Runner (IDE),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55455123/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com