Selenium 在小黄瓜格式的测试场景中,支持自动化测试需要什么级别的细节?

Selenium 在小黄瓜格式的测试场景中,支持自动化测试需要什么级别的细节?,selenium,testing,automated-tests,gherkin,detail,Selenium,Testing,Automated Tests,Gherkin,Detail,我管理一个测试团队,开发人员希望我们记录的测试场景能够创建基于web的工具的自动回归测试。我们的场景是以Given/When/Then的小黄瓜格式编写的,但我想知道支持自动化测试需要多少细节?例如,我们的“Then”相当普遍,比如 '然后应要求用户选择其国家/地区' 但是不要包括一些细节,比如下拉框应该在哪里,应该有什么值,应该有什么字体大小,选项的顺序等等 他们需要多少细节 我还不知道他们在用什么工具实现自动化,他们还在评估这些选项。可能是硒 使其简短、简单、可重用且功能强大。它应该帮助QA、

我管理一个测试团队,开发人员希望我们记录的测试场景能够创建基于web的工具的自动回归测试。我们的场景是以Given/When/Then的小黄瓜格式编写的,但我想知道支持自动化测试需要多少细节?例如,我们的“Then”相当普遍,比如

'然后应要求用户选择其国家/地区'

但是不要包括一些细节,比如下拉框应该在哪里,应该有什么值,应该有什么字体大小,选项的顺序等等

他们需要多少细节


我还不知道他们在用什么工具实现自动化,他们还在评估这些选项。可能是硒

使其简短、简单、可重用且功能强大。它应该帮助QA、业务/产品和开发团队清楚地理解用例,最重要的是,自动化QA团队应该能够理解每个步骤并独立地实现自动化,而不考虑重用流程。我推荐的标准方法是以以下格式构建所有小黄瓜命令测试步骤:

When <action by user> in <unique page identifier>
Then <expectation> in <unique page identifier>
页面标识符的另一个示例

When login to gmail using myuser001 user
Then mailbox should be displayed
When switching to inbox
Then number of unread messages should be 10
When login to order booking website using myuser001 user
Then home page should be displayed with welcome message 'myuser001 user'

When searching for product 'onions' in products page
Then expecting the search results should be at least 1

When adding the product onion and quantity 2 from search results page
Then cart should have count 1
And confirm checkout from cart

When the payment and shipping details are entered
Then placing the order should display confirmation message

根据上下文,如果添加更多细节,测试的可维护性可能会下降。根据你的问题,我将首先进行概念验证。。。