You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
BrowserUp Proxy allows you to manipulate HTTP requests and responses, capture HTTP content, and export performance data as a [HAR file](http://www.softwareishard.com/blog/har-12-spec/).
4
4
BrowserUp Proxy works well as a standalone proxy server, but it is especially useful when embedded in Selenium tests.
5
5
6
-
BrowserUp Proxy is originally forked from [BrowserMobProxy](https://github.com/lightbody/browsermob-proxy) and is powered by [LittleProxy](https://github.com/adamfisk/LittleProxy).
6
+
BrowserUp Proxy is originally forked from [BrowserMobProxy](https://github.com/lightbody/browsermob-proxy) and is powered by [LittleProxy](https://github.com/mrog/LittleProxy).
7
7
See [CHANGELOG.md] for updates.
8
8
9
9
If you're running BrowserUp Proxy within a Java application or Selenium test, get started with [Embedded Mode](#getting-started-embedded-mode). If you want to run BUP from the
@@ -13,17 +13,17 @@ command line as a standalone proxy, start with [Standalone](#getting-started-sta
13
13
To use BrowserUp Proxy in your tests or application, add the `browserup-proxy-core` dependency to your pom:
14
14
```xml
15
15
<dependency>
16
-
<groupId>com.browserup.bup</groupId>
16
+
<groupId>com.browserup</groupId>
17
17
<artifactId>browserup-proxy-core</artifactId>
18
-
<version>1.0.0-SNAPSHOT</version>
18
+
<version>1.0.0</version>
19
19
<scope>test</scope>
20
20
</dependency>
21
21
```
22
22
23
23
Start the proxy:
24
24
```java
25
25
BrowserUpProxy proxy =newBrowserUpProxyServer();
26
-
proxy.start(0);
26
+
proxy.start();
27
27
int port = proxy.getPort(); // get the JVM-assigned port
28
28
// Selenium or HTTP client configuration goes here
29
29
```
@@ -63,9 +63,9 @@ The proxy is programmatically controlled via a REST interface or by being embedd
63
63
64
64
### REST API
65
65
66
-
To get started, first start the proxy by running `BrowserUp-proxy` or `BrowserUp-proxy.bat` in the bin directory:
66
+
To get started, first start the proxy by running `browserup-proxy` or `browserup-proxy.bat` in the bin directory:
@@ -153,12 +153,12 @@ system properties will be used to specify the upstream proxy.
153
153
154
154
### Embedded Mode
155
155
156
-
BrowserUp Proxy separates the Embedded Mode and REST API into two modules. If you only need Embedded Mode functionality, add the `BrowserUp-core` artifact as a dependency. The REST API artifact is `BrowserUp-rest`.
156
+
BrowserUp Proxy separates the Embedded Mode and REST API into two modules. If you only need Embedded Mode functionality, add the `browserup-core` artifact as a dependency. The REST API artifact is `browserup-rest`.
157
157
158
158
If you're using Java and Selenium, the easiest way to get started is to embed the project directly in your test. First, you'll need to make sure that all the dependencies are imported in to the project. You can find them in the *lib* directory. Or, if you're using Maven, you can add this to your pom:
159
159
```xml
160
160
<dependency>
161
-
<groupId>com.browserup.bup</groupId>
161
+
<groupId>com.browserup</groupId>
162
162
<artifactId>browserup-proxy-core</artifactId>
163
163
<version>1.0.0/version>
164
164
<scope>test</scope>
@@ -168,7 +168,7 @@ If you're using Java and Selenium, the easiest way to get started is to embed th
168
168
Once done, you can start a proxy using `com.browserup.bup.BrowserUpProxy`:
169
169
```java
170
170
BrowserUpProxy proxy =newBrowserUpProxyServer();
171
-
proxy.start(0);
171
+
proxy.start();
172
172
// get the JVM-assigned port and get to work!
173
173
int port = proxy.getPort();
174
174
//...
@@ -184,7 +184,7 @@ BrowserUp Proxy makes it easy to use a proxy in Selenium tests:
0 commit comments