: <type 'exceptions.SyntaxError'>:
Bill Yang <byang-5/qsY7LH4EwKCrqWeS0s09JR4SXAr38/@public.gmane.org> Thu, 26 Mar 2015 23:22:03 +0000
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <DM2PR08MB5284549EDEC7E81C73E982AD4080@DM2PR08MB528.namprd08.prod.outlook.com> |
Hi Philip,
I am trying to run my script with grinder, but it was failed and got the error message that I am not for sure what is actual wrong. I listed it below for your reference if you can help me to figure out the issues. (Note: PerformancLoadTest is my java code to be run)
Manits.py
==================================================================================================
# This script demonstrates the use of The Grinder statistics API to
#
# Copyright (C) 2003, 2004, 2005, 2006 Philip Aston
# Copyright (C) 2005 Dietrich Bollmann
# Distributed under the terms of The Grinder license.
from javax.jms import JMSException
from javax.naming import Context, InitialContext
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
from com.livewire.mantisenterprise.PerformanceLoadTest import PerformanceLoadTest
# A shorter alias for the grinder.logger.output() method.
log = grinder.logger.info
# Create instance of PerformancaLoadTest
test_runner = PerformanceLoadTest()
test_runner = Test(1, 'Performance Load Test').wrap(PerformanceLoadTest)
class TestRunner:
def __init__(self):
log('Create queue session')
self.runner = test_runner
def __call__(self):
log('Start load test')
self.runner.deviceEventAClossTest()
billlaptop-3.log
2015-03-26 17:08:16,740 INFO billlaptop-3 : The Grinder version 3.11
2015-03-26 17:08:16,740 INFO billlaptop-3 : Java(TM) SE Runtime Environment 1.8.0_25-b18: Java HotSpot(TM) 64-Bit Server VM (25.25-b02, mixed mode) on Windows 7 amd64 6.1
2015-03-26 17:08:16,740 INFO billlaptop-3 : time zone is MDT (-0600)
2015-03-26 17:08:16,800 INFO billlaptop-3 : worker process 3 of agent number 0
2015-03-26 17:08:16,840 INFO billlaptop-3 : instrumentation agents: byte code transforming instrumenter for Jython 2.5; byte code transforming instrumenter for Java
2015-03-26 17:08:17,508 ERROR billlaptop-3 : aborting process - Jython exception, <type 'exceptions.SyntaxError'>: ("mismatched input '' expecting EOF", ('C:\\Users\\byang\\grinder\\loadtest\\.\\billlaptop-file-store\\current\\mantisloadtest.py', 41, 4, ' test_runner = PerformanceLoadTest()\n')) [initialising test script]
net.grinder.scriptengine.jython.JythonScriptExecutionException: <type 'exceptions.SyntaxError'>: ("mismatched input '' expecting EOF", ('C:\\Users\\byang\\grinder\\loadtest\\.\\billlaptop-file-store\\current\\mantisloadtest.py', 41, 4, ' test_runner = PerformanceLoadTest()\n'))
Thanks,
Bill Yang
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use