Опция newman: exportGlobals в newman.run не принимает указанный путь - PullRequest
0 голосов
/ 11 января 2019

Я пытаюсь использовать это в моем test1.js:

const newman = require('newman'); // require newman in your project

// call newman.run to pass `options` object and wait for callback
newman.run({
  collection: require('./postman/poc_collection.json')
  environment: require('./postman/poc_env.json'),
  exportGlobals: require('./postman/poc_globals.json'),
  reporters: 'cli'
}, function (err) {
  if (err) { throw err; }
  console.log('collection run complete!');
});

После завершения запуска файл newman-globals-2019-01-11-14-39-00-154-0.json генерируется вместо использования poc_globals.json указанный выше файл.

Опция --export-globals в командной строке newman работает нормально.

Чего мне не хватает?

Спасибо, Ramya

...