CN113010411A - Method and system for returning data based on mock service and simulation test method - Google Patents

Method and system for returning data based on mock service and simulation test method Download PDF

Info

Publication number
CN113010411A
CN113010411A CN202011468799.9A CN202011468799A CN113010411A CN 113010411 A CN113010411 A CN 113010411A CN 202011468799 A CN202011468799 A CN 202011468799A CN 113010411 A CN113010411 A CN 113010411A
Authority
CN
China
Prior art keywords
data
simulation
service
mock
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011468799.9A
Other languages
Chinese (zh)
Other versions
CN113010411B (en
Inventor
孙伟颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudwise Beijing Technology Co Ltd
Original Assignee
Cloudwise Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloudwise Beijing Technology Co Ltd filed Critical Cloudwise Beijing Technology Co Ltd
Priority to CN202011468799.9A priority Critical patent/CN113010411B/en
Publication of CN113010411A publication Critical patent/CN113010411A/en
Application granted granted Critical
Publication of CN113010411B publication Critical patent/CN113010411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method and a system for returning data based on mock service and a simulation test method. After receiving a request, a simulation data generation interface provided by the MockServer acquires parameters type, taskId and monitorId in url, acquires a specified type template through the type, acquires corresponding monitoring point excel file content through the monitorId, acquires the next line of data in the template each time according to the request times, and if the last line of data is reached, the next line of data is circulated from the first line, and the data is written into the type template and returned as interface response data. Therefore, by returning data, the acquisition of related data can be carried out only by modifying the url of the request and the corresponding simulation data template file without a real data source, so that the tested system not only stabilizes the test scene but also stabilizes the test data, the tested system can test by only paying attention to the logic of the tested system, the environmental dependence is reduced, the dependence of testers on the data source is solved, the test quality is greatly ensured, and the test efficiency is improved.

Description

Method and system for returning data based on mock service and simulation test method
Technical Field
The invention belongs to the field of software testing, and particularly relates to a method and a system for returning data according to a preset rule based on mock service and a method for performing simulation testing according to the method and the system, which are mainly used for software performance testing.
Background
In the software testing process, on one hand, because the existing testing method has strong dependence on the accuracy of the real data acquired by the monitoring point, a tester needs to verify the accuracy of the real data acquired by the monitoring point, but according to the prior art, the tester often cannot verify the accuracy of the data of the real data acquired by the monitoring point, which causes the problem that the existing testing method has insufficient accuracy; on the other hand, because the product iteration speed is high, in the process of fast product iteration, according to the prior art, a tester needs to comprehensively cover all preset test scenes, but the test scenes are often difficult to realize.
In summary, there is a need for a technique that can reduce the dependency of the tester on the data source and further improve the testing efficiency during the software testing process.
Disclosure of Invention
In order to solve the above problems of the prior art, in one aspect, the present invention provides a method for returning data according to a predetermined rule based on a mock service, which can obtain simulated data corresponding to real data in a case where the real data cannot be obtained or is difficult to obtain.
In order to achieve the purpose, the invention adopts the main technical scheme that:
a method for returning data according to a preset rule based on mock service comprises the following steps:
s3, after receiving a request, obtaining parameters of type, taskId and monitorId in url by a simulation data generation interface provided by MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return.
By means of the scheme, the method for returning data according to the preset rule based on the mock service can obtain the corresponding simulation data for use under the condition that the real source data cannot be obtained or is difficult to obtain. For example, in a test, it may be difficult to obtain stable real source data, at this time, the acquisition of related data can be performed by only modifying the url of the request and the corresponding simulation data template file without the premise of a real data source, and the test can be performed by only paying attention to the logic of the system under test, so that the environmental dependence is reduced, especially the dependence of the tester on the data source is reduced, and the test efficiency is further improved.
The method for returning data according to the predetermined rule based on the mock service according to the embodiment of the present invention further includes, before step S3:
s1, configuring a simulation monitoring point, namely a simulation data generation interface provided by a MockServer, in the monitoring point background for calling the tested service;
and S2, setting a monitoring point of the task and a task scheduling frequency, and accessing the analog data generation interface provided by the MockServer by the back-end scheduling service according to the frequency.
The method for returning data according to the predetermined rule based on the mock service according to the embodiment of the present invention further includes, after step S3, the steps of:
and S4, after receiving the data returned by the simulation monitoring point, the scheduling service stores the data into the database and provides the processed data for the front end to use.
The method for returning data according to the predetermined rule based on the mock service according to the embodiment of the present invention further includes, before step S1: and S0, designing a test scene in advance.
The method for returning data according to the predetermined rule based on the mock service according to the embodiment of the present invention further includes, after step S4, the steps of: and S5, carrying out data accuracy test according to the simulation data.
On the other hand, the invention also provides a system for returning data according to a preset rule based on the mock service, which can obtain the corresponding simulation data under the condition that the real data cannot be obtained or is difficult to obtain.
In order to achieve the purpose, the invention adopts the main technical scheme that:
a system for returning data according to a predetermined rule based on mock service, comprising:
the analog data interface generating module is used for generating an analog data interface;
and the return data generation module is used for generating return data.
By means of the scheme, the system for returning data according to the preset rule based on the mock service can obtain the corresponding simulation data for use under the condition that the real source data cannot be obtained or is difficult to obtain. For example, in a test, it may be difficult to obtain stable real source data, at this time, the acquisition of related data can be performed by only modifying the url of the request and the corresponding simulation data template file without the premise of a real data source, and the test can be performed by only paying attention to the logic of the system under test, so that the environmental dependence is reduced, especially the dependence of the tester on the data source is reduced, and the test efficiency is further improved.
The system for returning data according to the preset rule based on mock service of one embodiment of the invention comprises a return data generation module and a return data generation module, wherein the return data generation module comprises: and the parameter acquisition submodule is used for acquiring the parameter type, taskId and monitorId in the url.
The system for returning data according to the preset rule based on mock service of one embodiment of the invention comprises a return data generation module and a return data generation module, wherein the return data generation module comprises: and the file analysis submodule is used for analyzing the interface xls description file.
The system for returning data according to the predetermined rule based on the mock service of one embodiment of the invention further comprises: and the analog data interface scheduling module is used for calling the analog data interface.
The system for returning data according to the predetermined rule based on the mock service of one embodiment of the invention further comprises: and the analog monitoring point configuration module is used for configuring analog monitoring points.
The system for returning data according to the predetermined rule based on the mock service of one embodiment of the invention further comprises: and the task setting module is used for setting monitoring points and task scheduling frequency of the tasks.
On the other hand, the invention also provides a mock service-based simulation test method, which can only focus on the logic of the tested system, reduce the environmental dependence, especially reduce the dependence of the tester on the data source, and further improve the test efficiency.
In order to achieve the purpose, the invention adopts the main technical scheme that:
a method for carrying out simulation test based on mock service comprises the steps of starting an http port on a server, receiving data of a service to be tested, dynamically obtaining related files stored in the local according to parameters uploaded by the service to be tested, converting file contents according to a preset rule to generate return data of a corresponding interface, returning the return data to the service to be tested, and carrying out test according to the return data.
By means of the scheme, the mock-based simulation test method can collect related data by only modifying the url of the request and the corresponding simulation data template file without the premise of a real data source, and a tested system can test by only paying attention to the logic of the tested system, so that the environmental dependence is reduced, particularly the dependence of a tester on the data source is reduced, and the test efficiency is improved.
The mock-based simulation test method in one embodiment of the invention comprises the steps of obtaining parameters of type, taskId and monitorId in url, obtaining a template of a specified type through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the number of requests, and if the last line is reached, circulating all the time from the first line, writing the data into the type template as interface response data and returning the data.
The mock service-based simulation test method of one embodiment of the invention comprises the following steps:
s3, after receiving a request, obtaining parameters of type, taskId and monitorId in url by a simulation data generation interface provided by MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return.
Drawings
Fig. 1 is a schematic main flow chart of a method for returning data according to a predetermined rule based on a mock service according to an embodiment of the present invention;
fig. 2 is a schematic main flow chart of a method for returning data according to a predetermined rule based on a mock service according to another embodiment of the present invention;
fig. 3 is a schematic main flow chart of a method for returning data according to a predetermined rule based on a mock service according to another embodiment of the present invention;
fig. 4 is a schematic main flow chart of a method for returning data according to a predetermined rule based on a mock service according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a system for returning data according to a predetermined rule based on a mock service according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a type template file in an application example of the present invention;
FIG. 7 is a diagram illustrating the contents of an excel file (the first type template file in FIG. 6, with the file name "51. xlsx") in an application example of the present invention;
fig. 8 is a schematic diagram of the contents of a message template in an application example of the present invention (a sixth type template file in fig. 6, the file name is "http.txt");
fig. 9 is a schematic content diagram of an excel parameter file in the application example of fig. 8.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, a method for returning data according to a predetermined rule based on a mock service according to an embodiment of the present invention includes the following steps:
s3, after receiving a request, obtaining parameters of type, taskId and monitorId in url by a simulation data generation interface provided by MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return.
By means of the scheme, the method for returning data according to the preset rule based on mock service can acquire related data by only modifying the url of the request and the corresponding simulation data template file under the condition that real source data cannot be acquired or is difficult to acquire, acquire the corresponding simulation data, and provide stable test data for use on the premise that a real data source is not used.
Referring to fig. 2, a method for returning data according to a predetermined rule based on a mock service according to a preferred embodiment of the present invention comprises the following steps:
s1, configuring a simulation monitoring point, namely a simulation data generation interface provided by a MockServer, in the monitoring point background for calling the tested service;
s2, setting a monitoring point and a task scheduling frequency of a task, and using the monitoring point and the task scheduling frequency to access an analog data generation interface provided by a MockServer according to the frequency by a back-end scheduling service;
s3, after receiving a request, obtaining parameters of type, taskId and monitorId in url by a simulation data generation interface provided by MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return.
Referring to fig. 3, a method for returning data according to a predetermined rule based on a mock service according to an embodiment of the present invention includes the following steps:
s0, designing a test scene in advance;
s1, configuring a simulation monitoring point, namely a simulation data generation interface provided by a MockServer, in the monitoring point background for calling the tested service;
s2, setting a monitoring point and a task scheduling frequency of a task, and using the monitoring point and the task scheduling frequency to access an analog data generation interface provided by a MockServer according to the frequency by a back-end scheduling service;
s3, after receiving a request, obtaining parameter type, taskId and monitorId in url by a simulation data generation interface provided by a MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return;
and S4, after receiving the data returned by the simulation monitoring point, the scheduling service stores the data into the database and provides the processed data for the front end to use.
Therefore, testers can test the data accuracy according to the simulation data, and meanwhile, the test scenes which are designed in advance in the iterative test process at each time can be guaranteed to be covered, so that the test efficiency is improved to a great extent.
Referring to fig. 4, a method for returning data according to a predetermined rule based on a mock service according to an embodiment of the present invention includes the following steps:
configuring simulation monitoring points, namely a simulation data generation interface provided by a MockServer, at a monitoring point background of a front-end page;
selecting a simulation monitoring point by a task;
scheduling according to the assigned frequency of the task by the scheduling service, and calling an analog data generation interface provided by the MockServer;
the MockServer application provides a simulation data generation interface according to task scheduling, analyzes the simulation data to generate an interface xls description file (namely an excel file), generates mock data (namely simulation data) and returns the mock data;
and scheduling according to the assigned frequency of the tasks by the scheduling service to obtain mock data returned by the analog monitoring points.
In any of the above embodiments, the specified type template may be the type template shown in fig. 6.
In any of the above embodiments, the monitoring point excel file may be the excel file shown in fig. 7.
As shown in fig. 5, the present invention further provides an embodiment of a system for returning data according to a predetermined rule based on a mock service, including:
the analog data interface generating module is used for generating an analog data interface;
and the return data generation module is used for generating return data.
Preferably, the return data generating module includes: and the parameter acquisition submodule is used for acquiring the parameter type, taskId and monitorId in the url.
Preferably, the return data generating module includes: and the file analysis submodule is used for analyzing the interface xls description file.
Preferably, it also includes: and the analog data interface scheduling module is used for calling the analog data interface.
Preferably, it also includes: and the analog monitoring point configuration module is used for configuring analog monitoring points.
Preferably, it also includes: and the task setting module is used for setting monitoring points and task scheduling frequency of the tasks.
Referring to fig. 8 and fig. 9, an application example of simulating http data according to the present invention includes the following specific embodiments:
1. a test scene is designed in advance:
1) newly building an http type task, wherein the task id is 708620;
2) designing an http type request message template as follows:
{“task_id”:”708620”,”host”:”www.taobao.com”,”database”:null,”table”:null,”database_code”:null,”table_info”:null,”packets”:”0”,”task_type”:”http”,”retry”:”1”,”time_out”:n ull,”uid”:”284415”,”ts”:”1550719304”,”ed”:”enterprise”, ”need_file”:true,”used_monitor_id”:51};
3) designing an http type return value template, http.
2. And configuring a simulation monitoring point on a monitoring point background, namely a simulation data generation interface provided by the MockServer, and calling the tested service:
setting 51 monitoring point addresses to be as follows:
http://localhost:9999/monitor/http/708620/51。
3. setting monitoring points and task scheduling frequency of tasks, and accessing the rear-end scheduling service according to the frequency:
1) set the monitoring point of task 708620 to 51 at the front end;
2) set the task scheduling frequency to 2 minutes.
4. After receiving a request, a simulation data generation interface provided by the MockServer acquires parameters type, taskId and monitorId in url, acquires a specified type template through type, acquires corresponding excel file content of a monitoring point through monitorId, acquires the next line of data in the template each time according to the request times, and if the last line of data is reached, the next line of data is circulated from the first line, and the data is written into the type template as interface response data to be returned:
1) back-end dispatch service request:
http://10.0.1.24:9000/monitor/http/708620/51;
2) finding a message template according to task _ type ═ http, wherein the content of the template is shown in fig. 8;
3) find the parameter file 51.xlsx according to task _ id 708620, see fig. 9 for the file content;
4) circularly reading each row of data in the worksheet, replacing resp _ result, resp _ status and resp _ time in the http type template with data in excel, and returning as an interface response;
5) returning the replaced content of the http template, replacing resp _ result, resp _ status and resp _ time in the template with the data in the parameter file, and returning the data content as follows:
firstly, request return: { "resp _ result": 1"," resp _ status ": 200 OK", "resp _ time":221.569, "resp _ err": 0"," extended ": {" url ": http: \\/\ 120.26.48.181 \ product/", "content _ type": text \ html;
charset=utf-8","http_code":200,"header_size":330,"request_size":323,"fil etime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":221.569,"n amelookup_time":0.012,"connect_time":37.245,"pretransfer_time":37.28 6,"size_upload":0,"size_download":8387,"speed_download":37844,"spee d_upload":0,"download_content_length":-1,"upload_content_length":-1," starttransfer_time":186.574,"redirect_time":0,"certinfo":[],"primary_ip":" 120.26.48.181","primary_port":80,"local_ip":"192.168.1.7","local_port": 49177,"redirect_url":"","http_code_desc":"OK","req_headers":[],"req_me thod":"GET","req_httpv":"1.1","ip":"120.26.48.181","resp_httpv":"1.1"," resp_headers":{"Date":"Tue,03Jul 2018 17:37:40 GMT","Server":"Apache\/2.2.21(Win32) PHP\/5.3.10","X-Powered-By":"ThinkPHP","Expires":"Thu,19Nov 1981 08:52:00
GMT","Cache-Control":"private","Pragma":"no-cache","Transfer-Encodi ng":"chunked","Content-Type":"text\/html;
charset=utf-8","Set-Cookie":"PHPSESSID=6d8ls1ej362onm0d0ls9m827l 0;path=\/"}}}
secondly, request return: { "resp _ result": 1"," resp _ status ": 200 OK", "resp _ time":224.449, "resp _ err": 0"," extended ": {" url ": http: \\/\ 120.26.48.181 \ product/", "content _ type": text \ html;
charset=utf-8","http_code":200,"header_size":330,"request_size":323,"fil etime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":221.569,"n amelookup_time":0.012,"connect_time":37.245,"pretransfer_time":37.28 6,"size_upload":0,"size_download":8387,"speed_download":37844,"spee d_upload":0,"download_content_length":-1,"upload_content_length":-1," starttransfer_time":186.574,"redirect_time":0,"certinfo":[],"primary_ip":" 120.26.48.181","primary_port":80,"local_ip":"192.168.1.7","local_port": 49177,"redirect_url":"","http_code_desc":"OK","req_headers":[],"req_me thod":"GET","req_httpv":"1.1","ip":"120.26.48.181","resp_httpv":"1.1"," resp_headers":{"Date":"Tue,03Jul 2018 17:37:40 GMT","Server":"Apache\/2.2.21(Win32) PHP\/5.3.10","X-Powered-By":"ThinkPHP","Expires":"Thu,19Nov 1981 08:52:00
GMT","Cache-Control":"private","Pragma":"no-cache","Transfer-Encoding":"chunked","Content-Type":"text\/html;
charset=utf-8","Set-Cookie":"PHPSESSID=6d8ls1ej362onm0d0ls9m827l 0;path=\/"}}}。
5. after receiving the data returned by the simulation monitoring point, the scheduling service stores the data into the database and provides the processed data for the front end to use:
1) the front end checks the data with task id 708620;
2) the data scheduled for the first time is shown as: the task state is normal, the response time is 221.569ms, and the task state code is 200;
3) the data for the second schedule is shown as: task state [ Normal ], response time
224.449ms, task state code 200.
In the application of the invention in simulating ping data/ftp data, the process is the same as the http data simulation process, and the details are not repeated here.
In summary, the method and system for returning data according to the predetermined rule based on mock service of the present invention can receive the data of the tested service by starting an http port on the server, dynamically obtain the related files stored in the local according to the parameters uploaded by the tested service, convert the file content according to the predetermined rule to generate the return data of the corresponding interface, and return the return data to the tested service, so that the test can be performed without a real monitoring point. The method comprises the steps of obtaining a template of a specified type through obtaining parameters type, taskId and monitorId in url, obtaining corresponding monitoring point excel file content through the monitorId, obtaining next line data in the template each time according to the number of requests, circulating from the first line if the last line is reached, and writing the data into the type template as interface response data to return. Therefore, through actual test verification, the invention can collect related data only by modifying the requested url and the corresponding simulation data template file without the premise of a real data source, so that the tested system not only stabilizes the test scene, but also stabilizes the test data, the tested system can test by only paying attention to the logic of the tested system, the environmental dependence is reduced, the dependence of a tester on the data source is solved, the test quality is greatly ensured, and the test efficiency is improved.

