Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

About

This project exercises Selenium driver logging functionality.

Usage

The browser should be specified in testng.config:

<suite name="Suite 1" verbose="10">
  <parameter name="selenium.host" value="localhost"/>
  <parameter name="selenium.port" value="4444"/>
  <parameter name="selenium.browser" value="firefox"/>
  <parameter name="selenium.run" value="remote"/>

  <test name="Selenium Browser Log Capture Test">
    <classes>
      <class name="com.mycompany.app.AppTest"/>
      <methods>
        <include name="LoggingTest"/>
      </methods>
    </classes>
  </test>
</suite>

Currently Chrome and Firefox are supported. The verbosity of logs captured varies with the browser. Example:

Sat Jan 09 13:02:16 EST 2016 INFO http://www.i.cdn.cnn.com/.a/1.231.2/js/cnn-header-second.min.js 12:6843 [AmazonDirectMatchBuy]

See Also

Author

Serguei Kouzmine