Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question | Shared variables in tests #106

Open
dhutaryan opened this issue Aug 10, 2017 · 0 comments
Open

Question | Shared variables in tests #106

dhutaryan opened this issue Aug 10, 2017 · 0 comments

Comments

@dhutaryan
Copy link

Hi,

Can I use shared variables for all test?

For example, I would like to use variable API_PATH="http://example.com/v1/" in tests. And this variable could be changed during running test. So, my test looks like this.

var response = chakram.get(API_PATH + "products");
expect(response).to.have.status(200);

As example, protractor has conf.js with parameter baseUrl. Running test looks like protractor conf.js --baseUrl http://example.com/

@dhutaryan dhutaryan changed the title Shared variables in tests Question | Shared variables in tests Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant