Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to debug Java code and get Console output when using Java extension tool ?

Options
navjane
navjane Posts: 2

Hi, I am using an extension tool to connect to a Java project (SOATest Java project) and when I run the test scenarios, I cannot access the console output of the Java code (System. out.println statements). Is there a way to access it ?

Also, if I get an error in the Java extension tool code, how do you recommend debugging it ?

Appreciate the help, thanks.

Comments

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    The easiest way to debug an Extension Tool is to add debugging using the SOAtest API com.parasoft.api.Application.showMessage(String msg) function. This will print messages into the SOAtest console which you can see directly within the IDE. It will also be visible in the console output during CLI runs.

  • benken_parasoft
    benken_parasoft Posts: 1,230 ✭✭✭
    Options