pytest bdd 和 splinter 集成的常见步骤
项目描述
pytest-bdd-splinter
此模块为pytest-splinter在pytest-bdd中提供了一些常用的 given
、when
、then
步骤。
安装
pip install pytest-bdd-splinter
示例数量
Scenario: Fill in a form
Given I am using a large device
And I am on the homepage
When 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"
更多信息
请参阅文档了解有关安装、配置以及所有可用步骤的概述。
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装软件包的更多信息。
源分布
pytest-bdd-splinter-0.4.0.tar.gz (6.9 kB 查看哈希值)
构建分发
关闭
pytest-bdd-splinter-0.4.0.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 04de0718f1ecf2dc1ed31b817a432dfdecc6243839ddba622df0bcbf7a0222f1 |
|
MD5 | e44d8b583f9741e332d7e74ef33a66dd |
|
BLAKE2b-256 | 8e59c34865101000055bf2fb16a171944dcf14c8905e43828f3ce9febd37ef07 |
关闭
pytest_bdd_splinter-0.4.0-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c05dd1ff6b482fff9aafb1d2dd5d475ae7a281b2ba71a67ff139bb9d226b51c8 |
|
MD5 | a8f0dead057993b6bc3a3b1f78f3534e |
|
BLAKE2b-256 | 128c81651742b10626662a19c8dda5c147e762466da0a1b9d96074413ee0182e |