@@ -17,7 +17,7 @@ $ npm install webpagetest -g
17
17
18
18
### Command line
19
19
``` bash
20
- $ webpagetest test https ://twitter .com/marcelduran
20
+ $ webpagetest test http ://marcelduran .com/webpagetest-api
21
21
```
22
22
23
23
### Docker
@@ -27,15 +27,15 @@ $ docker build -t webpagetest-api .
27
27
```
28
28
#### Run
29
29
``` 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
31
31
```
32
32
33
33
### Module
34
34
``` javascript
35
35
const WebPageTest = require (' webpagetest' );
36
36
const wpt = new WebPageTest (' www.webpagetest.org' );
37
37
38
- wpt .runTest (' https ://twitter .com/marcelduran ' , (err , data ) => {
38
+ wpt .runTest (' http ://marcelduran .com/webpagetest-api ' , (err , data ) => {
39
39
console .log (err || data);
40
40
});
41
41
```
@@ -229,9 +229,9 @@ $ webpagetest locations
229
229
}
230
230
```
231
231
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
233
233
``` 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
235
235
```
236
236
``` javascript
237
237
{
@@ -279,7 +279,7 @@ $ webpagetest results 121025_PT_N8K
279
279
" data" : {
280
280
" testId" : " 121025_PT_N8K" ,
281
281
" summary" : " https://www.webpagetest.org/result/121025_PT_N8K/" ,
282
- " testUrl" : " https ://twitter .com/marcelduran " ,
282
+ " testUrl" : " http ://marcelduran .com/webpagetest-api " ,
283
283
" location" : " SanJose_IE9" ,
284
284
" connectivity" : " DSL" ,
285
285
" bwDown" : 1500 , " bwUp" : 384 , " latency" : 50 , " plr" : 0 ,
@@ -312,21 +312,21 @@ $ webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
312
312
}
313
313
```
314
314
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
316
316
``` bash
317
- $ webpagetest test https ://twitter .com/marcelduran --poll 5 --timeout 60
317
+ $ webpagetest test http ://marcelduran .com/webpagetest-api --poll 5 --timeout 60
318
318
```
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\* *
320
320
``` bash
321
- $ webpagetest test https ://twitter .com/marcelduran --wait 8000
321
+ $ webpagetest test http ://marcelduran .com/webpagetest-api --wait 8000
322
322
```
323
323
``` javascript
324
324
{
325
325
" response" : {
326
326
" statusCode" : 200 , " statusText" : " Ok" ,
327
327
" data" : {
328
328
" testId" : " 121025_PT_N8K" ,
329
- " testUrl" : " https ://twitter .com/marcelduran " ,
329
+ " testUrl" : " http ://marcelduran .com/webpagetest-api " ,
330
330
...
331
331
" median" : {
332
332
" firstView" : {
@@ -543,9 +543,9 @@ wpt.getLocations((err, data) => {
543
543
});
544
544
```
545
545
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
547
547
``` 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 ) => {
549
549
console .log (err || data);
550
550
});
551
551
```
@@ -575,16 +575,16 @@ wpt.getWaterfallImage('121025_PT_N8K', {
575
575
});
576
576
```
577
577
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
579
579
``` 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 ) => {
581
581
console .log (err || data);
582
582
});
583
583
```
584
584
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\*\*
586
586
``` 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 ) => {
588
588
console .log (err || data);
589
589
});
590
590
```
@@ -605,7 +605,7 @@ http://localhost:8080
605
605
```
606
606
``` bash
607
607
$ 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
609
609
```
610
610
``` bash
611
611
$ webpagetest listen 8443 --key key.pem --cert cert.pem --server wpt.foo.com
@@ -643,8 +643,8 @@ $ webpagetest batch commands.txt
643
643
```
644
644
where ` commands.txt ` contains:
645
645
```
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
648
648
```
649
649
It schedules the 2 tests above returning an array of size 2 in the same order as in ` commands.txt ` file:
650
650
``` javascript
@@ -675,8 +675,8 @@ By running multiple sync tests, i.e. with either `--poll` or `--wait`, all tests
675
675
676
676
` commands.txt` :
677
677
` ` `
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
680
680
` ` `
681
681
682
682
# # Test Specs (Continuous Integration)
@@ -705,7 +705,7 @@ https://github.com/marcelduran/webpagetest-api/issues
705
705
# # License
706
706
707
707
Copyright 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
710
710
711
711
Licensed under the [MIT License](https://github.com/marcelduran/webpagetest-api/raw/master/LICENSE)
0 commit comments