CN110502224A - Interface analogy method, device and computer equipment based on HTTP request - Google Patents

Interface analogy method, device and computer equipment based on HTTP request Download PDF

Info

Publication number
CN110502224A
CN110502224A CN201910777833.1A CN201910777833A CN110502224A CN 110502224 A CN110502224 A CN 110502224A CN 201910777833 A CN201910777833 A CN 201910777833A CN 110502224 A CN110502224 A CN 110502224A
Authority
CN
China
Prior art keywords
http request
interface
class
mockaspect
request
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
CN201910777833.1A
Other languages
Chinese (zh)
Other versions
CN110502224B (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.)
Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanlianyi Information Technology Service 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 Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Priority to CN201910777833.1A priority Critical patent/CN110502224B/en
Publication of CN110502224A publication Critical patent/CN110502224A/en
Application granted granted Critical
Publication of CN110502224B publication Critical patent/CN110502224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application involves a kind of interface analogy method, device, computer equipment and storage medium based on HTTP request, wherein this method comprises: obtaining the interface based on HTTP request simulates request;Realize that BaseRestController is explained by inheriting the RestController note of Spring Framework based on the interface of HTTP request simulation request according to described;Customized MockAspect class;It is realized by the MockAspect class and intercepts each HTTP request, and the data of Mock interface.The present invention makes full use of the characteristics of Jmockdata, in conjunction with the reflection mechanism of the Spring Framework AOP provided and Java, the method for realizing the automatic Mock of HTTP interface.

Description

