Learning Selenium has been one months, a simple summary of the steps to learn, convenient for later memories.
I. Some concepts of automated testing
1. Layered Automated Testing: unit-->service-->ui
2. What kind of project is automated testing: software requirements change infrequently; The project cycle is long; Automated test scripts are reusable
3. How to learn UI Automation test: programming language; Selenium API; Unit Test framework
Two. Test environment setup
1. Install python: Install python, configure environment variables
2. Installing Selenium:pip Install Selenium
3. Browser driver: http://www.testclass.net/selenium_python/selenium3-browser-driver/
Three. Python Basics
1. Output: Print
2. Quotation marks: #; ""; "" "
3.if statement: If ...:
4.for statement: For ...:
5. Lists: List = [+/-]
6. Tuple: Tup = (all in all)
7. Dictionary: Dict = {£ º}
8. Function: Def add (A, B):
9. Classes and methods: Def A (object):
def add (self,a,b):
10. Reference module: Import
11. Exception: Try:
...
Except Exception as msg:
...
Python+selenium+unittest+pageobject Study Record (i)