The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.10-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 12-14-2018, 05:51 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
getRequestData returning undefined in response
02-27-2018, 05:48 AM (This post was last modified: 02-27-2018 05:49 AM by anilpothala.)
Post: #1
getRequestData returning undefined in response
Hello,

When i trying to use method getRequestData, it is returning undefined when i print the log in console for a successful test run.

======>2=====undefined

can some one help me out.

var config = require('./Config.json');
var assert = require('assert'),
path = require('path'),
WebPageTest = require('webpagetest/lib/webpagetest');
var AnalyticsData = require('./AnalyticsData.json');

var wpt = new WebPageTest('www.webpagetest.org', 'A.f58cfe49433108889518a1511c235064');
describe('Search Test Suite', function() {
it('Searching for ipods', function(done) {
var script = wpt.scriptToString([
{navigate: config.searchipods},
'waitForComplete'
]);
wpt.runTest(script, {
pollResults: 5,
firstViewOnly : true,
connectivity: "3GFast",
label: 'Search - ipods',
video:true,
location:"SanFrancisco"

},

function(err, res) {

console.log(res.data.id)

wpt.getRequestData(res.data.id,function(err, res){

console.log("======>"+AnalyticsData.FACETCLICK.length+"====="+res)


if (err) return done(err);
done();

})


});

this.timeout(300000);

});


});
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
getRequestData returning undefined in response - anilpothala - 02-27-2018 05:48 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)