Beispiel #1
0
def main():
    classes = (
        TestCase_ETC_ITS_BCTC,
        )
    testsuite = unittest.TestSuite([api_unittest.TestLoader().loadTestsFromTestCase(clz) for clz in classes])
    title = u'ETC ITS BCTC'
    description = u'交通部科学院(ITS)的ETC卡测试在BCTC的物理特性测试,包括冷热复位、PPS波特率、时钟停止等'
    path = os.path.abspath('testsuite_etc_its_bctc.html')
    level = logging.INFO # 输入日记的多少, DEBUG时最多 INFO/ERROR/CRITICAL
    verbosity = 0 # 命令行窗口的输出详细程度 0/1/2 从少到多 设定为2时可以调试一些非测试案例出错的情况

    testresult = api_unittest.htmlunittest(testsuite, title, description, path, level, verbosity)
    webbrowser.open('file:'+urllib.pathname2url(path))
Beispiel #2
0
def main():
    classes = (TestCase_CIU98428F_Bootloader, )
    testsuite = unittest.TestSuite([
        api_unittest.TestLoader().loadTestsFromTestCase(clz) for clz in classes
    ])
    title = u'CIU98428F_Bootloader'
    description = u'通过CIU98428F自带的bootloader,对其样卡的FLASH做压力测试'
    path = os.path.abspath(__file__[:-3] + '.html')
    level = logging.DEBUG  # 输入日记的多少, DEBUG时最多 INFO/ERROR/CRITICAL
    verbosity = 0  # 命令行窗口的输出详细程度 0/1/2 从少到多 设定为2时可以调试一些非测试案例出错的情况

    testresult = api_unittest.htmlunittest(testsuite, title, description, path,
                                           level, verbosity)
    webbrowser.open('file://' + path)
def main():
    classes = (TestCase_Performace_arrayCopy, )
    testsuite = unittest.TestSuite([
        api_unittest.TestLoader().loadTestsFromTestCase(clz) for clz in classes
    ])
    title = u'Performace arrayCopy'
    description = u'测试Performance ArrayCopy的性能'
    path = os.path.abspath('testsuite_performace_arraycopy.html')
    level = logging.INFO  # 输入日记的多少, DEBUG时最多 INFO/ERROR/CRITICAL
    verbosity = 0  # 命令行窗口的输出详细程度 0/1/2 从少到多 设定为2时可以调试一些非测试案例出错的情况

    testresult = api_unittest.htmlunittest(testsuite, title, description, path,
                                           level, verbosity)
    webbrowser.open('file:' + urllib.pathname2url(path))
Beispiel #4
0
def main():
    classes = (TestCase_THD88maskve_Patches, )
    testsuite = unittest.TestSuite([
        api_unittest.TestLoader().loadTestsFromTestCase(clz) for clz in classes
    ])
    title = u'ETC ITS BCTC'
    description = u'验证THD88maskv2的3个OS补丁:timer没有正确关闭导致的pps间隔问题、EDEP converter、license disable'
    path = os.path.abspath('testsuite_thd88mask2_patches.html')
    level = logging.INFO  # 输入日记的多少, DEBUG时最多 INFO/ERROR/CRITICAL
    verbosity = 0  # 命令行窗口的输出详细程度 0/1/2 从少到多 设定为2时可以调试一些非测试案例出错的情况

    testresult = api_unittest.htmlunittest(testsuite, title, description, path,
                                           level, verbosity)
    webbrowser.open('file:' + urllib.pathname2url(path))
def main():
    classes = (
        TestCase_ALG_PSEUDO_RANDOM,
        TestCase_ALG_SECURE_RANDOM,
        TestCase_JCSystem,
    )
    testsuite = unittest.TestSuite([
        api_unittest.TestLoader().loadTestsFromTestCase(clz) for clz in classes
    ])
    title = u'COS_JavaCard'
    description = u'检测JavaCard标准中未明确的特性、边界条件'
    path = os.path.abspath('testsuite_os_javacard.html')
    level = logging.INFO  # 输入日记的多少, DEBUG时最多 INFO/ERROR/CRITICAL
    verbosity = 0  # 命令行窗口的输出详细程度 0/1/2 从少到多 设定为2时可以调试一些非测试案例出错的情况

    testresult = api_unittest.htmlunittest(testsuite, title, description, path,
                                           level, verbosity)
    webbrowser.open('file://' + path)