The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Test::BDD::Cucumber::Definitions::Var::Ru - Шаги на русском языке для работы с переменными

SYNOPSIS

В файле 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: Создание переменной
    Given переменной сценария "code" присвоено значение "200"
    When HTTP-запрос "GET" отправлен на "http://metacpan.org"
    Then код HTTP-ответа равен "S{code}"

ШАГИ

Создание переменной

Создание переменной:

Given переменной сценария "user" присвоено значение "name"

Создание переменной со случайным значением (символы из диапазона Base62):

Given переменной сценария "password" присвоено случайное значение длиной "6" символов

AUTHOR

Mikhail Ivanov <m.ivanych@gmail.com>

LICENSE AND COPYRIGHT

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.