In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
In charge of
This series will systematically introduce the interface testing framework phpunit, written in PHP. Will start from the foundation to the framework design.
The first few sections are theoretical, but the ideas involved are still very important, followed by code practice. Of course, there will be many shortcomings in this series. I hope you will forgive me, support and forward it, and we will try our best to improve it!
The code involved later can be obtained in the following ways (the code will be distributed gradually, don't worry):
1. Click the link to join QQ group 522720170 (available in the share): https://jq.qq.com/?_wv=1027&k=5C08ATe
2. After following this Wechat official account, reply to "Test Gang Diary" in the input box (not in this article)
What is the interface test?
Platitudes of questions, but asked a lot of people, I came into contact with a lot of children's shoes basically do not know what the interface test is to do, and then all kinds of problems are exposed, it is not easy to finish, or look confused.
I have done an audio program in a kick talk show before, so I won't repeat it here. You can listen to it at the following address:
Http://www.lizhi.fm/200893/2522533814197361670
Interface test documentation
No documentation, no testing! Yes, do interface testing must have interface documentation, otherwise very troublesome, although we can grab the bag to see, but will take a lot of detours, the loss outweighs the gain! So interface documentation is required.
What is the interface document? What does it contain? Don't worry, let's take a look at a demo, as follows:
API description: provide the query of the old calendar, which should be avoided every day.
Interface address: http://v.juhe.cn/laohuangli/d
Return format: json/xml
Request method: http get/post
Request example: http://v.juhe.cn/laohuangli/d?date=2014-09-11&key= the KEY you applied for
Did you see that? Basically contains such information on the ok, and then we can write the script of the interface test according to the parameters of the document!
PS: many children's shoes will say that our company does not have interface documentation! What I want to say is that many things in the world are created from scratch, why are some people respected? Because they created things from scratch. So, if you don't have something to create, it will only do you good and no harm to yourself!
That's all for today, let's keep talking next time! If you think it's helpful, don't forget to retweet it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.