Greetings wise monks

I come to you as a man on his last resort.

I am attempting to develop an automated test scripting language for a certain IT company to automate their whole test process.

My problem is that I need my scripters to be able to identify areas of the script that may or may not be run, but in either situation, my language must output something to the screen in order for a test auditor to decide what has and hasn't been run, and why. I think an example makes things clearer. This is what I am after

startTestScript(); step a; step b; testBlock("Block1",checkRunningOnWindows){ step c; }

So in this example, if we're on windows platform step c will be executed and the script will continue. However if we're on linux, the script should output "Not runnin step c as checkRunningOnWindows failed".

Test and Test::More are very close to what I want, but insufficient becuase it skips tests but not actual code. An if..else construct is deemed to complicated for my target users (don't ask!!). A translator/parser works well, but again if the traceability between what is written and what is run is lost, my target users will not be able to debug.

Has anyone ever see, heard of or thought about any such system or solution? I have tried a couple of techniques, none of which have been too fruitful. I would love to know what you monks come up with

Many thanks

Joe

Code tags added by GrandFather


In reply to Test Blocks and skipping by joewoodhouse30

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.