cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debug Hybris Integration Testcases in Eclipse (JUnit)

Former Member
0 Likes
1,571

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi

Thank you very for your reply.

I can try like this.

  1. Start your server in debug mode.

  2. Navigate to the Testweb Frontend.

  3. Attach your IDE to the debug port.

  4. 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

Former Member
0 Likes

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,