You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/
The text was updated successfully, but these errors were encountered:
dhutaryan
changed the title
Shared variables in tests
Question | Shared variables in tests
Aug 10, 2017
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.
As example, protractor has
conf.js
with parameterbaseUrl
. Running test looks likeprotractor conf.js --baseUrl http://example.com/
The text was updated successfully, but these errors were encountered: