Hi Graff, You are right, There will be different formats too. Also the thing is that for example consider this scenario, We have 4 products
1) Gearbox
2) Stearing
3) Brake Drum
4) Alloy Wheels
And in each of these products there will station to test in the below flow.
1) Assembly Testing
2) Performance Testing
3) Functional Testing
4) Integration Testing
All these station will produce different formats of test result data.
We have a common database (common means the database is similair to all the four projects ) So other side is standard. All we need to do is process these files and generate the standard format XML and then call the DB Stored Procedure with this XML as input and Stored procedure will take care further...
So to answer your question, We will come to know the format and we can decide the directory for each project inside the project scan folder like
DIR> ProjectScan
...Gearbox
...Stearing
...Brake Drum
...Alloy Wheels
and we can map the test station test result output to be dropped into the corresponding station folder under the project name in the Projectscan folder.
All these things can be configured in a configuration xml file and pass it on to the perl parser in command line so that perl parser can parse the files based on scan path and then drop in the xmldrop.
I think the single process running wont suit here since the parse text has to be matched with a corresponding string to generate that standard XML.
Please reply!!!

In reply to Re^2: Perl Parser to Handle Any File Format by powersakthi
in thread Perl Parser to Handle Any File Format by Anonymous Monk

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.