Selenium3 + 006+ automated test automation python Overview

Automated Testing Overview

1, automated classification:

(1) unit test automation:

  Test Unit (Unit): simulation of various abnormal scenarios, less external dependencies, and the test unit can do a test method to a minimum.

            Java unit testing framework Junit, TestNG;

            Python unit testing framework Unittest.

(2) Interface Automation

  Test Interface (API): very clear between the scheduling systems and the structure of the system, to know the interface logic.

          Tools Jmeter, Postman, Loadrunner and so on;

(3) web / mobile terminal Automation:

  Page test (GUI): Common black box automated testing, real scene closest to the user, easy to find problems, but to achieve the highest cost and susceptible to external influence dependent script success rate. Common test tools the QTP (commercial for B / S, C / S structure), the Selenium (open, B / S), Appium (open source, C / S) and the like.

 

2, automated test target

(1) Why do automated testing?

  A: 1. improve test efficiency, enhance quality sense of accomplishment 2. 3. Reduce testers testers, saving companies the cost of production monitoring 4. Online

(2) disadvantages

  A: 1. 2. defects can not replace manual testing manual testing found more than automated testing 3. testers higher skill requirements

(3) Mistakes

  A: 1, automated testing completely replace manual testing 2. automated testing certain powerful than manual testing can explore more 3. Automated Bug

3. What projects suitable for automation

(1) function, the page is relatively stable, does not frequently change

(2) more frequent regression testing, verification after each building

(3) software maintenance cycle is long

(4) testers have some programming skills

4. Select the automated testing tools

(1) Selenium Features

  A: Open source, free   

    Multi-Browser Support: Firefox, Chrome, IE, Safari   

    Multi-platform support: linux, windows, MAC

    Multi-language support: Java, Python, Ruby, PHP, Perl, C #, JavaScript

    Document official website: https: //docs.seleniumhq.org/docs/03_webdriver.jsp shown below:

 

 

(2) Compare Selenium WebDriver and tools QTP

A: QTP fully simulate the end-user, exclusive screen, can only open an instance of exclusive (selenium browser in the background, a machine can perform multiple instances)

  QTP only supports IE and Firefox

  QTP can use VBScript scripting, it does not support other languages ​​and external libraries

  QTP supports only Windows

  QTP according to the number of billing, royalty-installation of expensive machine table

  QTP does not support continuous integration

5, ability to learn Selenium tool requirements

答:HTML   CSS   JavaScript

 

6, learning objectives

(1) familiar with the Python programming language

Using (2) Selenium module

(3) xpath Location

(4) Unittest frame

(5) affirmed

(6) logging, the logging module

(7) The data driver

Guess you like

Origin www.cnblogs.com/liunaixu/p/11080010.html