Contributions
Re: Creating report with groovy
Hi Ole, I'm a pro user, but your are not answering for any ques... Try to answer this ques:- "The Open Source version of soapUI only supports creation of the basic HTML reports when running from the Command Line" how to create report using command line in open source ? Regards, - Karthik13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsText Data Source using Groovy error
Hi, Can anyone help me , What is the actual error on this code ? I'm gave the same test case name in groovy but it is still showing groovy.missingproperty.Property not found. Code: import com.eviware.soapui.support.XmlHolder def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def folderName = "d:\\data\\532178548\\Desktop\\Samples" //to store the response def createFolder = new File(folderName) createFolder.mkdir() def testSuite = testRunner.testCase.testSuite.project.testSuites["Flights"] def testCase = testSuite.getTestCaseAt(0) def testStep1 = testCase.getTestStepCount() def xHolder = new XmlHolder(testCase.getTestStepAt(0).getProperty("Response").getValue()) File tempFile = new File("d:\\data\\532178548\\Desktop\\Samples\\data_source_file.txt") List lines = tempFile.readLines() def i=0 def temp1 = 0 def inputValue def myTestStep def myTestRunner def myTestStepContext //Loop through all the names of the test steps. ( 0..<testStep1 ).each { i=0 tempFile.eachLine { testCase.setPropertyValue("inputValue", lines[i++]) inputValue = context.expand( '${#TestCase#inputValue}' ) myTestStep = testCase.getTestStepAt(temp1) myTestRunner = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner(myTestCase,null) myTestStepContext = new com.eviware.soapui.impl.wsdl.testcase.WsdlTestRunContext(GetFlight) myTestStep.run( myTestRunner, myTestStepContext ) xHolder = new XmlHolder(testCase.getTestStepAt(temp1).getProperty("Response").getValue()) f = new File( folderName + ‘/’ + inputValue + ‘_’ + testCase.getTestStepAt(temp1).getName().toString() + '.txt') f.append("\r\n\r\n\r\n\r\n\r\n") f.append("#################################################\r\n") f.append("\t\t\t Response \r\n") f.append("#################################################\r\n\r\n\r\n\r\n\r\n") f.write(xHolder.prettyXml) xHolder.clear() } temp1++ } Regards, - Karthik13 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes4CommentsCreating report with groovy
Hi , I tried ur groovy code to create report def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) import com.eviware.soapui.reporting.ReportEngineRegistry import com.eviware.soapui.reporting.reports.testcase.* //def report = new WsdlTestCaseReport(context.testCase) def availableReports = ReportEngineRegistry.getAvailableReports( report ) // get list of all reports for test case // generate 2nd , format PDF ( here you can add other formats ), at location "/home/robert/Documents/soapui-projects" availableReports[1].generate( report.getModelItem().getSettings(), (String[])[ "PDF" ], "D://" ) availableReports[1].release() But i'm not able to create report. I'm getting unable to resolve class error. Kindly help me on this . Regards, - Karthik13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.7KViews0likes3Comments- 14 years agoPlace ReadyAPI QuestionsReadyAPI Questions970Views0likes0Comments
- 14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Comments
Re: Not able to create report using Test Runner
Hi Ole, Now getting this error ! Running soapUI TestRunner for [AcctInquiry1] directory: C:\Program Files\eviware\soapUI-Pro-3.6.1\bin command: cmd.exe /C testrunner.bat -sAcctSoapBinding1 -c"DoAcctInq TestCase" -r -f"d:\data\532178548\Desktop\Projects\Webservices\Soap Ui Projects\Test Case Reports" -R"TestSuite Report" -FPDF "d:\data\532178548\Desktop\Projects\Webservices RBC\Soap Ui Projects\AcctInquiry1-soapui-project.xml" Could not create the Java virtual machine. Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: Ÿ?Ÿ? Unrecognized option: Ÿ?Ÿ? Regards, - Karthik14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsNot able to create report using Test Runner
Hi, I'm not able to generate Report using Test Runne. I'm getting the following error msg log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [ACL(QTJA) class path C:\Program Files\HP\QuickTest Professional\bin\Java\classes\..\..\java_shared\classes;C:\Program Files\HP\QuickTest Professional\bin\Java\classes\mic.jar(main);C:\Program Files\HP\QuickTest Professional\bin\Java\classes\..\..\java_shared\classes\jacob.jar;C:\Program Files\HP\QuickTest Professional\bin\Java\classes\..\..\java_shared\classes\Log4J-1.1.zip;C:\Program Files\HP\QuickTest Professional\bin\Java\classes\..\..\java_shared\classes\xercesImpl.jar;C:\Program Files\HP\QuickTest Professional\bin\Java\classes\..\..\java_shared\classes\xmlParserAPIs.jar delegate is null] whereas object of type log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [sun.misc.Launcher$AppClassLoader@601bb1]. log4j:ERROR Could not instantiate appender named "A2". DEBUG - Releasing all waiters. There are 0 waiters active. 0 [JVM Exit listener] DEBUG java_agent.replay_events - Releasing all waiters. There are 0 waiters active. Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar Anyone can help me on this ? Thanks :-) in advance Regards, - karthik14 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.7KViews0likes4Comments