Files
EdGateAutomatedRegression/zoneAdmin_config.js
2021-01-21 15:15:55 -08:00

53 lines
1.4 KiB
JavaScript

//zoneAdmin_config.js
var today = new Date();
var mm = today.getMonth()+1; //January is 0
var dd = today.getDate();
var yyyy = today.getFullYear();
var hour = today.getHours();
var minute = today.getMinutes();
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['zoneAdmin_spec.js'],
jasmineNodeOpts: {
defaultTimeoutInterval: 360000
},
capabilities: {
browserName: 'chrome'
},
onPrepare: function() {
browser.sleep(2500);
browser.driver.manage().window().maximize();
},
params: {
login: 'https://app.journeysmap.com/Journey/index.html#/login',
username: 'jhmanager19',
password: 'Manager007',
school: 'Automated School ' + mm + dd + yyyy + hour + minute,
teacher: 'Automated' + mm + dd + yyyy + hour + minute,
email: 'Automated' + mm + dd + yyyy + hour + minute,
class: 'Automated Class ' + mm + dd + yyyy + hour + minute,
student: 'Automated' + mm + dd + yyyy + hour + minute,
simulation: 'Automated Simulation ' + mm + dd + yyyy + hour + minute,
//<<<<NEEDED EDITS BEFORE RUN>>>>
simulationStartEndDate: '01/21/2021',
simulationStartDateTime: yyyy + '-0' + mm + '-' + dd + 'T08:00:00.000',
simulationEndDateTime: yyyy + '-0' + mm + '-' + dd + 'T22:00:00.000'
}
/*multiCapabilities: [{
browserName: 'chrome'
}, {
browserName: 'firefox'
}]/*, {
browserName: 'internet explorer'
}], {
browserName: 'safari'
}]*/
}