Sha256: 09b5f02492bc6e9aace1a68d54a762b05d9a17533fde0603c2e502fc13db946d

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

EXAMPLE: Use Environment Variables in Steps
=============================================================================

:RELATED TO: `issue #497`_

This directory provides a simple example how you can use environment variables
in step implementations.

::

    # -- USE: -f plain --no-capture  (via "behave.ini" defaults)
    $ behave
    Feature: Test Environment variable concept

      Scenario: 
    USE ENVIRONMENT-VAR: LOGNAME = xxx  (variant 1)
        When I click on $LOGNAME ... passed
    USE ENVIRONMENT-VAR: LOGNAME = xxx  (variant 2)
        When I use the environment variable $LOGNAME ... passed

    1 feature passed, 0 failed, 0 skipped
    1 scenario passed, 0 failed, 0 skipped
    2 steps passed, 0 failed, 0 skipped, 0 undefined
    Took 0m0.000s

.. _`issue #497`: https://github.com/behave/behave/issues/497

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
busser-behave-0.1.3 vendor/behave/examples/env_vars/README.rst