@@ -17,7 +17,7 @@ $ npm install webpagetest -g
1717
1818### Command line
1919``` bash
20- $ webpagetest test https ://twitter .com/marcelduran
20+ $ webpagetest test http ://marcelduran .com/webpagetest-api
2121```
2222
2323### Docker
@@ -27,15 +27,15 @@ $ docker build -t webpagetest-api .
2727```
2828#### Run
2929``` bash
30- $ docker run -it --rm webpagetest-api -k YOURAPIKEY test https ://twitter .com/marcelduran
30+ $ docker run -it --rm webpagetest-api -k YOURAPIKEY test http ://marcelduran .com/webpagetest-api
3131```
3232
3333### Module
3434``` javascript
3535const WebPageTest = require (' webpagetest' );
3636const wpt = new WebPageTest (' www.webpagetest.org' );
3737
38- wpt .runTest (' https ://twitter .com/marcelduran ' , (err , data ) => {
38+ wpt .runTest (' http ://marcelduran .com/webpagetest-api ' , (err , data ) => {
3939 console .log (err || data);
4040});
4141```
@@ -229,9 +229,9 @@ $ webpagetest locations
229229}
230230```
231231
232- #### 2. Run test on https ://twitter .com/marcelduran from San Jose on IE9
232+ #### 2. Run test on http ://marcelduran .com/webpagetest-api from San Jose on IE9
233233``` bash
234- $ webpagetest test https ://twitter .com/marcelduran --key 1F2A3K4E5 --location SanJose_IE9
234+ $ webpagetest test http ://marcelduran .com/webpagetest-api --key 1F2A3K4E5 --location SanJose_IE9
235235```
236236``` javascript
237237{
@@ -279,7 +279,7 @@ $ webpagetest results 121025_PT_N8K
279279 " data" : {
280280 " testId" : " 121025_PT_N8K" ,
281281 " summary" : " https://www.webpagetest.org/result/121025_PT_N8K/" ,
282- " testUrl" : " https ://twitter .com/marcelduran " ,
282+ " testUrl" : " http ://marcelduran .com/webpagetest-api " ,
283283 " location" : " SanJose_IE9" ,
284284 " connectivity" : " DSL" ,
285285 " bwDown" : 1500 , " bwUp" : 384 , " latency" : 50 , " plr" : 0 ,
@@ -312,21 +312,21 @@ $ webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
312312}
313313```
314314
315- #### Run test on https ://twitter .com/marcelduran and poll results every 5 seconds timing out in 60 seconds
315+ #### Run test on http ://marcelduran .com/webpagetest-api and poll results every 5 seconds timing out in 60 seconds
316316``` bash
317- $ webpagetest test https ://twitter .com/marcelduran --poll 5 --timeout 60
317+ $ webpagetest test http ://marcelduran .com/webpagetest-api --poll 5 --timeout 60
318318```
319- #### Or run test on https ://twitter .com/marcelduran and wait for results listening on localhost\* port 8000\* *
319+ #### Or run test on http ://marcelduran .com/webpagetest-api and wait for results listening on localhost\* port 8000\* *
320320``` bash
321- $ webpagetest test https ://twitter .com/marcelduran --wait 8000
321+ $ webpagetest test http ://marcelduran .com/webpagetest-api --wait 8000
322322```
323323``` javascript
324324{
325325 " response" : {
326326 " statusCode" : 200 , " statusText" : " Ok" ,
327327 " data" : {
328328 " testId" : " 121025_PT_N8K" ,
329- " testUrl" : " https ://twitter .com/marcelduran " ,
329+ " testUrl" : " http ://marcelduran .com/webpagetest-api " ,
330330 ...
331331 " median" : {
332332 " firstView" : {
@@ -543,9 +543,9 @@ wpt.getLocations((err, data) => {
543543});
544544```
545545
546- #### 3. Run test on https ://twitter .com/marcelduran from San Jose on IE9
546+ #### 3. Run test on http ://marcelduran .com/webpagetest-api from San Jose on IE9
547547``` javascript
548- wpt .runTest (' https ://twitter .com/marcelduran ' , {location: ' SanJose_IE9' }, (err , data ) => {
548+ wpt .runTest (' http ://marcelduran .com/webpagetest-api ' , {location: ' SanJose_IE9' }, (err , data ) => {
549549 console .log (err || data);
550550});
551551```
@@ -575,16 +575,16 @@ wpt.getWaterfallImage('121025_PT_N8K', {
575575});
576576```
577577
578- #### Run test on https ://twitter .com/marcelduran and poll results every 5 seconds timing out in 60 seconds
578+ #### Run test on http ://marcelduran .com/webpagetest-api and poll results every 5 seconds timing out in 60 seconds
579579``` javascript
580- wpt .runTest (' https ://twitter .com/marcelduran ' , {pollResults: 5 , timeout: 60 }, (err , data ) => {
580+ wpt .runTest (' http ://marcelduran .com/webpagetest-api ' , {pollResults: 5 , timeout: 60 }, (err , data ) => {
581581 console .log (err || data);
582582});
583583```
584584
585- #### Or run test on https ://twitter .com/marcelduran and wait results listening on localhost\* port 8000\*\*
585+ #### Or run test on http ://marcelduran .com/webpagetest-api and wait results listening on localhost\* port 8000\*\*
586586``` javascript
587- wpt .runTest (' https ://twitter .com/marcelduran ' , {waitResults: ' localhost:8000' }, (err , data ) => {
587+ wpt .runTest (' http ://marcelduran .com/webpagetest-api ' , {waitResults: ' localhost:8000' }, (err , data ) => {
588588 console .log (err || data);
589589});
590590```
@@ -605,7 +605,7 @@ http://localhost:8080
605605```
606606``` bash
607607$ curl http://localhost:8080/help
608- $ curl http://localhost:8080/test/twitter .com/? location=SanJose_IE9
608+ $ curl http://localhost:8080/test/marcelduran .com/? location=SanJose_IE9
609609```
610610``` bash
611611$ webpagetest listen 8443 --key key.pem --cert cert.pem --server wpt.foo.com
@@ -643,8 +643,8 @@ $ webpagetest batch commands.txt
643643```
644644where ` commands.txt ` contains:
645645```
646- test twitter .com/marcelduran --first --location foo
647- test twitter .com/marcelduran --first --location bar
646+ test marcelduran .com --first --location foo
647+ test marcelduran .com --first --location bar
648648```
649649It schedules the 2 tests above returning an array of size 2 in the same order as in ` commands.txt ` file:
650650``` javascript
@@ -675,8 +675,8 @@ By running multiple sync tests, i.e. with either `--poll` or `--wait`, all tests
675675
676676` commands.txt` :
677677` ` `
678- test twitter .com/marcelduran --first --location foo --poll --timeout 60
679- test twitter .com/marcelduran --first --location bar --poll --timeout 60
678+ test marcelduran .com --first --location foo --poll --timeout 60
679+ test marcelduran .com --first --location bar --poll --timeout 60
680680` ` `
681681
682682# # Test Specs (Continuous Integration)
@@ -705,7 +705,7 @@ https://github.com/marcelduran/webpagetest-api/issues
705705# # License
706706
707707Copyright 2013 Twitter Inc.
708- Copyright 2017 Google Inc.
709- Copyright 2017 Marcel Duran and other contributors
708+ Copyright 2020 Google Inc.
709+ Copyright 2020 Marcel Duran and other contributors
710710
711711Licensed under the [MIT License](https://github.com/marcelduran/webpagetest-api/raw/master/LICENSE)
0 commit comments