A
A
AlexSh2015-07-26 19:11:23
PHP
AlexSh, 2015-07-26 19:11:23

Behat - is it possible to use variables?

Is there a way to use variables in .feature files that would be replaced with specific values ​​when the test is run?
for example

Scenario Outline: TEST
    Given I am on the homepage
    When I visit @website
    Then I should see @title

As a result, @website and @title will be replaced with the given values ​​when executed.
The mechanism of Scenario Outlines (placeholders) is not quite what we would like.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question