alibaba82
18 years agoSuper Contributor
Groovy help
hello,
seems like a very simple problem but having a hard time
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
String projectName= groovyUtils.projectPath.toString();
My project name will typically be something like
Sat Dec 15 10:58:09 PST 2007:INFO:C:\Workspace\Automation\soapUI_Scripts\Phase3.0\Integration_Environment\UserProfileService
I want to capture the last token evertime. So in the above example I want to capture 'UserProfileService'
How can I do this.
thanks
Ali
seems like a very simple problem but having a hard time

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
String projectName= groovyUtils.projectPath.toString();
My project name will typically be something like
Sat Dec 15 10:58:09 PST 2007:INFO:C:\Workspace\Automation\soapUI_Scripts\Phase3.0\Integration_Environment\UserProfileService
I want to capture the last token evertime. So in the above example I want to capture 'UserProfileService'
How can I do this.
thanks
Ali