Forum Discussion
singhtester
12 years agoContributor
Hi,
Just to explain the query:
Below scripts I have placed under "Setup Script" tab for Pre Suite run to delete the old Result folder & create a new one, where all my suite results will get saved.
these script works fine, If I run suite using GUI.but when I run my suite from command line, these same lines does not gets executed.
====================================================
groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils. getProjectPath()
//Delete OLD resultfile and create New result file for New REST test run
wasDelated = new File(holder + "/Results").deleteDir()
wasDeleted = new File(holder + "/Results").mkdir()
====================================================
Similarly, I have few scripts for post suite run, in "teardown" tab.again those works fine from GUI, but from command Line does not runs.
Thanks
Just to explain the query:
Below scripts I have placed under "Setup Script" tab for Pre Suite run to delete the old Result folder & create a new one, where all my suite results will get saved.
these script works fine, If I run suite using GUI.but when I run my suite from command line, these same lines does not gets executed.
====================================================
groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
holder = groovyUtils. getProjectPath()
//Delete OLD resultfile and create New result file for New REST test run
wasDelated = new File(holder + "/Results").deleteDir()
wasDeleted = new File(holder + "/Results").mkdir()
====================================================
Similarly, I have few scripts for post suite run, in "teardown" tab.again those works fine from GUI, but from command Line does not runs.
Thanks