Hi,
I would like to test File download time and size from different geo locations to ensure the download time is not too high. What is the best way of doing it - The file sizes range in size from 100 MB to 1.8 GB.
Is Synthetic Browser appropriate for this or Synthetic API?
Currently, i am trying the below but it’s erroring out with - unknown error.
Also, i got spawnSync ETIMEDOUT sometimes.
Below is a sample.
$browser.get(‘http://www.google.com’)
var request = require(‘request’);
request(‘HTTP_FILE_GREATER_THAN_100MB’, function (error, response, body) {
if (!error && response.statusCode == 200) {
//console.log(body) // Show the HTML for the Google homepage.
console.log(‘Downloading file’)
}
})
Thanks,
Sd