Contributions
- 3.3KViews0likes0Comments
Re: Create Groovy library?
Ole, Here's my code used under Grooyy script. (If I remove the "testRunner.testCase.name" under println. It's working ok.) def wReports = new soapui.Report.Rwrite() wReports.fw () Here's class with .groovy package soapui.Report public class Rwrite { import com.eviware.soapui.model.testsuite.TestRunner public void fw (TestRunner testRunner) { println "TestCase: " + testRunner.testCase.name } } Thanks, zx3.3KViews0likes0CommentsRe: Create Groovy library?
Hi Ole, Thank for you helps. Yes, I want to build groovy library class ( I used 2.0.2 Pro). I have an issue how to use "testRunner.testCase.name". I did include "import com.eviware.soapui.model.testsuite.TestRunner". But it could get a test case name (null value) at run time. Here's what I want to do. I want to build a class which's going to get the test case name and write to text file at run time. I'm using "testRunner.testCase.name". But have issue with it. Here's the I tried to build (not 100% complete yet) package soapui.Report import com.eviware.soapui.SoapUI import com.eviware.soapui.model.testsuite.TestRunner public class Rwrite { public void fw () { TestRunner testRunner println "TestCase: " + testRunner.testCase.name } Did I do something wrong? why testRunner.testCase.name's always return NULL. Thanks, zx3.3KViews0likes0CommentsHow to write a test result report from Groovy script?
All, I would like to like a test result from groovy script which iterates through data source (excel)? Basicly, I want to have a test result say like .. Testcasexxx run_datasource_1 Passed Testcasexxx run_datasource_2 Passed Testcasexxx run_datasource_3 Passed Testcasexxx run_datasource_4 Passed Any suggestions? Thanks, zx2.7KViews0likes3CommentsRe: Create Groovy library?
All, Here's my groovy scrip look like and I want to share it by all my testcases. Is it possible to create a library to hold it. I want to use it like a function library. I tried to create a java class but got the issue with import eviware.... groovyUtils = new com.eviware.soapui.support.GroovyUtils(context ) holder = groovyUtils.getXmlHolder ("searchTempT#Response") def nname= holder.getNodeValues ("//name") for (n in nname) { println n } Thanks, zx3.3KViews0likes0CommentsRe: DataSource problem
Hi Ole, Is it possible to have each of property response to one sheet in excel file? Yes, how to do it? I could not able to configure this way. Ex, the request have start_date and end_date. I want to configure in the same excel file which have two sheets and start_date will get data from sheet1 and end_date will have data from sheet2. So far, I have no luck. Thanks, zx1.3KViews0likes0Comments- 1.4KViews0likes0Comments