Be familiar with the four methods of POST data submission, and the interface test is more efficient
catalogue
preface
1, application/x-www-form-urlencoded
2, Multipart / form data
3, application/json
4, text/xml
Finally, if you want to get the above code, you can get it according to the contact information below (including Baidu online disk link and Alibaba cloud disk link).
We all know that POST is generally used to submit data to th ...
Posted by plutoplanet on Thu, 09 Dec 2021 02:06:24 +0100
A little trick makes it easy for Selenium to deal with scrollbars and element focus
01 JS processing scroll bar
Execute via webdriver_ The script () method executes the JS script operation scroll bar
Right scroll bar
Firefox browser and Chrome browser use different syntax. It is listed in the following area. It looks like Google browser 71 general Firefox
# Firefox browser scrolls to the bottom
js = "var q=document.docum ...
Posted by Retired Bill on Wed, 08 Dec 2021 05:07:42 +0100
Gao fushuai in unit testing, Pytest framework, hand-in-hand teaching, high-order usage practice
1, Front back approach in xunit style
1. Pre post method of function use case
Use cases are defined in the form of functions in the module, which can be defined through setup_function and teardown_function to define the pre and post methods of function use cases. The use cases are as follows:
def setup_function(function):
print("Functi ...
Posted by jordanwb on Fri, 03 Dec 2021 17:33:48 +0100
[untitled] touch screen operation automation of mobile App automation
This article is excerpted from the internal textbook of Hogwarts Testing Institute
At work, we often need to perform gesture operations on the application page, such as sliding, long pressing, dragging, etc. AppiumDriver provides us with an auxiliary class to simulate gesture operations TouchAction, you can use it to gesture on the mobile ph ...
Posted by KDesigns on Fri, 19 Nov 2021 07:11:39 +0100
How to do automated testing if you can't program
preface
Testers who can test and understand programming are still scarce, and most organizations may not invest in this aspect. Therefore, let ordinary test engineers simply learn to carry out automated testing, which is still in market demand.
Before, I was confused that ordinary test engineers could not deeply participate in the case prep ...
Posted by dpsd on Wed, 10 Nov 2021 19:32:40 +0100
Easy to use motion control card: IO configuration and zero return motion
Today, positive motion technology will share with you how ECI3808 of motion control card uses C + + to write controller zero return motion and configure IO accordingly.
1, ECI3808 hardware introduction
1. Function introduction
ECI3808 series control card supports up to 12 axis linear interpolation, arbitrary arc interpolation, spatial arc in ...
Posted by unclebob on Mon, 08 Nov 2021 10:26:02 +0100
Docker builds Jenkins continuous integration automation building environment
1. Docker image pull Jenkins environment command
docker pull jenkins/jenkins:lts
View the drop-down image
docker images
2. Building Jenkins containers through container orchestration
Create corresponding directory
# Create corresponding directory
mkdir -p /data/jenkins/jenkins_home/
chown -R 1000:1000 /data/jenkins/jenkins_home/
+ data
- do ...
Posted by adnanhb on Thu, 04 Nov 2021 01:44:08 +0100
Phased summary of shell programming + several shell script examples
I've been learning shell for some time. I've sorted out some basic shell syntax before. Today I'll make a phased summary. In addition, there are several script examples for your reference.
Summary brain map
Script instance
1. Judge whether the two hosts are ping ed
#!/bin/env bash
#This script is used to deter ...
Posted by fangfang on Sat, 11 Sep 2021 06:31:41 +0200