当前位置:网站首页>"Introduction to interface testing" punch in to learn day07: websocket interface: how to test a completely unfamiliar protocol interface?
"Introduction to interface testing" punch in to learn day07: websocket interface: how to test a completely unfamiliar protocol interface?
2022-07-25 02:30:00 【Field test record】
If you come across a new agreement , You know how to start from scratch , Complete the interface test ?
As a test engineer , We don't need to understand the underlying principles of the Protocol , Just understand how the new protocol transmits data , How to return to the database . in other words , We want to simulate a client to verify the logic of the server , The quickest way to start interface testing is not to look at the protocol documentation , Instead, go directly to the development and implementation of the client code , This is for us , It can solve the problem more directly .
In the face of a strange new agreement ,
1、 The first task of the test engineer : Is to test the correct logic of the interface 、 Whether the wrong logic meets the initial requirements , therefore , We need to quickly master the means of verification .
therefore , We should start from the perspective of solving practical problems , Directly get the calling client code provided by the development engineer , So we can finish the work quickly ; In the subsequent time of completing the work , We can also slowly add basic knowledge . What you need to pay attention to here is , I'm not saying that basic knowledge is not important , But in the process of the project , Learning basic knowledge is often not important to complete the quality assurance of the project .
2、 Use some familiar tools to complete this test
3、 Use the existing tool base to solve WebSocket After the idea of interface testing was broken , I began to seek to write code , solve WebSocket The interface test . ad locum , I still suggest you start with your own technology stack , Find a way to solve the problem .
4、 take WebSocket Interface encapsulated into your framework
From the modified code , Do you feel the charm of the framework better ? It can make the code more concise and readable , take WebSocket The protocol is encapsulated into your framework , You have one that includes HTTP The agreement also includes WebSocket The interface testing framework of the Protocol , As you accumulate new agreements , Your framework will become more and more powerful , Your own secret Arsenal will continue to expand , As you improve it , It will make your interface testing easier , Faster and faster .
Summarize ideas :
The first interface test for a strange protocol , You need to keep your sense of smell sharp , According to their own technical foundation , Solve the problem as soon as possible . Generally speaking , You can quickly complete the test task in three steps :
1、 Leverage development engineers . The first thing you should borrow is a development engineer , But you don't want to get into the kind of... That development engineers give you , Start with technical basis and theory , Then gradually apply the learning context . You want a fatal blow , Just bring his client code , Use it for your own use as much as possible , Turn it into your own interface test code .
2、 Stand on your own technology stack , Complete technology accumulation . If the development engineer's code can't be used , Then you need to stand on your own technology stack and find a solution , This includes both the testing tools you are already familiar with 、 Test platform , It also includes its own testing framework and coding basis .
3、 Fall into the frame . No matter which method you use , After completing the test , You still need to master the corresponding theoretical basis , At the same time, find a way to make this strange interface , Merge into your own framework in a familiar way , Continuously expand the testing ability of their own framework , Constantly enrich your own testing methods .
边栏推荐
- Vite dynamically loads static resource pictures, and fixes the 404 problem of pictures after packaging.
- Easy to master SSO single sign on, see this article
- Industrial control safety PLC firmware reverse II
- When does MySQL use table locks and row locks?
- Case analysis of building exhibition service management system with low code development platform
- When executing SQL query statements in MySQL database, the underlying implementation principle (ultra detailed)
- Automatically create partition tables by time and month in PostgreSQL
- Hbuilderx developed by uni app connects to night God simulator
- Apk packaging process
- Seven text editors that programmers should know are necessary for programming
猜你喜欢

Industrial control safety PLC firmware reverse III

ICO objects in classification
![[C language] program compilation (preprocessing)](/img/94/175a84d89b1f16987e529eb029cbbc.png)
[C language] program compilation (preprocessing)

Jsonp solves cross domain plug-ins (JS, TS)

Cookies and sessions

Today in history: the kotlin language was published for the first time; The father of the IMAP agreement was born; CT imaging achieves a new breakthrough

Using ODBC to consume SAP ABAP CDs view in Excel

Full analysis of new functions of report design tool FastReport online designer v2022.1

Visualization of correlation coefficient matrix

Babbitt | metauniverse daily must read: Dubai launched the national metauniverse strategy, which plans to increase the number of related companies of metauniverse by five times in the next five years
随机推荐
The importance of system to Philosophy Hegel
Easy to master SSO single sign on, see this article
Let's customize the loader
xts performance auto fix script
Insertion of balanced binary tree (AVL tree)
Digital business cloud: how to realize the application value of supplier SRM management system?
Please ask a question: how to set the new table of MySQL CDC 2.2.x to only receive increment
File file name change
Completefuture parallel asynchronous return processing
Anacona has too many environments?? How to view your current environment in jupyter
Guide to the construction of network security testing laboratory - Chapter 1, section 1.5 key terms
Redis unauthorized access vulnerability recurrence (www.hetianlab.com)
Genesis, the world's first "consumption investment" public chain, was invited to participate in consensus 2022
"Ask the sky" is in place! Yu Jingchuan's "China Space Station" in 2013 is about to set sail in the sea of stars
Web vulnerability
My creation anniversary (3rd Anniversary)
Picgo configuring Alibaba cloud OSS
Simulate the implementation of strstr
Using the artifact typora+picgo, Youdao cloud can automatically upload pictures in markdown without members
Freedom and self action Hegel