diff --git a/NewmanPostman/newmantask.js b/NewmanPostman/newmantask.js index f38e6a7..4918c0d 100644 --- a/NewmanPostman/newmantask.js +++ b/NewmanPostman/newmantask.js @@ -17,8 +17,8 @@ function GetToolRunner() { newman.argIf(typeof sslClientCert != 'undefined' && sslClientCert, ['--ssl-client-cert', sslClientCert]); let sslClientKey = tl.getPathInput('sslClientKey', false, true); newman.argIf(typeof sslClientKey != 'undefined' && sslClientKey, ['--ssl-client-key', sslClientKey]); - let sslStrict = tl.getPathInput('sslStrict', false, true); - newman.argIf(typeof sslStrict != 'undefined' && sslStrict, ['--insecure', sslStrict]); + let sslStrict = tl.getBoolInput('sslStrict'); + newman.argIf(sslStrict, ['--insecure']); let reporterHtmlTemplate = tl.getPathInput('reporterHtmlTemplate', false, true); newman.argIf(typeof reporterHtmlTemplate != 'undefined' && reporterHtmlTemplate, ['--reporter-html-template', reporterHtmlTemplate]); let reporterHtmlExport = tl.getInput('reporterHtmlExport'); @@ -34,7 +34,7 @@ function GetToolRunner() { let numberOfIterations = tl.getInput('numberOfIterations'); newman.argIf(typeof numberOfIterations != 'undefined' && numberOfIterations, ['-n', numberOfIterations]); let globalVariable = tl.getPathInput('globalVariables', false, true); - newman.argIf(typeof globalVariable != 'undefined' && globalVariable, ['--globals', globalVariable]); + newman.argIf(typeof globalVariable != 'undefined' && tl.filePathSupplied('globalVariables'), ['--globals', globalVariable]); newman.arg(['-e', tl.getPathInput('environment', true, true)]); return newman; } diff --git a/NewmanPostman/task.json b/NewmanPostman/task.json index e575471..1988849 100644 --- a/NewmanPostman/task.json +++ b/NewmanPostman/task.json @@ -13,7 +13,7 @@ "version": { "Major": 2, "Minor": 0, - "Patch": 14 + "Patch": 15 }, "demands": [], "groups": [ diff --git a/vss-extension.json b/vss-extension.json index 97e6825..ae6ce80 100644 --- a/vss-extension.json +++ b/vss-extension.json @@ -1,7 +1,7 @@ { "manifestVersion": 1, "id": "NewmanPostman", - "version": "1.0.17", + "version": "1.0.18", "name": "Newman the cli Companion for Postman", "scopes": [], "description": "Using Newman, one can effortlessly run and test a Postman Collections directly from the command-line. Now in a task!",