GithubHelp home page GithubHelp logo

simondotwhite / laravel-dusk-speedtest Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 198 KB

A simple solution to monitoring your internet speed using speedtest.net

License: MIT License

PHP 93.93% JavaScript 1.38% Vue 0.68% Shell 0.67% Blade 3.34%
speedtest dusk laravel

laravel-dusk-speedtest's Introduction

Laravel Dusk SpeedTest

This project is just an empty Laravel application with Dusk installed.

WHen you run php artisan dusk it will run two tests, one if you've set your account details in the environment file and the other one will run if you haven't.

What is the purpose

I recently moved into a new apartment and the internet is very inconsistent and I wanted a way to monitor the speeds. I also used this to justify having a play with Dusk.

Setup

Download/clone this repo and install the dependencies through composer

composer install

Environment

Add the following to your environment file

SPEEDTEST_EMAIL=YOUR_EMAIL
SPEEDTEST_PASSWORD=YOUR_PASSWORD

If these are added the logged in test will run and that way you can track your results.

Database

I've stuck with an sqlite database for recording the results, but you can use whatever you want.

Once you've decided, run the migrations:

php artisan migrate

This will create a table that the tests insert their results to.

Running the speed tests

To run the tests it's pretty, use just the following:

php artisan dusk

Things removed

I've removed the default User object as well the migrations that come out of the box.

laravel-dusk-speedtest's People

Contributors

krzysztofengineer avatar sekonda avatar simondotwhite avatar vmitchell85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ismailh

laravel-dusk-speedtest's Issues

errors are comming, need help

hi,
I followed the steps and now getting errors:

php artisan dusk

1) Tests\Browser\SpeedTestNoLoginTest::testSpeedTest
Facebook\WebDriver\Exception\UnknownServerException: unknown error: cannot find
 Chrome binary
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2c
fd9),platform=Windows NT 10.0.18362 x86_64)

D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Exception\W
ebDriverException.php:114
D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Remote\Http
CommandExecutor.php:320
D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Remote\Remo
teWebDriver.php:126
D:\laragon\www\laravel-dusk-speedtest\tests\DuskTestCase.php:32
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:208
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\framework\src\Illuminate\S
upport\helpers.php:652
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:209
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:115
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:87
D:\laragon\www\laravel-dusk-speedtest\tests\Browser\SpeedTestNoLoginTest.php:21

2) Tests\Browser\SpeedTestTest::testSpeedTest
Facebook\WebDriver\Exception\UnknownServerException: unknown error: cannot find
 Chrome binary
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2c
fd9),platform=Windows NT 10.0.18362 x86_64)

D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Exception\W
ebDriverException.php:114
D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Remote\Http
CommandExecutor.php:320
D:\laragon\www\laravel-dusk-speedtest\vendor\facebook\webdriver\lib\Remote\Remo
teWebDriver.php:126
D:\laragon\www\laravel-dusk-speedtest\tests\DuskTestCase.php:32
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:208
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\framework\src\Illuminate\S
upport\helpers.php:652
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:209
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:115
D:\laragon\www\laravel-dusk-speedtest\vendor\laravel\dusk\src\TestCase.php:87
D:\laragon\www\laravel-dusk-speedtest\tests\Browser\SpeedTestTest.php:21

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.