How to pass Environment based parameters in jasmine framework #191
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I want to pass the arguments to the browser in jasmine frame work configuration file.
like " multiCapabilities: [{
'browserName': 'chrome',
maxInstances: 1,
name:'chrome',
'args': ['user=user1']
}, {
'browserName': 'firefox',
shardTestFiles: true,
maxInstances: 1,
name:'firefox',
'args': ['user=user2']
}
],
and also read in the test file how to read and use according to the browser.
now i can able to get the browser name.
but i can't get the name which is assigned by user
as bellow
multiCapabilities: [{
'browserName': 'chrome',
'name': 'Protractor suite tests',
shardTestFiles: false,
maxInstances: 1
}, {
'browserName': 'firefox',
shardTestFiles: false,
maxInstances: 1,
'name': 'UI Tests2'
}
],
I want to retrieve the name of the instance .
How to get the name of the instance