当前位置:网站首页>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 .
边栏推荐
- A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing
- What are the common network protocols
- Overview of related concepts of social network analysis
- At the trusted cloud conference, Tencent securely unlocked a number of new certifications!
- Spirit information development log (3)
- Tencent security monthly report - Tencent security has been selected into several authoritative research reports, a data security special committee has been established, and zero trust specifications
- How to buy a domain name? How to do a good job in website construction?
- SQL server memory management on cloud
- The joint network security laboratory of runlian technology and Tencent security was officially unveiled
- Could not read username for xxxxx
猜你喜欢

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

A cigarette of time to talk with you about how novices transform from functional testing to advanced automated testing
![[fault announcement] one stored procedure brings down the entire database](/img/7c/e5adda73a077fe4b8f04b59d1e0e1e.jpg)
[fault announcement] one stored procedure brings down the entire database

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
随机推荐
Easycvr is cascaded to easygbs through gb28181 protocol. Notes on video channel failure
text classification with RNN
Excellent tech sharing | research and application of Tencent excellent map in weak surveillance target location
MySQL series tutorial (I) getting to know MySQL
Continuously evolving cloud native application delivery
Detailed explanation of IPv6 theory and concept
Interpretation of Cocos creator source code: siblingindex and zindex
Water conservancy RTU telemetry terminal
The influence of TLS protocol and cipher on remote RDP
Feign request return value inverse sequence localdatetime exception record
Why do the new generation of highly concurrent programming languages like go and rust hate shared memory?
What is the difference between a white box test and a black box test
Risc-v instruction set explanation (4) R-type integer register register instruction
Architecture: rest and HATEOAS
The influence of SEO age and the length of external chain retention
5 minutes, online from 0 to 1!
Small programs import Excel data in batches, and cloud development database exports CVS garbled code solution
Confirm the importance of requirements at the initial stage of EDI project
Domain name, resolution, SSL certificate product selection
How to apply for a domain name? How much does it cost to apply for a domain name?