当前位置:网站首页>Manual for automatic testing and learning of anti stepping pits, one for each tester
Manual for automatic testing and learning of anti stepping pits, one for each tester
2022-06-24 06:15:00 【Code start】
Learn well the pits you have trodden on in automated testing
- The importance of learning automation
- Automated classification :
- What automation
- Development environment preparation
- Problems encountered in installing third-party libraries ... pit
- Domestic resources
- Download offline
- download Github Code , To install multiple libraries
- When running code, the directory does not have a driver
- Driver does not match browser
- Unittest Cannot generate test report while running code
- Browser driven download
The importance of learning automation
- Skills necessary for salary increase !! Skills necessary for salary increase !! Skills necessary for salary increase !!
- The testing industry is maturing , More and more technical requirements , The demand for enterprise recruitment has increased
Automated classification :
- web automation
- app automation
- Interface automation
- Performance automation
What automation
web automated testing , Web automation testing , By writing a script to simulate people on web Object does the following :
- Element localization
- input data
- single click 、 double-click 、 Scroll bar operation
- Get page data
- Make assertions
- Generate test reports
Development environment preparation
- IDE
Pycharm
sublime
vscode - Python3
-selenium3 - browser
Google browser
Firefox
Other browsers
Browser driven ( Google / Fox drive )
Problems encountered in installing third-party libraries ... pit
- If you are online pip When the installation fails , One solution is : Use domestic resources
Domestic resources
- adopt pip Command direct download , Generally, downloaded resources are stored on foreign servers , Slow download 、 An error is reported during downloading
- Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple/
- Alibaba cloud http://mirrors.aliyun.com/pypi/simple/
- University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
- douban (douban) http://pypi.douban.com/simple/
- University of science and technology of China http://pypi.mirrors.ustc.edu.cn/simple/
- Download instructions :
pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple
Download offline
- First step : Download the required module package :https://pypi.org/project/xlrd/#files
- The second step : Unzip the file
- The third step : Enter the directory in the figure in turn , Catalog bar entry cmd Press enter
- Step four : eject cmd window — Input python setup.py install
- Step five : Wait until the loading is finished

download Github Code , To install multiple libraries

Running code encounters ... pit
When running code, the directory does not have a driver

Python The root directory stores the driver

Driver does not match browser


Unittest Cannot generate test report while running code

- You have to use Python Only the native run mode can generate reports

Browser driven download
- Google browser :https://www.chromedownloads.net/chrome64win/
- Google drives :https://npm.taobao.org/mirrors/chromedriver
firefox
- Firefox :http://ftp.mozilla.org/pub/firefox/releases/
- Fox drive :https://github.com/mozilla/geckodriver/releases
Download the corresponding browser driver
Be careful : The download version number does not need to be exactly the same as the browser version number

If you have learned , Please give me a compliment , If you want to learn , Please join :893694563, There are technical exchanges and resource sharing in the group .
边栏推荐
- Could not read username for xxxxx
- The difference between ArrayList and LinkedList and the principle of using scene locality
- How to recover data by splicing database fragments
- The company is worried about customer frustration and brand damage caused by DDoS Attacks
- What are the domain name registration query tools? What should be paid attention to when registering a domain name
- Why migrate dig to wire
- Architecture: rest and HATEOAS
- The influence of SEO age and the length of external chain retention
- Sub process call - process arrangement in complex O & M scenarios
- Text classification and fine tuning using transformer Bert pre training model
猜你喜欢

Technology is a double-edged sword, which needs to be well kept

One line of keyboard

ServiceStack. Source code analysis of redis (connection and connection pool)

What is the difference between a white box test and a black box test

Solution to the 39th weekly game of acwing
![[fault announcement] one stored procedure brings down the entire database](/img/7c/e5adda73a077fe4b8f04b59d1e0e1e.jpg)
[fault announcement] one stored procedure brings down the entire database

A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing
随机推荐
Playing "honey in snow and ice city" with single chip microcomputer
Enterprise management background user manual
Tencent Youtu presents a number of AI technologies at the 2021 global digital economy conference
Tencent security release data security compliance capability map
Text classification and fine tuning using transformer Bert pre training model
How to record the domain name reliably? What are the consequences of not filing a domain name?
Member management system PC side building tutorial (I)
At the beginning of the school season, use this template to improve the management level
How to recover data by splicing database fragments
NoClassDefFoundError and classnotfoundexception exceptions
How to use the domain name? What domain name should be selected to purchase
Typora software installation
Network review
Analysis of official template of wechat personnel recruitment management system (I)
Sub process call - process arrangement in complex O & M scenarios
An indoor high-end router with an external cable bundle limiting mechanism
How to select cloud game platforms? Just pay attention to two points
A high-end router antenna connection mechanism that can simultaneously deploy and store antennas
25 classic selenium automated interview questions, collect them quickly
Differences between JSON objects and JSON strings