Skip to content

Commit f4e2740

Browse files
authored
Merge pull request #492 from keploy/Sarthak160-patch-karaf
chore: update keploy-karaf.md
2 parents 3d1c716 + 4cc1f1c commit f4e2740

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

versioned_docs/version-2.0.0/running-keploy/keploy-karaf.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,6 @@ set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.ja
6262

6363
Replace the placeholder values with actual paths and keys as needed.
6464

65-
### Update `config.properties`
66-
67-
1. Navigate to the `etc/config.properties` file in your Karaf installation.
68-
2. Add the following entries under the `bootdelegation` section to allow OSGi bundles to access Keploy artifacts:
69-
70-
```properties
71-
org.osgi.framework.bootdelegation = \
72-
... \
73-
io.keploy.*, \
74-
javax.servlet, \
75-
javax.servlet.http
76-
```
77-
7865
## Step 3: Export Environment Variables
7966

8067
1. Export the API key specific to your user, as mentioned on [Keploy's User Dashboard](https://app.keploy.io/users), which is required for Keploy to function, by running the following command in the same terminal session:
@@ -95,21 +82,14 @@ Replace the placeholder values with actual paths and keys as needed.
9582

9683
## Step 4: Record Test Cases
9784

98-
1. Restart Apache Karaf by setting the environment variable `KEPLOY_MODE` to `RECORD`:
99-
100-
```bash
101-
export KEPLOY_MODE="RECORD"
102-
./karaf
103-
```
104-
105-
2. Record test cases using the following command:
85+
1. Record test cases using the following command:
10686

10787
```bash
10888
keploy record --base-url="http://localhost:8181"
10989
```
11090

111-
3. Make a series of API calls to your application's endpoints.
112-
4. After completing the API calls, press `Ctrl+C` in the session where you are running the Keploy binary to stop recording.
91+
2. Make a series of API calls to your application's endpoints.
92+
3. After completing the API calls, press `Ctrl+C` in the session where you are running the Keploy binary to stop recording.
11393

11494
## Step 5: Or Use Import Postman Collection
11595

@@ -124,14 +104,7 @@ Replace the placeholder values with actual paths and keys as needed.
124104

125105
## Step 6: Run Keploy Tests
126106

127-
1. Restart Apache Karaf by setting the environment variable `KEPLOY_MODE` to `test`:
128-
129-
```bash
130-
export KEPLOY_MODE="test"
131-
./karaf
132-
```
133-
134-
2. Use the following command to run the imported tests:
107+
1. Use the following command to run the imported tests:
135108

136109
```bash
137110
keploy test --base-path="http://localhost:8181"

0 commit comments

Comments
 (0)