07-02-2018, 05:43 AM
Hi All,
I am exploring the scripted test using the public instance. Somehow I am not able to execute any scripted test successfully. Please find the below script that I am trying to execute either in front end or usnig Marcel Duran's Node JS wrapper. In either ways I am unable to execute a scripted test successfully. Request your support regarding this.
Script tried in http://www.webpagetest.org [front end]
logData 0
navigate http://www.google.com
logData 1
setValue id=lst-ib value=Java
submitForm name=f
Script tried using the NodeJS client
var WebPageTest = require('C:\\Users\\sridh\\node_modules\\webpagetest\\lib\\webpagetest');
var wpt = new WebPageTest('https://www.webpagetest.org/', '<Mykey>');
wpt.runTest('https://google.com', {
connectivity: 'Cable',
location: 'Dulles:Chrome',
firstViewOnly: true,
runs: 1,
video: false
}, function processTestRequest(err, result) {
console.log(err || result)
})
Regards,
Y.S.Sridhar
I am exploring the scripted test using the public instance. Somehow I am not able to execute any scripted test successfully. Please find the below script that I am trying to execute either in front end or usnig Marcel Duran's Node JS wrapper. In either ways I am unable to execute a scripted test successfully. Request your support regarding this.
Script tried in http://www.webpagetest.org [front end]
logData 0
navigate http://www.google.com
logData 1
setValue id=lst-ib value=Java
submitForm name=f
Script tried using the NodeJS client
var WebPageTest = require('C:\\Users\\sridh\\node_modules\\webpagetest\\lib\\webpagetest');
var wpt = new WebPageTest('https://www.webpagetest.org/', '<Mykey>');
wpt.runTest('https://google.com', {
connectivity: 'Cable',
location: 'Dulles:Chrome',
firstViewOnly: true,
runs: 1,
video: false
}, function processTestRequest(err, result) {
console.log(err || result)
})
Regards,
Y.S.Sridhar