Closed ImranTelebu closed 4 years ago
Hi,
In you step, after you get the browser log, you can attach it to the report like so:
reporter.textAttachment(report, "Browser Log", "some text", "plain");
reporter.textAttachment(report, "Browser Log", "some json text", "json");
// or if you have a JsonObject or JsonValue
JsonObject log = someJsonObject;
reporter.jsonAttachment(report, "Browser Log", log);
This doesn't work with a file, you'll need to read the file and attach the content to the report.
Out of curiosity, can your method get the browser console log on firefox?
Thanks for your help.
currently, This method is working for chrome only. But I am working on firefox also if I get any solution, will let u know.
Thanks,
FYI, we do have a step to get the console log on Chrome, not sure if it's the same with what you have:
runner.addStep(new ConsoleLogStep(runner));
However this has some inconsistency with the recent chrome versions.
Hi,
kindly suggest me the way to achieve it, or kite has a way to do it.