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: spring-petclinic/README.md
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,7 @@
1
1
## Introduction
2
2
3
3
This is a petclinic app where you can record testcases and mocks by interacting with the UI, and then test them using Keploy.
4
-
This project has two parts - the frontend and backend, since Keploy is a backend testing platform, we need to start the backend part of the project
5
-
using Keploy and run the frontend as it is.
6
-
You can start the backend using Keploy in 2 ways:
7
-
- Using Keploy's binary.
8
-
- Using Keploy's docker image.
9
-
10
-
Prerequisites For Binary:
11
-
1. Node 20.11.0 LTS
12
-
2. OpenJDK 17.0.9
13
-
3. MVN version 3.6.3
14
-
15
-
Prerequisites For Docker:
16
-
1. Docker Desktop 4.25.2 and above
4
+
This project has two parts - the frontend and backend, since Keploy is a backend testing platform, we need to start the backend part of the project using Keploy and run the frontend as it is.
keploy record -c "java -jar target/<name-of-your-jar>"
74
+
keploy record -c "java -jar target/spring-petclinic-rest-3.0.2.jar"
79
75
```
80
76
Now you can start interacting with the UI and Keploy will automatically create the testcases and mocks for it in a folder named 'keploy'.
81
77
82
78
## Running the testcases using Keploy
83
79
84
80
```
85
-
keploy test -c "java -jar target/<name-of-your-jar>" --delay 20
81
+
keploy test -c "java -jar target/spring-petclinic-rest-3.0.2.jar" --delay 20
86
82
```
87
83
88
-
# Instructions For Starting Using Docker
89
-
Here we just need to change the command used to start the application and it should work correctly.
84
+
# Instructions For Starting Using Docker <aname="docker-guide"></a>
85
+
86
+
Prerequisites For Docker:
87
+
1. Docker Desktop 4.25.2 and above
88
+
Here we just need to change the command used to start the application.
90
89
91
90
```
92
91
keploy record -c "docker compose up" --containerName javaApp --buildDelay 100s
@@ -101,6 +100,3 @@ Here `delay` is the time it takes for your application to get started, after whi
101
100
`buildDelay` is the time that it takes for the image to get built. This is useful when you are building the docker image from your docker compose file itself.
102
101
103
102
Hope this helps you out, if you still have any questions, reach out to us on our [Slack](https://join.slack.com/t/keploy/shared_invite/zt-12rfbvc01-o54cOG0X1G6eVJTuI_orSA)
0 commit comments