Script Library set up in CI
I am trying to run my SoapUI suite in TeamCity, some of my tests call a groovy file which i have set up the path in the project under Script Library ${projectDir}/Groovy. Here is my setup and command line i use in TeamCity:
Runner type: Powershell
Step Name: Email Provisioning
Execute Step: Even if some of the previous steps failed
Powershell run mode: version Any
Bitness x86
Format stderr output as: warning
Script: Source code
Script source: C:/PROGRA~1/SmartBear/ReadyAPI-2.1.0/bin/testrunner.bat '-sEmail Provisioning' -f%teamcity.build.workingDir%/blahblahblah -R"JUnit-Style HTML Report" -EM10 "%working_dir%/%soapui_project%"
When i try to run the test case in team city i get the following error:
[BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' The lookup for XmlUtils caused a failed compilaton. There should not have been any compilation from this call.]
The test step in question assertion looks like this:
def responseAsXml = context.expand( '${Verify Xid created in SPSDEL#ResponseAsXml}' );
def expectedXml = context.expand('${spsDelResults#add_xid_result}');
result = XmlUtils.differences(expectedXml, responseAsXml, "ServiceCatalogueItem");
if (result.size() > 0){
result.each(){
log.info it
}
assert false
}
else{
log.info "Enterprise View is Correct"
}
Does anyone have a way to set the script library via command line? I would prefer not to modify testrunner.bat file