-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
51 lines (50 loc) · 2.05 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
var newman = require('newman');
// require newman in your project
// call newman.run to pass `options` object and wait for callback
newman.run({
collection: require('./SODA_Multicloud_Automation_Test.postman_collection.json'),
globals: require('./SODA_Globals.postman_globals.json'),
environment: require('./SODA_MULTICLOUD.postman_environment.json'),
//exportGlobals: ('./soda_global_vars.json'),
iterationData: ('./iteration_data.json'),
reporters: ['htmlextra','cli'],
//bail: true,
reporter: {
htmlextra: {
//export: './reports/soda_multicloud_e2e_report.html',
// template: './template.hbs'
logs: true,
// showOnlyFails: true,
// noSyntaxHighlighting: true,
// testPaging: true,
browserTitle: "SODA Multicloud E2E Test report",
title: "SODA Multicloud E2E Test report",
// titleSize: 4,
// omitHeaders: true,
//skipHeaders: "X-Auth-Token",
// hideRequestBody: ["Register Backend", "Register Backend Invalid Credentials"],
//hideResponseBody: ["Register Backend", "Register Backend Invalid Credentials"],
// showEnvironmentData: true,
// skipEnvironmentVars: ["API_KEY"],
// showGlobalData: true,
//skipGlobalVars: ["authToken"],
// skipSensitiveData: true,
// showMarkdownLinks: true,
// showFolderDescription: true,
// timezone: "Australia/Sydney"
}
},
insecure: true, // allow self-signed certs, required in postman too,
delayRequest: 2000,
//timeout: 180000 // set time out,
}).on('start', function (err, args) { // on start of run, log to console
console.log('Running E2E tests for SODA multicloud ...');
}).on('done', function (err, summary) {
if (err || summary.error) {
console.error('collection run encountered an error.', err);
console.log("Summary Error",summary.error);
}
else {
console.log('collection run completed.');
}
});