Re: [Grinder-use] grinder script usage problem with eclipse
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
From: Pol v. A. <mac...@po...> - 2008-09-25 13:46:18
|
Actually, there's a grinder script development / debugger plugin for eclipse available from google code. Haven't used it myself, but it appears to have matured over the last year since I last saw it. http://code.google.com/p/grinderstone/ Regards, Pol David Carter wrote: > hey, > > yeah i thought that might be the case. Whats the easiest way to debug/run grinder scripts then? Just through the console while running tests? The test i've run doesnt seem to be creating any error logs or errors but there are response errors so i assume something is wrong? > > I take it theres no visual way to debug the scripts? You might have noticed by now that i'm a tester who's used to commerical tools (although i do have a developer background). > > cheers > > david > > ________________________________________ > From: Philip Aston [phi...@or...] > Sent: 25 September 2008 13:27 > To: grinder-use > Subject: Re: [Grinder-use] grinder script usage problem with eclipse > > Whilst you can edit scripts in PyDev, you can't run/debug them. The > scripts rely on internal context which is only set up correctly when > running under The Grinder. > > - Phil > > > David Carter wrote: >> Hey, >> >> >> >> I’m trying to debug a script I created in TCPProxy but when I try and >> run/debug it in eclipse (with PyDev installed also) I get the >> following error – >> >> >> >> “Traceback (innermost last): >> >> _File "C:\dashboard\testing\dashBoardReport.py", line 6, in ?_ >> >> java.lang.ExceptionInInitializerError >> >> >> >> at >> net.grinder.plugin.http.HTTPPluginControl.<clinit>(_HTTPPluginControl.java:45_) >> >> >> >> at java.lang.Class.forName0(_Native Method_) >> >> >> >> at java.lang.Class.forName(Unknown Source) >> >> >> >> at org.python.core.SyspathJavaLoader.loadClass(Unknown Source) >> >> >> >> at java.lang.ClassLoader.loadClass(Unknown Source) >> >> >> >> at org.python.core.Py.findClassEx(Unknown Source) >> >> >> >> at org.python.core.SysPackageManager.findClass(Unknown Source) >> >> >> >> at org.python.core.PackageManager.findClass(Unknown Source) >> >> >> >> at org.python.core.SysPackageManager.findClass(Unknown Source) >> >> >> >> at org.python.core.PyJavaPackage.__findattr__(Unknown Source) >> >> >> >> at org.python.core.imp.importFromAs(Unknown Source) >> >> >> >> at org.python.core.imp.importFrom(Unknown Source) >> >> >> >> at >> org.python.pycode._pyx0.f$0(C:\dashboard\testing\dashBoardReport.py:6) >> >> >> >> at >> org.python.pycode._pyx0.call_function(C:\dashboard\testing\dashBoardReport.py) >> >> >> >> at org.python.core.PyTableCode.call(Unknown Source) >> >> >> >> at org.python.core.PyCode.call(Unknown Source) >> >> >> >> at org.python.core.Py.runCode(Unknown Source) >> >> >> >> at org.python.core.__builtin__.execfile_flags(Unknown Source) >> >> >> >> at org.python.util.PythonInterpreter.execfile(Unknown Source) >> >> >> >> at org.python.util.jython.main(Unknown Source) >> >> >> >> Caused by: _java.lang.NullPointerException_ >> >> >> >> at net.grinder.plugin.http.HTTPPlugin.<clinit>(_HTTPPlugin.java:61_) >> >> >> >> ... 20 more >> >> >> >> >> >> java.lang.ExceptionInInitializerError: >> java.lang.ExceptionInInitializerError” >> >> >> >> Ive attached the script file and the grinder.properties file as well >> but I cant work out what this error refers to (it’s rather non >> descript). Do you recommend any other method of debugging scripts >> other than eclipse (I need to check the scripts validity, add multiple >> users and I think the session Id might need parameterising also). When >> I run the script in the console, I get no errors but I do get some >> response errors so I’m assuming the script isnt doing what I want >> (like logging in correctly). >> >> >> >> Cheers >> >> >> >> david >> >> >> >> *David Carter* >> Test Lead >> >> ** >> >> dav...@lb... <mailto:dav...@lb...> | www.lbi.com >> >> ** >> >> Office: +44 (0) 20 7446 7500 >> >> Direct: +44 (0) 20 74467494 >> Fax: +44 (0) 20 7446 7555 >> >> ** >> >> *LBi** *1 Naoroji Street London WC1X OJD >> >> >> An LBi Group Company >> >> >> >> >> LBi. The global marketing and technology agency. Winner: Media >> Guardian Design Innovation Award 2008 > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > grinder-use mailing list > gri...@li... > https://lists.sourceforge.net/lists/listinfo/grinder-use > > LBi Ltd is registered in England and Wales, the registered number and address are 03080409, Truman Brewery, 146 Brick Lane, London, E1 6RU. This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > grinder-use mailing list > gri...@li... > https://lists.sourceforge.net/lists/listinfo/grinder-use |