I am the lone Perl coder in a QA group. In order to make the others more productive without having to force them to learn Perl (I can't figure out why they don't want to???), I want to write a test engine that reads from files they write using keywords and test data. An example would be:
open browser <optional machine info>
goto <some url>
verify page <some info to verify>
set form <field1=value1,field2=value2,...>
submit form <optional button or image to click>
verify page <some info to verify>
etc...
Each keyword would map to a function or to a file containing other keywords, so that 'add user' might be used as part of multiple test files and the steps to 'add user' would be defined in its own test file.
Does anyone know of a module that handles this type of functionality, the parsing of the keyword-based file and mapping to other files and/or functions?
Alternatively, does anyone have any suggestions on how to go about finding the file that contains the sub functionality like 'add user'? One thing that would be nice is if the keyword module could also handle things like program flow control such as for and while loops, next, last, and if conditionals. I'm probably hoping for something that isn't out there, but I had to ask before tilting at it myself.
Thanks in advance for any info and/or ideas on this one!
"Peace, love, and Perl...well, okay, mostly just Perl!" --me
Apprentice
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.