跳至主要内容

pytest bdd 和 splinter 集成的常见步骤

项目描述

pytest-bdd-splinter

此模块为pytest-splinter在pytest-bdd中提供了一些常用的 givenwhenthen 步骤。

安装

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-py2.py3-none-any.whl (9.0 kB 查看哈希值)

上传于 Python 2 Python 3

由以下支持