CN110162464A - Mcok test method and system, electronic equipment and readable storage medium storing program for executing - Google Patents

Mcok test method and system, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110162464A
CN110162464A CN201910318274.8A CN201910318274A CN110162464A CN 110162464 A CN110162464 A CN 110162464A CN 201910318274 A CN201910318274 A CN 201910318274A CN 110162464 A CN110162464 A CN 110162464A
Authority
CN
China
Prior art keywords
mock
test
target
returned data
class object
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.)
Pending
Application number
CN201910318274.8A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910318274.8A priority Critical patent/CN110162464A/en
Publication of CN110162464A publication Critical patent/CN110162464A/en
Priority to PCT/CN2019/118066 priority patent/WO2020211360A1/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

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)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to the field of test technology, a kind of Mcok test method and system, electronic equipment and readable storage medium storing program for executing are disclosed.This method comprises: creating Mock class object in Mock test macro according to test interface document, which includes at least the communications protocol and the corresponding session object of the test interface that test request parameter, return parameters, test interface are supported;The returned data of above-mentioned Mock class object is generated in Mock test macro;Receive the test interface call request that test object is sent in a manner of the corresponding target communication of target communication agreement;Target returned data is returned to test object in a manner of above-mentioned target communication, which is the returned data of the corresponding target Mock class object of test interface call request.As it can be seen that Mock test macro can support multiple kinds, so as to simulate various test scenes, so that software test is more convenient.

Description

