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
Copy file name to clipboardExpand all lines: versioned_docs/version-2.0.0/running-keploy/keploy-karaf.md
+4-31Lines changed: 4 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,19 +62,6 @@ set JAVA_OPTS=%JAVA_OPTS% -javaagent:/path/to/org.jacoco.agent-0.8.12-runtime.ja
62
62
63
63
Replace the placeholder values with actual paths and keys as needed.
64
64
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
-
78
65
## Step 3: Export Environment Variables
79
66
80
67
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.
95
82
96
83
## Step 4: Record Test Cases
97
84
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:
106
86
107
87
```bash
108
88
keploy record --base-url="http://localhost:8181"
109
89
```
110
90
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.
113
93
114
94
## Step 5: Or Use Import Postman Collection
115
95
@@ -124,14 +104,7 @@ Replace the placeholder values with actual paths and keys as needed.
124
104
125
105
## Step 6: Run Keploy Tests
126
106
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:
0 commit comments