skillsoft
15 years agoFrequent Contributor
<SOLVED>Setting Datasource Type with Groovy
Hi,
Is there anyway to set the datasource type with groovy? It seems to be a read-only property as indicated when I try to run this
testRunner.testCase.testSteps["companies"].dataSource.type="Excel"
This particular datasource step may possibly be modified by the user (Start and End Row) and I notice if you choose another datasource type inadvertently all the properties, filename,etc are blanked out. Since I'm passing this script onto another person, I wanted them not to have to worry about resetting the datasource configuration. I figured out how to put the filename and properties back, but not the datasource type.
Thanks,
Mary
Is there anyway to set the datasource type with groovy? It seems to be a read-only property as indicated when I try to run this
testRunner.testCase.testSteps["companies"].dataSource.type="Excel"
This particular datasource step may possibly be modified by the user (Start and End Row) and I notice if you choose another datasource type inadvertently all the properties, filename,etc are blanked out. Since I'm passing this script onto another person, I wanted them not to have to worry about resetting the datasource configuration. I figured out how to put the filename and properties back, but not the datasource type.
Thanks,
Mary