Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML sequencing with Perl

Status
Not open for further replies.

comma

Programmer
Feb 12, 2003
24
FI
Hi,

I recently popped into STAF -project ( which uses XML -files for sequencing software test cases. Actually it's like a macro language implemented with XML and in XML there is function calls and variable declarations (e.g. variable = 1 etc.).

I was wondering if someone knows if there is something similar system for Perl.

Or if you have suggestions how this kind of "macro language" could be sequenced through Perl, it would be nice.

E.g. one SW test case would be run like this
<TEST name="prg_loader">
<CASE id="1" />
<LOOP times="5">
<CASE id="3" />
<CASE id="4" />
</LOOP>
</TEST>

I was wondering which would be the best way to run these kind of loops in "macro language"?

Of course file can be streamed with SAX, but then looping could be a problem, because it's difficult to go back and read parameters from CASE (if there is any).

Br, comma
 
Look up test on dunno about an XML framework though, but there are XML test validators

HTH
--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top