To give credentials to params use the below code
// The params object will be passed directly to the protractor instance,
// and can be accessed from your test. It is an arbitrary object and can
// contain anything you may need in your test.
// This can be changed via the command line as:
// --params.login.user 'Joe'
params: {
login: {
user: 'user',
password: '12345'
}
}
Params object can be accessed by using
Browser.params.login.user
Calling of protractor can be done using
protractor ... --params.login.user=abc --params.login.password=123
Variables can be accessed through
browser.params.login.user
and
browser.params.login.password