zoukankan      html  css  js  c++  java
  • 解决:TypeError: object() takes no parameters

    运行测试用例时发现以下报错

    Ran 1 test in 22.505s
    
    FAILED (errors=1)
    
    Error
    Traceback (most recent call last):
      File "D:Programpython34libunittestcase.py", line 58, in testPartExecutor
        yield
      File "D:Programpython34libunittestcase.py", line 580, in run
        testMethod()
      File "D:python_workshopappium_frameworkTestCases	est_login.py", line 37, in test_login_success
        LoginPage(self.driver).input_phoneNumber("1868XXXX553")
    TypeError: object() takes no parameters

    真是醉了:def __init__函数写错了,

    改过来就好了

  • 相关阅读:
    socketserver模块
    socketserver密文测试
    Less11-Less12
    Less-5-03
    google语法
    Nmap
    01真的很简单
    kali linux 安装后的必要修改
    SQLMap-02
    SQLMap-01
  • 原文地址:https://www.cnblogs.com/my_captain/p/9393363.html
Copyright © 2011-2022 走看看