Skip to content

Commit

Permalink
Merge branch 'main' into rust-crud-app-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbhiishek authored Sep 2, 2024
2 parents a894c91 + bac8046 commit b658c20
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
10 changes: 6 additions & 4 deletions versioned_docs/version-2.0.0/quickstart/java-spring-postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ docker run -e POSTGRES_USER=petclinic -e POSTGRES_PASSWORD=petclinic -e POSTGRES
keploy record -c "java -jar target/spring-petclinic-rest-3.0.2.jar"
```

<img src="/docs/img/pet-clinic-record.png" alt="Sample Keploy Test Result Node JWT" width="100%" style={{ borderRadius: '5px' }} />
<img src="/docs/img/pet-record.png" alt="Sample Keploy Test Result Node JWT" width="100%" style={{ borderRadius: '5px' }} />

Now you can start interacting with the UI and Keploy will automatically create the testcases and mocks for it in a folder named 'keploy'.

Expand All @@ -132,17 +132,19 @@ Here we just need to change the command used to start the application.
keploy record -c "docker compose up" --container-name javaApp --build-delay 100
```

<img src="/docs/img/pet-clinic-record.png" alt="Sample Keploy Record Java" width="100%" style={{ borderRadius: '5px' }} />
<img src="/docs/img/pet-record.png" alt="Sample Keploy Record Java" width="100%" style={{ borderRadius: '5px' }} />

## Running the testcases using Keploy

```bash
keploy test -c "docker compose up" --container-name javaApp --build-delay 50 --delay 20
```

<img src="/docs/img/pet-clinic-test1.png" alt="Sample Keploy Test Java" width="100%" style={{ borderRadius: '5px' }} />
Your CLI should look something like this
<img src="/docs/img/pet-test1.png" alt="Sample Keploy Test Java" width="100%" style={{ borderRadius: '5px' }} />

<img src="/docs/img/pet-clinic-test2.png" alt="Sample Keploy Test Summary Java" width="100%" style={{ borderRadius: '5px' }} />
This is a summary of the test cases recorded
<img src="/docs/img/pet-test2.png" alt="Sample Keploy Test Summary Java" width="100%" style={{ borderRadius: '5px' }} />

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.
`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.
Expand Down
9 changes: 7 additions & 2 deletions versioned_sidebars/version-2.0.0-sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
"quickstart/samples-django",
"quickstart/samples-flask",
"quickstart/samples-fastapi",
"quickstart/samples-fastapi-twilio" ]
"quickstart/samples-fastapi-twilio",
"quickstart/sanic-mongo",
"quickstart/flask-redis"

]
},
{
"type": "category",
Expand All @@ -102,7 +106,8 @@
"quickstart/samples-nextjs",
"quickstart/samples-nodejs",
"quickstart/samples-node-jwt",
"quickstart/crud-nodejs"
"quickstart/crud-nodejs",
"quickstart/samples-typescript"
]
},
{
Expand Down

0 comments on commit b658c20

Please sign in to comment.