Contributions
The count of the request during Load Test is not increasing!!!
hi, while executing as web service load test with one single request the count of the request is not at all increasing. The count(cnt) is increasing only to the thrad count and except that the count of the request is not at all ramping up. Can anyone suggest me a method to perform a Scalability Load test with ramp up of users from 1 to n in number? Also when trying to capture few parameters from response and transfer the same to Datasink we are getting JavaNullpointer Exception. Please find below the steps of my project: We tried to import test data(i.e year) using Excel-->Property Transfer-->Request-->Property Transfer-->Log Groovy-->Show result Groovy-->data Sink-->Loop. My scripts is failing in Show result Groovy. And when i do a load test the whole script is failing and the error message from the error log is as follows: ERROR [errorlog] java.lang.NullPointerException java.lang.NullPointerException at jxl.write.biff.File.write(File.java:147) at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:697) at com.eviware.soapui.impl.wsdl.teststeps.datasink.ExcelDataSink.finish(SourceFile:159) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep.finish(SourceFile:192) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:262) at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$TestCaseRunner.run(WsdlLoadTestRunner.java:401) at java.lang.Thread.run(Unknown Source)" Can anyone suggest how can i overcome these issues? Thanks in Advance Regards Sree Satya2.4KViews0likes1Commentjava.lang.NullPointerException gor Groovy Script
we are load testing the webservice using "soapUI-Pro". due to unavailability of complete information in User Guide about Groovy script and the global files we are facing issue. We tried to import test data(i.e year) using Excel-->Property Transfer-->Request-->Property Transfer-->Log Groovy-->Show result Groovy-->data Sink-->Loop. My scripts is failing in Show result Groovy. Ansd wehn i do a load test the whole script is failing and the error message from the error log is as follows: "2008-05-08 11:46:44,147 ERROR [errorlog] java.lang.NullPointerException java.lang.NullPointerException at jxl.write.biff.File.write(File.java:147) at jxl.write.biff.WritableWorkbookImpl.write(WritableWorkbookImpl.java:697) at com.eviware.soapui.impl.wsdl.teststeps.datasink.ExcelDataSink.finish(SourceFile:159) at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSinkTestStep.finish(SourceFile:192) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:262) at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$TestCaseRunner.run(WsdlLoadTestRunner.java:401) at java.lang.Thread.run(Unknown Source)" I really dont understand whether i'm missing any .jar files or missing from soapUI-Pro end Attaching my Project file as well for your reference. Any replies are appreciated. Thanks in advance3.8KViews0likes2CommentsRe: Capture a value from the response
Hi, I am new to this SOAP UI tool. I had a question regarding the correlation. In this post they want to validate a value (12). That is fine. But if i want to capture a dynamic value from the response then how should i proceed in this aspect. For ex if i am searching a book (for java) in the website. I will get the details of that book. But if i want to search a 'C' book the details will differ (like author, book name, publicaiton etc). Depending on the user input value the page is differing. So now please tell me how can i capture the author, bookname, publication such that for the respective input i should get the relevant page of that input. Please do the needful. Thanks in advance. Thanks ahsu882Views0likes0CommentsRe: Getting error for the Groovy Script
I am getting the same error in the test case also. Below is the test case log. Test started at 2008-04-22 20:00:50.903 Step 1 [GetData] OK: took 7 ms Step 2 [Properties] OK: took 0 ms Step 3 [Init] OK: took 0 ms Step 4 [Set Year Args] OK: took 16 ms -> Performed transfer [year] Step 5 [GetGoodFridayRequest] OK: took 620 ms Step 6 [Get Result] OK: took 0 ms -> Performed transfer [year] Step 7 [Validate and Loop] FAILED: took 0 ms -> startup failed, Script3.groovy: 1: unexpected token: < @ line 1, column 1.org.codehaus.groovy.syntax.SyntaxException: unexpected token: < @ line 1, column 1. at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:83) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:239) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:143) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:772) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:438) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:271) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:488) at groovy.lang.GroovyShell.parse(GroovyShell.java:500) at groovy.lang.GroovyShell.parse(GroovyShell.java:480) at groovy.lang.GroovyShell.parse(GroovyShell.java:539) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:58) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:140) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:185) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: Script3.groovy:1:1: unexpected token: < at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:484) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:74) ... 20 more 1 error TestCase finished with status [FINISHED], time taken = 643 Please find the attachment for the error.9KViews0likes0CommentsGetting error for the Groovy Script
Groovy script i tried to run is def values = context.getProperty( "values" ) def index = context.getProperty( "index" ) def str = values[index] def ix = str.indexOf( "," ) def props = testRunner.testCase.getTestStepByName( "Properties" ) def resultCount = props.getPropertyValue( "ResultCount" ) def count = str.substring( ix+1 ) def year = props.getPropertyValue( "year" ) if( count > resultCount ) { throw new Exception( "not enough hits for year [" + year + "], expected " + count + ", got " + resultCount ) } else { log.info( "got " + resultCount + " hits for [" + year + "], required " + count ) if( ++index < values.size() ) { context.setProperty( "index", index ) testRunner.gotoStepByName( "Init Run" ) } else { log.info ( "Finished TestCase, tested " + values.size() + " values" ) } } and i am getting the following error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script6.groovy: 1: unexpected token: @ line 1, column 1.org.codehaus.groovy.syntax.SyntaxException: unexpected token: @ line 1, column 1. at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:83) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:239) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:143) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:772) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:438) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:271) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:488) at groovy.lang.GroovyShell.parse(GroovyShell.java:500) at groovy.lang.GroovyShell.parse(GroovyShell.java:480) at groovy.lang.GroovyShell.parse(GroovyShell.java:539) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:58) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:140) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:185) at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$TestCaseRunner.run(WsdlLoadTestRunner.java:401) at java.lang.Thread.run(Unknown Source) Caused by: Script6.groovy:1:1: unexpected token: at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:484) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:74) ... 16 more 1 error startup failed, Script6.groovy: 1: unexpected token: @ line 1, column 1.org.codehaus.groovy.syntax.SyntaxException: unexpected token: @ line 1, column 1. at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:83) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:239) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:143) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:772) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:438) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:271) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:488) at groovy.lang.GroovyShell.parse(GroovyShell.java:500) at groovy.lang.GroovyShell.parse(GroovyShell.java:480) at groovy.lang.GroovyShell.parse(GroovyShell.java:539) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:87) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:58) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:140) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:185) at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$TestCaseRunner.run(WsdlLoadTestRunner.java:401) at java.lang.Thread.run(Unknown Source) Caused by: Script6.groovy:1:1: unexpected token: at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:484) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:74) ... 16 more 1 error and i am not seeing any logs in the groovy log. Please, help me in this to resolve ASAP. Thanks in advance for your response12KViews0likes4CommentsRe: Test case log
This forum is really good and too informative. just i have one question: Is Groovy has to be down loaded for executing the code which you have placed in the Tear down script?? Bcoz the same is not working for us with out the Groovy software. Thanks in advance2.7KViews0likes0Comments