cucumber - How to setup environment variables with behave (Python BDD framework)? -


so our test environments dynamically change depending on release working on.

for example:

  • for abc release url test environment feature-abc.mycompany.com, xyz release url test environment feature-xyz.company.com , on forth.
  • same thing staging: release-abc.mycompany.com, release-xyz.mycompany.com, etc..
  • production static url: platform.mycompany.com

with being said, need specify on url tests executed using behave bdd framework python.

to specific im looking equivalent functionality cucumber has ruby using: features/support/env.rb file define multiple url (qa, staging, production, etc) on command-line (terminal) xyz (having qa = feature(the release).mycompany.com

something like: how can test different environments (e.g. development|test|production) in cucumber?

ok, there pull request (pr #243) able in behave's github repo.

in meantime workaround suggested me use os.getenv('variable_name', 'default_value'), , @ command line export variable_name='another_value' ; behave

please see more detailed on over our short thread:

https://github.com/behave/behave/issues/250


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -