This script downloads all the sessions and corresponding crash logs from Crashlytics/Fabric using the Selenium Chrome web driver for Java.
- Before you will need to download the ChromeDriver executable that WebDriver uses to control Chrome and update the value of
PATH_TO_CHROME_WEBDRIVER
inFabricConstants.java
. Example:public static final String PATH_TO_CHROME_WEBDRIVER = "/Users/USERNAME/chromedriver/chromedriver";
- Further, in FabricConstants.java configure the Fabric credentials and paths.
To compile the project from the shell execute the following command:
$ ./gradlew clean assemble
You will then find the crashlytics-download-script-VERSION.jar
file in the build/libs
folder.
Selenium depends on the following transitive dependencies:
- com.google.code.gson:gson
- com.google.guava:guava
- org.apache.commons:commons-exec
- org.apache.httpcomponents:httpclient