Forum Discussion

TesterNo1's avatar
TesterNo1
Contributor
9 years ago

groovy Scripting Library

 

I have the below class in soapui bin/scripts folder.

package soapui.demo
class Greet 
{
def name
def log

Greet(who, log) 
{ 
name = who;
this.log = log 
}

def salute() { log.info "Hello $name" }

def static salute( who, log ) { log.info "Hello again $who!" }
}

how do i invoke this library in my project ?

what i tried is...

 

 


c= new Greet()
b=c.Greet(mani,vg)
log.info b

 

 

1 Reply

  • nmrao's avatar
    nmrao
    Champion Level 3
    That is pro edition's feature.
    If you need to use in Open source edition, here you go:
    Compile the class and create a jar file, copy it under SOAPUI_HOME/bin/ext directory.
    Then you should be able to access in any of your projects.

    By the class - Greet is under soapui.demo package. So, you have to use statement below:
    import soapui.demo.Greet