pytest bdd和spliter集成的常见步骤
pytest-bdd-splinter的Python项目详细描述
Pytest BDD碎片
此模块为 pytest-splinter英寸 pytest-bdd
安装
pip install pytest-bdd-splinter
示例数
Scenario: Fill in a form Given I am using a large deviceAnd I am on the homepageWhen I go to "/my-contact-form/"And I fill in the following: | first_name | John | | last_name | Doe | | username | johndoe | | password | mysecret |And I press "agree-tos"And I press "submit"Then I should be on "/thank-you/"And I should see "Thank you for creating an account"
更多信息
请看the documentation 阅读有关安装、配置和所有 可用步骤。