Example #1
0
def shoot_pctest():
    test = PcMfcTest(r"D:\auto\pc_install\npp.5.7.Installer.exe")
    drivers = test.find_drivers()
    devdriver = drivers.items()[0]

    target(proj_path=r'D:\auto\buffer\testProject')
    shoot(devdriver=devdriver,
          modelfile=
          r'D:\auto\buffer\testProject\testcase\pc_mfc_excel_usage.xlsx',
          modeltype="pc")
Example #2
0
def shoot_packet_test():
    test = PacketTest()
    drivers = test.find_drivers()
    devdriver = drivers.items()[0]

    target(proj_path=r'D:\auto\buffer\testProject')
    shoot(
        devdriver=devdriver,
        modelfile=r'D:\auto\buffer\testProject\testcase\api_excel_usage.xlsx',
        modeltype="api")
Example #3
0
def shoot_webtest():
    test = WebTest()
    drivers = test.find_drivers()
    devdriver = drivers.items()[0]

    target(proj_path=r'D:\auto\buffer\testProject')
    shoot(
        devdriver=devdriver,
        modelfile=r'D:\auto\buffer\testProject\testcase\web_excel_usage.xlsx',
        modeltype="web")
Example #4
0
def shoot_padtest():
    test = PadTest(
        r'D:\auto\python\app-autoApp\demoProject\apps\ApiDemos\ApiDemos-debug.apk'
    )
    drivers = test.find_drivers()
    devdriver = drivers.items()[0]

    target(proj_path=r'D:\auto\buffer\testProject')
    shoot(
        devdriver=devdriver,
        modelfile=r'D:\auto\buffer\testProject\testcase\pad_excel_usage.xlsx',
        modeltype="pad")
def case_detail(devdriver):
    shoot(devdriver = devdriver,modelfile = r'D:\auto\env\testProject\testcase\web_yaml_usage.yaml',modeltype="web")