@@ -17,7 +17,7 @@ $ npm install webpagetest -g
17
17
18
18
### Command line
19
19
``` bash
20
- $ webpagetest test http ://marcelduran.com/ webpagetest- api
20
+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/
21
21
```
22
22
23
23
### Docker
@@ -27,23 +27,19 @@ $ docker build -t webpagetest-api .
27
27
```
28
28
#### Run
29
29
``` 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/
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 (' http ://marcelduran.com/ webpagetest- api' , (err , data ) => {
38
+ wpt .runTest (' https ://docs. webpagetest.org/ api/integrations/ ' , (err , data ) => {
39
39
console .log (err || data);
40
40
});
41
41
```
42
42
43
- ## API Console Demo
44
-
45
- [ marcelduran.com/webpagetest-api] ( http://marcelduran.com/webpagetest-api/console/ )
46
-
47
43
## Command Line
48
44
49
45
### Help
@@ -269,9 +265,9 @@ $ webpagetest locations --key 1F2A3K4E5
269
265
}
270
266
```
271
267
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
273
269
``` 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
275
271
```
276
272
``` javascript
277
273
{
@@ -319,7 +315,7 @@ $ webpagetest results 121025_PT_N8K
319
315
" data" : {
320
316
" testId" : " 121025_PT_N8K" ,
321
317
" summary" : " https://www.webpagetest.org/result/121025_PT_N8K/" ,
322
- " testUrl" : " http ://marcelduran.com/ webpagetest- api" ,
318
+ " testUrl" : " https ://docs. webpagetest.org/ api/integrations/ " ,
323
319
" location" : " SanJose_IE9" ,
324
320
" connectivity" : " DSL" ,
325
321
" bwDown" : 1500 , " bwUp" : 384 , " latency" : 50 , " plr" : 0 ,
@@ -352,21 +348,21 @@ $ webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
352
348
}
353
349
```
354
350
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
356
352
``` 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
358
354
```
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\* *
360
356
``` bash
361
- $ webpagetest test http ://marcelduran.com/ webpagetest- api --wait 8000
357
+ $ webpagetest test https ://docs. webpagetest.org/ api/integrations/ --wait 8000
362
358
```
363
359
``` javascript
364
360
{
365
361
" response" : {
366
362
" statusCode" : 200 , " statusText" : " Ok" ,
367
363
" data" : {
368
364
" testId" : " 121025_PT_N8K" ,
369
- " testUrl" : " http ://marcelduran.com/ webpagetest- api" ,
365
+ " testUrl" : " https ://docs. webpagetest.org/ api/integrations/ " ,
370
366
...
371
367
" median" : {
372
368
" firstView" : {
@@ -598,9 +594,9 @@ wpt.getLocations((err, data) => {
598
594
});
599
595
```
600
596
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
602
598
``` 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 ) => {
604
600
console .log (err || data);
605
601
});
606
602
```
@@ -630,16 +626,16 @@ wpt.getWaterfallImage('121025_PT_N8K', {
630
626
});
631
627
```
632
628
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
634
630
``` 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 ) => {
636
632
console .log (err || data);
637
633
});
638
634
```
639
635
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\*\*
641
637
``` 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 ) => {
643
639
console .log (err || data);
644
640
});
645
641
```
@@ -660,7 +656,7 @@ http://localhost:8080
660
656
```
661
657
``` bash
662
658
$ 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
664
660
```
665
661
``` bash
666
662
$ webpagetest listen 8443 --key key.pem --cert cert.pem --server wpt.foo.com
@@ -698,8 +694,8 @@ $ webpagetest batch commands.txt
698
694
```
699
695
where ` commands.txt ` contains:
700
696
```
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
703
699
```
704
700
It schedules the 2 tests above returning an array of size 2 in the same order as in ` commands.txt ` file:
705
701
``` javascript
@@ -730,15 +726,15 @@ By running multiple sync tests, i.e. with either `--poll` or `--wait`, all tests
730
726
731
727
` commands.txt` :
732
728
` ` `
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
735
731
` ` `
736
732
737
733
# # Test Specs (Continuous Integration)
738
734
739
735
WebPageTest API Wrapper provides a simple seamless way to integrate WebPageTest with Continuous Integration tools.
740
736
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)
742
738
743
739
# # Tests
744
740
` ` ` bash
@@ -749,18 +745,18 @@ $ npm test
749
745
750
746
Have a bug/feature request? Please create an issue here on GitHub!
751
747
752
- https://github.com/marcelduran /webpagetest-api/issues
748
+ https://github.com/WebPageTest /webpagetest-api/issues
753
749
754
750
# # Author
755
751
756
- ** Marcel Duran **
752
+ ** WebPageTest **
757
753
758
- + https://github.com/marcelduran
754
+ + https://github.com/WebPageTest
759
755
760
756
# # License
761
757
762
758
Copyright 2013 Twitter Inc.
763
759
Copyright 2020 Google Inc.
764
760
Copyright 2020 Marcel Duran and other contributors
765
761
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