Claims (10)

1. A method for returning data according to a preset rule based on mock service comprises the following steps:
s3, after receiving a request, obtaining parameters of type, taskId and monitorId in url by a simulation data generation interface provided by MockServer, obtaining a specified type template through the type, obtaining corresponding excel file content of a monitoring point through the monitorId, obtaining next line of data in the template each time according to the request times, if the last line is reached, circulating all the time from the first line, and writing the data into the type template as interface response data to return.
2. The method for returning data according to the predetermined rule based on mock service according to claim 1, wherein the step S3 is preceded by the step of:
s1, configuring a simulation monitoring point, namely a simulation data generation interface provided by a MockServer, in the monitoring point background for calling the tested service;
and S2, setting a monitoring point of the task and a task scheduling frequency, and accessing the analog data generation interface provided by the MockServer by the back-end scheduling service according to the frequency.
3. The method for returning data according to the predetermined rule based on mock service according to claim 1, wherein the step S3 is followed by the further steps of:
and S4, after receiving the data returned by the simulation monitoring point, the scheduling service stores the data into the database and provides the processed data for the front end to use.
4. A method for returning data according to a predetermined rule based on mock service according to claim 3, characterized in that:
step S1 is preceded by the step of: s0, designing a test scene in advance;
and/or
Step S4 is followed by the step of: and S5, carrying out data accuracy test according to the simulation data.
5. A system for returning data according to a predetermined rule based on mock service, comprising:
the analog data interface generating module is used for generating an analog data interface;
and the return data generation module is used for generating return data.
6. The mock-based service data return system according to the predetermined rule according to claim 5, wherein the return data generating module comprises:
and the parameter acquisition submodule is used for acquiring the parameter type, taskId and monitorId in the url.
7. The mock-based service data return system according to the predetermined rule according to claim 5, wherein the return data generating module comprises:
and the file analysis submodule is used for analyzing the interface xls description file.
8. The mock-based service data return system according to predetermined rules, as claimed in claim 5, further comprising:
and the analog data interface scheduling module is used for calling the analog data interface.
9. The mock-based service data return system according to the predetermined rule according to claim 5, further comprising any one or any several of the following modules:
the simulation monitoring point configuration module is used for configuring simulation monitoring points;
and the task setting module is used for setting monitoring points and task scheduling frequency of the tasks.
10. Method for mock service based simulation testing, according to the simulation data returned by the method of claims 1 to 4.
CN202011468799.9A 2020-12-15 2020-12-15 Method and system for returning data based on mock service and simulation test method Active CN113010411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011468799.9A CN113010411B (en) 2020-12-15 2020-12-15 Method and system for returning data based on mock service and simulation test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011468799.9A CN113010411B (en) 2020-12-15 2020-12-15 Method and system for returning data based on mock service and simulation test method

