Hi Lillian,
I know that we assisted you by email so I'm posting this for other pro user to see.
If you're using DataSink you must be using soapUI pro. If you have a pro license then you should have an account for accessing pro forums. If you have any problems accessing them, then you should contact
support@eviware.com with your account information.
As for your problem with loading data from a file that was filled with data by DataSink) it happens because your property values are put into an external file by DataSink step as string objects and are formatted with double-quotes. Those values are, some test steps later, loaded (by DataSource) as strings that also contain double-quotes. You can add a Groovy script after your DataSource test step and unpack the double-quoted string value into a property with double-quotes truncated:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def valueFromFile try { valueFromFile = groovyUtils.expand('${#myParam}') } catch (e) { log.error "An error occurred: $e" valueFromFile = null } int intValue try { def len = valueFromFile.length() intValue = new Integer( valueFromFile[1.. len-1] ) } catch (e) { log.error "An error occurred: $e" intValue = 0 } log.info "Loaded int value: $intValue"
|
Cheers!
/Nenad Nikolic a.k.a. Shonzilla