Test::BDD::Cucumber::Definitions::Var::Ru - Шаги на русском языке для работы с переменными
В файле features/step_definitions/var_steps.pl:
#!/usr/bin/perl use strict; use warnings; use utf8; use open qw(:std :utf8); use Test::BDD::Cucumber::Definitions::Var::Ru; use Test::BDD::Cucumber::Definitions::HTTP::Ru;
В файле features/var.feature:
Feature: Var (Ru) Работа с переменными Scenario: Создание переменной When переменной сценария "code" присвоено значение "200" And HTTP-запрос "GET" отправлен на "http://metacpan.org" Then код HTTP-ответа равен "S{code}"
Создание переменной:
When переменной сценария "user" присвоено значение "name"
Создание переменной со случайным значением (символы из диапазона Base62):
When переменной сценария "password" присвоено случайное значение длиной "6" символов
Mikhail Ivanov <m.ivanych@gmail.com>
<m.ivanych@gmail.com>
Copyright 2018 Mikhail Ivanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::BDD::Cucumber::Definitions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BDD::Cucumber::Definitions
CPAN shell
perl -MCPAN -e shell install Test::BDD::Cucumber::Definitions
For more information on module installation, please visit the detailed CPAN module installation guide.