def main():
    xmind_file = 'docs/xmind_testcase_template_v1.1.xmind'
    print(('Start to convert XMind file: %s' % xmind_file))
    zentao_csv_file = xmind_to_zentao_csv_file(xmind_file)
    print(('Convert XMind file to zentao csv file successfully: %s' % zentao_csv_file))
    testlink_xml_file = xmind_to_testlink_xml_file(xmind_file)
    print(('Convert XMind file to testlink xml file successfully: %s' % testlink_xml_file))
    testsuite_json_file = xmind_testsuite_to_json_file(xmind_file)
    print(('Convert XMind file to testsuite json file successfully: %s' % testsuite_json_file))
    testcase_json_file = xmind_testcase_to_json_file(xmind_file)
    print(('Convert XMind file to testcase json file successfully: %s' % testcase_json_file))
    testsuites = get_xmind_testsuite_list(xmind_file)
    print(('Convert XMind to testsuits dict data:\n%s' % json.dumps(testsuites, indent=2, separators=(',', ': '), ensure_ascii=False)))
    testcases = get_xmind_testcase_list(xmind_file)
    print(('Convert Xmind to testcases dict data:\n%s' % json.dumps(testcases, indent=4, separators=(',', ': '), ensure_ascii=False)))
    workbook = xmind.load(xmind_file)
    print(('Convert XMind to Json data:\n%s' % json.dumps(workbook.getData(), indent=2, separators=(',', ': '), ensure_ascii=False)))
    print('Finished conversion, Congratulations!')
def main():
    xmind_file = 'docs/xmind_testcase_template_v1.1.xmind'
    print(('Start to convert XMind file: %s' % xmind_file))
    zentao_csv_file = xmind_to_zentao_csv_file(xmind_file)
    print(('Convert XMind file to zentao csv file successfully: %s' % zentao_csv_file))
    testlink_xml_file = xmind_to_testlink_xml_file(xmind_file)
    print(('Convert XMind file to testlink xml file successfully: %s' % testlink_xml_file))
    testsuite_json_file = xmind_testsuite_to_json_file(xmind_file)
    print(('Convert XMind file to testsuite json file successfully: %s' % testsuite_json_file))
    testcase_json_file = xmind_testcase_to_json_file(xmind_file)
    print(('Convert XMind file to testcase json file successfully: %s' % testcase_json_file))
    testsuites = get_xmind_testsuite_list(xmind_file)
    print(('Convert XMind to testsuits dict data:\n%s' % json.dumps(testsuites, indent=2, separators=(',', ': '), ensure_ascii=False)))
    testcases = get_xmind_testcase_list(xmind_file)
    print(('Convert Xmind to testcases dict data:\n%s' % json.dumps(testcases, indent=4, separators=(',', ': '), ensure_ascii=False)))
    workbook = xmind.load(xmind_file)
    print(('Convert XMind to Json data:\n%s' % json.dumps(workbook.getData(), indent=2, separators=(',', ': '), ensure_ascii=False)))
    print('Finished conversion, Congratulations!')