当前位置:网站首页>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 .
边栏推荐
- Architecture: rest and HATEOAS
- At the trusted cloud conference, Tencent securely unlocked a number of new certifications!
- Typora software installation
- What are the common network protocols
- How to bind the most formal domain name? What are the precautions for binding domain names?
- Micro build low code supports Excel to import data source
- A plate processing device of network separator which can adapt to different line port positions
- The influence of SEO age and the length of external chain retention
- Malicious software packages are found in pypi code base. Tencent security threat intelligence has been included. Experts remind coders to be careful of supply chain attacks
- An indoor high-end router with an external cable bundle limiting mechanism
猜你喜欢

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

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

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

One line of keyboard

A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing

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
随机推荐
Cloud studio 2.0: the beginning of cloud
A network box that can adjust the outlet according to the router antenna position
Analysis of official template of wechat personnel recruitment management system (II)
How do I view the IP address of a domain name? What is the relationship between domain name and IP?
Analysis of official template of wechat personnel recruitment management system (I)
At the beginning of the school season, use this template to improve the management level
Coding and codesign: make design and development easier
My two-year persistence is worth it!
The difference between ArrayList and LinkedList and the principle of using scene locality
Discussion on NFT Technology
Smart Logistics: with the advent of aiot era, how to get through the "last mile" of logistics?
Less network card filters
Is the prospect of cloud computing in the security industry worth being optimistic about?
CLB unable to access / access timeout troubleshooting
EEG microstate as a continuous phenomenon
Could not read username for xxxxx
Flutter layout Basics - page navigation and return
How to bind the most formal domain name? What are the precautions for binding domain names?
Confirm the importance of requirements at the initial stage of EDI project
Analysis of official template of wechat personnel recruitment management system (III)