Scripter
9 years agoOccasional Contributor
Passing value from external XML file to project/testsuite property and executing groovy script
I have an external XML config file which looks like below. I have to pass this value of "oracle" [from property name="ConnectedDB"] to soapui project properties or test suite properties
<property name="mail"> <entry key="server" value="outlook"/> </property> <property name="housekeep"> <entry key="files.days" value="60"/> <entry key="logs.days" value="30"/> </property> <property name="ConnectedDB"> <entry key="name" value="oracle" /> <entry key="table1" value="tableA" /> <entry key="table2" value="tableB"/> </property>
Once I know which database my software is connected to, I can run groovy script depending on database.
I have 5 databases to choose from
Currently, I am running all 5 scripts at once. (which is a bad idea considering the software is connected to one database at one time)
I don't know if its possible or not. May be an idea or something... if its not possible, I would appreciate another alternative idea which could be implemented by me.