header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
July 04, 2008, 02:01:01 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: ahsu
Welcome, Guest. Please login or register.
July 04, 2008, 02:01:01 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1]
1  soapUI / soapUI / The count of the request during Load Test is not increasing!!! on: May 13, 2008, 01:25:41 pm
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 Satya
2  soapUI / soapUI / Re: java.lang.NullPointerException gor Groovy Script on: May 12, 2008, 07:31:12 am
HI Ole,

Any updates about the issue i posted?

Looking forward for your support.

Regards

Sree Satya  Sad
3  soapUI / soapUI / java.lang.NullPointerException gor Groovy Script on: May 08, 2008, 09:01:28 am
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 advance  Smiley


4  soapUI / soapUI / Re: Capture a value from the response on: April 23, 2008, 09:53:36 am
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
ahsu
5  soapUI / soapUI / Unable to see logs in groovy log on: April 23, 2008, 09:44:04 am
Hi ,

After doing load testing we are unable to see any logs in the groovy log even we placed groovy scripts in the Test Case.

Please tell me where i am missing to get the logs in groovy log.

Please do the needful Wink
6  soapUI / soapUI / Re: Getting error for the Groovy Script on: April 22, 2008, 03:34:14 pm
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.
7  soapUI / soapUI / Re: Getting error for the Groovy Script on: April 22, 2008, 03:20:53 pm
Hi Ole,

Thanks for your reply.

but still i am facing the same error.
I am attaching the script and the error screen shot .

And i am unable to see any logs in the groovy log.

Please , tell me where i am missing exactly.

8  soapUI / soapUI / Getting error for the Groovy Script on: April 22, 2008, 02:19:13 pm
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. Huh
Please, help me in this to resolve ASAP.


Thanks in advance for your response
9  soapUI / soapUI / Re: Test case log on: April 22, 2008, 02:11:57 pm
we are not getting any errors but we are getting the flower braces.
No content is there with in the braces.


10  soapUI / soapUI / Re: Test case log on: April 22, 2008, 12:48:01 pm
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 advance
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header