javascript - Protractor persistent variables -
i'm trying set similar environment / global variables in postman. postman stores these variables in json , when modify them within test, changed new values permanently. example:
postman.setenvironmentvariable("variable1", parseint(postman.getenvironmentvariable) +1);
this function increment environment variable 1 @ start of request. in real postman tests use custom function calculate valid ean13 barcode based on used barcode must unique.
is there can achieved in protractor?
use 'params'
object storing data. can set in config file. config
params: { login: { user: 'jane', password: '1234' } }
accessed browser object browser.params.login
. can change value of object can retrieved in test.
Comments
Post a Comment