Mcok test method and system, electronic equipment and readable storage medium storing program for executing
Technical field
The present invention relates to the field of test technology, in particular to a kind of Mcok test method and system, electronic equipment and readable Storage medium.
Background technique
Software test is to operate under the defined conditions to program, to find program error, measures software quality, And whether the process that design requirement is assessed is able to satisfy to it, the computer software for identifying that exploitation is completed can be helped (whole Or part) correctness, completely degree and quality.
During software development, need to test developed engineering code.However, test object is often Be unable to independent operating, need to rely on other class objects or external service operation to complete to test.Such as financial application Program (Application, APP) is frequently necessary to be docked with the system of the affiliated parties such as bank, law court, if affiliated party is It unites unstable, it will the test of financial APP is affected greatly.In order to which the system for reducing affiliated party causes software test Influence, can be tested using Mock technology, Mock test can create a virtual objects during the test and carry out generation For certain affiliated party's objects, and the virtual objects is enabled to simulate return function.However, current Mock tool on the market The test method of offer is only capable of supporting hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP), And it is also possible between different objects through Hyper text transfer security protocol (Hypertext Transfer in Practical Project Protocol Secure, HTTPS) or transmission control protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) etc. communications protocol communicated, current Mock test method can not It supports multiple kinds, makes troubles for software test.
Summary of the invention
It is difficult to support multiple kinds to solve Mock test method present in the relevant technologies, is software test The problem of making troubles, the present invention provides a kind of Mock test method and systems, electronic equipment.
First aspect of the embodiment of the present invention discloses a kind of Mock test method, which comprises
Mock class object is created in Mock test macro according to test interface document, the test interface document is at least The communications protocol and the corresponding session pair of the test interface supported including test request parameter, return parameters, test interface As;
The returned data of the Mock class object is generated in the Mock test macro;
Receive the test interface call request that test object is sent in a manner of the corresponding target communication of target communication agreement; Wherein, the test interface call request carries target Mock class object, and the target Mock class object is the Mock class Any of object;
Target returned data is returned to the test object in a manner of the target communication to test to complete Mock, it is described Target returned data is the returned data of the target Mock class object.
As an alternative embodiment, in first aspect of the embodiment of the present invention, described test in the Mock is The returned data of the Mock class object is generated in system, comprising:
Returned data of the fixed data as the Mock class object is configured in the Mock test macro.
As an alternative embodiment, in first aspect of the embodiment of the present invention, described test in the Mock is The returned data of the Mock class object is generated in system, comprising:
Obtain the corresponding returned data of the test interface that inputs in Web page of user and generate code, and store to The database of the Mock test macro;
It is described to be tested in a manner of the target communication to test object return target returned data with completing Mock, Include:
In the corresponding target detection interface of the calling test interface call request, institute is transferred from the database It states the corresponding returned data of target detection interface and generates code, the target detection interface is any in the test interface It is a;
The corresponding returned data of the target detection interface code is generated by reflection to load into tomcat container, and It is compiled to obtain member's class;
The target returned data is obtained according to member's class, and to the test pair in a manner of the target communication As returning to the target returned data to complete the Mock test.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the method also includes:
By in the test interface document the return parameters and the communications protocol be configured at the Web page;
Detect the customized return parameters and/or customized communications protocol that the user inputs in the Web page;
The test interface document is updated according to the customized return parameters and/or the customized communications protocol, and The Mock class object is updated according to the test interface document of update.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described with the target communication side Formula returns to target returned data to the test object to complete Mock test, comprising:
Mock task is generated according to the test interface call request, the Mock task is used to indicate the access survey The corresponding target Mock class object of mouthful call request of trying;
The Mock task is distributed to the Mock task matches first and executes node, so that described first It executes node and returns to the target returned data after accessing the target Mock class object;
The target returned data is returned to the test object in a manner of the target communication to survey to complete the Mock Examination.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described with the target communication side Formula returns to the target returned data to the test object to complete the Mock test, comprising:
The identity of the test object is obtained according to the Mock task;
The target returned data is returned to the test object in a manner of the target communication according to the identity To complete the Mock test.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described by the Mock task point It is assigned to first to match with the Mock task and executes node, so that described first executes node in the access target The target returned data is returned after Mock class object, comprising:
The Mock task is distributed to the Mock task matches first and executes node;
Detect whether that receiving described first executes the target returned data that node returns in preset duration;
Node is executed if it is not, distributing the Mock task to the Mock task matches second, so that described Second execution node returns to the target returned data after accessing the target Mock class object.
Second aspect of the embodiment of the present invention discloses a kind of Mock test macro, the system comprises:
Creating unit, for creating Mock class object, the test in Mock test macro according to test interface document Interface document includes at least the communications protocol and the test interface that test request parameter, return parameters, test interface are supported Corresponding session object;
Generation unit, for generating the returned data of the Mock class object in the Mock test macro;
Receiving unit, the test sent in a manner of the corresponding target communication of target communication agreement for receiving test object Interface call request;Wherein, the test interface call request carries target Mock class object, the target Mock class pair As for any of described Mock class object;
Return unit, for returning to target returned data to the test object in a manner of the target communication to complete Mock test, the target returned data are the returned data of the target Mock class object.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, and the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing When device executes, Mock test method disclosed in first aspect of the embodiment of the present invention is realized.
Fourth aspect of the embodiment of the present invention discloses a kind of readable storage medium storing program for executing, stores computer program, the calculating Machine program makes computer execute Mock test method disclosed in first aspect of the embodiment of the present invention.
The technical solution that the embodiment of the present invention provides can include the following benefits:
A kind of Mock test method provided by the present invention includes the following steps: to be surveyed according to test interface document in Mock Mock class object is created in test system, which includes at least test request parameter, return parameters, test interface The communications protocol of support and the corresponding session object of the test interface;Above-mentioned Mock class pair is generated in Mock test macro The returned data of elephant;The test interface that test object is sent in a manner of the corresponding target communication of target communication agreement is received to call Request;Target returned data is returned to test object in a manner of above-mentioned target communication, which is test interface tune With the returned data for requesting corresponding target Mock class object.
Under the method, Mock class object is created in Mock test macro by test interface document, Mock class object can It wherein include the communications protocol that test interface is supported, i.e. Mock test in test interface document to simulate external environment system The communications protocol that system is supported is not limited to HTTP;Test object is being received with the corresponding target communication side of target communication agreement After the test interface call request that formula is sent, target returned data is returned to test object in a manner of target communication.As it can be seen that real The embodiment of the present invention is applied, Mock test macro can support multiple kinds, can be realized in a manner of target communication to test Object returns to target returned data, so as to simulate various test scenes, so that software test is more convenient.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets reality of the invention Example is applied, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of structural schematic diagram of device disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow chart of Mock test method disclosed by the embodiments of the present invention;
Fig. 3 is the flow chart of another kind Mock test method disclosed by the embodiments of the present invention;
Fig. 4 is the flow chart of another Mock test method disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structural schematic diagram of Mock test macro disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of another kind Mock test macro disclosed by the embodiments of the present invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary is implemented Embodiment described in example does not represent all embodiments consistented with the present invention.On the contrary, they are only and such as institute The example of device and method be described in detail in attached claims, that some aspects of the invention are consistent.
Embodiment one
Implementation environment of the invention can be electronic equipment, such as smart phone, tablet computer or desktop computer.
Fig. 1 is a kind of structural schematic diagram of device disclosed by the embodiments of the present invention.Device 100 can be above-mentioned electronics and set It is standby.As shown in Figure 1, device 100 may include following one or more components: processing component 102, memory 104, power supply group Part 106, multimedia component 108, audio component 110, sensor module 114 and communication component 116.
The integrated operation of the usual control device 100 of processing component 102, such as with display, telephone call, data communication, phase Machine operation and the associated operation of record operation etc..Processing component 102 may include one or more processors 118 to hold Row instruction, to complete all or part of the steps of following methods.In addition, processing component 102 may include one or more moulds Block, for convenient for the interaction between processing component 102 and other assemblies.For example, processing component 102 may include multimedia mould Block, for facilitate the interaction between multimedia component 108 and processing component 102.
Memory 104 is configured as storing various types of data to support the operation in device 100.These data Example includes the instruction of any application or method for operating on the device 100.Memory 104 can be by any class The volatibility or non-volatile memory device or their combination of type are realized, such as static random access memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or CD.One or more modules are also stored in memory 104, for being somebody's turn to do One or more modules are configured to be executed by the one or more processors 118, to complete the whole in method as follows Or part steps.
Power supply module 106 provides electric power for the various assemblies of device 100.Power supply module 106 may include power management system System, one or more power supplys and other with for device 100 generate, manage, and distribute the associated component of electric power.
Multimedia component 108 includes the screen of one output interface of offer between device 100 and user.Some In embodiment, screen may include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel.Such as Fruit screen includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel Including one or more touch sensors to sense the gesture on touch, slide, and touch panel.Touch sensor can be not only The boundary of a touch or slide action is sensed, but also detects duration and pressure relevant to touch or slide.Screen Can also include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio component 110 is configured as output and/or input audio signal.For example, audio component 110 includes a wheat Gram wind (Microphone, abbreviation MIC), when device 100 is in operation mode, such as call model, logging mode and speech recognition When mode, microphone is configured as receiving external audio signal.The received audio signal can be further stored in storage Device 104 is sent via communication component 116.In some embodiments, audio component 110 further includes a loudspeaker, for defeated Audio signal out.
Sensor module 114 includes one or more sensors, and the state for providing various aspects for device 100 is commented Estimate.For example, sensor module 114 can detecte the state that opens/closes of device 100, the relative positioning of component, sensor Component 114 can be with the position change of 100 1 components of detection device 100 or device and the temperature change of device 100.? In some embodiments, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 116 is configured to facilitate the communication of wired or wireless way between device 100 and other equipment.Dress The wireless network based on communication standard can be accessed by setting 100, such as WiFi (Wireless-Fidelity, Wireless Fidelity).At this In inventive embodiments, communication component 116 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In embodiments of the present invention, communication component 116 further includes near-field communication (Near Field Communication, abbreviation NFC) module, for promote short range communication.For example, radio frequency identification can be based in NFC module (Radio Frequency Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data Association, abbreviation IrDA) technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other skills Art is realized.
In the exemplary embodiment, device 100 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for holding Row following methods.
Embodiment two
Referring to Fig. 2, Fig. 2 is a kind of flow diagram of Mock test method disclosed by the embodiments of the present invention.Such as Fig. 2 The shown Mock test method may comprise steps of:
201, Mock class object is created in Mock test macro according to test interface document, the test interface document is extremely The communications protocol and the corresponding session pair of the test interface supported less including test request parameter, return parameters, test interface As.
In the embodiment of the present invention, Mock class object is mainly used for simulation association method, system, i.e., associated with test object External environment system.Developer tests system according to the feature construction test interface documents of the various aspects of test interface System can have the Mock class object of affiliated party's system aspects feature according to test interface document creation in a test system.
In the embodiment of the present invention, it is to be appreciated that each the Mock class object created in Mock test macro has Itself corresponding test interface, and each test interface has itself corresponding test request parameter, return parameters, test The communications protocol and the corresponding session object of the test interface that interface is supported.
In the embodiment of the present invention, Mock test macro can use SSM frame collection (Spring+SpringMV C+ MyBatis), popular protocol frame is integrated, is loaded with the jar packet and sending method of different service frameworks in advance, therefore, when After user has selected different communication modes on foreground, Mock test macro can select according to user according to user logical News mode sends target returned data.As it can be seen that above-mentioned test interface is supported based on the protocol frame that Mock test macro loads Communications protocol may include HTTP, HTTPS, TCP/I P and JavaEE server-side component model (Enterprise JavaBean, EGB) etc. at least one of communications protocol.
202, the returned data of above-mentioned Mock class object is generated in Mock test macro.
It is appreciated that each Mock class object has itself corresponding returned data, in tested object accesses After feed back to test object so that test object can complete software test.
203, the test interface calling that test object is sent in a manner of the corresponding target communication of target communication agreement is received to ask It asks;Wherein, test interface call request carries target Mock class object, and target Mock class object is above-mentioned Mock class pair Any of as.
It is mainly used for it is appreciated that test object sends test interface call request through invocation target Mock class object Corresponding test interface carrys out access target Mock class object.
204, target returned data is returned to test object in a manner of target communication to complete Mock test, which returns Return the returned data that data are target Mock class object.
In the embodiment of the present invention, Mock test method is based on Mock technology, it is possible to reduce to external system in test process The dependence of environment can cover arbitrary test scene and response quickly by constructing reasonable returned data, it is possible to reduce With external communication cost.
As an alternative embodiment, may include: in step 204
When receiving above-mentioned test interface call request, according to the corresponding system of system of target Mock class object simulation Type of uniting determines response delay;And number is returned returning to target to test object in a manner of target communication after response delay Mock test is completed accordingly, which is the returned data of target Mock class object.
In present embodiment, it is to be understood that since the performance and framework of external environment system are different, in reality In the application scenarios on border, the time needed for calling external environment system to obtain return information is not also identical.The return of some systems The time of return of information is longer, and the speed for simulating the Mock class object response test interface call request of the system is to compare Fast.Therefore, in order to enable scene can be simulated closer to actual application scenarios according to Mock class object on the line of simulation System come set response delay.Such as if simulation system feedback time be 20s, can rule of thumb by The response delay of Mock class object is set as 18s, the response time in conjunction with needed for Mock class object itself, finally obtains return The time of data can also remain at roughly 20s or so.As it can be seen that implementing present embodiment, the test environment of simulation can more be connect Nearly reality.
As it can be seen that implementing method described in Fig. 2, Mock class is created in Mock test macro by test interface document Object, Mock class object can simulate external environment system, wherein include the logical of test interface support in test interface document Interrogate agreement, i.e., the communications protocol that Mock test macro is supported is not limited to HTTP, thus, Mock test macro can be supported a variety of Communications protocol can be realized and return to target returned data to test object in a manner of target communication, and then can simulate various surveys Examination hall scape, so that software test is more convenient.
Embodiment three
Referring to Fig. 3, Fig. 3 is the flow diagram of another kind Mock test method disclosed by the embodiments of the present invention.Such as figure Shown in 3, which be may comprise steps of:
301, Mock class object is created in Mock test macro according to test interface document, the test interface document is extremely The communications protocol and the corresponding session pair of the test interface supported less including test request parameter, return parameters, test interface As.
302, returned data of the fixed data as Mock class object is configured in Mock test macro.
It is appreciated that implementing this returned data building mode, in Mock test macro, each Mock class object Corresponding to have a fixed returned data, for any one test interface call request, return is all test interface The returned data of the corresponding fixation of the corresponding Mock class object of call request.
303, the test interface calling that test object is sent in a manner of the corresponding target communication of target communication agreement is received to ask It asks;Wherein, test interface call request carries target Mock class object, and target Mock class object is above-mentioned Mock class pair Any of as.
304, Mock task is generated according to test interface call request, which is used to indicate access test interface The corresponding target Mock class object of call request.
305, Mock task is distributed to the Mock task matches first and executes node, so that first execution Node returns to target returned data after access target Mock class object.
In the embodiment of the present invention, a certain execution node matches with a certain Mock task, specially the execution node processing Task type and the task type of the Mock task match.Task type may include performance test type and common survey Try type, wherein performance test may include test resource occupancy, task handling duration etc., and common test may include surveying Try code logic.By distributing different types of Mock task to different types of execution node, Mock test can be improved The versatility of system.
In the embodiment of the present invention, it is to be understood that in actual test process, may be simultaneously present multiple tests Object to Mock test macro initiate test interface call request, however, traditional Mock test method not distinguishing tests appoint Therefore service type is only applicable to be tested for single application, and when multiple test leads needs are synchronized and tested, hold Easily cause confusion.And implementation steps 304 and step 305 are capable of the task type of distinguishing tests, generate Mock task, and will Mock task distributes first to match to Mock task and executes node so that the first execution node visit test interface calling is asked Corresponding target Mock class object is sought, the versatility of Mock test macro can be improved.
As an alternative embodiment, before step 303, this method can also include,
Performance test is set in Mock test macro and executes node and common test execution node;Performance test is held Row node is at least divided into resources occupation rate test execution node and task handling duration test execution node;And it will be common Test execution node is at least divided into code logic test node and code integrity degree test node.
Step 305 may include:
The task type for obtaining Mock task chooses one and the Mock from the execution node in Mock test macro The execution node that task matches executes node as first;By Mock task distribute to first execute node so that this first It executes node and returns to target returned data after access target Mock class object.
As it can be seen that implementing present embodiment, the execution node in Mock test macro is classified according to task type, and The Mock task for handling corresponding types can be avoided and connect since multiple test objects issue test to Mock test macro simultaneously Mouthful call request and the confusion phenomena occurred.
As an alternative embodiment, step 305 may include:
Mock task is distributed to the Mock task matches first and executes node;Detecting in preset duration is The no target returned data for receiving the return of the first execution node;If it is not, by Mock task distribute to the Mock task phase Second matched executes node, so that the second execution node returns to target returned data after access target Mock class object.
As it can be seen that implementing present embodiment, section is executed distributing Mock task to first to match with the Mock task After point, if failing to receive the target returned data of the first execution node return in preset duration, by Mock task distribute to Second executes node, can prevent from executing the factors bring test such as node failure due to first and interrupting or the equal influence of delay The case where test.
306, target returned data is returned to test object in a manner of above-mentioned target communication to complete Mock test.
As an alternative embodiment, step 306 may include:
The identity of test object is obtained according to Mock task;According to the identity in a manner of above-mentioned target communication Target returned data is returned to test object to complete Mock test.
In present embodiment, it is to be understood that above-mentioned test interface call request can also include the body of test object Part identifies, and includes the identity in the Mock task generated according to test interface call request.By Mock task distribute to The execution node that the Mock task matches, so that executing node executes the mesh that the Mock task generates target Mock class object Returned data is marked, and the target returned data of target Mock class object is back to by correspondence according to the identity of test object Test object.Traditional Mock test method does not also distinguish request Mock test in addition to the object type of not distinguishing tests Requesting party.Therefore, implement present embodiment, Mock test macro can also carry out multiple test objects by identity It distinguishes, so that the versatility of Mock test macro may further be improved.
As it can be seen that method described in implementing Fig. 3, creates Mock class by test interface document in Mock test macro Object, Mock class object can simulate external environment system, wherein include the logical of test interface support in test interface document Interrogate agreement, i.e., the communications protocol that Mock test macro is supported is not limited to HTTP, thus, Mock test macro can be supported a variety of Communications protocol can be realized and return to target returned data to test object in a manner of target communication, and then can simulate various surveys Examination hall scape, so that software test is more convenient;In addition, generating Mock task according to test interface call request, and Mock is appointed Business distribution executes node to the Mock task matches first, is capable of the type of distinguishing tests object, can be avoided more A test object needs synchronize to cause confusion when being tested;Furthermore it is possible to prevent from executing the factors such as node failure due to first Bring test is interrupted or the case where the equal influences test of delay, further, it is also possible to pass through identity to multiple test objects It distinguishes, so that the versatility of Mock test macro may further be improved.
Example IV
Referring to Fig. 4, Fig. 4 is the flow diagram of another Mock test method disclosed by the embodiments of the present invention.Such as figure The Mock test method shown in 4 may comprise steps of:
401, Mock class object is created in Mock test macro according to test interface document, the test interface document is extremely The communications protocol and the corresponding session pair of the test interface supported less including test request parameter, return parameters, test interface As.
402, it obtains the corresponding returned data of above-mentioned test interface that user inputs in Web page and generates code, and deposit It stores up to the database of Mock test macro.
It in the embodiment of the present invention, realizes in Web page compiled code, furthermore, it is possible to set code specification, user is write It needs to follow the code specification when entering code, wherein user generates code in the returned data that Web page inputs and can be Java code is also possible to js code etc., and the embodiment of the present invention is not construed as limiting.
403, the test interface calling that test object is sent in a manner of the corresponding target communication of target communication agreement is received to ask It asks;Wherein, test interface call request carries target Mock class object, and target Mock class object is above-mentioned Mock class pair Any of as.
404, in the corresponding target detection interface of calling test interface call request, mesh is transferred from above-mentioned database It marks the corresponding returned data of test interface and generates code, which is any of test interface.
405, the corresponding returned data of target detection interface code is generated by reflection to load into tomcat container, and It is compiled to obtain member's class.
In the embodiment of the present invention, tomcat container can compile returned data and generate code, and to obtain member's class.
406, target returned data is obtained according to above-mentioned member's class, and returns to mesh to test object in a manner of target communication Mark returned data is to complete Mock test.
In the embodiment of the present invention, using tomcat container, corresponding target returned data is returned to by code logic.
As an alternative embodiment, before step 403, can with the following steps are included:
Software test index is obtained, and determines the corresponding numerical value up to standard and each preset of each single item software test index The corresponding default relation factor of item software test index;
After step 406, can with the following steps are included:
The test result that test object returns is received, which includes at least the test number of target detection index, The target detection index is at least one in above-mentioned software test index;Judge target detection index test number whether Be all larger than target detection index presets numerical value up to standard;If it is not, test index below standard in target detection index is obtained, it is defeated The corresponding default relation factor of below standard test index out.
In present embodiment, it will be understood that below standard test index is that test number is less than in advance in target detection index If the test index of numerical value up to standard, default relation factor refer to the test number that will lead to software test index it is changed because Element, it can be understood as the dependent variable of the numerical value of software test index.As it can be seen that implementing present embodiment, can refer in target detection Target test number is not the numerical value up to standard of presetting for being all larger than target detection index, i.e. software test result is obstructed out-of-date, output The corresponding default relation factor of below standard test index, and then the ginseng for how optimizing the software can be provided for developer Examine information.
407, by test interface document return parameters and communications protocol be configured at Web page.
408, the customized return parameters and/or customized communications protocol that detection user inputs in Web page.
409, test interface document is updated according to customized return parameters and/or customized communications protocol, and according to update Test interface document update Mock class object.
In the embodiment of the present invention, customized return parameters that user can input on web interface and/or customized logical Agreement is interrogated, to modify the information such as return parameters and/or communications protocol, without modifying code, the work of developer can be reduced Amount.
As it can be seen that implementing method described in Fig. 4, Mock class is created in Mock test macro by test interface document Object, Mock class object can simulate external environment system, wherein include the logical of test interface support in test interface document Interrogate agreement, i.e., the communications protocol that Mock test macro is supported is not limited to HTTP, thus, Mock test macro can be supported a variety of Communications protocol can be realized and return to target returned data to test object in a manner of target communication, and then can simulate various surveys Examination hall scape, so that software test is more convenient;In addition, user, which can write returned data in Web page, generates code, receiving Corresponding target returned data is returned to by code logic to when test interface call request, so that target returned data more accords with Close testing requirement;In addition, customized return parameters that user can input on web interface and/or customized communications protocol, To modify the information such as return parameters and/or communications protocol, without modifying code, the workload of developer can be reduced.
Embodiment five
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of Mock test macro disclosed by the embodiments of the present invention.Such as Fig. 5 Shown, which may include: creating unit 501, generation unit 502, receiving unit 503 and return unit 504, wherein
Creating unit 501, for creating Mock class object, the survey in Mock test macro according to test interface document It tries interface document and includes at least the communications protocol and the test interface that test request parameter, return parameters, test interface are supported Corresponding session object;
Generation unit 502, for generating the returned data of Mock class object in Mock test macro;
Receiving unit 503, the survey sent in a manner of the corresponding target communication of target communication agreement for receiving test object It tries a mouthful call request;Wherein, test interface call request carries target Mock class object, and target Mock class object is Any of Mock class object;
Return unit 504, for returning to target returned data to test object in a manner of target communication to complete Mock survey Examination, the target returned data are the returned data of target Mock class object.
As an alternative embodiment, return unit 504 is used to return to mesh to test object in a manner of target communication For mark returned data to complete Mock test, which is that the mode of the returned data of target Mock class object is specific It can be with are as follows:
Return unit 504, for when receiving above-mentioned test interface call request, according to target Mock class object mould The corresponding system type of quasi- system determines response delay;And by response delay after in a manner of target communication to test pair As returning to target returned data to complete Mock test, which is the returned data of target Mock class object.
As it can be seen that implementing present embodiment, the test environment of simulation can be closer to reality.
As it can be seen that implementing Mock test macro described in Fig. 5, created in Mock test macro by test interface document Mock class object is built, Mock class object can simulate external environment system, include wherein test interface in test interface document The communications protocol that the communications protocol of support, i.e. Mock test macro are supported is not limited to HTTP, thus, Mock test macro can It supports multiple kinds, can be realized and return to target returned data to test object in a manner of target communication, and then being capable of mould Intend various test scenes, so that software test is more convenient.
Embodiment six
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another kind Mock test macro disclosed by the embodiments of the present invention.Implement Mock test macro shown in example six is that the Mock test macro as shown in embodiment five optimizes.With embodiment Mock test macro shown in five compares, in Mock test macro shown in embodiment six,
The mode of returned data of the generation unit 502 for generating Mock class object in Mock test macro specifically may be used With are as follows:
Generation unit 502, for configuring return number of the fixed data as Mock class object in Mock test macro According to.
Return unit 504 is used to return to target returned data to test object in a manner of target communication to complete Mock survey The mode of examination specifically:
Return unit 504, for generating Mock task according to test interface call request, which is used to indicate Access the corresponding target Mock class object of test interface call request;Mock task is distributed to matching with Mock task First executes node, so that the first execution node returns to target returned data after access target Mock class object;With target Communication modes return to target returned data to test object to complete Mock test;
As an alternative embodiment, return unit 504 be used for by Mock task distribute to Mock task phase First matched executes node, so that the first execution node returns to target returned data after access target Mock class object Mode is specifically as follows:
Return unit 504 executes node for distributing Mock task to the Mock task matches first;? It detects whether to receive the target returned data that the first execution node returns in preset duration;If it is not, by Mock task distribute to Node is executed with the Mock task matches second, so that the second execution node returns after access target Mock class object Target returned data.
As it can be seen that implementing present embodiment, section is executed distributing Mock task to first to match with the Mock task After point, if failing to receive the target returned data of the first execution node return in preset duration, by Mock task distribute to Second executes node, can prevent from executing the factors bring test such as node failure due to first and interrupting or the equal influence of delay The case where test.
As an alternative embodiment, generation unit 502, be also used to receiving unit 503 receive test object with Before the test interface call request that the corresponding target communication mode of target communication agreement is sent, set in Mock test macro It sets performance test and executes node and common test execution node;Performance test execution node is at least divided into resources occupation rate Test execution node and task handling duration test execution node;And common test execution node is at least divided into code Logic testing node and code integrity degree test node.
Return unit 504, which is used to distribute Mock task to Mock task matches first, executes node, so that should The mode that first execution node returns to target returned data after access target Mock class object is specifically as follows:
Return unit 504, for obtaining the task type of Mock task, from the execution node in Mock test macro An execution node to match with the Mock task is chosen as first and executes node;Mock task is distributed to first and is held Row node, so that the first execution node returns to target returned data after access target Mock class object.
As it can be seen that implementing present embodiment, the execution node in Mock test macro is classified according to task type, and The Mock task for handling corresponding types can be avoided and connect since multiple test objects issue test to Mock test macro simultaneously Mouthful call request and the confusion phenomena occurred.
As an alternative embodiment, return unit 504 is used to return to mesh to test object in a manner of target communication Mark returned data is specifically as follows in a manner of completing Mock test:
Return unit 504, for obtaining the identity of test object according to Mock task;According to the identity with Target communication mode returns to target returned data to test object to complete Mock test.
In present embodiment, it is to be understood that above-mentioned test interface call request can also include the body of test object Part identifies, and includes the identity in the Mock task generated according to test interface call request.By Mock task distribute to The execution node that the Mock task matches, so that executing node executes the mesh that the Mock task generates target Mock class object Returned data is marked, and the target returned data of target Mock class object is back to by correspondence according to the identity of test object Test object.Traditional Mock test method does not also distinguish request Mock test in addition to the object type of not distinguishing tests Requesting party.Therefore, implement present embodiment, Mock test macro can also carry out multiple test objects by identity It distinguishes, so that the versatility of Mock test macro may further be improved.
As it can be seen that Mock test macro described in embodiment six, is created in Mock test macro by test interface document Mock class object is built, Mock class object can simulate external environment system, include wherein test interface in test interface document The communications protocol that the communications protocol of support, i.e. Mock test macro are supported is not limited to HTTP, thus, Mock test macro can It supports multiple kinds, can be realized and return to target returned data to test object in a manner of target communication, and then being capable of mould Intend various test scenes, so that software test is more convenient;In addition, Mock task is generated according to test interface call request, and Mock task is distributed to the Mock task matches first and executes node, is capable of the type of distinguishing tests object, it can It avoids causing confusion when multiple test objects need and synchronize and tested;Furthermore it is possible to prevent from executing node due to first The test of the factors bring such as failure is interrupted or the case where the equal influences test of delay, further, it is also possible to pass through identity to more A test object distinguishes, so that the versatility of Mock test macro may further be improved.
Embodiment seven
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another Mock test macro disclosed by the embodiments of the present invention.Fig. 6 Shown in Mock test macro be that Mock test macro as shown in Figure 5 optimizes.It is surveyed with Mock shown in fig. 5 Test system compares, and Mock test macro shown in fig. 6 can also include: configuration unit 505, detection unit 506 and update Unit 507, wherein
The mode of returned data of the generation unit 502 for generating Mock class object in Mock test macro specifically may be used With are as follows:
Generation unit 502 is generated for obtaining the corresponding returned data of test interface that user inputs in Web page Code, and store to the database of Mock test macro.
Return unit 504 is used to return to target returned data to test object in a manner of target communication to complete Mock survey The mode of examination specifically:
Return unit 504 is used in the corresponding target detection interface of calling test interface call request, from database In transfer the corresponding returned data of target detection interface and generate code, which is any of test interface; The corresponding returned data of target detection interface is generated code by reflection to load into tomcat container, and is compiled to obtain Obtain member's class;Target returned data is obtained according to member's class, and returns to target to test object in a manner of target communication and returns Data are to complete Mock test.
As an alternative embodiment, generation unit 502, is also used to receiving unit 503 and receives test object with mesh Before the test interface call request that the corresponding target communication mode of mark communications protocol is sent, software test index is obtained, and really Determine each single item software test index it is corresponding preset numerical value up to standard and the corresponding default association of each single item software test index because Element;
Return unit 504 is for returning to target returned data to test object in a manner of target communication to complete Mock After test, it can be also used for receiving the test result that test object returns, the survey of the test result at least target detection index Numerical value is tried, which is at least one in above-mentioned software test index;Judge the test number of target detection index What whether value was all larger than target detection index presets numerical value up to standard;Refer to if it is not, obtaining test below standard in target detection index Mark, exports the corresponding default relation factor of below standard test index.
In present embodiment, it will be understood that default relation factor refers to that the test number that will lead to software test index occurs The factor of variation, it can be understood as the dependent variable of the numerical value of software test index.As it can be seen that implement present embodiment, it can be in mesh The test number for marking test index is not the numerical value up to standard of presetting for being all larger than target detection index, i.e. software test result is obstructed It is out-of-date, the corresponding default relation factor of below standard test index is exported, and then can provide how to optimize this for developer The reference information of software.
Configuration unit 505, for by test interface document return parameters and communications protocol be configured at the Web page;
Detection unit 506, for detecting customized return parameters that user inputs in Web page and/or customized logical Interrogate agreement;
Updating unit 507, for updating test interface text according to customized return parameters and/or customized communications protocol Shelves, and Mock class object is updated according to the test interface document of update.
As it can be seen that implementing Mock test macro described in Fig. 6, created in Mock test macro by test interface document Mock class object is built, Mock class object can simulate external environment system, include wherein test interface in test interface document The communications protocol that the communications protocol of support, i.e. Mock test macro are supported is not limited to HTTP, thus, Mock test macro can It supports multiple kinds, can be realized and return to target returned data to test object in a manner of target communication, and then being capable of mould Intend various test scenes, so that software test is more convenient;In addition, user, which can write returned data in Web page, generates generation Code, returns to corresponding target returned data by code logic when receiving test interface call request, so that target returns Data more meet testing requirement;In addition, customized return parameters that user can input on web interface and/or customized Communications protocol, without modifying code, can reduce the work of developer to modify the information such as return parameters and/or communications protocol It measures.
The present invention also provides a kind of electronic equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, which is executed by processor When, realize Mock test method as previously shown.
The electronic equipment can be Fig. 1 shown device 100.
In one exemplary embodiment, the present invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer journey Sequence when the computer program is executed by processor, realizes Mock test method as previously shown.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.

