Re: testing scripts

brewer <[email protected]> Tue, 18 Nov 2008 13:35:01 -0800
Newsgroups gmane.comp.java.beanshell.user
Message-ID <[email protected]>
Just playing with the desktop should answer most of your questions.
Also, the Beanshell manual has a very good section on its use.

But specifically, when you type an executable bit of code into the
desktop console, or "source()" some saved code, the console will report
any problem the interpreter encounters with syntax, etc. If your script
needs outside objects in order to operate, you either instantiate them
with code you type into the console, or you write a test harness script
(or class) that does it for you. And if you need classes, you add the
jars to the Beanshell classpath using "addClassPath()". You can think of
the Beanshell Desktop as an interactive Beanshell interpreter.

Testing code is a very large subject. I use Beanshell Desktop in the
very early stages of development, because it is good for experimentation
and quick feedback.

-Philip Lindsey
www.bbeans.biz

Bowles, Mickey (RIC) wrote:
>  Does this show compilation results?  What is your script needs classes
> from the app that would call it in normal use?  Guess I need to fire up
> Beanshell Desktop.
>
>
> -----Original Message-----
> From: brewer [mailto:[email protected]] 
> Sent: Friday, November 07, 2008 3:27 PM
> To: Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: Re: [Beanshell-users] testing scripts
>
> I start by using the BeanShell DeskTop if I can, which is most of the
> time. (BeansShell DeskTop is executed by launching the bsh.jar.) I even
> use it for testing Java classes during development. Very, very handy.
>
> -Philip Lindsey
> www.bbeans.biz
>
> Bowles, Mickey (RIC) wrote:
>   
>> How do you guys test your beanshell script prior to using in an app?
>> *****************************************************
>> The Contents of this e-mail and any attachments to it may contain
>>     
> confidential and/or legally privileged information. This information is
> only for use by the intended recipient. If you are not the intended
> recipient, you are hereby notified that any disclosure, copying,
> distribution, or taking action based upon the information contained
> herein is strictly prohibited. If this e-mail was received in error,
> please notify the sender and return the documents immediately.
>   
>> ************************************************************
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>> ----------------------------------------------------------------------
>> --- 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=/
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Beanshell-users mailing list
>> Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>>     
>
> ------------------------------------------------------------------------
> -
> 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=/
> _______________________________________________
> Beanshell-users mailing list
> Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/beanshell-users
> *****************************************************
> The Contents of this e-mail and any attachments to it may contain confidential and/or legally privileged information. This information is only for use by the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or taking action based upon the information contained herein is strictly prohibited. If this e-mail was received in error, please notify the sender and return the documents immediately.
>
> ************************************************************
>
>
> -------------------------------------------------------------------------
> 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=/
> _______________________________________________
> Beanshell-users mailing list
> Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>
>   


-------------------------------------------------------------------------
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=/