Now support read test info from XML file
Code refactored