Home
TeamSite
Testing Perl Scripts
Ottawa_IWOV
What is the easiest way to test your perl scripts on the IWOV platform??
Find more posts tagged with
Comments
gsumers22texas
we test ours at two levels: syntax and then functionality
first from the command line to identify Perl syntax errors (make sure your shebang path is correct) - when we don't get syntax errors, but only WF errors (i.e. "object doesn't exist, etc) then we test at the second level, which is running the Perl script from the workflow ui (thus, invocation via the wft) and verifying before / after actions of what the script is trying to accomplish
sorry if this is sort of a vague answer, but it was also sort of a vague question?
iwovGraduate
There is no simple answer to this. It depends on what you are doing. The tricks to debug a workflow external task could be different from debugging a CGI for custom menu item.
You can run perl/iwperl in the debug mode or just have your perl script output a bunch of print statements to a file or on the shell. You can validate the syntax with the "-c" flag.
If this does not help, provide more information on what kind of scripts do you want to debug.