Publications (2)

Publication Number Publication Date
CN113010411A true CN113010411A (en) 2021-06-22
CN113010411B CN113010411B (en) 2024-07-05

Family

ID=76383257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011468799.9A Active CN113010411B (en) 2020-12-15 2020-12-15 Method and system for returning data based on mock service and simulation test method

Country Status (1)

Country Link
CN (1) CN113010411B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342353A (en) * 2021-07-01 2021-09-03 银联商务股份有限公司 Mock data generation method and device
CN114416602A (en) * 2022-03-30 2022-04-29 互联网域名系统北京市工程研究中心有限公司 Method and device for realizing Restful interface simulation test service based on Netty

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment
CN110569159A (en) * 2019-09-05 2019-12-13 深圳前海微众银行股份有限公司 Baffle generation method, device, equipment and computer storage medium
CN110727587A (en) * 2019-09-20 2020-01-24 平安普惠企业管理有限公司 Test data acquisition method and device, storage medium and computer equipment
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111581079A (en) * 2020-04-16 2020-08-25 微梦创科网络科技(中国)有限公司 Third-party advertisement monitoring method and system based on asynchronous verification
CN111695328A (en) * 2020-06-16 2020-09-22 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating simulation test message
CN111708702A (en) * 2020-06-18 2020-09-25 深圳前海微众银行股份有限公司 Simulation test method, client, server, system and readable storage medium
CN111782330A (en) * 2020-07-07 2020-10-16 赞同科技股份有限公司 Web application-based page data acquisition method, device and equipment
WO2020233369A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Method for improving software integration system on basis of simulated port, and related device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10089219B1 (en) * 2017-01-20 2018-10-02 Intuit Inc. Mock server for testing
CN109491905A (en) * 2018-11-02 2019-03-19 北京金山云网络技术有限公司 Head end test method, apparatus and electronic equipment
WO2020233369A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Method for improving software integration system on basis of simulated port, and related device
CN110569159A (en) * 2019-09-05 2019-12-13 深圳前海微众银行股份有限公司 Baffle generation method, device, equipment and computer storage medium
CN110727587A (en) * 2019-09-20 2020-01-24 平安普惠企业管理有限公司 Test data acquisition method and device, storage medium and computer equipment
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111581079A (en) * 2020-04-16 2020-08-25 微梦创科网络科技(中国)有限公司 Third-party advertisement monitoring method and system based on asynchronous verification
CN111695328A (en) * 2020-06-16 2020-09-22 深圳前海微众银行股份有限公司 Method, device, equipment and storage medium for generating simulation test message
CN111708702A (en) * 2020-06-18 2020-09-25 深圳前海微众银行股份有限公司 Simulation test method, client, server, system and readable storage medium
CN111782330A (en) * 2020-07-07 2020-10-16 赞同科技股份有限公司 Web application-based page data acquisition method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342353A (en) * 2021-07-01 2021-09-03 银联商务股份有限公司 Mock data generation method and device
CN114416602A (en) * 2022-03-30 2022-04-29 互联网域名系统北京市工程研究中心有限公司 Method and device for realizing Restful interface simulation test service based on Netty
CN114416602B (en) * 2022-03-30 2022-07-05 互联网域名系统北京市工程研究中心有限公司 Method and device for realizing Restful interface simulation test service based on Netty

