in reply to Re^3: Suggestion needed for automating 3 separate programs/components
in thread Suggestion needed for automating 3 separate programs/components

Well i have to develop the module to work in windows OS. The three modules - Encoder Decoder and Validator are individually functioning fine. But they have to glued using Perl language.

Steps involved:-
1)Select the Encoder Algorithm.
2)Load the map database of Encoder and Decoder.
3)Call the encoder function with location as input. The output of the encoder is Location Reference.
4)Call the decoder function with this Location Reference as input. The output of the decoder is again a location in file called decoded.xml
5)Compare the input of encoder with output of decoder and validate the result.
6)Repeat this process continuously for different Locations.

Pseudo Code:-
Void setEncoderVersion();
encoder.init(graph_name1);
decoder.init(graph_name2) ;
repeat this for n locations
{
LocRef = encoder.doEncode(Loc1) ;
Loc2 = decoder.doDecode(LocRef) ;
Result = compare(Loc1, Loc2);
}

Hope i have now provided all the information. Looking forward to your valuable suggestions.

Rgds,
Ashutosh

  • Comment on Re^4: Suggestion needed for automating 3 separate programs/components

Replies are listed 'Best First'.
Re^5: Suggestion needed for automating 3 separate programs/components
by tirwhan (Abbot) on Nov 29, 2005 at 17:30 UTC

    This appears very different from what you described in your original node. Your OP talks about "automating the testing process", now you say you want "glue modules together". The former sounds like you've got three distinct application, whereas this now sounds like ... well, what exactly are you trying to do? Are these C++ libraries which you're trying to test? Are you trying to write Perl modules in C++? I still don't really know what this is about.

    Also, just as a friendly pointer, noone is going to write your program for you here. If you've got difficulty with a concept or are looking for pointers at relevant documentation or are simply lost and don't even know where to start, then say so and more likely than not you will receive helpful replies. But saying "This is what I need to do" and expecting someone to write a script for you ain't gonna happen.

    And I strongly recommend following McDarren's advice below.


    Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. -- Brian W. Kernighan