1. Problem description : Cannot import custom class

Wrong content :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

Screenshot :(count.py Files cannot be imported in the same path pub.py Methods )

resolvent 1: Write the import part as :from WebTest.project.pub import add ( Write the path explicitly )

resolvent 2: Get into :File—setting—Bulidout,Excution,Deployment—Console—Python Console Operation as shown in the following figure

Then right click on the item , Operation as shown in the following figure

Selenium+Python Automated test learning problem summary notes for more related articles

  1. selenium + python automated testing unittest Frame learning ( 5、 ... and )webdriver Secondary packaging of

    because webdriver Of api The method is very long. , Plus, most of the positioning methods are based on xpath Way positioning , Make the code look super long , To make the overall code look neat , Yes webdriver encapsulate , The learning materials are from the entomologist <se ...

  2. selenium + python automated testing unittest Frame learning ( Two )

    1.unittest Unit test framework file structure unittest yes python One of the unit testing frameworks ,unittest The main file structure of test framework : File >report >all_case.py &g ...

  3. selenium + python Automatic test environment construction

    selenium + python automated testing —— Environment building About selenium Selenium Is a Web Tools for application testing .Selenium Test runs directly in browser , It's like a real user doing ...

  4. selenium+python automated testing

    F12: Right click   Select replication  path stay selenium+python automated testing ( One )– The environment is being built , Run a test script , The script is as follows : from selenium import webdriver ...

  5. selenium + python automated testing unittest Frame learning ( One )selenium Principle and Application

    unittest Frame learning benefits from the Entomologist's <selenium+python Automation practices > This book , The book is very detailed , You can go and have a look at , I've only learned a little bit and used it in my work , Only by recording what you have learned in your spare time can you be more impressed . ...

  6. Selenium With automated testing —— 《Selenium 2 Automation test practice 》 Reading notes

    background Recently appium, And found out by the way Selenium The frame and the book , It happens that this book also introduces some software testing & Theoretical knowledge of automated testing , So I took it to study . So there is little practical content in this paper , Most of them are concepts and engineering ...

  7. selenium+python Automated test series ( One ): Sign in

    Recently, I took over the project of the mall , For background testing , Function is relatively simple , But there are many processes , It involves cross testing between the front and back . After the first round of testing of the entire project , Considering that the task of regression testing is relatively heavy in the future , In order to reduce the workload of regression testing , So consider backstage ...

  8. 《 Self portrait tutorial 5》Python Automatic test learning ideas

    Premise : Familiar with test business and process whatever Python The premise of automated testing , Must be familiar with the actual test business . Any automation away from the actual test business is a gimmick and meaningless ! The basic flow of testing is basically : Test requirements analysis , Test case design and review , ...

  9. selenium + python Automatic test environment construction

    selenium The in python Platform construction : Build a platform windows The preparation tools are as follows : --------------------------------------------------------- ...

Random recommendation

  1. Software development learning notes &lt; Two &gt; Software development model 、Up、Rup、 agile Up

    Software development process (process) It is a collection of activities needed to transform user requirements into software systems . Software life cycle (SDLC,Software Devlopment Life Cycle) From the birth of software . Be born . grow up . mature ...

  2. ACM Duel

    Duel The time limit :1000 ms  |  Memory limit :65535 KB difficulty :0   describe Topcoder Coming in n I'm a new classmate ,Yougth Plan to put this n The students are divided into two groups , It is required that each person in each group must follow the other group ...

  3. PDF Mending 0.4.2.1013 Beta release : Repair and replace PDF Document fonts, etc

    The new beta fixes a number of issues , It is recommended to download the user update of the old beta version . List of problems fixed : Replace PDF Document fonts may change the font width to 0. Bookmark editor is loading XML The preview of the corresponding document is not displayed when bookmarking . Automatically generate bookmark function after copying text filter ...

  4. sql group by

    group by example Instance of a Data sheet : full name subject fraction Zhang San Chinese language and literature 80 Zhang San mathematics 98 Zhang San English 65 Li Si Chinese language and literature 70 Li Si mathematics 80 Li Si English 90 Expect query results : full name Chinese language and literature mathematics ...

  5. putty Modify encoding

    Right click on the window title , choice Change Settings... Select... On the left side of the open configuration window Appearance, On the right Font settings Inside Change Button , Choose a good Chinese font , such as ...

  6. Nutch

    nutch Plug-in development [ Data collation ]:http://my.oschina.net/cloudcoder/blog/472915 Nutch2.3+Mongodb+ElasticSearch:http:// ...

  7. 【C++ Knowledge aggregation 】 Operator, &amp;amp; Operator overloading

    [ Operator ]         In the operation , Let's say the right bracket, we know which one to calculate first , There are no brackets . Arithmetic operator , Relational operator , Logical operators , An operator . Assignment operator ,++.-- Operators and so on , So many operators . Let's figure out which side first ...

  8. How do you crack and install PS cs6

    As for cracker support , Resource sharing is only better , I believe many children still use it cs5 Look at the version number . Suppose you want to try a new version number PS. But we can't find the serial number of words for a long time . Now? , How do you pay for your serial number and use permanent cracks PS cs6. good ...

  9. 140724 Summer training .txt

    1. Congruence theorem    (a+b)%c==(a%c+b%c)%c    (a*b)%c==[(a%c)*(b%c)]%c          Because some numbers are in int Within the scope of , But the product of two is more than int Range , such ...

  10. Javascript Load execution order

    Main contents of this paper One . In different places script Tag execution order Two .document.ready and window.onload The difference between One . In different places script Tag execution order The whole loading process starts with parsing the header , such as ht ...