on ‎2018 Mar 29 2:05 PM
I have a requirement to write Integration Testcases for the Hybris application.On execution, getting Assertion failed "NullPointerException". So, I need to debug the integration testcase code to fix the issue.
It would be of great help on sharing how to debug the Integration testcase in Ee.
Request clarification before answering.
Hi
Thank you very for your reply.
I can try like this.
Start your server in debug mode.
Navigate to the Testweb Frontend.
Attach your IDE to the debug port.
Run the integration test from the Testweb Frontend.
Here also I am facing an issue.
I tried to place a breakpoint in the IntegrationTest method. That breakpoint is not changed to "enable" state (ie) dot with tick.
Location of the Integration test class :
\bin\custom\xxxStorefront\web\testsrc\com\test\testIntegrationTest.java
Breakpoint is enabled for the classes inside "\web\src". But not for the classes inside "\web\testsrc".
If that breakpoint is enabled inside "testsrc", then I can debug. Please share your thoughts.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Take a look at this question: https://answers.sap.com/questions/12767596/debug-hybris-in-ee.html In this question I have shown a way to debug hybris platform storefront. Debugging an integration test case should be done in the same way. You can have a look at this question https://answers.sap.com/questions/12762537/view.html on how to run integration tests in debug mode.
Hope it helps.
Best regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.