[Dev] Grinder, TestMaker, Jython, and JSR 223
William Martinez Pomares
wmartinez at AVANTICATEC.NET
Thu Feb 22 13:45:44 PST 2007
Hi Frank.
Sorry for the delay.
TM5 is aiming to define TestScenarios using its new TestScenario XML
schema. The XML will contain instructions about concurrency, message
sizes, and indications of what processes should the TM execute to
actually run the tests (among other things).
Those indications come in the form:
<runTest name="name_of_test" testclass="name_of_class"
method="name_of_method" langtype="script\language"/>
For instance
<runTest name="insert_test" testclass="mytest" method="runTest"
langtype="jython"/>
will indicate TM that it has to run the method runTest in the class
"mytest" and that the code is written in "jython".
To provide TM witht he ability to run scripts other than plain Java, JSR
223 APIs are going to be used.
The langtype attribute may then be any of the supported JSR 223 engines.
Also, since scripts will come from files and the invocation will be to
specific methods, the supported ScriptEngines should implement the
invocable interface.
Note that the control of the test is defined in the XML, and not in the
methods. This allows the methods of a unit test to be used to execute a
load test just by configuring the scenario.
JSR 223 is generic to JVM 6, so TM5 will probably come with an embedded
JRE 6. New engines can be added too.
William.
-----Original Message-----
From: dev-bounces at lists.pushtotest.com
[mailto:dev-bounces at lists.pushtotest.com]On Behalf Of Frank Cohen
Sent: Wednesday, February 21, 2007 4:25 PM
To: TestMaker Developers List
Subject: [Dev] Grinder, TestMaker, Jython, and JSR 223
Hi William: Would you please reply with a brief explanation of TM5's
use of the JSR 223 APIs. Thanks. -Frank
Begin forwarded message:
> From: Philip Aston <paston at bea.com>
> Date: February 21, 2007 7:49:12 AM PST
> To: grinder-use <grinder-use at lists.sourceforge.net>
> Subject: Re: [Grinder-use] Jython 2.2?
> Reply-To: grinder-use <grinder-use at lists.sourceforge.net>
>
> Frank Cohen wrote:
>> Excellent. Thanks!
>>
>> BTW, I'm going to be leading the scripting session at JavaOne again
>> this year. Let me know if you're going to the conference and I'll
>> bring up Grinder's use of Jython as a successful example.
>>
>> Does Grinder use the JSR 223 API for using Jython?
>>
> No, and its unlikely to in the future.
>
> The Grinder is only loosely coupled to Jython, and doesn't need the
> generic API of JSR 223 (although very early on I considered and ruled
> out the BSF). The only signification link is the instrumentation of
> script objects. This is done in an AOP "around"ish sort of way through
> some fiddling with Jython internals. The downside of this is that
> I'm at
> the mercy of changes to those internals.
>
> If I replace this, I will do so using a true AOP framework at the byte
> code level. This will open up the possibility of scripting in any
> language that runs on the JVM.
>
> - Phil
> ______________________________________________________________________
> _
> Notice: This email message, together with any attachments, may
> contain
> information of BEA Systems, Inc., its subsidiaries and
> affiliated
> entities, that may be confidential, proprietary, copyrighted
> and/or
> legally privileged, and is intended solely for the use of the
> individual
> or entity named in this message. If you are not the intended
> recipient,
> and have received this message in error, please immediately return
> this
> by email and then delete it.
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> grinder-use mailing list
> grinder-use at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grinder-use
>
--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool
_______________________________________________
Dev mailing list
Dev at lists.pushtotest.com
http://lists.pushtotest.com/mailman/listinfo/dev
More information about the Dev
mailing list