[Python automated testing 27] web automated testing theory, environment construction and common operations
1, Foreword
this article will mainly explain the basic theory of Web automated testing in Python, the construction of Webdriver environment and some basic common operations of automated testing. In addition, there is a portal of a series of articles below, which is still being updated. Interested partners can also go to chec ...
Added by moallam on Wed, 09 Mar 2022 10:20:24 +0200
Python + Appium simple 5-step environment
This article mainly introduces how to build Python + Appium Android automatic test environment for Xiaobai. The steps are very simple~
1. python
Step 1 install Python
Forget it, everyone will skip this step~
Then install the required libraries. Because the automation program acts as a client and sends HTTP requests to Appium server, you ne ...
Added by Tim Silva on Mon, 07 Mar 2022 22:36:49 +0200
Continuous integration interface automation - jmeter+ant+jenkins and HTML report extension
ant batch execute Jmeter
1, Environmental preparation
1. JDK environment: Java Downloads | Oracle
2. ANT environment: Apache Ant - Binary Distributions
3,Jmeter: Apache JMeter - Download Apache JMeter
4. Add ant-jmeter-1.1.1. To the extras directory of JMeter Copy the jar package to the lib directory under the ant installation directory
5 ...
Added by sunnyside on Fri, 04 Mar 2022 19:37:54 +0200
Interface automation test -- build Jmeter+Ant+Jenkins + email in win10 system
1, Tool preparation
jmeter5.2.1. Download from the official website: http://jmeter.apache.org/download_jmeter.cgi
ant-1.10.8, download from the official website: https://ant.apache.org/bindownload.cgi
jenkins2.235.1 (windows version), download from the official website: https://www.jenkins.io/download/ (if the network is not good, you may no ...
Added by MuseiKaze on Thu, 03 Mar 2022 18:08:15 +0200
pydantic learning and use ---- use of basemodel
preface
The main way to define objects in pydantic is through models (models inherit BaseModel). pydantic is mainly a parsing library, not a validation library. Verification is a means to achieve the goal: establish a model that conforms to the types and constraints provided. In other words, pydantic guarantees the types and constraints of t ...
Added by Kisses on Wed, 02 Mar 2022 08:46:36 +0200
Three kinds of waiting in selenium
When we are doing WEB automation, we generally have to wait for the page elements to load before we can perform the operation, otherwise we will report the error that the elements cannot be found, which requires us to add the waiting time in some scenarios.
We usually use three waiting methods:
Forced waitingImplicit waitingDisplay wait
1, Fo ...
Added by jej1216 on Tue, 01 Mar 2022 04:26:32 +0200
Maven series of project management - create project, POM file, dependency mechanism, life cycle, custom library, external dependency
Maven series of project management (II)
Create project, POM file, dependency mechanism
Lifecycle, custom libraries, external dependencies
catalogue
1. Create Maven project
1.1. Command line / terminal creation 1.2. Eclipse creation 1.3 Java project transferred to Maven project 2. POM file
2.1 dependence
2.1.1,JUni ...
Added by Illusionist on Thu, 17 Feb 2022 20:56:30 +0200
Selenium has three waiting modes (forced waiting, implicit waiting and display waiting)
1. Forced wait (sleep)
from time import sleep
sleep(3) # Forced wait for 3 seconds
Disadvantages: because the speed of Web loading depends on the hardware, network speed, server response time and other factors. If the waiting time is too long, it is easy to waste time. If the waiting time is too short, it may result in an error when the web ...
Added by r-it on Mon, 14 Feb 2022 13:39:04 +0200
Custom logs and encapsulation of Python automated testing
preface:
In the daily work of software testing, log is a very important module For testing, the main functions of logs are as follows: 1. Commissioning procedure 2. Know whether the system program runs normally 3. Fault analysis and problem location of the system in the west of the city 4. It is used for user behavior analysis and data statist ...
Added by codrgii on Wed, 09 Feb 2022 09:26:46 +0200
How to generate test reports using allure in python automation
The allure test report framework helps you easily realize the "tall up" report display. This article demonstrates how to integrate the allure test framework from 0 to 1 through examples. It focuses on how to integrate allure into the existing automatic test project and how to optimize the display of reports. Allure is very powerful an ...
Added by gareh on Wed, 09 Feb 2022 02:13:06 +0200