Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/outbrain-inc/selenium-tools
Selenium Tools we use in Outbrain
https://github.com/outbrain-inc/selenium-tools
Last synced: 1 day ago
JSON representation
Selenium Tools we use in Outbrain
- Host: GitHub
- URL: https://github.com/outbrain-inc/selenium-tools
- Owner: outbrain-inc
- License: apache-2.0
- Created: 2015-01-04T22:56:18.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T11:20:47.000Z (4 months ago)
- Last Synced: 2024-11-12T17:02:33.070Z (about 1 month ago)
- Language: Java
- Size: 299 KB
- Stars: 3
- Watchers: 16
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
selenium-tools
==============Selenium Tools we use in Outbrain
Includes:
# WebDriver Log4J Appender
in Outbrain we record the video of each selenium test (we do delete the tests
that passed, and keep only the failed ones. The videos are published as
artifacts of the Jenkins build.This is very helpful, but sometime it is not enough, we found ourselves watching the video and trying to understand why it failed, or more precisely
what was the test tried to do just before it failed. In most cases the answers
are in the test's log, which bring us back to Jenkins.
In order to make this process more
efficient we have built the WebDriver log4j Appener.## How to use it
in your code you simply write log messages before / after critical points as
you probably do anyway```java
Logger log = LoggerFactory.getLogger(MyTest)
....log.info("waiting for spinner to show");
...
log.info("waiting for spinner to hide");
...
log.info("waiting for button to be enabled");
...
log.info("clicking on the button");
...```
## Demo - How it works
[![See how it works](/selenium-tools-examples/images/webdriver-log4j-appender.png)](http://www.youtube.com/watch?v=G1yvX64Rke0)now image that all these message would appear in the browser console and will
be part of the video.## Install
### maven
#### add bintray to your maven's repositories list just put it in your pom.xml```xml
central
bintray
http://dl.bintray.com/yonatanm/maven
```
#### add the webDriver Log4J appender artifact as your dependency
```xml
...
com.outbrain.selenium-tools
webDriver-log4j-appender
1.0
...
```### Directly
simply download from [bintray](https://bintray.com/yonatanm/maven/selenium-tools/)