Claims (10)

1. a kind of Mock test method, which is characterized in that the described method includes:
Mock class object is created in Mock test macro according to test interface document, the test interface document, which includes at least, to be surveyed Try the communications protocol and the corresponding session object of the test interface that required parameter, return parameters, test interface are supported;
The returned data of the Mock class object is generated in the Mock test macro;
Receive the test interface call request that test object is sent in a manner of the corresponding target communication of target communication agreement;Wherein, The test interface call request carries target Mock class object, and the target Mock class object is in the Mock class object Either one or two of;
Target returned data is returned to complete Mock test to the test object in a manner of the target communication, and the target is returned Return the returned data that data are the target Mock class object.
2. the method according to claim 1, wherein described generate the Mock in the Mock test macro The returned data of class object, comprising:
Returned data of the fixed data as the Mock class object is configured in the Mock test macro.
3. the method according to claim 1, wherein described generate the Mock in the Mock test macro The returned data of class object, comprising:
It obtains the corresponding returned data of the test interface that user inputs in Web page and generates code, and store to described The database of Mock test macro;
It is described to return to target returned data to the test object in a manner of the target communication to complete Mock test, comprising:
In the corresponding target detection interface of the calling test interface call request, the target is transferred from the database The corresponding returned data of test interface generates code, and the target detection interface is any of described test interface;
The corresponding returned data of the target detection interface is generated code by reflection to load into tomcat container, and is compiled It translates to obtain member's class;
The target returned data is obtained according to member's class, and is returned in a manner of the target communication to the test object The target returned data is to complete the Mock test.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
By in the test interface document the return parameters and the communications protocol be configured at the Web page;
Detect the customized return parameters and/or customized communications protocol that the user inputs in the Web page;
According to the customized return parameters and/or the customized communications protocol update test interface document, and according to The test interface document of update updates the Mock class object.
5. method according to claim 1 or 2, which is characterized in that it is described in a manner of the target communication to the test Object returns to target returned data to complete Mock test, comprising:
Mock task is generated according to the test interface call request, the Mock task is used to indicate the access test interface The corresponding target Mock class object of call request;
The Mock task is distributed to the Mock task matches first and executes node, so that described first executes section Point returns to the target returned data after accessing the target Mock class object;
The target returned data is returned to complete the Mock test to the test object in a manner of the target communication.
6. according to the method described in claim 5, it is characterized in that, it is described in a manner of the target communication to the test object The target returned data is returned to complete the Mock test, comprising:
The identity of the test object is obtained according to the Mock task;
The target returned data is returned with complete to the test object in a manner of the target communication according to the identity It is tested at the Mock.
7. method according to claim 5 or 6, which is characterized in that it is described by the Mock task distribute to it is described The first execution node that Mock task matches, so that the first execution node returns after accessing the target Mock class object Return the target returned data, comprising:
The Mock task is distributed to the Mock task matches first and executes node;
Detect whether that receiving described first executes the target returned data that node returns in preset duration;
Node is executed if it is not, distributing the Mock task to the Mock task matches second, so that described second It executes node and returns to the target returned data after accessing the target Mock class object.
8. a kind of Mock test macro, which is characterized in that the system comprises:
Creating unit, for creating Mock class object, the test interface in Mock test macro according to test interface document Document includes at least the communications protocol that test request parameter, return parameters, test interface are supported and the test interface is corresponding Session object;
Generation unit, for generating the returned data of the Mock class object in the Mock test macro;
Receiving unit, the test interface tune sent in a manner of the corresponding target communication of target communication agreement for receiving test object With request;Wherein, the test interface call request carries target Mock class object, and the target Mock class object is described Any of Mock class object;
Return unit, for returning to target returned data to the test object in a manner of the target communication to complete Mock survey Examination, the target returned data are the returned data of the target Mock class object.
9. a kind of electronic equipment, including memory and processor, the memory are stored with computer program, which is characterized in that The step of processor realizes method according to any one of claims 1 to 7 when executing the computer program.
10. a kind of readable storage medium storing program for executing, which is characterized in that it stores computer program, and the computer program makes computer Perform claim requires 1~7 described in any item Mock test methods.
CN201910318274.8A 2019-04-19 2019-04-19 Mcok test method and system, electronic equipment and readable storage medium storing program for executing Pending CN110162464A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910318274.8A CN110162464A (en) 2019-04-19 2019-04-19 Mcok test method and system, electronic equipment and readable storage medium storing program for executing
PCT/CN2019/118066 WO2020211360A1 (en) 2019-04-19 2019-11-13 Mock test method and system, electronic device, and computer non-volatile readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910318274.8A CN110162464A (en) 2019-04-19 2019-04-19 Mcok test method and system, electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110162464A true CN110162464A (en) 2019-08-23

