SHARE
TWEET

Untitled

a guest May 20th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $data= import-csv ./urls.csv -delimiter ";"
  2. $port=56857
  3.  
  4. foreach ($item in $data){
  5.     write-output "Testing $($item.Url) for $($item.number_of_runs) times"
  6.     for ($i=1;$i -le $item.number_of_runs;$i++)
  7.     {
  8.         write-output "running test to $($item.url) for  $i/$($item.number_of_runs)"
  9.         lighthouse $item.url --disable-device-emulation --throttling-method=provided --output=json --port=$port --quiet --chrome-flags="--headless" --disable-storage-reset --emulated-form-factor=none --output-path="./$($item.output_folder)/$($i).json" --only-categories=performance
  10.  
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top