Re: testing scripts
"David A. Lee" <[email protected]> Fri, 7 Nov 2008 15:16:29 -0500
| Newsgroups | gmane.comp.java.beanshell.user |
|---|---|
| Message-ID | <[email protected]> |
I use a "test mode" in my app for doing this. The scripts cant run standalone because they depend on integrated things which only exist when running as part of my app, so I have a "test mode" which makes all side effects harmless ... for example, sending emails, I have the "test mode" always send emails to my own test account, not a live customer account. Then when its all working fine I turn off test mode. I also have a "Validate" process which tries to validate the script. Its not 100% ... all it does is attempt to interpret the script and see if it succeeds. I code my scripts so that intrepreting them should do nothing except define variables and functions. That way I can "validate" the script without running it. But that only goes so far ... beanshell being such a runtime typed scripting language can fail in ways that you cant always predict. ----- Original Message ----- From: Bowles, Mickey (RIC) To: Beanshell-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Sent: Friday, November 07, 2008 1:56 PM Subject: [Beanshell-users] testing scripts 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