zoukankan      html  css  js  c++  java
  • Selenium+Python自动化测试学习问题总结笔记

    1.问题描述:不能导入自定义类

      错误内容:This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items

      截图:(count.py文件不能导入在相同路径下的pub.py的方法)

      解决方法1:将导入部分写成:from WebTest.project.pub import add (将路径明确写入)

      解决方法2:进入:File—setting—Bulidout,Excution,Deployment—Console—Python Console 如下图操作

     

     之后右击项目,如下图操作

     

     

  • 相关阅读:
    软件对标分析
    alpha内测版发布
    第一阶段项目评审
    第一阶段意见汇总
    冲刺(二十)
    冲刺(十九)
    冲刺(十八)
    冲刺(十七)
    冲刺(十六)
    冲刺(十五)
  • 原文地址:https://www.cnblogs.com/yunfang/p/10676519.html
Copyright © 2011-2022 走看看