Also Published As

Publication number Publication date
CN113010411B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN105335293B (en) A kind of automatization test system and method based on interface concurrent
CN107133161B (en) Method and device for generating client performance test script
CN113010411A (en) Method and system for returning data based on mock service and simulation test method
CN105024872A (en) Network performance test method and device
CN112765103B (en) File analysis method, system, device and equipment
CN111930614B (en) Automatic testing method, device, equipment and medium
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN111786939B (en) Method, device and system for testing management platform of Internet of things
US20150100679A1 (en) Web application monitoring verification
CN111949545A (en) Automatic testing method, system, server and storage medium
CN105068876A (en) Method for acquiring mobile phone APP performance data based on distributed true phones
CN106776318A (en) A kind of test script method for recording and system
CN110224896A (en) A kind of network performance data acquisition method, device, server and storage medium
CN111367803A (en) Method and system for improving testing efficiency of client software
CN114756328A (en) Container cloud platform inspection method and device
CN114281680A (en) Web automatic testing method and system
CN116881166A (en) Method, device and system for generating test script
US20040172253A1 (en) Capture and playback web automation tool
CN104506661A (en) Automatic production method for remotely-configured usage scenario-based power consumption
CN112379965B (en) Sandbox file mapping system, client device, mapping end device, sandbox file mapping method and electronic equipment
Hernández-Orallo et al. Web server performance analysis using histogram workload models
CN114416597A (en) Test case record generation method and device
CN114721969A (en) Method and device for separating interface automation test data and test codes
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
CN114500348A (en) CDN gateway test method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant