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,552latest

Version History

VersionDownloads (Last 7 Days)Published
31.7.312,552
31.7.298,060
31.7.122,279
31.7.030,026
31.6.4655
31.6.38,231
31.6.2711
31.6.111,364
31.5.00
31.4.155,085
31.4.12305
31.4.112,474
31.4.100
31.4.946
31.4.8212
31.4.70
31.4.61,070
31.4.5277
31.4.40
31.4.39,163
31.4.2111
31.4.1712
31.4.02,063
31.3.034
31.2.045
31.1.01
31.0.028
30.1.04,211
30.0.00
29.0.03,183
28.4.22,724
28.4.112
28.4.01
28.3.10
28.3.00
28.2.90
28.2.8339
28.2.793
28.2.6326
28.2.52,369
28.2.485
28.2.3226
28.2.219
28.2.1528
28.2.081
28.1.0900
28.0.148
28.0.0240
27.0.197
26.0.20
26.0.145
25.0.32
25.0.20
25.0.1519
25.0.02
24.7.41,459
24.7.3292
24.7.216,407
24.7.121
24.7.03
24.6.00
24.5.24341
24.5.2332
24.5.220
24.5.210
24.5.2040
24.5.194,314
24.5.189,123
24.5.175
24.5.167,298
24.5.15986
24.5.142,294
24.5.131,398
24.5.121
24.5.111
24.5.100
24.5.91,122
24.5.847
24.5.7405
24.5.65
24.5.523
24.5.4476
24.5.30
24.5.26,531
24.5.1241
24.5.00
24.4.3140
24.4.20
24.4.1546
24.4.00
24.3.1975
24.3.090
24.2.270
24.2.13,052
24.2.00
24.1.10
24.1.00
24.0.00
23.0.0538
21.0.01,099
20.3.00
20.2.04
20.1.036
20.0.06
19.5.0119
19.4.29
19.4.1161
19.4.01
19.3.00
19.2.3346
19.2.20
19.2.10
19.2.00
19.1.10
19.1.00
19.0.10
19.0.00
18.0.01,849
17.1.26395
17.1.250
17.1.249
17.1.230
17.1.220
17.1.210
17.1.201,824
17.1.190
17.1.18146
17.1.170
17.1.160
17.1.15192
17.1.140
17.1.13127
17.1.12680
17.1.11191
17.1.100
17.1.9988
17.1.80
17.1.742
17.1.60
17.1.40
17.1.3192
17.1.2665
17.1.10
17.1.02
17.0.10
16.2.9299
16.2.70
16.2.60
16.2.50
16.2.40
16.2.3255
16.2.2374
16.2.10
16.2.00
16.1.30
16.1.256
16.1.10
16.1.00
16.0.2167
16.0.10
16.0.00
15.0.0169
14.11.1418
14.11.00
14.10.2481
14.10.10
14.10.00
14.9.21,283
14.9.10
14.9.01,348
14.8.01
14.7.456
14.7.337
14.7.20
14.7.10
14.7.00
14.6.1355
14.6.119
14.6.1077
14.6.90
14.6.884
14.6.62
14.6.50
14.6.41
14.6.3110
14.6.247
14.6.160
14.6.00
14.5.40
14.5.30
14.5.20
14.5.16
14.5.00
14.4.1420
14.4.130
14.4.12401
14.4.110
14.4.100
14.4.90
14.4.80
14.4.7353
14.4.60
14.4.40
14.4.30
14.4.20
14.4.175
14.4.00
14.3.17
14.3.00
14.2.719
14.2.669
14.2.50
14.2.430
14.2.31
14.2.2403
14.2.10
14.2.00
14.1.10
14.1.00
14.0.016
13.5.20
13.5.115
13.5.00
13.4.416
13.4.30
13.4.20
13.4.10
13.4.00
13.3.1177
13.3.00
13.2.10
13.2.00
13.1.36
13.1.20
13.1.14
13.1.00
13.0.10
13.0.00
12.1.90
12.1.80
12.1.70
12.1.6352
12.1.50
12.1.40
12.1.30
12.1.20
12.1.10
12.1.051
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.10
11.1.00
11.0.30
11.0.20
11.0.10
11.0.00
10.10.09
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.614
10.6.50
10.6.40
10.6.30
10.6.20
10.6.10
10.6.00
10.5.00
10.4.00
10.3.42
10.3.30
10.3.20
10.3.122
10.3.00
10.2.10
10.2.00
10.1.7365
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.10
10.0.00
9.3.122
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.10
9.0.00
8.3.10
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.00
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

296,796

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