当前位置:网站首页>Test Development - ten years of sharpening one sword (VII) interface test tool postman
Test Development - ten years of sharpening one sword (VII) interface test tool postman
2022-06-29 05:58:00 【A funny teacher who makes up stories】
Before contact interface test , I used a tool called Fiddler, It's a very good Web Debugging tools , It can record all client and server's http and https request , Allow you to monitor , To set breakpoints , Even modify input and output data . For example, you monitor Baidu's search interface , Set breakpoints before sending the request , Modify the contents of the query parameters when the breakpoint takes effect , Then send the request , The returned response is the search result for the modified content .
It took a while HttpClient after , The code doesn't want to be maintained , So I learned to use PostMan and JMeter Used for interface testing .
PostMan Used to be Google Chrome A powerful plug-in for , Later, it became an independent client , The function is also more powerful and perfect , Newer versions of UI Here's the picture .

PostMan The primary use of is also very simple :
1. In the figure Post Location , selection http Request type , frequently-used Post,Put,Get etc. .
2. URL, Generally, only fixed url, Parameters are not included , Of course, you can also fill in , But there is no next item Params clear .
3. Params, To configure URL Parameter information in , Please refer to Baidu search results page for details URL, It will contain the search content you entered ;
4. Authorization, If the interface needs authentication , You need to fill in the corresponding parameters ;
5. Header, Requested header Content , There are default parameters , You can also modify , Or add custom header;
6. Body, Request incoming data , It's usually json Format .
7. Pre-request, A simple code base is needed here to begin , The script can dynamically set the parameters of this request or other custom operations .
8. Tests, Assertions can be added to this script , Judge whether the response is correct , Eliminate the steps of human verification .
above , yes PostMan The basic application of the newer version , Then click execute , Just view the response results .
Of course , From its UI You can see the function module icon on the left ,PostMan My ambition is still great , such as Mock Service Can provide the server Mock function , Provide interface instead of uncompleted function , For testing ;Monitor Provide detection function , It can reflect interface performance index, etc .
PostMan I don't use much , Just verify the interface functionality , Don't make a fool of yourself about other functions .
边栏推荐
- Sum of digits under k-ary representation of leetcode simple problem
- 51 lines of code, self-made TX to MySQL software!
- Servlet version conflict causes page 404
- Implementation of queue
- 2,5-di (3,4-dicarboxyphenoxy) - 4 '- phenylethynylbiphenyldianhydride (pephqda) / Qiyue custom supply porphyrin modified amphiphilic block copolymer peg113-pcl46-porphyrin
- 5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin ((tdmpp) H2) /2-nitro-5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin copper (no2tdmpp) Cu) supplied by Qiyue
- Rich material libraries make modeling easy and efficient for developers
- Manual (functional) test 1
- 嵌入式RTOS
- Tcapulusdb Jun · industry news collection (V)
猜你喜欢

Research Report on the new energy industry of recommended power equipment in 2022 industry development prospect market investment analysis (the attachment is a link to the network disk, and the report

Introduction to Photoshop (the first case)

5,10-di (4-aminophenyl) - 15,20-diphenylporphyrin (cis-dadph2) /5,15-di (4-aminophenyl) - 10,20-diphenylporphyrin (trans-dadph2) / (tri-apph2) supplied by Qiyue

Purple red solid meso tetra (o-alkoxyphenyl) porphyrin cobalt (meso-t (2-rop) PCO) / tetra (n, n-diphenyl-p-amino) phenyl porphyrin (tdpatph2)
![Meso tetra (4-N, N, n-trimethylaminophenyl) porphyrin (ttmapp) /meso tetra - [4- (BOC threonine) aminophenyl] porphyrin (TAPP thr BOC) supplied by Qiyue](/img/a9/0869c4f39a96cff63d1e310292c46d.jpg)
Meso tetra (4-N, N, n-trimethylaminophenyl) porphyrin (ttmapp) /meso tetra - [4- (BOC threonine) aminophenyl] porphyrin (TAPP thr BOC) supplied by Qiyue

Conditional test, if and case conditional test statements of shell script

ES6 Modularization: export /import

2022 recommended prefabricated construction industry research report industry development prospect market analysis white paper (the attachment is a link to the network disk, and the report is continuo

Analysis report on the investment market of the development planning prospect of the recommended rare earth industry research industry in 2022 (the attachment is a link to the online disk, and the rep

Blip: conduct multimodal pre training with cleaner and more diverse data, and the performance exceeds clip! Open source code
随机推荐
Use typescript compiler parameter 'skiplibcheck' - usage of the typescript compiler argument'skiplibcheck'
JIRA basic usage sharing
Creation of Arduino uno development environment
Pytest (7) -yield and termination function
Alphacode made its debut! The programming version of "Alpha dog" competed quietly and defeated half of the programmers
Devops development, operation and maintenance Basics: using Jenkins to automatically build projects and notify by email
In 2022, I haven't found a job yet. I have been unemployed for more than one year. What is the "old tester" for eight years?
Can redis implement hot standby?
Go compile source code (window environment)
Personal blog item: processing of reading number +1 after viewing article details
How does MySQL implement distributed locks?
Why can't the article be posted?
What has urbanization brought to our mental health and behavior?
2022 recommended trend toy blind box industry research report industry development prospect market analysis white paper (the attachment is a link to the network disk, and the report is continuously up
Leetcode theme [array] -217- there are duplicate elements
2022 recommended tire industry research report industry development prospect market analysis white paper
2022 community group buying industry research industry development planning prospect investment market analysis report (the attachment is the online disk link, and the report is continuously updated)
Kubernetes backup disaster recovery service product experience tutorial
Is it safe to open a securities account? Is there any danger
2-nitro-5,10,15,20-tetra (3,5-dimethoxyphenyl) porphyrin (no2tdmpp) H2) /5,10,15,20-tetra (4-methylphenyl) porphyrin (TMPP) H2) Qiyue porphyrin products