catchpoint/WebPageTest.api-nodejs

Connectivity attribute ignored when running runTest on node

mike-tempest opened this issue · 1 comments

When running wpt.runTest with custom attributes, those attributes are seemingly ignored.

wpt.runTest('https://www.refme.com', {"bandwidthDown":"1600","bandwidthUp":"768","connectivity":"custom","latency":"300"}, function(err, response) {
  jsonUrl = response.data.jsonUrl;
  wpID = response.data.testId;
  console.log(jsonUrl, wpID);

  _pollStatus();
});

Please provide the location as connectivity both are tightly coupled. i.e:

wpt.runTest('https://www.refme.com' {
    bandwidthDown: 1600,
    bandwidthUp: 768,
    connectivity: 'custom',
    latency: 300,
    location: 'Dulles:Chrome'}, function(err, response) {
  jsonUrl = response.data.jsonUrl;
  wpID = response.data.testId;
  console.log(jsonUrl, wpID);

  _pollStatus();
});

Unfortunately there's no way to node wpt api wrapper to auto suggest a default location, sorry, wpt api limitation.