suiteProperties = Utilities.getSuitePropertiesFromDictionary(
        dictionaries[suite])
    suitePropertiesStr = Utilities.getSuiteProperties(suiteProperties)

    for i in dictionaries[suite]:  # iterating testcase
        testsNo += 1
        if Utilities.isFailed(i["status"]):
            failuresNo += 1
        elif Utilities.isSkipped(i["status"]):
            skippedNo += 1
        elif Utilities.isError(i["status"]):
            errorsNo += 1

        test = Utilities.getTestCaseFromDictionary(i, suiteProperties)
        tests += test

    suitString = Utilities.getTestSuite(suite, str(testsNo), str(errorsNo),
                                        str(failuresNo), str(skippedNo), time,
                                        timestamp, suitePropertiesStr, tests)
    aGroupsStringsList = aGroupsStringsList + suitString

finalXML = Utilities.getTestSuites(aGroupsStringsList)

print "\nParsing finished, result file: " + str(
    os.path.abspath(outputFileLocation))
printToConsole("\nResult data:\n\n" + finalXML)

fo = open(outputFileLocation, 'w')
fo.write(finalXML)  # python will convert \n to os.linesep
fo.close()