脚本代码如下:(我的HTMLTestRunner已经改成python3.x适用的了,撱用的是python3.5)
from appium import webdriver
import unittest
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep
import HTMLTestRunner
Traceback (most recent call last):
File "C:\Users\zhengtao\AppData\Local\Programs\Python\Python35\lib\unittest\case.py", line 392, in __init__
testMethod = getattr(self, methodName)
AttributeError: 'Dttest' object has no attribute 'test_click1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\appium\workspace\new test\Simple-test.py", line 54, in <module>
suite.addTest(Dttest('test_click1'))
File "C:\Users\zhengtao\AppData\Local\Programs\Python\Python35\lib\unittest\case.py", line 398, in __init__
(self.__class__, methodName))
ValueError: no such test method in <class '__main__.Dttest'>: test_click1