Python+selenium+unittest+pageobject Study Record (i)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.