Interface analogy method, device and computer equipment based on HTTP request
Technical field
The present invention relates to field of computer technology, more particularly to a kind of interface analogy method based on HTTP request, dress It sets, computer equipment and storage medium.
Background technique
Currently, Jmockdata is the instantiation of a realization mock Java type or object and random initializtion object The tool framework of data.Specifically, Jmockdata simulates Java data by random algorithm, it supports rich and varied data Type simulation, fundamental type, character string including Java are enumerated, date, array, Multidimensional numerical, set, Java object etc.;Branch Hold general type;It supports to inherit;Support customized analogue data strategy etc..
In the conventional technology, Jmockdata is mainly used in unit testing, initializes the type of Java, including general type, collection Conjunction, array etc., Fast simulation data.If simulating the returned data of a HTTP request, it is clear that do not accomplish.HTTP request Refer to the request message from client to server end.Include: in message first trip, to the mark of the requesting method of resource, resource The agreement for according with and using.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide it is a kind of may be implemented the automatic Mock of HTTP interface based on Interface analogy method, device, computer equipment and the storage medium of HTTP request.
A kind of interface analogy method based on HTTP request, which comprises
It obtains the interface based on HTTP request and simulates request;
According to the interface simulation request based on HTTP request by inheriting Spring Framework's RestController explains to realize that BaseRestController is explained;
Customized MockAspect class;
It is realized by the MockAspect class and intercepts each HTTP request, and the data of Mock interface.
Described realized by the MockAspect class intercepts each HTTP request in one of the embodiments, and The step of data of Mock interface further include:
Point of penetration is configured in the MockAspect class, at this time using the every of the BaseRestController class explained A HTTP request method can be all intercepted;
After HTTP request method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object;
Pass through the MethodSignature object acquisition to corresponding Method object.
In one of the embodiments, described by the MethodSignature object acquisition to corresponding After the step of Method object further include:
Pass through the getGenericReturnType method of the Method object, the return type of acquisition methods;Wherein, The method return type got includes: fundamental type, set, array and the Java object of Java.
In one of the embodiments, in the side getGenericReturnType by the Method object After the step of method, the return type of acquisition methods further include:
Realize that simulation returns to the data of class object by Jmockdata tool framework.
A kind of interface simulator based on HTTP request, the interface simulator based on HTTP request include:
Module is obtained, the module that obtains is used to obtain the interface simulation request based on HTTP request;
Module is inherited, the module of inheriting is for passing through succession according to the interface simulation request based on HTTP request The RestController of Spring Framework explains to realize that BaseRestController is explained;
Custom block, the custom block are used for customized MockAspect class;
Analog module, the analog module, which is used to realize by the MockAspect class, intercepts each HTTP request, and The data of Mock interface.
The analog module is also used in one of the embodiments:
Point of penetration is configured in the MockAspect class, at this time using the every of the BaseRestController class explained A HTTP request method can be all intercepted;
After HTTP request method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object;
Pass through the MethodSignature object acquisition to corresponding Method object.
The analog module is also used in one of the embodiments:
Pass through the getGenericReturnType method of the Method object, the return type of acquisition methods;Wherein, The method return type got includes: fundamental type, set, array and the Java object of Java.
The analog module is also used in one of the embodiments:
Realize that simulation returns to the data of class object by Jmockdata tool framework.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage The step of computer program, the processor realizes above-mentioned any one method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above-mentioned any one method is realized when row.
Above-mentioned interface analogy method, device, computer equipment and storage medium based on HTTP request is based on by obtaining The interface of HTTP request simulates request;According to the interface simulation request based on HTTP request by inheriting Spring The RestController of Framework explains to realize that BaseRestController is explained;Customized MockAspect class; It is realized by the MockAspect class and intercepts each HTTP request, and the data of Mock interface.The present invention makes full use of The characteristics of Jmockdata, realizes HTTP interface certainly in conjunction with the reflection mechanism of the SpringFramework AOP provided and Java The method of dynamic Mock.In addition, in rear end, developer not yet completes back end interface and opens under the agile development mode of front and back end separation In the case where hair, rear end developer can use the method and provide the joint debugging that Mock data carry out code to front end developer Test, substantially increases the efficiency of exploitation.
Detailed description of the invention
Fig. 1 is the flow diagram of the interface analogy method based on HTTP request in one embodiment;
Fig. 2 is the flow diagram of the interface analogy method based on HTTP request in another embodiment;
Fig. 3 is the flow diagram of the interface analogy method based on HTTP request in further embodiment;
Fig. 4 is the structural block diagram of the interface simulator based on HTTP request in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Jmockdata simulates Java data by random algorithm, it supports rich and varied data type to simulate, including The fundamental type of Java character string, is enumerated, date, array, Multidimensional numerical, set, Java object etc.;Support general type;Support after It holds;Support customized analogue data strategy etc..To the digital simulation of Java object, the main reflection mechanism for utilizing Java is real Exampleization Java type obtains member variable types, according to the data of the type simulation corresponding types of member variable.
Jmockdata is mainly used in unit testing, initializes type of Java, including general type, set, array etc., fastly Fast analogue data.If simulating the returned data of a HTTP request, it is clear that do not accomplish.
Based on the problem, the present invention provides a kind of interface analogy method based on HTTP request, passes through The reflection mechanism of AOP and Java that SpringFramework is provided simultaneously simulate HTTP request interface in conjunction with Jmockdata to realize Automatic Mock.Illustrate that particular content of the invention, herein presented term are explained as follows in order to clearer:
MockAspect class: concrete implementation type.
ProceedingJoinPoint object: being the ProceedingJoinPoint provided by Srping Framework Class creation, the parameters such as method of available current request.
MethodSignature object: is created by the MethodSignature class of Srping Framework; MethodSignature saves the information of method java class method, number, parameter type and return including method parameter The description of type.
Jmockdata tool framework: being a instantiation for realizing simulation JAVA type or object and random initializtion pair The tool framework of the data of elephant.
In one embodiment, as shown in Figure 1, providing a kind of interface analogy method based on HTTP request, this method Include:
Step 102, it obtains the interface based on HTTP request and simulates request;
Step 104, according to the interface simulation request based on HTTP request by inheriting Spring Framework's RestController explains to realize that BaseRestController is explained;
Step 106, customized MockAspect class;
Step 108, it is realized by MockAspect class and intercepts each HTTP request, and the data of Mock interface.
Specifically, firstly, computer equipment, which obtains the interface based on HTTP request, simulates request.Then, according to the request The RestController for inheriting Spring is explained, and realizes that BaseRestController is explained.Sometimes one in Spring Many notes are marked above class, actually Java note can be inherited, that is, multiple notes are merged into 1, in this way It may be implemented to simplify and explain configuration, multiple members that specific meanings are marked with seldom note are explained, and good expansion is provided Malleability, can flexible customized note according to actual needs.Then, MockAspect class is defined, is intercepted by such realization Each HTTP request, and the data of Mock interface, MockAspect class here are concrete implementation types.It uses The each HTTP request method for the class that BaseRestController is explained can be intercepted, and HTTP request method is intercepted it Afterwards, pass through the ProceedingJoinPoint object acquisition of AOP to MethodSignature object.Then, pass through MethodSignature object acquisition passes through Method object to the method object of Method object, that is, class GetGenericReturnType method, the return type of available method, the method return type got, which will include, is Fundamental type, set, array, Java object of Java etc. utilize Jmockdata tool framework, realize that simulation returns to class object Data.
In the present embodiment, request is simulated by obtaining the interface based on HTTP request;According to connecing based on HTTP request Mouth mold is planned to invite to ask and be explained by the RestController for inheriting Spring Framework to realize BaseRestController is explained;Customized MockAspect class;Realize that intercepting each HTTP asks by MockAspect class It asks, and the data of Mock interface.The present embodiment makes full use of the characteristics of Jmockdata, provides in conjunction with Spring Framework AOP and Java reflection mechanism, realize the automatic Mock of HTTP interface method.In addition, the agile development of front and back end separation Under mode, in the case that in rear end, developer not yet completes back end interface exploitation, rear end developer can use the method It provides the joint debugging that Mock data carry out code to front end developer to test, substantially increases the efficiency of exploitation.
In one embodiment, as shown in Fig. 2, providing a kind of interface analogy method based on HTTP request, this method In realized by MockAspect class and intercept each HTTP request, and the step of data of Mock interface further include:
Step 202, point of penetration is configured in MockAspect class, the class explained at this time using BaseRestController Each HTTP request method can be intercepted;
Step 204, after HTTP request method is intercepted, pass through the ProceedingJoinPoint object acquisition of AOP To MethodSignature object;
Step 206, pass through MethodSignature object acquisition to corresponding Method object.
Specifically, firstly, configuring point of penetration in MockAspect type, concrete implementation mode for example :@Pointcut ("@within(com.lls.framework.web.annotation.BaseRestController)").At this point, using The each HTTP request method for the class that BaseRestController is explained can be intercepted.Then, when HTTP request method quilt After interception, pass through the ProceedingJoinPoint object acquisition of AOP to MethodSignature object.Finally, passing through Method object of the MethodSignature object acquisition to Method object, that is, class.It can be obtained according to the method object of class The return type of method, and then realize that simulation returns to the data of class object.
In one embodiment, as shown in figure 3, providing a kind of interface analogy method based on HTTP request, this method In realized by MockAspect class and intercept each HTTP request, and the step of data of Mock interface further include:
Step 302, point of penetration is configured in MockAspect class, the class explained at this time using BaseRestController Each HTTP request method can be intercepted;
Step 304, after HTTP request method is intercepted, pass through the ProceedingJoinPoint object acquisition of AOP To MethodSignature object;
Step 306, pass through MethodSignature object acquisition to corresponding Method object.
Step 308, pass through the getGenericReturnType method of Method object, the return type of acquisition methods; Wherein, the method return type got includes: fundamental type, set, array and the Java object of Java;
Step 310, realize that simulation returns to the data of class object by Jmockdata tool framework.
In the present embodiment, the realization principle for providing specifically MockAspect class includes the steps that following implemented:
1. configuring point of penetration@Pointcut ("@within (com.lls.framework.w in MockAspect type Eb.annotation.BaseRestController) "), at this point, using each of BaseRestController class explained HTTP request method can be all intercepted.
After 2.HTTP requesting method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object.
3. passing through the method object of MethodSignature object acquisition to Method object, that is, class.
4. passing through the getGenericReturnType method of Method object, the return type of available method.
5. it is fundamental type, set, array, Java object of Java etc. that the method return type got, which will include,.
6. utilizing Jmockdata tool framework, realize that simulation returns to the data of class object.
In the present embodiment, using Jmockdata the characteristics of, in conjunction with the reflection machine of the Spring AOP provided and Java System, the method for realizing the automatic Mock of HTTP interface by utilizing Jmockdata tool framework, realize that simulation returns at the same time The data of class object, improve development efficiency.
It should be understood that although each step in the flow chart of Fig. 1-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of interface simulator 400 based on HTTP request, packet It includes:
Module 401 is obtained, for obtaining the interface simulation request based on HTTP request;
Module 402 is inherited, inherits SpringFramework for passing through according to the interface simulation request based on HTTP request RestController explain realize BaseRestController explain;
Custom block 403 is used for customized MockAspect class;
Analog module 404 intercepts each HTTP request for realizing by MockAspect class, and the number of Mock interface According to.
Analog module 404 is also used in one of the embodiments:
Point of penetration is configured in MockAspect class, at this time using each of BaseRestController class explained HTTP request method can be all intercepted;
After HTTP request method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object;
Pass through MethodSignature object acquisition to corresponding Method object.
In one embodiment, analog module 404 is also used to:
Pass through the getGenericReturnType method of Method object, the return type of acquisition methods;Wherein, it obtains To method return type include: Java fundamental type, set, array and Java object.
In one embodiment, analog module 404 is also used to:
Realize that simulation returns to the data of class object by Jmockdata tool framework.
Specific restriction about the interface simulator based on HTTP request may refer to ask above for based on HTTP The restriction for the interface analogy method asked, details are not described herein.
In one embodiment, a kind of computer equipment is provided, internal structure chart can be as shown in Figure 5.The calculating Machine equipment includes processor, memory and the network interface connected by system bus.Wherein, the processing of the computer equipment Device is for providing calculating and control ability.The memory of the computer equipment includes non-volatile memory medium, built-in storage.It should Non-volatile memory medium is stored with operating system, computer program and database.The built-in storage is non-volatile memories Jie The operation of operating system and computer program in matter provides environment.The network interface of the computer equipment is used for and external end End passes through network connection communication.To realize a kind of interface simulation based on HTTP request when the computer program is executed by processor Method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor are realized when executing computer program in above each embodiment of the method The step of.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated The step in above each embodiment of the method is realized when machine program is executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of interface analogy method based on HTTP request, which comprises
It obtains the interface based on HTTP request and simulates request;
According to the interface simulation request based on HTTP request by inheriting Spring Framework's RestController explains to realize that BaseRestController is explained;
Customized MockAspect class;
It is realized by the MockAspect class and intercepts each HTTP request, and the data of Mock interface.
2. the interface analogy method according to claim 1 based on HTTP request, which is characterized in that described by described MockAspect class, which is realized, intercepts each HTTP request, and the step of data of Mock interface further include:
Point of penetration is configured in the MockAspect class, at this time using each of BaseRestController class explained HTTP request method can be all intercepted;
After HTTP request method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object;
Pass through the MethodSignature object acquisition to corresponding Method object.
3. the interface analogy method according to claim 2 based on HTTP request, which is characterized in that described by described After the step of MethodSignature object acquisition is to corresponding Method object further include:
Pass through the getGenericReturnType method of the Method object, the return type of acquisition methods;Wherein, it obtains To method return type include: Java fundamental type, set, array and Java object.
4. the interface analogy method according to claim 3 based on HTTP request, which is characterized in that described by described After the step of getGenericReturnType method of Method object, the return type of acquisition methods further include:
Realize that simulation returns to the data of class object by Jmockdata tool framework.
5. a kind of interface simulator based on HTTP request, which is characterized in that the interface based on HTTP request simulates dress It sets and includes:
Module is obtained, the module that obtains is used to obtain the interface simulation request based on HTTP request;
Module is inherited, the interface simulation request for inheriting module for described in basis based on HTTP request passes through succession Spring The RestController of Framework explains to realize that BaseRestController is explained;
Custom block, the custom block are used for customized MockAspect class;
Analog module, the analog module, which is used to realize by the MockAspect class, intercepts each HTTP request, and Mock The data of interface.
6. the interface simulator according to claim 5 based on HTTP request, which is characterized in that the analog module is also For:
Point of penetration is configured in the MockAspect class, at this time using each of BaseRestController class explained HTTP request method can be all intercepted;
After HTTP request method is intercepted, arrived by the ProceedingJoinPoint object acquisition of AOP MethodSignature object;
Pass through the MethodSignature object acquisition to corresponding Method object.
7. the interface simulator according to claim 6 based on HTTP request, which is characterized in that the analog module is also For:
Pass through the getGenericReturnType method of the Method object, the return type of acquisition methods;Wherein, it obtains To method return type include: Java fundamental type, set, array and Java object.
8. the interface simulator according to claim 7 based on HTTP request, which is characterized in that the analog module is also For:
Realize that simulation returns to the data of class object by Jmockdata tool framework.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 4 institute when executing the computer program The step of stating method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of Claims 1-4 is realized when being executed by processor.
CN201910777833.1A 2019-08-22 2019-08-22 Interface simulation method and device based on HTTP request and computer equipment Active CN110502224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910777833.1A CN110502224B (en) 2019-08-22 2019-08-22 Interface simulation method and device based on HTTP request and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910777833.1A CN110502224B (en) 2019-08-22 2019-08-22 Interface simulation method and device based on HTTP request and computer equipment

