-
1. Re: record chrome dev tools in drone test
cameronbraid Jun 29, 2018 4:15 AM (in response to cameronbraid)I found how to configure chrome driver how to produce logs, and how to extract them manually..
arquillian.xml:
<extension qualifier="webdriver">
<property name="browser">chrome</property>
<property name="loggingPrefs">browser=INFO</property>
</extension>
then in your test :
@Rule
public TestWatcher watchman = new TestWatcher() {
@Override
protected void failed(Throwable e, Description description) {
LogEntries logs = browser.manage().logs().get(LogType.BROWSER);
for (LogEntry entry : logs) {
System.out.println(entry);
}
}
};
I also found a video and screenshot recorder (https://github.com/arquillian/arquillian-recorder/wiki) but couldn't see anything related to capturing the logs and adding them to the produced html report.