This repository is to test if media upload is wroking as expected behind an SSL proxy
- JDK 11
mvn clean install
- Test script is available in
src/main/java/com/browserstack/MediaUpload/TestMediaUpload.java
directory under examples folder
-
Configure BrowserStack username and accesskey them as environment variables using the below commands.
-
For *nix based and Mac machines:
export BROWSERSTACK_USERNAME=<browserstack-username> &&
export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
- For Windows:
set BROWSERSTACK_USERNAME=<browserstack-username>
set BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
- Set the proxy details in the code on the appropriate line as seen below
final String proxyHost = System.getProperty("http.proxyHost", "your-proxy-host");
final String proxyPortStr = System.getProperty("http.proxyPort", "your-proxy-port");
- To run tests, open in your IDE and trigger the main function