|
Answer» The options for debugging GROOVY Scripts in SoapUI are as follows: - For enabling the debugger when we run ReadyAPI using the shell script (.bat or .sh file), we can use the groovy parameter: readyapi.bat groovy
- For enabling the debugger by default, we can perform the following steps in Windows:
Firstly, the vmoptions file needs to be OPENED and then we need to add the line given below in it: -agentlib:jdwp=transport=dt_shmem,suspend=n,server=yThe first step is FOLLOWED by the saving of the file. The following requirements must be satisfied for debugging: - For Groovy script debugging, having a SoapUI Pro license is a must.
- The debugging of the scripts can be done only in the SoapUI Groovy Script test step. Event handler scripts, setup, teardown, and report scripts, as well as Script assertions, data source and data, sink scripts, and virtual service scripts, are not supported for debugging.
- We can only DEBUG Groovy scripts and that too is only one script at a time.
- For installing the binary package: The binary package, unlike the ReadyAPI installation package, does not include the essential Java files. For debugging, ReadyAPI leverages the Java JDK's tools.jar and attach.dll files. You cannot use the debugger without these files, which are not included in the typical JRE installation. To enable Groovy debugging in a binary installation, you can follow the below-given instructions:
- Firstly, the installation of JDK must be done on your local computer or on a computer to which you have admin rights.
- Windows users can refer to this link for the installation of JDK: Link
- For mac Operating System users, this link can be referred to for the installation of JDK: Link
- For LINUX Operating System users, this link can be referred to for the installation of JDK: Link
- Use a Java JDK for getting the tools.jar file. This file can be found in the lib folder of the JDK installation folder. This is followed by copying this file to the lib folder in the ReadyAPI installation folder.
- Use a Java JDK for getting the attach.dll file. This file can be found in the JRE bin folder in the JDK installation folder. The copying of this file needs to be done to the bin folder in the ReadyAPI installation folder.
|