Publications (2)

Publication Number Publication Date
CN110502224A true CN110502224A (en) 2019-11-26
CN110502224B CN110502224B (en) 2023-04-28

Family

ID=68588740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910777833.1A Active CN110502224B (en) 2019-08-22 2019-08-22 Interface simulation method and device based on HTTP request and computer equipment

Country Status (1)

Country Link
CN (1) CN110502224B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045650A (en) * 2019-12-12 2020-04-21 深圳前海环融联易信息科技服务有限公司 Design method and device of Mocker joint debugging tool and computer equipment
CN111339507A (en) * 2020-02-24 2020-06-26 杭州数梦工场科技有限公司 Method, system, equipment and readable storage medium for processing access request
CN115344502A (en) * 2022-10-18 2022-11-15 中建电子商务有限责任公司 Method for automatically generating mock data and automatically loading mock data based on real data
CN116974581A (en) * 2023-09-25 2023-10-31 中化现代农业有限公司 Code generation method, device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033442A1 (en) * 2005-08-04 2007-02-08 Microsoft Corporation Mock object generation by symbolic execution
CN101165658A (en) * 2006-10-18 2008-04-23 国际商业机器公司 Method and system for automatically generating unit test case of reproduced operation problem
CN102855178A (en) * 2011-06-30 2013-01-02 阿里巴巴集团控股有限公司 Method and device for generating Mock base during unit test
CN103559118A (en) * 2013-10-12 2014-02-05 福建亿榕信息技术有限公司 Security auditing method based on aspect oriented programming (AOP) and annotation information system
CN106354481A (en) * 2015-07-13 2017-01-25 阿里巴巴集团控股有限公司 Method and equipment for uniform mapping of HTTP requests
CN106970789A (en) * 2017-03-07 2017-07-21 武汉斗鱼网络科技有限公司 A kind of Android end groups bury point methods and system automatically in AOP and AspectJ daily record
CN107368498A (en) * 2016-05-13 2017-11-21 阿里巴巴集团控股有限公司 The lock for optimizing MySQL Pessimistic Lockings waits the method and device of time-out time
CN107659455A (en) * 2017-10-16 2018-02-02 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and the system of iOS ends Mock data
CN108388519A (en) * 2018-03-19 2018-08-10 车智互联(北京)科技有限公司 Mock test methods based on SpringBoot services
CN108415834A (en) * 2018-02-12 2018-08-17 平安科技(深圳)有限公司 Explain rear end method of calibration, device, computer equipment and storage medium
CN109446063A (en) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, device, computer equipment and storage medium
CN109739656A (en) * 2018-11-29 2019-05-10 东软集团股份有限公司 Interface data analogy method, device, storage medium and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033442A1 (en) * 2005-08-04 2007-02-08 Microsoft Corporation Mock object generation by symbolic execution
CN101165658A (en) * 2006-10-18 2008-04-23 国际商业机器公司 Method and system for automatically generating unit test case of reproduced operation problem
CN102855178A (en) * 2011-06-30 2013-01-02 阿里巴巴集团控股有限公司 Method and device for generating Mock base during unit test
CN103559118A (en) * 2013-10-12 2014-02-05 福建亿榕信息技术有限公司 Security auditing method based on aspect oriented programming (AOP) and annotation information system
CN106354481A (en) * 2015-07-13 2017-01-25 阿里巴巴集团控股有限公司 Method and equipment for uniform mapping of HTTP requests
CN107368498A (en) * 2016-05-13 2017-11-21 阿里巴巴集团控股有限公司 The lock for optimizing MySQL Pessimistic Lockings waits the method and device of time-out time
CN106970789A (en) * 2017-03-07 2017-07-21 武汉斗鱼网络科技有限公司 A kind of Android end groups bury point methods and system automatically in AOP and AspectJ daily record
CN107659455A (en) * 2017-10-16 2018-02-02 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and the system of iOS ends Mock data
CN108415834A (en) * 2018-02-12 2018-08-17 平安科技(深圳)有限公司 Explain rear end method of calibration, device, computer equipment and storage medium
CN108388519A (en) * 2018-03-19 2018-08-10 车智互联(北京)科技有限公司 Mock test methods based on SpringBoot services
CN109446063A (en) * 2018-09-18 2019-03-08 深圳壹账通智能科技有限公司 Interface test method, device, computer equipment and storage medium
CN109739656A (en) * 2018-11-29 2019-05-10 东软集团股份有限公司 Interface data analogy method, device, storage medium and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045650A (en) * 2019-12-12 2020-04-21 深圳前海环融联易信息科技服务有限公司 Design method and device of Mocker joint debugging tool and computer equipment
CN111339507A (en) * 2020-02-24 2020-06-26 杭州数梦工场科技有限公司 Method, system, equipment and readable storage medium for processing access request
CN115344502A (en) * 2022-10-18 2022-11-15 中建电子商务有限责任公司 Method for automatically generating mock data and automatically loading mock data based on real data
CN115344502B (en) * 2022-10-18 2023-03-10 中建电子商务有限责任公司 Method for automatically generating mock data and automatically loading mock data based on real data
CN116974581A (en) * 2023-09-25 2023-10-31 中化现代农业有限公司 Code generation method, device, electronic equipment and storage medium
CN116974581B (en) * 2023-09-25 2024-01-23 中化现代农业有限公司 Code generation method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110502224B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110502224A (en) Interface analogy method, device and computer equipment based on HTTP request
CN103649907B (en) The record of highly concurrent processing task and execution
CN109032611A (en) Script dispositions method, device, computer equipment and storage medium
Chauhan et al. Latest research and development on software testing techniques and tools
US20160350204A1 (en) System and method for providing automated computer language translation and verification
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
JP6520074B2 (en) Generate test double
CN110008113A (en) A kind of test method, device, electronic equipment
CN105450461A (en) Shunting method and network equipment
CN110377454A (en) Data verification method, device, computer equipment and storage medium
Mancini et al. On minimising the maximum expected verification time
CN110162335A (en) Code refactoring method, apparatus, computer equipment and medium
CN112148580A (en) Test method and device and electronic equipment
Šimoňák Verification of communication protocols based on formal methods integration
CN106326102A (en) Test method and apparatus
CN110347588A (en) Software verification method, device, computer equipment and storage medium
CN109656817A (en) A kind of automation interface test device and equipment
US8037357B2 (en) System and method for generating test job control language files
CN110633213B (en) Unit test method, unit test device, computer equipment and storage medium
CN107506623A (en) Reinforcement means and device, computing device, the computer-readable storage medium of application program
US20130283238A1 (en) Testing system for an integrated software system
Achkar Model based testing of web applications
US10481969B2 (en) Configurable system wide tests
CN105677559B (en) A kind of detection method and device
Zaw et al. An informative test code approach in code writing problem for three object-oriented programming concepts in java programming learning assistant 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
GR01 Patent grant