Forum Discussion

kadir's avatar
kadir
Occasional Contributor
7 months ago

multiple groovy files

in my readyapi, I am using FrameworkUtils.groovy which located in C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\test and I don't want to add all my code inside of FrameworkUtils.groovy so I created different groovy classes in the same directory. But the problem is that even though I use import statement it is not importing file.

Here is my class how I import it, in here FrameworkUtils, Common and DBUtils are in the same directory C:\Program Files\SmartBear\ReadyAPI-3.2.0\bin\scripts\tes:

import com.eviware.soapui.model.support.MessageExchangeUtil

import groovy.json.JsonSlurper

import Common

import DBUtils

public class FrameworkUtils implements Common{

}

Thanks in advance for your help,

  • I believe, the groovy classes are to be placed in a directory which is configured as per this documentation

  • nmrao's avatar
    nmrao
    Champion Level 3

    I believe, the groovy classes are to be placed in a directory which is configured as per this documentation

    • nmrao's avatar
      nmrao
      Champion Level 3

      kadir 

      appreciate replying to the responses provided than adding new questions.