CN107368405A - Test system, method of testing, mock platforms, blocker and client - Google Patents

Test system, method of testing, mock platforms, blocker and client Download PDF

Info

Publication number
CN107368405A
CN107368405A CN201610312140.1A CN201610312140A CN107368405A CN 107368405 A CN107368405 A CN 107368405A CN 201610312140 A CN201610312140 A CN 201610312140A CN 107368405 A CN107368405 A CN 107368405A
Authority
CN
China
Prior art keywords
mock
test
client
request
information
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
CN201610312140.1A
Other languages
Chinese (zh)
Other versions
CN107368405B (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201610312140.1A priority Critical patent/CN107368405B/en
Publication of CN107368405A publication Critical patent/CN107368405A/en
Application granted granted Critical
Publication of CN107368405B publication Critical patent/CN107368405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

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

Abstract

The present invention provides a kind of test system, method of testing, mock platforms, blocker and client.The test system includes:Blocker, it is separately positioned with the client, provide test request information, and the type for the test for judging to ask based on the test request information for receiving client;When the test of request, which includes the mock, to be tested, then mock platforms are notified;Mock platforms are simulated, it is separately positioned with the client, for storing mock data, and the mock data are read when the test of client request includes mock tests, and the mock data are supplied to the client.

Description

Test system, method of testing, mock platforms, blocker and client
Technical field
The present invention relates to areas of information technology, more particularly to a kind of test system, method of testing, simulation mock Platform, blocker and client.
Background technology
Mock services are simulated to provide the mock services of test.Mock tests are in code, program or answered With in test process, be not easy to construct or be not easy the objects obtained for some, using virtual objects come Create so as to the method for testing of test.For example, in the unit testing of code or program or application, often Running into the code module write needs to rely on other class or outside dependence interface.If now, these classes Or interface may also not write or develop completion, or the outside environmental structure for relying on interface service needs to disappear More cost is consumed, in order to be tested or reduced cost, can be simulated by defining mock objects required Since interface or class behavior.Here mock objects are one kind of above-mentioned virtual objects.
The mock mock functions of service can be provided by being carried in the prior art in the front end frame of business, The mock data for carrying out mock tests are stored with client where front end frame.For example, will Mock data storages are in the local json files of client.The json is JavaScript Object Notation abbreviation, it is a kind of data interchange format of lightweight.When carrying out mock tests, utilize The Intercept Interview of the debugging proxy instrument such as fiddler is asked, and the access that the request that front end frame is sent accesses The address where local json files is revised as in location, then will obtain mock data and carry out mock tests, and carry Serviced for mock.Here mock data may include the data for describing above-mentioned mock objects.The fiddler It is a kind of debugging proxy instrument based on HTTP http, is a kind of client-side program.
On the one hand, but when the above method provides mock services, the mock is obtained by modified address Data, after mock tests are completed, developer, which also needs to manually return to reference address, to be needed to visit The interface or the true address of class asked.And due to a variety of causes, developer may forget modification configuration text Reference address in part, cause the mistake in follow-up use.
On the other hand, conducted interviews the interception of request using debugging acids such as fiddler, it is obviously desirable in client Installation and debugging implementing procedure in end.Obviously when carrying out mock tests, tester is needed first in client Debugging acid program is installed and set in end, it is clear that cumbersome and testing efficiency is low.
The content of the invention
In view of this, the embodiment of the present invention it is expected to provide a kind of test system, method of testing, mock platforms, Blocker and client, at least partly solve the above problems.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
First aspect of the embodiment of the present invention provides a kind of test system, and the system includes blocker and simulation Mock platforms:
The blocker, it is separately positioned with the client, test request information is provided for receiving client, And the type of the test of request is judged based on the test request information;When the test of request includes the mock During test, then the mock platforms are notified;
The simulation mock platforms, it is separately positioned with the client, for storing mock data, and work as The test of client request includes reading the mock data when mock is tested, and by the mock data It is supplied to the client.
Based on such scheme, the mock platforms, storage configuration information is additionally operable to;Wherein, the configuration Information comprises at least the first identification information of the test object for needing to carry out mock tests;
The blocker, the second identification information of object is asked in the test request information specifically for extracting, The configuration information is read from the mock platforms;By second identification information and the first information Matched, the mock that tests whether to include for determining request according to the result of matching is tested.
Based on such scheme, the system also includes:
Business logic processing platform, for when the test of client request includes business function test, being based on The test request information performs service logic, and providing service logic to the client performs data.
Based on such scheme, the system also includes:
Server, for receiving the test request information of client transmission;
The mock platforms, for showing that the test of request is tested including mock when the test request information When, the mock data prestored are read, and the mock data are sent to server;
The server, it is additionally operable to the mock data being sent to client.
Based on such scheme, the system also includes:
Interactive interface, for showing and receiving the configuration information of mock tests;Wherein, the configuration information The information of the test object of mock tests is carried out including at least instruction.
Based on such scheme, the interactive interface, specifically for receiving project configuration information, wherein, it is described Project configuration information is used to indicate whether the test object in corresponding project to need to carry out mock tests.
Based on such scheme, the system also includes:
Record interface, the related information for collecting test object;The related information comprises at least the survey Try test information and/or application message that object carries out non-mock tests;
Wherein, the related information can be used in providing mock data offer reference number for the mock platforms According to.
Second aspect of the embodiment of the present invention provides a kind of method of testing, applied to the mould separately positioned with client Intend in mock platforms, methods described includes:
Prestore mock data;
Receive the notice sent with the separately positioned blocker of the client;Wherein, the notice is to be based on The test request information that the client is sent determines that the test of request includes what is sent during mock tests;
After receiving the notice, the mock data are read;
The mock data are supplied to the client.
Based on such scheme, methods described also includes:
Prestore configuration information;Wherein, the configuration information, which comprises at least, needs to carry out mock tests First identification information of test object;
The configuration information is sent to the blocker separated with the client;Wherein, the configuration information For for the blocker judge client request test whether to include correspond to the test object Mock is tested.
Based on such scheme, methods described also includes:
Receive simultaneously storage configuration information;Wherein, the configuration information comprises at least instruction and carries out mock tests Test object information.
Based on such scheme, methods described also includes:
According to the related information for recording the test object that interface provides, it is determined that being supplied to the mock of the client Data;Wherein, the related information can be used in providing the offer reference of mock data for the mock platforms Data.
The third aspect of the embodiment of the present invention provides a kind of method of testing, applied to the blocker separated with client In, methods described includes:
Receive the test request information that the client provides;
The test request information is parsed, determines the type of the test of the client request;
When the test of the request includes simulation mock tests, the mock separated with the client is notified Platform;Wherein, the mock platforms are that can provide to carry out mock data needed for the mock tests Service platform.
Based on such scheme, methods described also includes:
The test object configuration information for needing to carry out mock tests is received from the mock platforms, wherein, institute State the first identification information that configuration information comprises at least the test object for needing to carry out mock tests;
The parsing test request information, determine client request tests whether to include mock tests, Including:
The second identification information of extraction request object from the test request information;
Second identification information is matched with first identification information;
When at least one described second identification information is included in the first identification information, the request is determined Test include the mock test.
Based on such scheme,
The parsing test request information, the type of the test of client request is determined, in addition to:
The test request information is parsed, determine client request tests whether to include business function test;
Methods described also includes:
When the test of the request, which includes business function, to be tested, service logic platform is notified;Wherein, it is described Service logic platform can be used in performing number for the service logic that the client is provided needed for business function test According to.
Fourth aspect of the embodiment of the present invention provides a kind of method of testing, applied in client, methods described bag Include:
Generate test request information;
The test request information is sent to network side;The network side comprises at least and the client point From simulation mock platforms;
The mock platforms are received when the test that the test request information is asked includes mock tests, are returned The mock data returned.
Based on such scheme, the network side also includes service logic platform;
Methods described also includes:
The service logic platform is received when the solicited message asks to carry out business function test, return Service logic performs data.
Based on such scheme, the network side also includes blocker;
It is described that the test request information is sent to network side, including:
The test request information is supplied to the blocker;Wherein, the test request information at least can It is enough in the type that the blocker determines the test of the client request;The type of the test of the request Tested including at least the mock.
The aspect of the embodiment of the present invention the 5th provides a kind of simulation mock platforms, the mock platforms and client It is separately positioned, including:
Memory cell, for prestoring mock data;
First receiving unit, for receiving the notice sent with the separately positioned blocker of the client;Its In, the notice is that the test request information sent based on the client determines that the test of request includes What mock was sent when testing;
Processing unit, after receiving the notice, read the mock data;
Interactive unit, for the mock data to be supplied into the client.
A kind of blocker of the aspect offer of the embodiment of the present invention the 6th, the blocker and client are separately positioned, Including:
Second receiving unit, the test request information provided for receiving the client;
Resolution unit, for parsing the test request information, determine the class of the test of the client request Type;
Notification unit, for when the test of the request includes simulation mock tests, notifying and the visitor The mock platforms of family end separation;Wherein, the mock platforms carry out the mock tests for that can provide The service platform of required mock data.
The aspect of the embodiment of the present invention the 7th provides a kind of client, and the client includes:
Generation unit, for generating test request information;
Transmitting element, for the test request information to be sent into network side;The network side comprises at least The simulation mock platforms separated with the client;
3rd receiving unit, the test asked for receiving the mock platforms in the test request information When being tested including mock, the mock data of return.
Test system and method provided in an embodiment of the present invention, mock platforms, blocker and client, mock Data are local not stored in client, and are stored in the mock platforms specially set, and the mock is put down Platform is separated with client and independence, so it is avoided that being surveyed by the mock of mock data initializations in the client In examination, directly change in client after reference address, the reference address that developer forgets to recover original causes The problem of;And do not have to set the blocker that request intercepts that conducts interviews in each client simultaneously, can be with The installation and setting of blocker in the client in test process is reduced, reduces the operand of mock tests, Improve mock test rates;Further, since mock platforms separate with client, mock platforms The mock data of middle storage can be shared by more different clients, and mock platforms can be based on client The request at end, while or asynchronously provide mock data for more clients, improve mock data and The availability of mock platforms.
Brief description of the drawings
Fig. 1 is the connection diagram of a kind of client provided in an embodiment of the present invention and test system;
Fig. 2 is the connection diagram of another client provided in an embodiment of the present invention and test system;
Fig. 3 is the first method of testing schematic flow sheet provided in an embodiment of the present invention;
Fig. 4 is second of method of testing schematic flow sheet provided in an embodiment of the present invention;
Fig. 5 is the third method of testing schematic flow sheet provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of mock platforms provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of blocker provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of client provided in an embodiment of the present invention;
Fig. 9 is the connection diagram of another client provided in an embodiment of the present invention and test system;
Figure 10 is the 4th kind of method of testing schematic flow sheet provided in an embodiment of the present invention;
Figure 11 and Figure 12 is configuration information display schematic diagram provided in an embodiment of the present invention;
Figure 13 is the information processing schematic diagram based on test system provided in an embodiment of the present invention.
Embodiment
Technical scheme is done below in conjunction with Figure of description and specific embodiment and further explained in detail State.
Embodiment one:
As shown in figure 1, the present embodiment provides a kind of test system, the system includes:
Mock platforms 110, for storing mock data, and when the test that client 100 is asked includes mock The mock data are read during test, and the mock data are supplied to the client 100;It is described Mock platforms 110 and the client 100 are separately positioned.
Mock platforms described in the present embodiment 110 is the independent independent platform with the client 100, is Corresponding to different physical equipments.Can be by each between the mock platforms and the client 100 Kind network connection, for example, the mock platforms 110 can be that can establish network with the client 100 The cloud platform of connection.Mock platforms can be shared by multiple client 100, the mock numbers in mock platforms According to can also be shared by multiple client.Chinese corresponding to the mock is simulation.
In the present embodiment when testing client 100, if the test of request is tested including mock, The mock data prestored are then read by the mock platforms 110, and the mock data are supplied to Client 100.For example, client 100 need to some interface or some test, this is to this Interface or such test carried out may include mock and test, if being tested including mock, mock platforms The interface or such corresponding mock digital independent can be come out, the client 100 is supplied to by network. The mock platforms 110 can be established direct-connected between the client 100, can also pass through server Multi-hop connection is established etc. intermediate equipment.Without other equipment among the direct-connected expression, directly establish described in Connection between mock platforms and the client 100.
Obviously, the mock data are so obvious not stored in client 100 in the present embodiment It can avoid because being stored in client 100, when carrying out mock tests caused by modification reference address The problem of forgetting to return to original reference address;On the other hand block also without being installed in client 100 The instrument of cutting carrys out Intercept Interview request, it is clear that can simplify test operation, lift test rate.
Embodiment two:
As shown in Fig. 2 the present embodiment provides a kind of test system, the system includes:
Mock platforms 110, for storing mock data, and when the test that client 100 is asked includes mock The mock data are read during test, and the mock data are supplied to the client 100;It is described Mock platforms 110 and the client 100 are separately positioned.
Blocker 120, it is separately positioned with the client 100, provided for receiving the client 100 Test request information, and the type for the test for judging to ask based on the test request information;When the survey of request When examination includes the mock tests, then the mock platforms are notified.
The blocker 120 is arranged on network side in the present embodiment, can as with the mock platforms simultaneously One network element of row, can also be as a sub- network element in the mock platforms.The blocker 120, By the type of the test for determining client's request, the type of test here may include mock tests and industry It is engaged in the test-types such as functional test, the type of above two test is not limited to during specific implementation.The interception Device 120 will receive the test request information of the offer of client 100.The test request information can be wrapped at least Include the attribute information such as the identification information of request object and the category attribute of test object.The blocker 120 can Based on the test request information, that judges client request tests whether to include mock tests, if bag Mock tests are included, then notify mock platforms 110, such mock platforms 110 will be specifically used for when reception To after the notice, mock data corresponding to reading, there is provided to the client 100.
It may include to need to carry out mock tests in the notice that the blocker 120 is sent to mock platforms 110 Request object identification information and/or test data.
The blocker 120 is judging when testing whether to include mock tests of client request, has a variety of Method, two kinds of optional modes presented below:
Optional mode one:
The test request information includes asking the identification information of object, in the present embodiment the identification information It can be described as the second identification information;Now, the blocker 120, available for by second identification information with The first identification information of the test object for needing to carry out mock tests is specified to be matched, if the match is successful, Then think that the test of client request is tested including mock.For example, the mock platforms 110, are additionally operable to Storage configuration information;Wherein, the configuration information comprises at least the test object for needing to carry out mock tests The first identification information;The blocker 120, specifically for extracting request pair in the test request information The second identification information of elephant, the configuration information is read from the mock platforms;Described second is identified Information is matched with the first information, according to the result of matching determine request test whether include described in Mock is tested.Certainly in specific implementation, the configuration information is not limited to be stored in mock platforms 110 In, it can also store blocker 120.But configuration information is stored in mock platforms, such mock is put down Platform just stores information more related to mock tests, realizes the classification of information and exclusive storage, subtracts The storage of few information is chaotic.
Optional mode two:
The test request information includes asking the attribute information of object, for example, category attribute.For example, Interface can be divided into multiple classifications, if only needing the carry out mock tests to wherein some classification.Now, institute Blocker 120 is stated, available for according to the attribute information, it is determined that whether including specifying in request object needing The classification tested, include mock if the test that the request of client 100 is determined including and if test.
Certainly, during concrete implementation, the blocker 120 judges the test that client 100 is asked Whether including the method for mock tests has a variety of, is not limited to above-mentioned so and a kind of.
In a word, a kind of test system is present embodiments provided, the test system includes separating with client and solely Vertical mock platforms, the mock data needed for mock tests are provided by mock platforms;Also include simultaneously With the separate and distinct blocker of the test system, the blocker has mock testing requirements available for each Client share, without as in the prior art each need carry out mock tests client In the blockers such as the fiddler of Intercept Interview request are all installed, on the one hand improve testing efficiency, it is another Aspect can more effectively use blocker 120.
It is worth noting that:Even if client described in all embodiments of the invention needs to carry out mock tests When, the reference address that the test request information of transmission carries can also be the true visit in actual moving process Ask that address (for example, uniform resource address URL) blocker 120 receives the test request information, sentence Break and to need to carry out mock tests, stop sending test request information to the URL, but described in notifying Mock platforms provide mock data.
Embodiment three:
As shown in Fig. 2 the present embodiment provides a kind of test system, the system includes:
Mock platforms 110, for storing mock data, and when the test that client 100 is asked includes mock The mock data are read during test, and the mock data are supplied to the client 100;It is described Mock platforms 110 and the client 100 are separately positioned;
Business logic processing platform 130, the test for being asked when the client 100 include business function During test, service logic is performed based on the test request information, patrolled to the offer business of client 100 Collect and perform data.
The service logic platform 130, the service logic of miscellaneous service function is stored with, is received for working as When client traffic function is asked, test request information can be based on and perform service logic, provided to client Service logic performs data.
Obviously, the test system described in the present embodiment can be not only used for providing mock tests institute for client The mock data needed, while can also be used to assist client to provide business function test, it is an a variety of surveys Try the integrated platform that can be realized.The test system that obvious the present embodiment provides, have test function rich The characteristics of rich and power of test is strong.
In specific application, the test system that the present embodiment provides may also comprise the interception described in embodiment Device 120, the request for test information that the blocker 120 provides reception client 100, it should be asked by parsing Test information is sought, determines while testing whether to include mock tests of request, it may also be used for it is determined that please Ask test whether to include business function test when, notify the service logic platform 130.So business is patrolled Corresponding service logic will be performed by collecting platform 130, and generation service logic performs data and returns to client 100.Here service logic performs the implementing result that data can be the service logic.The blocker 120 Being sent to the notice of the service logic platform 130 may include to need the test object for carrying out business function test Identification information and test data etc..
So, in the test system that embodiment provides, there is provided a type for being used to determine the test of request Blocker 120, test function need to be carried out by facilitating test platform to enter, without the type of the test made requests on Judgement, realize the cutting of function well, operating process is smooth and clear.It is described in the present embodiment Test platform may include the service logic platform 130 that foregoing mock platforms 110 and the present embodiment provide.
Example IV:
As shown in Fig. 2 the present embodiment provides a kind of test system, the system includes:
Server 140, for receiving the test request information of the transmission of client 100;
Mock platforms 110, for storing mock data, and when the test request information shows request When test includes mock tests, the mock data are read, and the mock data are sent to service Device 140;The mock platforms 110 and the client 100 are separately positioned;
The server 140, it is additionally operable to the mock data being sent to client 100.
Pass through server 140 between the client 100 and the mock platforms 110 in the present embodiment Connection, the server 140 receive the test request information that client provides, and by mock platforms 110 The mock data of offer return to client 100.The server 140 is used as the client 100 and institute The intermediate node between mock platforms 110 is stated, carries out the intermediate treatments such as forwarding and the security control of data, Client 100 is avoided to be directly connected to mock platforms 110, the security of caused mock platforms etc. inadequate The problem of.
Certainly, test system described in the present embodiment may also include blocker 120 and/or the business in foregoing implementation Logical platform 130.When the test system includes the blocker 120, the server 140 is located at Between the client 100 and the blocker 120, to play preferably isolation and protective effect.
Embodiment five:
As shown in figure 1, the present embodiment provides a kind of test system, the system includes:
Mock platforms 110, for storing mock data, and when the test that client 100 is asked includes mock The mock data are read during test, and the mock data are supplied to the client 100;It is described Mock platforms 110 and the client 100 are separately positioned.
Interactive interface, for showing and receiving the configuration information of mock tests;Wherein, the configuration information The information of the test object of mock tests is carried out including at least instruction.
The interactive interface may include web user interface WEB UI, can show that current configuration information, The configuration information may be based on the input generation of tester.Certain interactive interface can also receive configuration Information, the configuration information, which is storable in mock platforms, to be used to control mock to test.For example, the interaction Interface can also receive user's instruction, update the configuration information.Here renewal is including deleting, changing and newly Increase configuration information.
In a word, an interactive interface is present embodiments provided, facilitates tester to carry out the control of mock tests System and management.
As further improvement of this embodiment, the interactive interface, specifically for receiving project configuration information, Wherein, the project configuration information is used to indicate whether the test object in corresponding project to need to carry out mock Test.Project described in the present embodiment may include some application or some business.It can be wrapped in one application Multiple request objects are included, multiple request objects are may also comprise in a business.The project in the present embodiment Configuration information, total interface or class etc. it can be related to mock surveys in equivalent to one overall control some project Whether the request object of examination carries out the master switch of mock tests, improves the control simplicity of mock tests.
Certainly, test system described in the present embodiment can be entering on the basis of any one foregoing embodiment One step is improved, and blocker 120, service logic platform are may also comprise in the test system that the present embodiment provides 130 and server 140 at least one.
Embodiment six:
As shown in figure 1, the present embodiment provides a kind of test system, the system includes:
Mock platforms 110, for storing mock data, and when the test that client 100 is asked includes mock The mock data are read during test, and the mock data are supplied to the client 100;It is described Mock platforms 110 and the client 100 are separately positioned.
The system also includes:
Record interface, the related information for collecting test object;The related information comprises at least the survey Try test information and/or application message that object carries out non-mock tests;
Wherein, the related information can be used in providing mock data offer reference number for the mock platforms According to.
The recording interface that the present embodiment provides, it can be an interface being connected with client, can receive various The various related informations associated with test object.Such as the test object is produced when carrying out non-mock tests Raw test data and the test parameter of use etc. test information.Certainly, there are some applications to reach the standard grade to be disappeared The person of expense uses, and this when, these applied operation to produce service data, and use may be produced during use Family feedback data, these service datas and user feedback data all when the application message part, all Reference data is provided available for carry out mock data.
The test system is by recording the setting of interface in the present embodiment, by the above-mentioned incidence number of automatic data collection According to, then by the way that mock data can be automatically generated after data screening and analysis, greatly improve test System it is intelligent, preferably make use of the software and hardware resources of test system, simplify test system maintenance and Mock is tested.
Certainly it is worth noting that test system described in the present embodiment, also in any one foregoing reality The further improvement on the basis of example is applied, equally may include blocker 120, service logic platform 130 and service At least one of device 140.
Embodiment seven:
As shown in figure 3, the present embodiment provides a kind of method of testing, applied to the mock separately positioned with client In platform, methods described includes:
Step S110:Prestore mock data;
Step S120:Receive the notice sent with the separately positioned blocker of the client;Wherein, it is described Notice is that the test request information sent based on the client determines that the test of request is tested including mock When send;
Step S130:After receiving the notice, the mock data are read;
Step S140:The mock data are supplied to the client.
When mock tests are carried out in the present embodiment, the mock data prestored are read by mock platforms, Mock data are not stored in client local described in obvious the present embodiment.The survey that the present embodiment provides Method for testing be applied in mock platforms, being a mock service platform separately positioned with client, The mock platforms provide mock data when the test of client request includes mock tests to client. The mock data can be used for client to complete follow-up mock tests.Mock in all embodiments of the invention Data can be used for client to carry out page rendering, the object to be shown such as form corresponding to display, naturally it is also possible to It is the mock tests of third party's business interface, when carrying out mock tests to third party's business interface, mock The mock data that platform provides facilitate client to judge whether current third party business interface is tested and passed through.
In a word, a kind of method of testing is present embodiments provided, the test request that will be sent according to client, is had The mock platforms being independently and separately in client carry out the offer of mock data, so as to solve prior art In because by mock data storages variety of problems caused by client local, on the one hand can reduce because of people Not recovering for reference address caused by member's carelessness, on the other hand can also lift the efficiency of mock tests.
Embodiment eight:
As shown in figure 3, the present embodiment provides a kind of method of testing, applied to the mock separately positioned with client In platform, methods described includes:
Step S110:Prestore mock data;
Step S120:Receive the notice sent with the separately positioned blocker of the client;Wherein, it is described Notice is that the test request information sent based on the client determines that the test of request is tested including mock When send;
Step S130:After receiving the notice, the mock data are read;
Step S140:The mock data are supplied to the client.
Methods described also includes:
Prestore configuration information;Wherein, the configuration information, which comprises at least, needs to carry out mock tests First identification information of test object;
The configuration information is sent to the blocker separated with the client;Wherein, the configuration information For for the blocker judge client request test whether to include correspond to the test object Mock is tested.
Methods described also prestores configuration information including mock platforms in the present embodiment, described to match somebody with somebody confidence Breath can be used to indicate which test object needs to carry out mock tests.The mock is put down in the present embodiment The configuration information can be sent to the blocker by platform, and blocker is separately positioned with client, is It can be shared by multiple different clients.Client request is determined by blocker in the present embodiment Test whether to include mock tests.In specific implementation, certain mock platforms itself can be used for Judge the client request tests whether to include mock tests, and the method for judgement can be sentenced with blocker Disconnected mode is identical, herein just not repeated description.
Embodiment nine:
As shown in figure 3, the present embodiment provides a kind of method of testing, applied to the mock separately positioned with client In platform, methods described includes:
Step S110:Prestore mock data;
Step S120:Receive the notice sent with the separately positioned blocker of the client;Wherein, it is described Notice is that the test request information sent based on the client determines that the test of request is tested including mock When send;
Step S130:After receiving the notice, the mock data are read;
Step S140:The mock data are supplied to the client.
Methods described also includes:
Receive simultaneously storage configuration information;Wherein, the configuration information comprises at least instruction and carries out mock tests Test object information.
Configuration information described in the present embodiment can be the configuration information described in previous embodiment, or Different from the configuration information provided in previous embodiment.For example, connect by the interactive interface in previous embodiment Receive the configuration information.So facilitate tester to control mock tests, lift the controllability of test.
Embodiment ten:
As shown in figure 3, the present embodiment provides a kind of method of testing, applied to the mock separately positioned with client In platform, methods described includes:
Step S110:Prestore mock data;
Step S120:Receive the notice sent with the separately positioned blocker of the client;Wherein, it is described Notice is that the test request information sent based on the client determines that the test of request is tested including mock When send;
Step S130:After receiving the notice, the mock data are read;
Step S140:The mock data are supplied to the client.
Methods described also includes:
According to the related information for recording the test object that interface provides, it is determined that being supplied to the mock of the client Data;Wherein, the related information can be used in providing the offer reference of mock data for the mock platforms Data.
The related information that can be also provided in the present embodiment according to interface is recorded, determines that the mock data carry For supplemental characteristic example, for example, the mock platforms can generate mock numbers automatically according to the related information According to being thus manually entered the mock data without tester or test system attendant.For example, Mock data generation code is provided with the mock platforms, mock platforms can be used for the association Data perform the mock data that the code building can provide to client as data input.
Certain the present embodiment for aforementioned test method further this enter, therefore the method for testing described in the present embodiment It equally may include that mock platforms prestore configuration information, or the behaviour such as configuration information received by interactive interface Make.
Embodiment 11:
As shown in figure 4, the present embodiment provides a kind of method of testing, applied to the blocker separated with client In, methods described includes:
Step S210:Receive the test request information that the client provides;
Step S220:The test request information is parsed, determines the type of the test of the client request;
Step S230:When the test of the request, which includes mock, to be tested, notice separates with the client Mock platforms;Wherein, the mock platforms carry out mock needed for the mock tests for that can provide The service platform of data.
Blocker described in the present embodiment separates with the client, is that can be shared by multiple client Blocker.Blocker receives the test request information that client provides, and is determined according to the test request information Client request tests whether to include mock tests, if then notice mock is put down including mock tests Platform.Here mock platforms are the platform separated with client, therefore will not produce and be provided by client itself Various problems caused by mock data, mistake in program development process can be reduced, while test can be lifted Efficiency.
As further improvement of this embodiment, methods described also includes:
The test object configuration information for needing to carry out mock tests is received from the mock platforms, wherein, institute State the first identification information that configuration information comprises at least the test object for needing to carry out mock tests;
The step S220 may include:
The second identification information of extraction request object from the test request information;
Second identification information is matched with first identification information;
When at least one described second identification information is included in the first identification information, the request is determined Test include the mock test.
The blocker will receive configuration information from mock platforms in the present embodiment, be believed by the first mark The matching of breath and the second identification information tests whether to include mock tests determine to ask.Certainly it is specific real Now, the configuration information is not limited to be stored in mock platforms, can also store and the blocker In.But store configuration information in mock platforms, facilitate whole mock platforms to being tested on mock All data be managed collectively.
On the other hand, the step S220 also includes:
The test request information is parsed, determine client request tests whether to include business function test;
Methods described also includes:
When the test of the request, which includes business function, to be tested, service logic platform is notified;Wherein, it is described Service logic platform can be used in performing number for the service logic that the client is provided needed for business function test According to.
The blocker cannot be only used for carrying out the determination of the type of mock tests in the present embodiment, may be used also It is used to determine whether to include business function test, if tested including business function, notifies service logic platform. The blocker that obvious the present embodiment provides is that the type of a variety of tests determines network element, is capable of determining that client please The type for the test asked, and the test platform of push-notification-answer carries out corresponding test.
Embodiment 12:
As shown in figure 5, the present embodiment provides a kind of method of testing, applied in client, methods described bag Include:
Step S310:Generate test request information;
Step S320:The test request information is sent to network side;Wherein, the network side at least wraps Include the mock platforms separated with the client;
Step S330:Receive the mock platforms includes mock in the test that the test request information is asked During test, the mock data of return.
A kind of method of testing is present embodiments provided, client is when carrying out mock tests, and passes through life Into test request information;Test request information is given to network side, by the mock platforms of network side provide into Mock data needed for row mock tests, so avoid mock data storages and are locally led in client The mistake of reference address in the development process of cause, and client does not have to special installation blocker, lifting test effect Rate.
During concrete implementation, the type of the test of client request may test mock incessantly, also It is probably other tests, such as business function test, the network side also include service logic platform.
Methods described also includes:Receive the service logic platform and ask carry out business work(in the solicited message When can test, the service logic of return performs data.Such client, not only can be by sending out to network side Test request information is sent, obtains the mock data needed for mock tests, it may also be used for obtains business function and surveys Service logic needed for examination performs data.
In addition, the network side also includes blocker;
The step S320 may include:The test request information is supplied to the blocker;Wherein, institute State test request information and at least can be used in the type that the blocker determines the test of the client request; The type of the test of the request is tested including at least the mock.The type of certain test can also wrap Include business function test.
Obvious client described in the present embodiment can send the survey to the blocker that multiple client shares Solicited message is tried, does not have to, in installation blocker, can so lift testing efficiency in client.
Embodiment 13:
As shown in fig. 6, the present embodiment provides a kind of mock platforms, the mock platforms separate with client Set, including:
Memory cell 210, for prestoring mock data;
First receiving unit 220, for receiving the notice sent with the separately positioned blocker of the client; Wherein, the notice is that the test request information sent based on the client determines that the test of request includes What mock was sent when testing;
Processing unit 230, after receiving the notice, read the mock data;
Interactive unit 240, for the mock data to be supplied into the client.
Memory cell 210 described in the present embodiment may correspond to various types of storage mediums.The storage is situated between Matter may include various types of storage mediums such as CD and disk, be chosen as non-moment storage medium.
The processor or process circuit that the processing unit 230 may correspond in various types of electronic equipments. The processor may include central processing unit, microprocessor, digital signal processor, programmable array or answer With processor etc..The process circuit may include application specific integrated circuit etc..
The interactive unit 240 may correspond to various communication interfaces, for example, wireline interface or wave point. The wireline interface may correspond to fiber optic cable interface or cable interface.The wave point may include various to pass Antenna of defeated wireless signal etc..
As shown in fig. 6, the memory cell 210, processing unit 230 and interactive unit 240 can be by setting Standby internal bus, such as iic bus or pci bus etc. connect.
A mock platform for being used for mock tests is present embodiments provided, the platform is separated with client Set, be the platform of an independence and client, mock tests can be carried out for client mock is provided Data, to solve client caused various problems in mock tests are carried out, and can be by multiple visitors Family end is used in conjunction with, and has the characteristics of resource utilization is high.
In a particular application, the memory cell 210, is particularly used in and prestores configuration information;Wherein, The configuration information comprises at least the first identification information of the test object for needing to carry out mock tests;
The interactive unit 240, is particularly used in the configuration information being sent to and is separated with the client Blocker;Wherein, the configuration information is used to judge testing whether for client request for the blocker Including the mock tests corresponding to the test object.
The memory cell 210, it may also be used for receive simultaneously storage configuration information;Wherein, the configuration information The information of the test object of mock tests is carried out including at least instruction.
The mock platforms may also include:Determining unit;The determining unit can be used for according to recording interface The related information of the test object of offer, it is determined that being supplied to the mock data of the client;Wherein, institute Related information is stated to can be used in providing mock data offer reference data for the mock platforms.
The mock platforms that the present embodiment provides, it is separately positioned with client, can is that client is carried out Mock tests provide mock data, and can be used in conjunction with by more clients, and service efficiency is high.
Embodiment 14:
As shown in fig. 7, a kind of blocker of the present embodiment offer, the blocker and client are separately positioned, Including:
Second receiving unit 310, the test request information provided for receiving the client;
Resolution unit 320, for parsing the test request information, determine the test of the client request Type;
Notification unit 330, for when the test of the request includes mock tests, notifying and the client Hold the mock platforms of separation;Wherein, the mock platforms carry out the mock tests institute for that can provide Need the service platform of mock data.
The second receiving unit 310 and the notification unit 330 in the present embodiment can all correspond to communication interface, Information exchange can be carried out from different equipment.The blocker sets to be separated with client in the present embodiment The structure independently of the client put.
The resolution unit 320 may correspond to various processors or process circuit, the processor or processing electricity The structure on road may refer to one embodiment, just not have to be repeated herein.
Blocker described in the present embodiment can be shared, such client independently of client by multiple client End does not just have to install special blocker, can simplify test, carry when carrying out the test such as mock tests Rise testing efficiency.
In certain embodiments, second receiving unit 310, it may also be used for received from the mock platforms The test object configuration information of progress mock tests is needed, wherein, the configuration information, which comprises at least, to be needed Carry out the first identification information of the test object of mock tests;
The resolution unit 320, it is particularly used in from the test request information the of extraction request object Two identification informations;Second identification information is matched with first identification information;When at least one When individual second identification information is included in the first identification information, determine the test of the request including described Mock is tested.
In further embodiments, the resolution unit, specifically for parsing the test request information, really That determines client request tests whether to include business function test;
The notification unit 330 can be additionally used in when the test of the request includes business function test, notice Service logic platform;Wherein, the service logic platform can be used in providing business function for the client Service logic needed for test performs data.
Embodiment 15:
As shown in figure 8, the present embodiment provides a kind of client, the client includes:
Generation unit 410, for generating test request information;
Transmitting element 420, for the test request information to be sent into network side;The network side is at least Including the mock platforms separated with the client;
3rd receiving unit 430, the survey asked for receiving the mock platforms in the test request information When examination includes mock tests, the mock data of return.
The present embodiment provides a kind of client, and the client does not have to mock data are being locally stored, without Installation carries out the blocker of mock tests, can be by completing mock tests with the information exchange of network side.
The structure of the generation unit 410 may include processor or process circuit.The processor or processing electricity The associated description on road, may refer to previous embodiment.The transmitting element 420 and the 3rd receiving unit 430 may correspond to various types of communication interfaces, can be communicated from different equipment or communication structure.
In certain embodiments, the network side also includes service logic platform;
3rd receiving unit 430, it may also be used for receive the service logic platform in the solicited message When request carries out business function test, the service logic of return performs data.
The network side also includes blocker.The transmitting element 410, being particularly used in please by the test Information is asked to be supplied to the blocker;Wherein, the test request information at least can be used in the blocker Determine the type of the test of the client request;The type of the test of the request comprises at least the mock Test.
Several specific examples are provided below in conjunction with above-described embodiment:
Example one:
The connection diagram of the test system provided for client and this example shown in Fig. 9;This example provides A kind of test system, including:
Server, network connection is established with client, receives the test request information that client is sent,
Blocker, positioned at network side, it is connected with server, the test request information of the reception server forwarding, That determines client request tests whether to include business function test and mock tests, if including business work( It can test, then notify service logic platform, mock platforms are notified if being tested including mock.
Service logic platform, for receive blocker notice after, to request object perform corresponding to industry Business logic, service logic is returned to by server and performs data to client.
Mock platforms, for after blocker notice is received, there is provided mock data, service can be passed through Device returns to client.
Example two:
The test system provided with reference to example one, as shown in Figure 10, this example provide a kind of method of testing, bag Include:
User end to server sends request data, and request data here may correspond to foregoing test request Information.
The request data is transferred to blocker by server.
Blocker judges whether request items need to carry out mock tests, if so, then being received from mock platforms Configuration information, judges whether the request object in request items needs to carry out mock tests;And judge to ask Ask whether object needs to carry out business function test in project.If desired mock test notices mock is carried out Platform, if desired carry out business function test notice service logic platform.
Mock platforms are stored with the configuration information for indicating whether to need mock to test and mock data, are connecing After receiving blocker notice, mock data are sent to server.
Service logic platform, service logic execution data are sent to server receiving the rear of blocker notice.
Figure 11 and Figure 12 be test system in interactive interface, such as Web UI displaying configuration information.Scheming 11 be the configuration information formed using project as configuration granularity.Figure 12 is matched somebody with somebody using interface as what configuration granularity was formed Confidence ceases.Here interface is one kind of test object.
Example three:
A kind of information processing method of test system shown in Figure 13, including:
Utilize the related information for recording interface from client and receiving various interfaces.Here interface is to need to carry out One kind of the test object of mock tests.
Network side is filtered and analyzed and processed using the corresponding packet obtained such as plug-in unit, filter, and Data after processing are sent to interface platform.Here plug-in unit may include browser plug-in, for example, chrome Plug-in unit.The filter can be SDK SDK filter.
Interface platform is by saving interface information.
Mock is served by mock platforms, can be based on saving interface information, generates mock data, And return to client.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, It can realize by another way.Apparatus embodiments described above are only schematical, for example, The division of the unit, only a kind of division of logic function, can there is other division when actually realizing Mode, such as:Multiple units or component can combine, or be desirably integrated into another system, or some are special Sign can be ignored, or not perform.In addition, the mutual coupling of shown or discussed each part, Or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical by some interfaces, equipment or unit Letter connection, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, make It can be for the part that unit is shown or may not be physical location, you can with positioned at a place, It can also be distributed on multiple NEs;It can select according to the actual needs therein part or all of Unit realizes the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing module In or each unit individually as a unit, can also two or more unit collection Into in a unit;Above-mentioned integrated unit can both be realized in the form of hardware, can also use Hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above method embodiment It can be completed by the related hardware of programmed instruction, it is computer-readable that foregoing program can be stored in one Take in storage medium, the program upon execution, execution the step of including above method embodiment;It is and foregoing Storage medium include:Movable storage device, read-only storage (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various Can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to In this, any one skilled in the art the invention discloses technical scope in, can be easily Expect change or replacement, should all be included within the scope of the present invention.Therefore, protection of the invention Scope should be based on the protection scope of the described claims.

Claims (20)

1. a kind of test system, it is characterised in that the system includes blocker and simulation mock platforms:
The blocker, it is separately positioned with the client, test request information is provided for receiving client, And the type of the test of request is judged based on the test request information;When the test of request includes the mock During test, then the mock platforms are notified;
The simulation mock platforms, it is separately positioned with the client, for storing mock data, and work as The test of client request includes reading the mock data when mock is tested, and by the mock data It is supplied to the client.
2. system according to claim 1, it is characterised in that
The mock platforms, are additionally operable to storage configuration information;Wherein, the configuration information, which comprises at least, needs Carry out the first identification information of the test object of mock tests;
The blocker, the second identification information of object is asked in the test request information specifically for extracting, The configuration information is read from the mock platforms;By second identification information and the first information Matched, the mock that tests whether to include for determining request according to the result of matching is tested.
3. system according to claim 1 or 2, it is characterised in that the system also includes:
Business logic processing platform, for when the test of client request includes business function test, being based on The test request information performs service logic, and providing service logic to the client performs data.
4. system according to claim 1 or 2, the system also includes:
Server, for receiving the test request information of client transmission;
The mock platforms, for showing that the test of request is tested including mock when the test request information When, the mock data prestored are read, and the mock data are sent to server;
The server, it is additionally operable to the mock data being sent to client.
5. system according to claim 1 or 2, it is characterised in that the system also includes:
Interactive interface, for showing and receiving the configuration information of mock tests;Wherein, the configuration information The information of the test object of mock tests is carried out including at least instruction.
6. system according to claim 5 should, it is characterised in that
The interactive interface, specifically for receiving project configuration information, wherein, the project configuration information is used Whether the test object in the corresponding project of instruction needs to carry out mock tests.
7. system according to claim 1 or claim 2, it is characterised in that
The system also includes:
Record interface, the related information for collecting test object;The related information comprises at least the survey Try test information and/or application message that object carries out non-mock tests;
Wherein, the related information can be used in providing mock data offer reference number for the mock platforms According to.
8. a kind of method of testing, it is characterised in that put down applied to the simulation mock separately positioned with client In platform, methods described includes:
Prestore mock data;
Receive the notice sent with the separately positioned blocker of the client;Wherein, the notice is to be based on The test request information that the client is sent determines that the test of request includes what is sent during mock tests;
After receiving the notice, the mock data are read;
The mock data are supplied to the client.
9. according to the method for claim 8, it is characterised in that methods described also includes:
Prestore configuration information;Wherein, the configuration information, which comprises at least, needs to carry out mock tests First identification information of test object;
The configuration information is sent to the blocker separated with the client;Wherein, the configuration information For for the blocker judge client request test whether to include correspond to the test object Mock is tested.
10. method according to claim 8 or claim 9, it is characterised in that methods described also includes:
Receive simultaneously storage configuration information;Wherein, the configuration information comprises at least instruction and carries out mock tests Test object information.
11. method according to claim 8 or claim 9, it is characterised in that methods described also includes:
According to the related information for recording the test object that interface provides, it is determined that being supplied to the mock of the client Data;Wherein, the related information can be used in providing the offer reference of mock data for the mock platforms Data.
12. a kind of method of testing, it is characterised in that described applied in the blocker separated with client Method includes:
Receive the test request information that the client provides;
The test request information is parsed, determines the type of the test of the client request;
When the test of the request includes simulation mock tests, the mock separated with the client is notified Platform;Wherein, the mock platforms are that can provide to carry out mock data needed for the mock tests Service platform.
13. according to the method for claim 12, it is characterised in that methods described also includes:
The test object configuration information for needing to carry out mock tests is received from the mock platforms, wherein, institute State the first identification information that configuration information comprises at least the test object for needing to carry out mock tests;
The parsing test request information, determine client request tests whether to include mock tests, Including:
The second identification information of extraction request object from the test request information;
Second identification information is matched with first identification information;
When at least one described second identification information is included in the first identification information, the request is determined Test include the mock test.
14. the method according to claim 12 or 13, it is characterised in that
The parsing test request information, the type of the test of client request is determined, in addition to:
The test request information is parsed, determine client request tests whether to include business function test;
Methods described also includes:
When the test of the request, which includes business function, to be tested, service logic platform is notified;Wherein, it is described Service logic platform can be used in performing number for the service logic that the client is provided needed for business function test According to.
15. a kind of method of testing, it is characterised in that applied in client, methods described includes:
Generate test request information;
The test request information is sent to network side;The network side comprises at least and the client point From simulation mock platforms;
The mock platforms are received when the test that the test request information is asked includes mock tests, are returned The mock data returned.
16. according to the method for claim 15, it is characterised in that
The network side also includes service logic platform;
Methods described also includes:
The service logic platform is received when the solicited message asks to carry out business function test, return Service logic performs data.
17. the method according to claim 15 or 16, it is characterised in that
The network side also includes blocker;
It is described that the test request information is sent to network side, including:
The test request information is supplied to the blocker;Wherein, the test request information at least can It is enough in the type that the blocker determines the test of the client request;The type of the test of the request Tested including at least the mock.
18. one kind simulation mock platforms, it is characterised in that the mock platforms and client are separately positioned, Including:
Memory cell, for prestoring mock data;
First receiving unit, for receiving the notice sent with the separately positioned blocker of the client;Its In, the notice is that the test request information sent based on the client determines that the test of request includes What mock was sent when testing;
Processing unit, after receiving the notice, read the mock data;
Interactive unit, for the mock data to be supplied into the client.
19. a kind of blocker, characterized in that, the blocker and client are separately positioned, including:
Second receiving unit, the test request information provided for receiving the client;
Resolution unit, for parsing the test request information, determine the class of the test of the client request Type;
Notification unit, for when the test of the request includes simulation mock tests, notifying and the visitor The mock platforms of family end separation;Wherein, the mock platforms carry out the mock tests for that can provide The service platform of required mock data.
20. a kind of client, it is characterised in that the client includes:
Generation unit, for generating test request information;
Transmitting element, for the test request information to be sent into network side;The network side comprises at least The simulation mock platforms separated with the client;
3rd receiving unit, the test asked for receiving the mock platforms in the test request information When being tested including mock, the mock data of return.
CN201610312140.1A 2016-05-11 2016-05-11 Test system, test method, mock platform, interceptor and client Active CN107368405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610312140.1A CN107368405B (en) 2016-05-11 2016-05-11 Test system, test method, mock platform, interceptor and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610312140.1A CN107368405B (en) 2016-05-11 2016-05-11 Test system, test method, mock platform, interceptor and client

Publications (2)

Publication Number Publication Date
CN107368405A true CN107368405A (en) 2017-11-21
CN107368405B CN107368405B (en) 2021-11-09

Family

ID=60303993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610312140.1A Active CN107368405B (en) 2016-05-11 2016-05-11 Test system, test method, mock platform, interceptor and client

Country Status (1)

Country Link
CN (1) CN107368405B (en)

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108199921A (en) * 2017-12-29 2018-06-22 上海瑞家信息技术有限公司 The method, apparatus and storage medium of a kind of simulation test
CN108345543A (en) * 2018-03-02 2018-07-31 财付通支付科技有限公司 A kind of data processing method, device, equipment and storage medium
CN108345535A (en) * 2017-12-26 2018-07-31 阿里巴巴集团控股有限公司 Mock test methods, device and equipment
CN108427644A (en) * 2018-03-27 2018-08-21 深圳市买买提信息科技有限公司 Service test method, service testing system and service testing device
CN108446225A (en) * 2018-03-06 2018-08-24 平安科技(深圳)有限公司 Creating device, method and the computer readable storage medium of analog interface
CN108694124A (en) * 2018-06-19 2018-10-23 链家网(北京)科技有限公司 A kind of house prosperity transaction system test data building method and system based on Mock
CN109088789A (en) * 2018-07-19 2018-12-25 青岛萨纳斯智能科技股份有限公司 A kind of network environment simulation test tool and test method
CN109101430A (en) * 2018-08-24 2018-12-28 阿里巴巴集团控股有限公司 Test method, device and equipment
CN109558320A (en) * 2018-11-28 2019-04-02 深圳前海微众银行股份有限公司 System detection method, device, system, equipment and computer readable storage medium
CN109660472A (en) * 2018-10-16 2019-04-19 深圳壹账通智能科技有限公司 Intelligent routing function verification method, device and the computer equipment of terminal plate
CN109743222A (en) * 2018-12-25 2019-05-10 瑞庭网络技术(上海)有限公司 A kind of data test method and relevant device
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN110362491A (en) * 2019-07-17 2019-10-22 广州市有车以后信息科技有限公司 A kind of mock test method and test device based on go-between's agent skill group
CN110532184A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 Method, apparatus, computer equipment and the storage medium of more scenario simulation responses
CN110580224A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 System testing method, device and equipment
CN110727588A (en) * 2019-09-29 2020-01-24 浙江大搜车软件技术有限公司 Network application testing method, system, computer equipment and readable storage medium
CN111026672A (en) * 2019-12-16 2020-04-17 广州品唯软件有限公司 Test method, terminal equipment and mock server
CN111258885A (en) * 2020-01-08 2020-06-09 聚好看科技股份有限公司 Unit testing method and system
CN111324525A (en) * 2018-12-14 2020-06-23 北京奇虎科技有限公司 Method and device for processing Mock service and Mock service system
CN111555935A (en) * 2020-04-27 2020-08-18 北京奇艺世纪科技有限公司 Data communication method, device, electronic equipment and storage medium
CN111625442A (en) * 2019-02-28 2020-09-04 顺丰科技有限公司 Mock testing method and mock testing device
CN111752837A (en) * 2020-06-24 2020-10-09 北京百度网讯科技有限公司 View base system test method, device, equipment and storage medium
CN112162925A (en) * 2020-09-29 2021-01-01 新华三大数据技术有限公司 Test method and system based on service virtualization
CN112416750A (en) * 2020-10-10 2021-02-26 上海哔哩哔哩科技有限公司 Application program boundary testing method and system
CN112732567A (en) * 2020-12-31 2021-04-30 平安银行股份有限公司 Mock data testing method and device based on ip, electronic equipment and storage medium
CN113238929A (en) * 2021-04-25 2021-08-10 平安普惠企业管理有限公司 Code testing method and device based on Mock data, electronic equipment and storage medium
CN113536178A (en) * 2021-06-04 2021-10-22 北京房江湖科技有限公司 Page data generation method and device, electronic medium and storage medium
CN113722020A (en) * 2020-05-26 2021-11-30 腾讯科技(深圳)有限公司 Interface calling method, device and computer readable storage medium
CN114840275A (en) * 2022-04-15 2022-08-02 携程旅游网络技术(上海)有限公司 Interface management method, system, computer device and storage medium
CN114915573A (en) * 2022-06-14 2022-08-16 中国工商银行股份有限公司 Test method, device, equipment, storage medium and program product
CN114978970A (en) * 2022-04-07 2022-08-30 上海钧正网络科技有限公司 Data testing system, method, equipment and medium based on user-defined mock platform
CN115208951A (en) * 2022-06-28 2022-10-18 平安银行股份有限公司 Request processing method and device, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981947A (en) * 2011-09-07 2013-03-20 阿里巴巴集团控股有限公司 Data preparation method in test and system provided with the same
CN103150238A (en) * 2011-12-07 2013-06-12 阿里巴巴集团控股有限公司 Service request processing method, simulation performance test method and simulation performance test device
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN104375933A (en) * 2014-09-18 2015-02-25 广州华多网络科技有限公司 Unit testing method and device
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test
CN104866402A (en) * 2015-05-12 2015-08-26 浪潮电子信息产业股份有限公司 Server testing method and apparatus
CN105005521A (en) * 2015-06-26 2015-10-28 腾讯科技(北京)有限公司 Test method and apparatus
US20160117943A1 (en) * 2007-10-25 2016-04-28 Qualtrics, Llc Mobile based education and testing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160117943A1 (en) * 2007-10-25 2016-04-28 Qualtrics, Llc Mobile based education and testing system
CN102981947A (en) * 2011-09-07 2013-03-20 阿里巴巴集团控股有限公司 Data preparation method in test and system provided with the same
CN103150238A (en) * 2011-12-07 2013-06-12 阿里巴巴集团控股有限公司 Service request processing method, simulation performance test method and simulation performance test device
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN104375933A (en) * 2014-09-18 2015-02-25 广州华多网络科技有限公司 Unit testing method and device
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test
CN104866402A (en) * 2015-05-12 2015-08-26 浪潮电子信息产业股份有限公司 Server testing method and apparatus
CN105005521A (en) * 2015-06-26 2015-10-28 腾讯科技(北京)有限公司 Test method and apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHAIKH MOSTAFA 等: ""An Empirical Study on the Usage of Mocking Frameworks in Software Testing"", 《2014 14TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE》 *
刘世贵 等: ""基于Java EE架构的多层软件的测试研究与实现"", 《电脑知识与技术》 *
柯栋梁 等: ""云服务自动化集成测试研究"", 《系统仿真学报》 *

Cited By (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345535A (en) * 2017-12-26 2018-07-31 阿里巴巴集团控股有限公司 Mock test methods, device and equipment
CN108345535B (en) * 2017-12-26 2022-03-04 创新先进技术有限公司 mock testing method, device and equipment
CN108199921A (en) * 2017-12-29 2018-06-22 上海瑞家信息技术有限公司 The method, apparatus and storage medium of a kind of simulation test
CN108345543A (en) * 2018-03-02 2018-07-31 财付通支付科技有限公司 A kind of data processing method, device, equipment and storage medium
CN108345543B (en) * 2018-03-02 2021-08-17 财付通支付科技有限公司 Data processing method, device, equipment and storage medium
CN108446225A (en) * 2018-03-06 2018-08-24 平安科技(深圳)有限公司 Creating device, method and the computer readable storage medium of analog interface
CN108427644A (en) * 2018-03-27 2018-08-21 深圳市买买提信息科技有限公司 Service test method, service testing system and service testing device
CN108694124A (en) * 2018-06-19 2018-10-23 链家网(北京)科技有限公司 A kind of house prosperity transaction system test data building method and system based on Mock
CN109088789A (en) * 2018-07-19 2018-12-25 青岛萨纳斯智能科技股份有限公司 A kind of network environment simulation test tool and test method
CN109101430A (en) * 2018-08-24 2018-12-28 阿里巴巴集团控股有限公司 Test method, device and equipment
CN109660472A (en) * 2018-10-16 2019-04-19 深圳壹账通智能科技有限公司 Intelligent routing function verification method, device and the computer equipment of terminal plate
CN109660472B (en) * 2018-10-16 2022-04-22 深圳壹账通智能科技有限公司 Intelligent routing function verification method and device for wiring board and computer equipment
CN109558320B (en) * 2018-11-28 2022-02-01 深圳前海微众银行股份有限公司 System testing method, device, system, equipment and computer readable storage medium
CN109558320A (en) * 2018-11-28 2019-04-02 深圳前海微众银行股份有限公司 System detection method, device, system, equipment and computer readable storage medium
CN111324525A (en) * 2018-12-14 2020-06-23 北京奇虎科技有限公司 Method and device for processing Mock service and Mock service system
CN109743222A (en) * 2018-12-25 2019-05-10 瑞庭网络技术(上海)有限公司 A kind of data test method and relevant device
CN111625442A (en) * 2019-02-28 2020-09-04 顺丰科技有限公司 Mock testing method and mock testing device
CN111625442B (en) * 2019-02-28 2024-03-26 顺丰科技有限公司 Mock testing method and device
CN109933534A (en) * 2019-03-26 2019-06-25 上海上湖信息技术有限公司 A kind of method and device of determining financial test object
CN110362491B (en) * 2019-07-17 2020-02-21 广州市有车以后信息科技有限公司 Mock testing method and testing device based on man-in-the-middle agent technology
CN110362491A (en) * 2019-07-17 2019-10-22 广州市有车以后信息科技有限公司 A kind of mock test method and test device based on go-between's agent skill group
CN110532184A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 Method, apparatus, computer equipment and the storage medium of more scenario simulation responses
CN110580224A (en) * 2019-09-20 2019-12-17 中国银行股份有限公司 System testing method, device and equipment
CN110727588A (en) * 2019-09-29 2020-01-24 浙江大搜车软件技术有限公司 Network application testing method, system, computer equipment and readable storage medium
CN110727588B (en) * 2019-09-29 2023-12-12 浙江大搜车软件技术有限公司 Network application testing method, system, computer equipment and readable storage medium
CN111026672A (en) * 2019-12-16 2020-04-17 广州品唯软件有限公司 Test method, terminal equipment and mock server
CN111258885A (en) * 2020-01-08 2020-06-09 聚好看科技股份有限公司 Unit testing method and system
CN111258885B (en) * 2020-01-08 2023-09-15 聚好看科技股份有限公司 Unit test method and system
CN111555935A (en) * 2020-04-27 2020-08-18 北京奇艺世纪科技有限公司 Data communication method, device, electronic equipment and storage medium
CN113722020A (en) * 2020-05-26 2021-11-30 腾讯科技(深圳)有限公司 Interface calling method, device and computer readable storage medium
WO2021238596A1 (en) * 2020-05-26 2021-12-02 腾讯科技(深圳)有限公司 Interface calling method and apparatus, and computer-readable storage medium
CN113722020B (en) * 2020-05-26 2024-06-11 腾讯科技(深圳)有限公司 Interface calling method, device and computer readable storage medium
US11809882B2 (en) 2020-05-26 2023-11-07 Tencent Technology (Shenzhen) Company Limited Interface calling method and apparatus, and computer-readable storage medium
CN111752837B (en) * 2020-06-24 2024-01-12 北京百度网讯科技有限公司 View library system test method, device, equipment and storage medium
CN111752837A (en) * 2020-06-24 2020-10-09 北京百度网讯科技有限公司 View base system test method, device, equipment and storage medium
CN112162925A (en) * 2020-09-29 2021-01-01 新华三大数据技术有限公司 Test method and system based on service virtualization
CN112416750A (en) * 2020-10-10 2021-02-26 上海哔哩哔哩科技有限公司 Application program boundary testing method and system
CN112732567B (en) * 2020-12-31 2023-06-27 平安银行股份有限公司 Mock data testing method and device based on ip, electronic equipment and storage medium
CN112732567A (en) * 2020-12-31 2021-04-30 平安银行股份有限公司 Mock data testing method and device based on ip, electronic equipment and storage medium
CN113238929B (en) * 2021-04-25 2022-09-27 平安普惠企业管理有限公司 Code testing method and device based on Mock data, electronic equipment and storage medium
CN113238929A (en) * 2021-04-25 2021-08-10 平安普惠企业管理有限公司 Code testing method and device based on Mock data, electronic equipment and storage medium
CN113536178A (en) * 2021-06-04 2021-10-22 北京房江湖科技有限公司 Page data generation method and device, electronic medium and storage medium
CN113536178B (en) * 2021-06-04 2024-04-12 贝壳找房(北京)科技有限公司 Page data generation method and device, electronic medium and storage medium
CN114978970A (en) * 2022-04-07 2022-08-30 上海钧正网络科技有限公司 Data testing system, method, equipment and medium based on user-defined mock platform
CN114978970B (en) * 2022-04-07 2023-11-24 上海钧正网络科技有限公司 Data testing system, method, equipment and medium based on custom mock platform
CN114840275A (en) * 2022-04-15 2022-08-02 携程旅游网络技术(上海)有限公司 Interface management method, system, computer device and storage medium
CN114915573A (en) * 2022-06-14 2022-08-16 中国工商银行股份有限公司 Test method, device, equipment, storage medium and program product
CN115208951A (en) * 2022-06-28 2022-10-18 平安银行股份有限公司 Request processing method and device, electronic equipment and computer readable storage medium
CN115208951B (en) * 2022-06-28 2024-03-15 平安银行股份有限公司 Request processing method, request processing device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN107368405B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN107368405A (en) Test system, method of testing, mock platforms, blocker and client
CN104618488B (en) A kind of information processing method, client and server
CN106484622A (en) Method of testing, apparatus and system
CN105101122A (en) Verification code input method and device
CN107809383A (en) A kind of map paths method and device based on MVC
CN102752371B (en) In client, realize method and the client of dodging screen
CN115065652B (en) Message reply method and device, storage medium and computer equipment
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN107979573A (en) A kind of detection method of risk information, system and server
CN106470145A (en) The method and apparatus of instant messaging
CN109344345A (en) Data access system and access method, terminal and storage medium based on block chain
CN110392155A (en) It has been shown that, processing method, device and the equipment of notification message
CN109947408A (en) Information push method and device, storage medium and electronic equipment
CN106385403A (en) User account registering method and device of self-service printing equipment
CN110083755A (en) A kind of high emulation parsing web-page approach, device and electronic equipment
CN105306587A (en) Service data processing method, service data processing device and service data processing system
CN101742438A (en) Apparatus and method for operating supply chain management in mobile terminal
CN106888250A (en) For method, the method and apparatus for representing push content realizing pushing
CN106303011A (en) The method and device that a kind of theme obtains
CN110048940A (en) Sending method, device, server and the readable storage medium storing program for executing of instant communication message
CN111935316B (en) Method and device for acquiring front-end equipment catalog
CN110555201B (en) Knowledge document generation method, device, electronic equipment and storage medium
CN106326419A (en) Network automaton machine processing method and device
CN107643978A (en) The method and apparatus of function of application test
CN107295087B (en) System and method for realizing data aggregation between network systems

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