Skip to content

Commit

Permalink
fix: add delay to test mode in readme (#63)
Browse files Browse the repository at this point in the history
* fix: updated the app to create tables everytime

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* added delay

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* explained delay

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

* formatted delay

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>

---------

Signed-off-by: Pranshu Srivastava <iampranshu24@gmail.com>
  • Loading branch information
PranshuSrivastava authored Jan 18, 2024
1 parent d083354 commit 8297095
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spring-petclinic/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Introduction

This is a petclinic website where you can record testcases and mocks by interacting with the UI, and then test them using Keploy.
This is a petclinic app where you can record testcases and mocks by interacting with the UI, and then test them using Keploy.
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.

Expand Down Expand Up @@ -47,13 +47,14 @@ mvn clean install -Dmaven.test.skip=true
keploy record -c "java -jar target/<name-of-your-jar>"
```

Now when you interact with the UI, the tests should start getting created in a folder called 'keploy' in the directory where you started the backend. When you are done recording the testcases and mocks, you can test them using keploy.
Now when you interact with the UI, the tests should start getting created in a folder called 'keploy' in the directory where you started the backend. When you are done recording the testcases and mocks, you can run them using keploy.

## Testing the testcases using Keploy
## Running the testcases using Keploy

```
keploy test -c "java -jar target/<name-of-your-jar>"
keploy test -c "java -jar target/<name-of-your-jar>" --delay 10
```
Here `delay` is the time it takes for your application to get started, after which Keploy will start running the testcases. If your application takes longer than 10s to get started, you can change the `delay` accordingly.

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)

Expand Down

0 comments on commit 8297095

Please sign in to comment.