You can use your OpenAI or Azure OpenAI account to assist you in generating recommended fixes for static analysis violations and improvements for unit tests. See Generating a Suggested Fix and Improving tests with AI for more information. You must configure Jtest to be able to use your OpenAI or Azure OpenAI account in the Parasoft Preferences. See Configuring Open AI Settings for details.
The Jtest-OpenAI integration uses the OpenAI REST API over HTTPS/TLS. For the AI-generated static analysis fixes, it sends: the source code of the entire method, part of the method, or the single line related to the static analysis violation, along with documentation regarding the static analysis rule that was violated. For the Improve [method_name] with AI action, it sends: the source code of the test method to improve, the source code of the method under test, and some additional information about the Jtest UTA preference settings, such as the configured version of JUnit or the parameterization library being used.
...