Family

ID=67639869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910318274.8A Pending CN110162464A (en) 2019-04-19 2019-04-19 Mcok test method and system, electronic equipment and readable storage medium storing program for executing

Country Status (2)

Country Link
CN (1) CN110162464A (en)
WO (1) WO2020211360A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211360A1 (en) * 2019-04-19 2020-10-22 平安普惠企业管理有限公司 Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN112181824A (en) * 2020-09-25 2021-01-05 中国建设银行股份有限公司 System development auxiliary platform and method
CN112383434A (en) * 2020-11-17 2021-02-19 Oppo广东移动通信有限公司 Interface simulation method and device for network request, electronic equipment and storage medium
CN112905432A (en) * 2021-03-09 2021-06-04 北京大米科技有限公司 Performance test method and device, storage medium and terminal
CN116166569A (en) * 2023-04-26 2023-05-26 深圳市和讯华谷信息技术有限公司 Mock testing method and related equipment thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791971A (en) * 2021-08-13 2021-12-14 唯品会(广州)软件有限公司 Mock testing method, Mock testing device, Mock testing equipment and computer readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576848A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Simulation system
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform
CN106802865A (en) * 2017-01-17 2017-06-06 中国工商银行股份有限公司 For the response analogue means and method of software test
CN106802859A (en) * 2015-11-25 2017-06-06 北京京东尚科信息技术有限公司 A kind of method and device of client software test
CN107122292A (en) * 2016-10-21 2017-09-01 北京小度信息科技有限公司 A kind of method and system of analog service
CN107133160A (en) * 2016-02-26 2017-09-05 北京京东尚科信息技术有限公司 Test system
CN107291612A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and device of test
CN109299010A (en) * 2018-09-25 2019-02-01 深圳壹账通智能科技有限公司 Mock test method, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179984A (en) * 2016-03-10 2017-09-19 北京京东尚科信息技术有限公司 A kind of interface mock methods and interface test method
CN106528400A (en) * 2016-09-22 2017-03-22 深圳峰创智诚科技有限公司 MOCK testing method and device
CN108427644A (en) * 2018-03-27 2018-08-21 深圳市买买提信息科技有限公司 Service test method, service testing system and service testing device
CN109522218A (en) * 2018-10-19 2019-03-26 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium
CN110162464A (en) * 2019-04-19 2019-08-23 平安普惠企业管理有限公司 Mcok test method and system, electronic equipment and readable storage medium storing program for executing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576848A (en) * 2008-05-09 2009-11-11 北京世纪拓远软件科技发展有限公司 Simulation system
CN105302721A (en) * 2015-10-29 2016-02-03 普元信息技术股份有限公司 System and method for realizing integration testing of centralized analog server in cloud computing platform
CN106802859A (en) * 2015-11-25 2017-06-06 北京京东尚科信息技术有限公司 A kind of method and device of client software test
CN107133160A (en) * 2016-02-26 2017-09-05 北京京东尚科信息技术有限公司 Test system
CN107291612A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and device of test
CN107122292A (en) * 2016-10-21 2017-09-01 北京小度信息科技有限公司 A kind of method and system of analog service
CN106802865A (en) * 2017-01-17 2017-06-06 中国工商银行股份有限公司 For the response analogue means and method of software test
CN109299010A (en) * 2018-09-25 2019-02-01 深圳壹账通智能科技有限公司 Mock test method, device, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020211360A1 (en) * 2019-04-19 2020-10-22 平安普惠企业管理有限公司 Mock test method and system, electronic device, and computer non-volatile readable storage medium
CN112181824A (en) * 2020-09-25 2021-01-05 中国建设银行股份有限公司 System development auxiliary platform and method
CN112383434A (en) * 2020-11-17 2021-02-19 Oppo广东移动通信有限公司 Interface simulation method and device for network request, electronic equipment and storage medium
CN112383434B (en) * 2020-11-17 2023-08-08 Oppo广东移动通信有限公司 Interface simulation method and device for network request, electronic equipment and storage medium
CN112905432A (en) * 2021-03-09 2021-06-04 北京大米科技有限公司 Performance test method and device, storage medium and terminal
CN116166569A (en) * 2023-04-26 2023-05-26 深圳市和讯华谷信息技术有限公司 Mock testing method and related equipment thereof

