How to pass Environment based parameters in jasmine framework #191

Open
opened 2014-07-02 05:51:55 +00:00 by prakashomp · 1 comment
prakashomp commented 2014-07-02 05:51:55 +00:00 (Migrated from github.com)

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.

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.
prakashomp commented 2014-07-13 08:46:12 +00:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
No Label
bug
doc
feature
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/jasmine-headless-webkit#191
No description provided.