Interface automated testing self-study route (book given at the end of the article)

Recently, I have been approached a lot by fresh graduates who are not easy to find a job. They ask me how to learn testing and how to do interface automation. I have compiled a roadmap for interface automation learning. I hope it will be useful to you.

Interface automation requires the ability to code, and there is no system route for learning on the market. Many students who are not computer majors want to switch to software testing and don’t know how to enter the study. At this time, we need to find someone who can get started quickly, and You can learn coding languages ​​​​in actual practice and project work. After learning it, you can learn java, go and other programming languages ​​​​by yourself. Get started first, and then improve, so that you can adapt to changes in the future.

The following are the methods and articles that I refer to in the process of systematically learning Python automation at work, which can quickly help us learn systematically.

Interface automated testing is suitable for

1) Those who have testing foundation and want to switch to functional testing or automated testing

2) I want to fully learn Python automation and quickly invest in children's shoes in actual work.

3) By learning python code, children who need to increase their efficiency at work and get promoted and paid.

4) Learn the python language, go out for job interviews and stock up on skills.

Suggestions before studying:

1) Prepare the pycharm environment in advance. There are many tutorials on Baidu.com

Reference installation:

https://www.runoob.com/w3cnote/pycharm-windows-install.html

2) Installation of fiddler packet capture tool:

https://blog.csdn.net/weixin_48520816/article/details/125205162

3) Installation of python environment

https://www.bilibili.com/read/cv15952084/

4) Prepare a note-taking software: such as Youdao Notes, Evernote, CSDN, etc. Choose the note-taking software according to your own habits and record the knowledge points in the learning process. While sorting out the knowledge points, it can also help with subsequent review. Quickly consolidating knowledge points is a good habit accumulated over a long period of time

Youdao Notes: https://note.youdao.com/

Evernote: https://www.yinxiang.com/

CSDN:https://www.csdn.net/

learning target

1) Understand the learning route of python programming language knowledge points

2) Understand the learning route of using fiddler to capture packets

3) Understand the learning route using the requests module

4) Understand the python interface automation framework: unittest learning route

Basic knowledge of python programming:

Lists, arrays, dictionaries, functions, object-oriented programming, modules, packages, exception handling, file operations, iterators

, standard library concepts

Study address:

https://www.runoob.com/python3/python3-tutorial.html

fiddler:

1) Fiddler’s packet capture

Official link: https://www.telerik.com/fiddler

2) Fiddler configuration-packet capture preparation phase

3) Use of fiddler’s main functions

4) Return message garbled processing

5) Intercept modified returns and simulate http responses

https://blog.csdn.net/weixin_46806288/article/details/124952885?spm=1001.2101.3001.6650.4&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4-124952885-blog-125205162.pc_relevant_aa&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-4-124952885-blog-125205162.pc_relevant_aa&utm_relevant_index=8

Reference links:

https://blog.csdn.net/weixin_48520816/article/details/125205162

requests

1) Installation of python’s requests module

2) get request sent

3) Post request is sent

4) post request data

5) Identify json reference and data parameters

6) session associated interface

7) Add cookies

requests official documentation

Official documentation:

http://cn.python-requests.org/zh_CN/latest/

https://wenku.baidu.com/view/c8ca355a02f69e3143323968011ca300a6c3f6a8.html

Case reference

References to some common website login cases on github:

1. Zhihu:

https://github.com/xchaoinfo/fuck-login/tree/master/001%20zhihu 

2. 126:

https://github.com/xchaoinfo/fuck-login/tree/master/002%20126 

3. Weibo:

https://github.com/xchaoinfo/fuck-login/tree/master/003%20weibo.cn 

4. More others:

https://github.com/xchaoinfo/fuck-login

Introduction to unittest

In addition to unittest, the unit testing framework in python also has a pytest framework.

1. First import unittest 

2. Use the help function to view source code analysis

3. The name of the test case should start with test

picture

Knowledge points

1) Test firmware: setUp(),tearDown()

2) Test suite:

3) Test case execution sequence

4) Affirmation

5) Generation of HTML report

6) Exception catching

7) Data driven

Reference article:

https://blog.csdn.net/m0_70618214/article/details/124954028

test tools:

  • Packet capture tool: Charles, Fiddler

  • Interface testing tool: Postman

  • Test point sorting tool: XMind

  • BUG management tools: ZenTao, Jira

Resource reference:

Postman tool usage video:

https://www.bilibili.com/video/BV1h54y1L7kz?p=71

Finally: The complete software testing video tutorial below has been compiled and uploaded. Friends who need it can get it by themselves [guaranteed 100% free]

Software Testing Interview Document

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Alibaba, Tencent, Byte, etc., and some Byte bosses have given authoritative answers. After finishing this set I believe everyone can find a satisfactory job based on the interview information.

Guess you like

Origin blog.csdn.net/wx17343624830/article/details/132978069