| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
|
@Sonichigo I opened this PR a while back, is this still in review ? |
Sorry, something went wrong.
|
Will review by EOD. |
Sorry, something went wrong.
|
@slashexx Please run test mode, so that the Reports will also be added in the codebase along with tests and mocks. |
Sorry, something went wrong.
@charankamarapu sure, I'm on it. I'm actually trying to run it on my system but there seems to be some issue with sending requests to the localhost, can you help me a lil to debug this ? 🐰 Keploy: 2024-11-29T12:56:30+05:30 INFO starting test for of {"test case": "[test-1]", "test set": "[test-set-0]"} 🐰 Keploy: 2024-11-29T12:56:30+05:30 ERROR failed to send testcase request to app {"error": "Post \"http://localhost:8080/products\": dial tcp: lookup localhost on 192.168.1.1:53: no such host"} 🐰 Keploy: 2024-11-29T12:56:30+05:30 ERROR failed to simulate request I've only quoted one test case but it's showing this for all test cases. How do I make sure the request is sent to the correct localhost ? PS: Turns out the reports earlier were automatically put in .gitignore so they couldn't be pushed. I have shifted to a new version of the code so I'll generate the tests and mocks again. |
Sorry, something went wrong.
|
can you provide the command you are running for test..? along with that can you tell me what os are you using..? |
Sorry, something went wrong.
The one I ran was keploy test -c "java -jar target/spring-boot-redis-0.0.1-SNAPSHOT.jar" --delay 15 I tried to change the host and ran keploy test -c "java -jar target/spring-boot-redis-0.0.1-SNAPSHOT.jar" --host "localhost:8080" --delay 15 and got the same error Keploy: 2024-11-29T13:06:46+05:30 ERROR failed to send testcase request to app {"error": "Post \"http://localhost:8080:8080/products\": dial tcp: lookup localhost:8080: no such host"} Also, I'm on arch linux. |
Sorry, something went wrong.
|
you don't need to add --host flag. |
Sorry, something went wrong.
Sure, I just attempted with it once. I keep getting this otherwise when I don't put any flags (other than the delay one, ofc):- |
Sorry, something went wrong.
|
This might be a DNS problem in your laptop try connecting to other wifi and try restarting laptop and try again. |
Sorry, something went wrong.
Okay it seems this was the issue. It's fixed now, thank you very much ! Just be clear now, I'm supposed to push the reports folder as well right ? Because the .gitignore file automatically excluded it. samples-java/spring-boot-r/keploy > tree
├── reports
│ ├── test-run-0
│ │ └── test-set-0-report.yaml
│ ├── test-run-1
│ │ └── test-set-0-report.yaml
│ ├── test-run-2
│ │ └── test-set-0-report.yaml
│ ├── test-run-3
│ │ └── test-set-0-report.yaml
│ └── test-run-4
│ └── test-set-0-report.yaml
└── test-set-0
├── mocks.yaml
└── tests
├── test-10.yaml
├── test-1.yaml
├── test-2.yaml
├── test-3.yaml
├── test-4.yaml
├── test-5.yaml
├── test-6.yaml
├── test-7.yaml
├── test-8.yaml
└── test-9.yaml
9 directories, 16 files
|
Sorry, something went wrong.
Signed-off-by: slashexx <dhruvpuri.35@gmail.com>
|
No you can just add the screenshot of the tests getting passed in the cli |
Sorry, something went wrong.
Sorry, something went wrong.
|
@charankamarapu gentle ping, can you review if this is good to go ? |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
⚠️ Oops! We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
Nice Pr 😄. We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
Nice Pr 😄. We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
Nice Pr 😄. We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
|
Nice Pr 😄. We currently support Unit Test Generation only for Go projects. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Pull Request Template
Description
This pull request introduces a sample Spring Boot application that utilizes Redis for managing products. The application includes a ProductController for handling CRUD operations and a Product model representing the product entity. Additionally, Keploy has been used to generate and run test cases, ensuring the reliability of the implemented functionalities.
Feat : #2333
Type of change
How Has This Been Tested?
I have generated test cases using Keploy, which cover all the CRUD operations defined in the ProductController. The tests were executed successfully, and the application ran without any errors. To reproduce the tests, run the following command in the project directory:
mvn testMake sure you have the required dependencies and Redis service running.
Additional Context (Please include any Screenshots/gifs if relevant)
The application can be accessed via the /products endpoint for creating, retrieving, updating, and deleting products.
Checklist:
Test passing :-



