Forum Discussion

Mdar's avatar
Mdar
Occasional Contributor
2 years ago

Importing Groovy Script Library class into another Groovy Library Script

Hello,

 

I have a simple groovy script I'm importing into a test step

 

class MyUtility{
//code
}

And it works fine, but I'm having issues figuring out how to import another helper class into this library script. 

 

For example,

 

import path.to.UtilityHelper;

class MyUtility {
//code
}

I have the path set to a script folder in the ReadyAPI folder, but can't figure out to import one script into another even if they're in the same folder. 

 

No RepliesBe the first to reply