| Verifies that imported HAR files create matching NetworkRequests |
| requests: [ |
| { |
| "url": "http://localhost:8000/", |
| "documentURL": "http://localhost:8000/", |
| "initiator": { |
| "type": "other" |
| }, |
| "requestFormData": null, |
| "connectionId": "2945", |
| "requestMethod": "GET", |
| "requestHeaders": [ |
| { |
| "name": "Host", |
| "value": "localhost:8000" |
| } |
| ], |
| "mimeType": "text/html", |
| "responseHeaders": [ |
| { |
| "name": "Content-Type", |
| "value": "text/html;charset=ISO-8859-1" |
| } |
| ], |
| "statusCode": 200, |
| "statusText": "OK", |
| "protocol": "http/1.1", |
| "resourceSize": 4633, |
| "transferSize": 4821, |
| "cached": false, |
| "cachedInMemory": false, |
| "contentData": { |
| "error": null, |
| "content": "fake page data", |
| "encoded": false |
| }, |
| "remoteAddress": "[::1]:80", |
| "resourceType": { |
| "_name": "document", |
| "_title": "Document", |
| "_category": { |
| "title": "Documents", |
| "shortTitle": "Doc" |
| }, |
| "_isTextType": true |
| }, |
| "priority": "VeryHigh", |
| "finished": true, |
| "timing": { |
| "proxyStart": 2.0154479999188335, |
| "proxyEnd": 2.4644479999188333, |
| "requestTime": 1542746587.755448, |
| "dnsStart": -1, |
| "dnsEnd": -1, |
| "connectStart": -1, |
| "connectEnd": -1, |
| "sslStart": -1, |
| "sslEnd": -1, |
| "workerStart": -1, |
| "workerReady": -1, |
| "sendStart": 2.4644479999188333, |
| "sendEnd": 2.534447999918833, |
| "pushStart": 0, |
| "pushEnd": 0, |
| "receiveHeadersEnd": 5.624447982991114 |
| }, |
| "endTime": 1542746587.7661417, |
| "frames": [] |
| }, |
| { |
| "url": "http://localhost:8000/post-endpoint", |
| "documentURL": "http://localhost:8000/", |
| "initiator": { |
| "type": "parser", |
| "url": "http://localhost/", |
| "lineNumber": 1 |
| }, |
| "requestFormData": "one=urlencodedvalueone&two=urlencodedvaluetwo", |
| "connectionId": "2945", |
| "requestMethod": "POST", |
| "requestHeaders": [], |
| "mimeType": "image/x-icon", |
| "responseHeaders": [], |
| "statusCode": 200, |
| "statusText": "OK", |
| "protocol": "http/1.1", |
| "resourceSize": 1150, |
| "transferSize": 1417, |
| "cached": false, |
| "cachedInMemory": false, |
| "contentData": { |
| "error": null, |
| "content": null, |
| "encoded": false |
| }, |
| "remoteAddress": "[::1]:80", |
| "resourceType": { |
| "_name": "image", |
| "_title": "Image", |
| "_category": { |
| "title": "Images", |
| "shortTitle": "Img" |
| }, |
| "_isTextType": false |
| }, |
| "priority": "Low", |
| "finished": true, |
| "timing": { |
| "proxyStart": 1.7575360001232476, |
| "proxyEnd": 2.2485360001232477, |
| "requestTime": 1542746587.8705359, |
| "dnsStart": -1, |
| "dnsEnd": -1, |
| "connectStart": -1, |
| "connectEnd": -1, |
| "sslStart": -1, |
| "sslEnd": -1, |
| "workerStart": -1, |
| "workerReady": -1, |
| "sendStart": 2.2485360001232477, |
| "sendEnd": 2.3095360001232477, |
| "pushStart": 0, |
| "pushEnd": 0, |
| "receiveHeadersEnd": 2.828536113491282 |
| }, |
| "endTime": 1542746587.8738945, |
| "frames": [] |
| }, |
| { |
| "url": "http://localhost:8000/js_file.js", |
| "documentURL": "http://localhost:8000/", |
| "initiator": null, |
| "requestFormData": null, |
| "connectionId": "2945", |
| "requestMethod": "GET", |
| "requestHeaders": [], |
| "mimeType": "undefined", |
| "responseHeaders": [], |
| "statusCode": 200, |
| "statusText": "OK", |
| "protocol": "http/1.1", |
| "resourceSize": 1150, |
| "transferSize": 1417, |
| "cached": false, |
| "cachedInMemory": false, |
| "contentData": { |
| "error": null, |
| "content": null, |
| "encoded": false |
| }, |
| "remoteAddress": "[::1]:80", |
| "resourceType": { |
| "_name": "script", |
| "_title": "Script", |
| "_category": { |
| "title": "Scripts", |
| "shortTitle": "JS" |
| }, |
| "_isTextType": true |
| }, |
| "priority": "Low", |
| "finished": true, |
| "timing": { |
| "proxyStart": 1.7575360001232476, |
| "proxyEnd": 2.2485360001232477, |
| "requestTime": 1542746587.8705359, |
| "dnsStart": -1, |
| "dnsEnd": -1, |
| "connectStart": -1, |
| "connectEnd": -1, |
| "sslStart": -1, |
| "sslEnd": -1, |
| "workerStart": -1, |
| "workerReady": -1, |
| "sendStart": 2.2485360001232477, |
| "sendEnd": 2.3095360001232477, |
| "pushStart": 0, |
| "pushEnd": 0, |
| "receiveHeadersEnd": 2.828536113491282 |
| }, |
| "endTime": 1542746587.8738945, |
| "frames": [] |
| }, |
| { |
| "url": "http://localhost:8000/endpoint", |
| "documentURL": "http://localhost:8000/", |
| "initiator": { |
| "type": "script" |
| }, |
| "requestFormData": null, |
| "connectionId": "2945", |
| "requestMethod": "GET", |
| "requestHeaders": [], |
| "mimeType": "undefined", |
| "responseHeaders": [], |
| "statusCode": 200, |
| "statusText": "OK", |
| "protocol": "http/1.1", |
| "resourceSize": 1150, |
| "transferSize": 1417, |
| "cached": false, |
| "cachedInMemory": false, |
| "contentData": { |
| "error": null, |
| "content": null, |
| "encoded": false |
| }, |
| "remoteAddress": "[::1]:80", |
| "resourceType": { |
| "_name": "fetch", |
| "_title": "Fetch", |
| "_category": { |
| "title": "XHR and Fetch", |
| "shortTitle": "XHR" |
| }, |
| "_isTextType": true |
| }, |
| "priority": "Low", |
| "finished": true, |
| "timing": { |
| "proxyStart": 1.7575360001232476, |
| "proxyEnd": 2.2485360001232477, |
| "requestTime": 1542746587.8705359, |
| "dnsStart": -1, |
| "dnsEnd": -1, |
| "connectStart": -1, |
| "connectEnd": -1, |
| "sslStart": -1, |
| "sslEnd": -1, |
| "workerStart": -1, |
| "workerReady": -1, |
| "sendStart": 2.2485360001232477, |
| "sendEnd": 2.3095360001232477, |
| "pushStart": 0, |
| "pushEnd": 0, |
| "receiveHeadersEnd": 2.828536113491282 |
| }, |
| "endTime": 1542746587.8738945, |
| "frames": [] |
| }, |
| { |
| "url": "ws://localhost:8880/echo", |
| "documentURL": "ws://localhost:8880/echo", |
| "initiator": { |
| "type": "script" |
| }, |
| "requestFormData": null, |
| "connectionId": "", |
| "requestMethod": "GET", |
| "requestHeaders": [ |
| { |
| "name": "Pragma", |
| "value": "no-cache" |
| }, |
| { |
| "name": "Origin", |
| "value": "http://localhost:8000" |
| }, |
| { |
| "name": "Accept-Encoding", |
| "value": "gzip, deflate, br" |
| }, |
| { |
| "name": "Host", |
| "value": "localhost:8880" |
| }, |
| { |
| "name": "Accept-Language", |
| "value": "en-US,en;q=0.9" |
| }, |
| { |
| "name": "Sec-WebSocket-Key", |
| "value": "EBTeYTo1PMrIJhQV3KCyLA==" |
| }, |
| { |
| "name": "User-Agent", |
| "value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3762.0 Safari/537.36" |
| }, |
| { |
| "name": "Upgrade", |
| "value": "websocket" |
| }, |
| { |
| "name": "Sec-WebSocket-Extensions", |
| "value": "permessage-deflate; client_max_window_bits" |
| }, |
| { |
| "name": "Cache-Control", |
| "value": "no-cache" |
| }, |
| { |
| "name": "Connection", |
| "value": "Upgrade" |
| }, |
| { |
| "name": "Sec-WebSocket-Version", |
| "value": "13" |
| } |
| ], |
| "responseHeaders": [ |
| { |
| "name": "Sec-WebSocket-Accept", |
| "value": "U81HpQbqlT7cIvlTLbf4dTv7m5w=" |
| }, |
| { |
| "name": "Connection", |
| "value": "Upgrade" |
| }, |
| { |
| "name": "Sec-WebSocket-Extensions", |
| "value": "permessage-deflate" |
| }, |
| { |
| "name": "Upgrade", |
| "value": "websocket" |
| } |
| ], |
| "statusCode": 101, |
| "statusText": "Switching Protocols", |
| "protocol": "http/1.1", |
| "resourceSize": 175, |
| "transferSize": 0, |
| "cached": false, |
| "cachedInMemory": false, |
| "contentData": { |
| "error": null, |
| "content": null, |
| "encoded": false |
| }, |
| "remoteAddress": ":80", |
| "resourceType": { |
| "_name": "websocket", |
| "_title": "WebSocket", |
| "_category": { |
| "title": "WebSockets", |
| "shortTitle": "WS" |
| }, |
| "_isTextType": false |
| }, |
| "priority": null, |
| "finished": true, |
| "timing": { |
| "proxyStart": -1, |
| "proxyEnd": -1, |
| "requestTime": 1555608228.174, |
| "dnsStart": -1, |
| "dnsEnd": -1, |
| "connectStart": -1, |
| "connectEnd": -1, |
| "sslStart": -1, |
| "sslEnd": -1, |
| "workerStart": -1, |
| "workerReady": -1, |
| "sendStart": 0, |
| "sendEnd": 0, |
| "pushStart": 0, |
| "pushEnd": 0, |
| "receiveHeadersEnd": 33045.93599960208 |
| }, |
| "endTime": 1555608261.2199361, |
| "frames": [ |
| { |
| "time": 1555608234.452854, |
| "text": "message one", |
| "opCode": 1, |
| "mask": true, |
| "type": "send" |
| }, |
| { |
| "time": 1555608234.454548, |
| "text": "message one", |
| "opCode": 1, |
| "mask": false, |
| "type": "receive" |
| }, |
| { |
| "time": 1555608237.98099, |
| "text": "message two", |
| "opCode": 1, |
| "mask": true, |
| "type": "send" |
| }, |
| { |
| "time": 1555608237.9821968, |
| "text": "message two", |
| "opCode": 1, |
| "mask": false, |
| "type": "receive" |
| }, |
| { |
| "time": 1555608261.219595, |
| "text": "YmluYXJ5IG1lc3NhZ2U=", |
| "opCode": 2, |
| "mask": true, |
| "type": "send" |
| }, |
| { |
| "time": 1555608261.2207098, |
| "text": "YmluYXJ5IG1lc3NhZ2U=", |
| "opCode": 2, |
| "mask": false, |
| "type": "receive" |
| } |
| ] |
| } |
| ] |
| |