Hi Guys, I need some inputs from you people for testing different components.
We are building a sotware that will have several components.
Parser -- Validator -- Builder.
Parser will have input in different format, it will parse it and give a generic XML file.
Validator will have the generic XML as input, validate the as per the different business rules and create a generic XML again. (there can be several rule files that can be applied)
Builder will take output XML from Validator as input and translate in a specic format.
Now I have to test each of the component independently.
Is there any opensource tool that i can make use of ?
Or is there any way we can make use of Rational Robot?
What are the different scenarios i have to consider?
My approach is creating different forms sending it to parser and comparing values in the forms with the value sin the generic XML generated by parser.
Same way for all the components.
Re: Component testing.
You can use any testautomationtool for this, if you know how it works. In all you will need to write a generic script that can sent your inputfiles from a specified location to a specified component. Then you will need to write a comparator that can access your outputfiles and compare them to your expected results. This is a lot of work, but if the scripts are available you will be able to use them for all the components mentioned here.
Keep in mind though that, creating such a script is not easy. It will take a lot of time to make and configure. If you will only have to run your tests once, it may not be worth the trouble to automate.
Re: Component testing.
I Agree with Steve.
Don't go wasting your time automating the process until later (if it's going to be repeated a lot).
The first thing i would do is find out what valid input file will go thru the absolute minimum change and run it thru the whole process (if possible).
You will soon see if anything comes out the other end.
You will also have a good idea of what you're up against effort wise.
Valid Input file -> Entire Process (Black Box) -> Expected Output.
I'd then attack each component seperately in the same manner.
Valid Input file -> Component (Black Box) -> Expected Output.
Then use Invalid files (dont forget blank file).
Invalid Input file -> Component (Black Box) -> Expected Error.
Once each component is working as expected re-run all the files you created thru the Entire process.
This way you can make sure all the components work (or not) when they are integrated into the final product.
Input file -> Entire Process (Black Box) -> Expected Output.
Hope that helps ya [img]/images/graemlins/smile.gif[/img]