1 Reply Latest reply on Jun 29, 2018 4:15 AM by cameronbraid

    record chrome dev tools in drone test

    cameronbraid

      Is there any way to record the chrome dev tools from an Arquillian drone test ?

        • 1. Re: record chrome dev tools in drone test
          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.