@@ -17,7 +17,7 @@ $ npm install webpagetest -g
1717
1818### Command line
1919``` bash
20- $ webpagetest test http ://marcelduran.com/ webpagetest- api
20+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/
2121```
2222
2323### Docker
@@ -27,23 +27,19 @@ $ docker build -t webpagetest-api .
2727```
2828#### Run
2929``` bash
30- $ docker run -it --rm webpagetest-api -k YOURAPIKEY test http ://marcelduran.com/ webpagetest- api
30+ $ docker run -it --rm webpagetest-api -k YOURAPIKEY test https ://docs. webpagetest.org/ api/integrations/
3131```
3232
3333### Module
3434``` javascript
3535const WebPageTest = require (' webpagetest' );
3636const wpt = new WebPageTest (' www.webpagetest.org' );
3737
38- wpt .runTest (' http ://marcelduran.com/ webpagetest- api' , (err , data ) => {
38+ wpt .runTest (' https ://docs. webpagetest.org/ api/integrations/ ' , (err , data ) => {
3939 console .log (err || data);
4040});
4141```
4242
43- ## API Console Demo
44-
45- [ marcelduran.com/webpagetest-api] ( http://marcelduran.com/webpagetest-api/console/ )
46-
4743## Command Line
4844
4945### Help
@@ -269,9 +265,9 @@ $ webpagetest locations --key 1F2A3K4E5
269265}
270266```
271267
272- #### 3. Run test on http ://marcelduran.com/ webpagetest- api from San Jose on IE9
268+ #### 3. Run test on https ://docs. webpagetest.org/ api/integrations/ from San Jose on IE9
273269``` bash
274- $ webpagetest test http ://marcelduran.com/ webpagetest- api --key 1F2A3K4E5 --location SanJose_IE9
270+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/ --key 1F2A3K4E5 --location SanJose_IE9
275271```
276272``` javascript
277273{
@@ -319,7 +315,7 @@ $ webpagetest results 121025_PT_N8K
319315 " data" : {
320316 " testId" : " 121025_PT_N8K" ,
321317 " summary" : " https://www.webpagetest.org/result/121025_PT_N8K/" ,
322- " testUrl" : " http ://marcelduran.com/ webpagetest- api" ,
318+ " testUrl" : " https ://docs. webpagetest.org/ api/integrations/ " ,
323319 " location" : " SanJose_IE9" ,
324320 " connectivity" : " DSL" ,
325321 " bwDown" : 1500 , " bwUp" : 384 , " latency" : 50 , " plr" : 0 ,
@@ -352,21 +348,21 @@ $ webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
352348}
353349```
354350
355- #### Run test on http ://marcelduran.com/ webpagetest- api and poll results every 5 seconds timing out in 60 seconds
351+ #### Run test on https ://docs. webpagetest.org/ api/integrations/ and poll results every 5 seconds timing out in 60 seconds
356352``` bash
357- $ webpagetest test http ://marcelduran.com/ webpagetest- api --poll 5 --timeout 60
353+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/ --poll 5 --timeout 60
358354```
359- #### Or run test on http ://marcelduran.com/ webpagetest- api and wait for results listening on localhost\* port 8000\* *
355+ #### Or run test on https ://docs. webpagetest.org/ api/integrations/ and wait for results listening on localhost\* port 8000\* *
360356``` bash
361- $ webpagetest test http ://marcelduran.com/ webpagetest- api --wait 8000
357+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/ --wait 8000
362358```
363359``` javascript
364360{
365361 " response" : {
366362 " statusCode" : 200 , " statusText" : " Ok" ,
367363 " data" : {
368364 " testId" : " 121025_PT_N8K" ,
369- " testUrl" : " http ://marcelduran.com/ webpagetest- api" ,
365+ " testUrl" : " https ://docs. webpagetest.org/ api/integrations/ " ,
370366 ...
371367 " median" : {
372368 " firstView" : {
@@ -598,9 +594,9 @@ wpt.getLocations((err, data) => {
598594});
599595```
600596
601- #### 3. Run test on http ://marcelduran.com/ webpagetest- api from San Jose on IE9
597+ #### 3. Run test on https ://docs. webpagetest.org/ api/integrations/ from San Jose on IE9
602598``` javascript
603- wpt .runTest (' http ://marcelduran.com/ webpagetest- api' , {location: ' SanJose_IE9' }, (err , data ) => {
599+ wpt .runTest (' https ://docs. webpagetest.org/ api/integrations/ ' , {location: ' SanJose_IE9' }, (err , data ) => {
604600 console .log (err || data);
605601});
606602```
@@ -630,16 +626,16 @@ wpt.getWaterfallImage('121025_PT_N8K', {
630626});
631627```
632628
633- #### Run test on http ://marcelduran.com/ webpagetest- api and poll results every 5 seconds timing out in 60 seconds
629+ #### Run test on https ://docs. webpagetest.org/ api/integrations/ and poll results every 5 seconds timing out in 60 seconds
634630``` javascript
635- wpt .runTest (' http ://marcelduran.com/ webpagetest- api' , {pollResults: 5 , timeout: 60 }, (err , data ) => {
631+ wpt .runTest (' https ://docs. webpagetest.org/ api/integrations/ ' , {pollResults: 5 , timeout: 60 }, (err , data ) => {
636632 console .log (err || data);
637633});
638634```
639635
640- #### Or run test on http ://marcelduran.com/ webpagetest- api and wait results listening on localhost\* port 8000\*\*
636+ #### Or run test on https ://docs. webpagetest.org/ api/integrations/ and wait results listening on localhost\* port 8000\*\*
641637``` javascript
642- wpt .runTest (' http ://marcelduran.com/ webpagetest- api' , {waitResults: ' localhost:8000' }, (err , data ) => {
638+ wpt .runTest (' https ://docs. webpagetest.org/ api/integrations/ ' , {waitResults: ' localhost:8000' }, (err , data ) => {
643639 console .log (err || data);
644640});
645641```
@@ -660,7 +656,7 @@ http://localhost:8080
660656```
661657``` bash
662658$ curl http://localhost:8080/help
663- $ curl http://localhost:8080/test/marcelduran.com /? location=SanJose_IE9
659+ $ curl http://localhost:8080/test/webpagetest.org /? location=SanJose_IE9
664660```
665661``` bash
666662$ webpagetest listen 8443 --key key.pem --cert cert.pem --server wpt.foo.com
@@ -698,8 +694,8 @@ $ webpagetest batch commands.txt
698694```
699695where ` commands.txt ` contains:
700696```
701- test marcelduran.com --first --location foo
702- test marcelduran.com --first --location bar
697+ test https://docs.webpagetest.org/api/integrations/ --first --location foo
698+ test https://docs.webpagetest.org/api/integrations/ --first --location bar
703699```
704700It schedules the 2 tests above returning an array of size 2 in the same order as in ` commands.txt ` file:
705701``` javascript
@@ -730,15 +726,15 @@ By running multiple sync tests, i.e. with either `--poll` or `--wait`, all tests
730726
731727` commands.txt` :
732728` ` `
733- test marcelduran.com --first --location foo --poll --timeout 60
734- test marcelduran.com --first --location bar --poll --timeout 60
729+ test https://docs.webpagetest.org/api/integrations/ --first --location foo --poll --timeout 60
730+ test https://docs.webpagetest.org/api/integrations/ --first --location bar --poll --timeout 60
735731` ` `
736732
737733# # Test Specs (Continuous Integration)
738734
739735WebPageTest API Wrapper provides a simple seamless way to integrate WebPageTest with Continuous Integration tools.
740736
741- [See dedicated page](https://github.com/marcelduran /webpagetest-api/wiki/Test-Specs)
737+ [See dedicated page](https://github.com/WebPageTest /webpagetest-api/wiki/Test-Specs)
742738
743739# # Tests
744740` ` ` bash
@@ -749,18 +745,18 @@ $ npm test
749745
750746Have a bug/feature request? Please create an issue here on GitHub!
751747
752- https://github.com/marcelduran /webpagetest-api/issues
748+ https://github.com/WebPageTest /webpagetest-api/issues
753749
754750# # Author
755751
756- ** Marcel Duran **
752+ ** WebPageTest **
757753
758- + https://github.com/marcelduran
754+ + https://github.com/WebPageTest
759755
760756# # License
761757
762758Copyright 2013 Twitter Inc.
763759Copyright 2020 Google Inc.
764760Copyright 2020 Marcel Duran and other contributors
765761
766- Licensed under the [MIT License](https://github.com/marcelduran /webpagetest-api/raw/master/LICENSE)
762+ Licensed under the [MIT License](https://github.com/WebPageTest /webpagetest-api/raw/master/LICENSE)
0 commit comments