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
@@ -47,15 +47,19 @@ The UI can be accessed at http://localhost:6789
47
47
<details>
48
48
<summary>Windows</summary>
49
49
50
-
- Download the [Keploy Windows AMD64](https://github.com/keploy/keploy/releases/latest/download/keploy_windows_amd64.tar.gz), and extract the files from the zip folder.
50
+
- Download
51
+
the [Keploy Windows AMD64](https://github.com/keploy/keploy/releases/latest/download/keploy_windows_amd64.tar.gz), and
52
+
extract the files from the zip folder.
51
53
- Run the `keploy.exe` file.
52
54
53
55
</details>
54
56
55
57
<details>
56
58
<summary>Windows ARM</summary>
57
59
58
-
- Download the [Keploy Windows ARM64](https://github.com/keploy/keploy/releases/latest/download/keploy_windows_arm64.tar.gz), and extract the files from the zip folder.
60
+
- Download
61
+
the [Keploy Windows ARM64](https://github.com/keploy/keploy/releases/latest/download/keploy_windows_arm64.tar.gz), and
62
+
extract the files from the zip folder.
59
63
- Run the `keploy.exe` file.
60
64
61
65
</details>
@@ -75,32 +79,10 @@ Add *keploy-sdk* as a dependency to your *pom.xml*:
Add `@Import(KeployMiddleware.class)` below `@SpringBootApplication` in your main class.
85
-
-**Run along with agent to mock external calls of your API 🤩🔥**
86
-
87
-
- Download the latest - Download the latest agent jar
88
-
from [here](https://search.maven.org/remotecontent?filepath=io/keploy/agent/1.2.8/agent-1.2.8.jar) (eg: 1.2.8)
89
-
90
-
*Note: you can find all agent jars from [here](https://search.maven.org/artifact/io.keploy/agent/1.2.7/jar).*
91
-
- Prefix `-javaagent:` with absolute classpath of agent jar (eg: `-javaagent:<your full path to agent jar>/agent-1.2.8.jar`) is possible through 3 ways:-
92
-
93
-
1.**Using Intellij :** Go to Edit Configuration-> add VM options -> paste _java agent_ edited above.
94
-
2.**Using Command Line :**
95
-
96
-
```
97
-
export JAVA_OPTS="$JAVA_OPTS -javaagent:<your full path to agent jar>/agent-1.2.8.jar"
98
-
```
99
-
3. **Running via Tomcat Server :**
100
-
101
-
```
102
-
export CATALINA_OPTS="$CATALINA_OPTS -javaagent:<your full path to agent jar>/agent-1.2.8.jar"
To record testcases use `KEPLOY_MODE` env variable and set the same to `record` mode.
127
-
```
128
-
129
-
### Run the application
130
-
131
-
```shell
132
-
mvn spring-boot:run
133
-
```
107
+
- To record testcases use `KEPLOY_MODE` env variable and set the same to `record` mode.
134
108
135
109
## Generate testcases
136
110
137
-
To generate testcases we just need to **make some API calls.** You can use [Postman](https://www.postman.com/), [Hoppscotch](https://hoppscotch.io/), or simply `curl`
111
+
To generate testcases we just need to **make some API calls.** You can use [Postman](https://www.postman.com/)
112
+
, [Hoppscotch](https://hoppscotch.io/), or simply `curl`
138
113
139
114
### 1. Make an employee entry
140
115
@@ -149,7 +124,8 @@ curl --location --request POST 'http://localhost:8080/api/employees' \
149
124
}'
150
125
```
151
126
152
-
this will return the response or an entry. The timestamp would automatically be ignored during testing because it'll always be different.
127
+
this will return the response or an entry. The timestamp would automatically be ignored during testing because it'll
128
+
always be different.
153
129
154
130
```
155
131
{
@@ -169,7 +145,8 @@ curl --location --request GET 'http://localhost:8080/api/employees/1'
169
145
170
146
or by querying through the browser `http://localhost:8080/api/employees/1`
171
147
172
-
Now both these API calls were captured as **editable** testcases and written to `test/e2e/keploy-tests` folder. The keploy directory would also have `mocks` folder.
148
+
Now both these API calls were captured as **editable** testcases and written to `test/e2e/keploy-tests` folder. The
149
+
keploy directory would also have `mocks` folder.
173
150
174
151

175
152
@@ -180,100 +157,116 @@ Now, let's see the magic! 🪄💫
180
157
There are 2 ways to test the application with Keploy.
181
158
182
159
1.[Unit Test File](/README.md#testing-using-unit-test-file)
0 commit comments