Skip to content

Commit 34160ef

Browse files
authored
Merge pull request #286 from HRanjan-11/CYP-892
add websocket in martian caps
2 parents c92cf63 + 4c3cff3 commit 34160ef

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

commands/utils/set_args.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,16 @@ function sync_args_from_cmd(args) {
363363
lt_config["run_settings"]["network_http2"] = false;
364364
}
365365

366+
if ("network_ws" in args) {
367+
if (args["network_ws"] == "true") {
368+
lt_config.run_settings.network_ws = true;
369+
} else {
370+
lt_config.run_settings.network_ws = false;
371+
}
372+
} else if (lt_config["run_settings"]["network_ws"] && !lt_config["run_settings"]["network_ws"]) {
373+
lt_config["run_settings"]["network_ws"] = false;
374+
}
375+
366376
if ("headless" in args) {
367377
lt_config["run_settings"]["headless"] = args["headless"];
368378
} else if (!lt_config["run_settings"]["headless"]) {

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ const argv = require("yargs")
217217
alias: "network_http2",
218218
describe: "Capture Http2 Network logs",
219219
type: "bool",
220+
})
221+
.option("net_ws", {
222+
alias: "network_ws",
223+
describe: "Bypass web socket calls for Network logs",
224+
type: "bool",
220225
});
221226
},
222227
function (argv) {

0 commit comments

Comments
 (0)