testcafe-hammerhead
TypeScript icon, indicating that this package has built-in type declarations

31.7.3 • Public • Published

testcafe-hammerhead

testcafe-hammerhead is a powerful Web proxy used as a core for the TestCafe testing framework.

Core Concepts

testcafe-hammerhead is a URL-rewriting proxy. This means that it rewrites all properties of the appropriate JavaScript objects that contain a URL value (Location, HTMLLinkElement.href, etc). You can see it if you open a proxied page, invoke the browser's DevTools and inspect any element.

In addition, the proxied web page does not know that it is opened under a proxy. The proxy intercepts access attempts to all URL-containing properties and provides the original values.

First Look

  1. Clone the Hammerhead repository
    git clone https://github.com/DevExpress/testcafe-hammerhead.git
  2. Go to the testcafe-hammerhead folder
    cd testcafe-hammerhead
  3. Install the dependencies
    npm install
  4. Run the Hammerhead playground to see our proxy in action
    node node_modules/gulp/bin/gulp http-playground

This opens a playground page where you can specify a webpage to proxy. Enter the page URL and hit Proxy!.

Features

  • HTTP/HTTPS requests
  • WebSockets, EventSource
  • file upload
  • request events (onRequest, onResponse)
  • bypassing requests
  • custom UI on a web page

Reporting Issues and Contributing

Read our Contributing Guide to learn how to contribute to the project.

Build Status

Sauce Test Status

Health Monitor

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
31.7.312,385latest

Version History

VersionDownloads (Last 7 Days)Published
31.7.312,385
31.7.293,072
31.7.122,804
31.7.029,659
31.6.4654
31.6.38,480
31.6.21,256
31.6.111,809
31.5.03
31.4.155,264
31.4.12390
31.4.112,148
31.4.105
31.4.937
31.4.8273
31.4.70
31.4.6818
31.4.5319
31.4.45
31.4.39,039
31.4.292
31.4.1626
31.4.01,992
31.3.036
31.2.052
31.1.01
31.0.016
30.1.03,840
30.0.05
29.0.03,069
28.4.23,480
28.4.113
28.4.01
28.3.15
28.3.00
28.2.95
28.2.8319
28.2.795
28.2.6415
28.2.52,011
28.2.4143
28.2.3240
28.2.219
28.2.1364
28.2.0118
28.1.0846
28.0.1107
28.0.0294
27.0.177
26.0.25
26.0.147
25.0.35
25.0.21
25.0.1331
25.0.02
24.7.41,784
24.7.3260
24.7.215,337
24.7.124
24.7.00
24.6.00
24.5.24271
24.5.2336
24.5.225
24.5.215
24.5.2077
24.5.194,338
24.5.188,426
24.5.175
24.5.167,192
24.5.15744
24.5.142,297
24.5.131,575
24.5.121
24.5.110
24.5.100
24.5.91,212
24.5.846
24.5.7453
24.5.635
24.5.531
24.5.4530
24.5.30
24.5.26,529
24.5.1225
24.5.00
24.4.3147
24.4.220
24.4.1353
24.4.05
24.3.11,051
24.3.0127
24.2.282
24.2.13,126
24.2.04
24.1.15
24.1.05
24.0.05
23.0.0586
21.0.01,256
20.3.00
20.2.09
20.1.035
20.0.010
19.5.0109
19.4.216
19.4.1200
19.4.06
19.3.00
19.2.3315
19.2.20
19.2.10
19.2.00
19.1.10
19.1.00
19.0.10
19.0.00
18.0.01,985
17.1.26350
17.1.250
17.1.240
17.1.230
17.1.220
17.1.213
17.1.201,600
17.1.190
17.1.18209
17.1.173
17.1.160
17.1.15247
17.1.143
17.1.13183
17.1.12693
17.1.11199
17.1.100
17.1.91,014
17.1.80
17.1.749
17.1.63
17.1.40
17.1.3199
17.1.2750
17.1.10
17.1.01
17.0.10
16.2.9286
16.2.73
16.2.63
16.2.52
16.2.40
16.2.3241
16.2.2310
16.2.10
16.2.03
16.1.33
16.1.256
16.1.13
16.1.00
16.0.2244
16.0.13
16.0.00
15.0.0150
14.11.1420
14.11.03
14.10.2474
14.10.13
14.10.03
14.9.21,245
14.9.13
14.9.01,877
14.8.01
14.7.466
14.7.353
14.7.20
14.7.10
14.7.04
14.6.1390
14.6.117
14.6.1043
14.6.90
14.6.878
14.6.60
14.6.53
14.6.44
14.6.396
14.6.280
14.6.166
14.6.03
14.5.40
14.5.30
14.5.23
14.5.115
14.5.03
14.4.1428
14.4.130
14.4.12306
14.4.115
14.4.105
14.4.95
14.4.80
14.4.7334
14.4.65
14.4.40
14.4.35
14.4.25
14.4.189
14.4.05
14.3.112
14.3.00
14.2.720
14.2.659
14.2.50
14.2.450
14.2.32
14.2.2360
14.2.10
14.2.00
14.1.15
14.1.00
14.0.020
13.5.20
13.5.116
13.5.00
13.4.416
13.4.30
13.4.25
13.4.110
13.4.05
13.3.1216
13.3.05
13.2.15
13.2.00
13.1.36
13.1.20
13.1.111
13.1.00
13.0.10
13.0.00
12.1.90
12.1.80
12.1.70
12.1.6268
12.1.50
12.1.40
12.1.30
12.1.20
12.1.10
12.1.046
12.0.30
12.0.20
12.0.10
12.0.00
11.2.10
11.2.00
11.1.60
11.1.50
11.1.40
11.1.30
11.1.29
11.1.14
11.1.00
11.0.30
11.0.20
11.0.10
11.0.00
10.10.012
10.9.10
10.9.00
10.8.17
10.8.07
10.7.07
10.6.107
10.6.97
10.6.87
10.6.77
10.6.613
10.6.57
10.6.40
10.6.30
10.6.20
10.6.10
10.6.00
10.5.00
10.4.00
10.3.48
10.3.30
10.3.20
10.3.125
10.3.00
10.2.10
10.2.00
10.1.7276
10.1.60
10.1.50
10.1.40
10.1.30
10.1.20
10.1.10
10.1.00
10.0.20
10.0.11
10.0.00
9.3.123
9.3.110
9.3.100
9.3.90
9.3.80
9.3.70
9.3.60
9.3.50
9.3.40
9.3.30
9.3.10
9.3.00
9.2.30
9.2.20
9.2.10
9.2.00
9.1.00
9.0.30
9.0.20
9.0.11
9.0.00
8.3.15
8.2.00
8.1.00
8.0.00
7.1.30
7.1.20
7.1.10
7.1.00
7.0.00
6.0.00
5.0.05
4.1.30
3.1.30
3.1.20
3.1.10
3.1.00
3.0.10
3.0.00
2.0.20
2.0.10
2.0.00
1.1.01
1.0.00
0.2.10
0.1.10
0.1.00

Package Sidebar

Install

npm i testcafe-hammerhead

Weekly Downloads

291,791

Version

31.7.3

License

MIT

Unpacked Size

3.18 MB

Total Files

156

Last publish

Collaborators

  • aleks-pro
  • aleksey_popov
  • dmitry-ostashev
  • miherlosev
  • kirovboris
  • alexkamaev