Also Published As

Publication number Publication date
WO2020211360A1 (en) 2020-10-22

Similar Documents

Publication Publication Date Title
US10929116B2 (en) Generation of dynamic software models using input mapping with feature definitions
CN110162464A (en) Mcok test method and system, electronic equipment and readable storage medium storing program for executing
US8694968B2 (en) System for creating personalized and customized mobile devices
US10628132B2 (en) Inversion of control framework for multiple behaviors of a process
CN105765527B (en) The method and apparatus of software development kit (SDK) for customization
CN105814539B (en) The method and apparatus generated for code virtualization and remote process call
US11797273B2 (en) System and method for enhancing component based development models with auto-wiring
CN105302710A (en) Method and apparatus for determining test case in need of regression testing
US10936309B2 (en) Development project blueprint and package generation
CN107766040A (en) A kind of method, apparatus and computer-readable recording medium for generating interface document
CN104111826A (en) Software project development method and device
CN107329748A (en) API development managements method and system and server and computer-readable recording medium
CN112764751A (en) Interface generation method and device, interface request method and device and storage medium
CN109739526A (en) Code update method and device
CN110134591A (en) A kind of software method for testing pressure and system, electronic equipment
CN116257438A (en) Updating method of interface test case and related equipment
CN111159301A (en) Data creating method, device, equipment and storage medium based on intelligent contract
CN110825395A (en) Multi-plug-in layered deployment system, device and medium
CN116974581B (en) Code generation method, device, electronic equipment and storage medium
CN112241373A (en) Automatic test method, test device, processor and test system
CN105867176A (en) Application configuration switching method and device
US10324692B2 (en) Integration for next-generation applications
US11757976B2 (en) Unified application management for heterogeneous application delivery
US11294644B2 (en) Inversion of control framework for multiple behaviors on top of a process
CN103678054B (en) Test method and device used for BACnet equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190823