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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -