CN108199921A - The method, apparatus and storage medium of a kind of simulation test - Google Patents

The method, apparatus and storage medium of a kind of simulation test Download PDF

Info

Publication number
CN108199921A
CN108199921A CN201711482610.XA CN201711482610A CN108199921A CN 108199921 A CN108199921 A CN 108199921A CN 201711482610 A CN201711482610 A CN 201711482610A CN 108199921 A CN108199921 A CN 108199921A
Authority
CN
China
Prior art keywords
test
mock
default
test request
request address
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
CN201711482610.XA
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.)
Shanghai Rui Jia Information Technology Co Ltd
Original Assignee
Shanghai Rui Jia Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Rui Jia Information Technology Co Ltd filed Critical Shanghai Rui Jia Information Technology Co Ltd
Priority to CN201711482610.XA priority Critical patent/CN108199921A/en
Publication of CN108199921A publication Critical patent/CN108199921A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses the method, apparatus and storage medium of a kind of simulation test, wherein, this method includes:The test request that first predesignated subscriber's equipment is sent is received, wherein, test request address is included at least in test request;Default response contents are obtained in predetermined analog mock rules according to test request address, and default response contents are returned to first predesignated subscriber's equipment.The embodiment of the present invention is when carrying out simulation test, it does not need to that just the response contents pre-set can be obtained automatically in preset mock rules by tester's progress manual modification response results, the step of simplifying simulation test, improve the efficiency of simulation test, it solves the prior art to be required for carrying out manual modification response results by agent software when carrying out simulation test every time, make testing procedure cumbersome, testing efficiency reduce the problem of.

Description

The method, apparatus and storage medium of a kind of simulation test
Technical field
The present invention relates to automatic test field, more particularly to the method, apparatus and storage medium of a kind of simulation test.
Background technology
Under the line of application program (APP, Application) test or line on drill during, need the object paid close attention to Many internalist methodologies and/or external interface service are often relied on service, simulation (mock) test is to simulate in a controlled manner These internalist methodologies and/or the dependence of external interface service, to verify whether APP can carry under various states that may be present For reliable and stable service.
Existing technical solution is in test, uses agent software (such as the hypertext transfer protocol of computer terminal (HTTP, HyperText Transfer Protocol) monitor Charles, packet catcher Fiddler etc. is acted on behalf of) exploitation generation Port is managed, the test request of APP, and the response knot of the HTTP asked in manual modification test request are intercepted and captured in agent software Fruit.
The mock test process of the prior art needs artificial participation, and http response knot is simulated by way of manual modification Fruit, but be required for carrying out manual modification response results by agent software when carrying out simulation test every time, make testing procedure Cumbersome, testing efficiency reduces.
Invention content
The present invention provides a kind of method, apparatus and storage medium of simulation test, to solve the prior art every time into It is required for carrying out manual modification response results by agent software during row simulation test, makes testing procedure cumbersome, testing efficiency drop The problem of low.
In order to solve the above technical problems, on the one hand, the present invention provides a kind of method of simulation test, including:Receive first The test request that predesignated subscriber's equipment is sent, wherein, test request address is included at least in the test request;According to the survey Examination request address obtains default response contents in predetermined analog mock rules, and returns to institute to first predesignated subscriber equipment State default response contents.
Optionally, default response contents are obtained in default mock rules according to the test request address, including:Detection It whether there is the mock request address identical with the test request address in the default mock rules;In the default mock In the case of there is the mock request address identical with the test request address in rule, obtained in the default mock rules The default response contents are taken, wherein, the default response contents are the corresponding response contents of the mock request address.
Optionally, it detects in the default mock rules and is asked with the presence or absence of the mock identical with the test request address After address, further include:There is no the mock request address identical with the request address in the default mock rules In the case of, the test request is forwarded to the corresponding server in the test request address.
Optionally, it before receiving the test request that first predesignated subscriber's equipment is sent, further includes:It establishes and the first predetermined use Connection between the equipment of family.
Optionally, it before receiving the test request that first predesignated subscriber's equipment is sent, further includes:Receive the second predesignated subscriber The default mock rules that equipment is sent, and preserve the default mock rules.
Optionally, the test request that first predesignated subscriber's equipment is sent is received, including:Receive first predesignated subscriber's equipment hair The test request of access preset port sent.
On the other hand, the present invention also provides a kind of device of simulation test, including:Request receiving module, for receiving the The test request that one predesignated subscriber's equipment is sent, wherein, test request address is included at least in the test request;Obtain mould Block, for obtaining default response contents in default mock rules according to the test request address;Feedback module, for institute It states first predesignated subscriber's equipment and returns to the default response contents.
Optionally, the acquisition module, including:Detection unit whether there is for detecting in the default mock rules The mock request address identical with the test request address;Acquiring unit, in the default mock rules exist with In the case of the identical mock request address in the test request address, the default sound is obtained in the default mock rules Content is answered, wherein, the default response contents are the corresponding response contents of the mock request address.
Optionally, the acquisition module, further includes:Retransmission unit, in the default mock rules be not present with In the case of the identical mock request address of the request address, the test request is forwarded to the test request address pair The server answered.
Optionally, it further includes:Link block, for establishing the connection between first predesignated subscriber's equipment.
Optionally, it further includes:Regular receiving module, for receiving the default mock that second predesignated subscriber's equipment is sent Rule, and preserve the default mock rules.
Optionally, the request receiving module, is specifically used for:Receive the access preset end that first predesignated subscriber's equipment is sent The test request of mouth.
On the other hand, the embodiment of the present invention also provides a kind of storage medium, is stored with computer program, the computer journey The step of method of above-mentioned simulation test is realized when sequence is executed by processor.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to just can automatically obtain in preset mock rules by tester's progress manual modification response results The response contents pre-set, improve the efficiency of simulation test, solve the prior art the step of simplifying simulation test It is required for carrying out manual modification response results by agent software when carrying out simulation test every time, makes testing procedure cumbersome, survey Try the problem of efficiency reduces.
Description of the drawings
Fig. 1 is the method flow diagram of simulation test in first embodiment of the invention;
Fig. 2 is the method flow diagram of simulation test in second embodiment of the invention;
Fig. 3 is the method flow diagram of simulation test in third embodiment of the invention;
Fig. 4 is the method flow diagram of simulation test in fourth embodiment of the invention;
Fig. 5 is the method flow diagram of simulation test in fifth embodiment of the invention;
Fig. 6 is the structure diagram of simulating test device in sixth embodiment of the invention;
Fig. 7 is the structure diagram of simulating test device in seventh embodiment of the invention;
Fig. 8 is the structure diagram of simulating test device in eighth embodiment of the invention;
Fig. 9 is the structure diagram of simulating test device in ninth embodiment of the invention;
Figure 10 is the workflow schematic diagram of intelligent router in eleventh embodiment of the invention.
Specific embodiment
It is required for carrying out manual modification sound by agent software to solve the prior art when carrying out simulation test every time Should be as a result, make testing procedure cumbersome, the problem of testing efficiency reduces, the present invention provides a kind of method, apparatus of simulation test And storage medium, below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that this place The specific embodiment of description is only used to explain the present invention, does not limit the present invention.
First embodiment of the invention provides a kind of method of simulation test, and the flow of this method is as shown in Figure 1, including step Rapid S101 to S102:
S101 receives the test request that first predesignated subscriber's equipment is sent, wherein, test is included at least in test request please Ask address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration, the Internet protocol address (IP address, Internet Protocol Address) of especially computer terminal are not fixed When, it is required for reusing new IP address on agent software when test every time and is attached, seriously affected test Efficiency.And further, when product manager, user experience design team (UED, User Experience Design) etc. Non-technical personnel, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, the embodiment of the present invention can receive the survey that first predesignated subscriber's equipment is sent first when realizing Examination is asked, and can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be any need The personnel tested use, including but not limited to tester, product manager and UED etc..
S102 obtains default response contents in default mock rules according to test request address, and makes a reservation for use to first Family equipment returns to default response contents.
After test request address is obtained, which is obtained in default mock rules according to test request address The corresponding response contents in address.Specifically, mock rules include mock request address (needs that i.e. tester determines are being surveyed The address of default response contents is fed back during examination) and the corresponding response contents of mock request address that set of tester.Due to Mock rules are pre-set before test to be finished, can be automatically in preset mock after obtaining test request address The corresponding response contents in test request address are obtained in rule, realize that the automatic of response contents obtains and feed back.
During specific implementation, the executive agent of the embodiment of the present invention can carry out test for router, server etc. please Seek the network equipment of acquisition and result feedback.Preferably, the method for the simulation test that the embodiment of the present invention is provided can conduct Agency service is built on router or server in the case where that can realize router or server original function, into one Step realizes the function of simulation test.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
Second embodiment of the invention provides a kind of method of simulation test, and the flow of this method is as shown in Fig. 2, including step Rapid S201 to S205:
S201 receives the test request that first predesignated subscriber's equipment is sent, wherein, test is included at least in test request please Ask address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration when the IP address of especially computer terminal is not fixed, is required for reusing on agent software when test every time New IP address is attached, and has seriously affected the efficiency of test.And further, as the non-technical people such as product manager, UED Member, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, the embodiment of the present invention can receive the survey that first predesignated subscriber's equipment is sent first when realizing Examination is asked, and can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be any need The personnel tested use, including but not limited to tester, product manager and UED etc..
S202 is detected in default mock rules with the presence or absence of the mock request address identical with test request address, if depositing Step S203 is then being performed, if being not present, is performing S204.
The embodiment of the present invention in acquisition test request address during corresponding default response contents, can be examined first when realizing It surveys in default mock rules with the presence or absence of identical with the test request address included in the test request of first predesignated subscriber's equipment Mock request address, to ensure that in the default response contents of feedback correct response contents can be returned.Specifically, mock is advised Then include multiple mock request address and the corresponding default response contents of above-mentioned multiple mock request address.
S203 obtains default response contents in default mock rules, wherein, it is mock request address to preset response contents Corresponding response contents.
In embodiments of the present invention, only there is the mock identical with test request address in default mock rules to ask In the case of address, the default response contents of test request address feedback can be just directed to, to ensure in the default response of feedback Hold the response contents intentionally got for first predesignated subscriber's equipment.It will be appreciated that for test request address feedback Default response contents are the mock test address corresponding response contents identical with test request address.
Test request is forwarded to the corresponding server in test request address by S204.
In embodiments of the present invention, there is no the mocks identical with test request address in default mock rules to ask ground In the case of location, illustrate that the test request address in the test request does not need to carry out mock tests, at this time directly according to test The test request is forwarded on the corresponding server in test request address by the test request address in request, accesses it true Positive test address.
S205 returns to default response contents to first predesignated subscriber's equipment.
In the case of there is the mock request address identical with test request address in default mock rules, by acquisition Default response contents feed back to first predesignated subscriber's equipment;There is no identical with test request address in default mock rules In the case of mock request address, the response results fed back on real server are received, and ring using the response results as default Content is answered to be sent to first predesignated subscriber's equipment.
During specific implementation, the executive agent of the embodiment of the present invention can carry out test for router, server etc. please Seek the network equipment of acquisition and result feedback.Preferably, the method for the simulation test that the embodiment of the present invention is provided can conduct Agency service is built on router or server in the case where that can realize router or server original function, into one Step realizes the function of simulation test.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
Third embodiment of the invention provides a kind of method of simulation test, and the flow of this method is as shown in figure 3, including step Rapid S301 to S303:
S301 establishes the connection between first predesignated subscriber's equipment.
Users at different levels (tester, product manager and UED etc.) can carry out mock tests, and do not need to for convenience By manual modification response results, need to establish connection with the user equipment that user uses before test is started.Specifically, originally The first predesignated subscriber's equipment mentioned in inventive embodiments is the mobile terminal for being equipped with App to be tested that users at different levels use, And in embodiments of the present invention, it can simultaneously establish and connect with multiple user equipmenies in the same time, not deposited between user equipment Conflicting, multiple users can be met and be carried out at the same time test.
During specific implementation, the executive agent of the embodiment of the present invention can carry out test for router, server etc. please Seek the network equipment of acquisition and result feedback.Preferably, the method for the simulation test that the embodiment of the present invention is provided can conduct Agency service is built on router or server in the case where that can realize router or server original function, into one Step realizes the function of simulation test.In the case where the execution of the embodiment of the present invention is router, tester will can directly use Family equipment is connected to router by the hot spot of router, facilitates the progress of follow-up simulation test.
S302 receives the test request that first predesignated subscriber's equipment is sent, wherein, test is included at least in test request please Ask address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration when the IP address of especially computer terminal is not fixed, is required for reusing on agent software when test every time New IP address is attached, and has seriously affected the efficiency of test.And further, as the non-technical people such as product manager, UED Member, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, the embodiment of the present invention can receive the survey that first predesignated subscriber's equipment is sent first when realizing Examination is asked, and can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be any need The personnel tested use, including but not limited to tester, product manager and UED etc..
S303 obtains default response contents in default mock rules according to test request address, and makes a reservation for use to first Family equipment returns to default response contents.
After test request address is obtained, which is obtained in default mock rules according to test request address The corresponding response contents in address.Specifically, mock rules include mock request address and the mock of tester's setting please Seek the corresponding response contents in address.It is finished since mock rules are pre-set before test, obtains test request address Later, the corresponding response contents in test request address can be automatically obtained in preset mock rules, realize response contents Automatic obtain and feedback.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
Fourth embodiment of the invention provides a kind of method of simulation test, the flow chart of this method as shown in figure 4, including Step S401 to S403:
S401 receives the default mock rules that second predesignated subscriber's equipment is sent, and preserves default mock rules.
In embodiments of the present invention, before progress mock tests, it is necessary first to which tester carries out mock rules advance Setting to ensure that in test response results can be directly acquired, does not need to setting or manual modification, and receiving temporarily After the default mock rules of tester's setting, this is preset into mock rules and is preserved.Specifically, tester use Two predesignated subscriber's equipment can be identical with first predesignated subscriber's equipment, can also be different;In the preservation for carrying out default mock rules When, it can directly be preserved, default mock rules can also be stored in dedicated rule database locally.
During specific implementation, the executive agent of the embodiment of the present invention can carry out test for router, server etc. please Seek the network equipment of acquisition and result feedback.Preferably, the method for the simulation test that the embodiment of the present invention is provided can conduct Agency service is built on router or server in the case where that can realize router or server original function, into one Step realizes the function of simulation test.
S402 receives the test request that first predesignated subscriber's equipment is sent, wherein, test is included at least in test request please Ask address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration when the IP address of especially computer terminal is not fixed, is required for reusing on agent software when test every time New IP address is attached, and has seriously affected the efficiency of test.And further, as the non-technical people such as product manager, UED Member, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, the embodiment of the present invention can receive the survey that first predesignated subscriber's equipment is sent first when realizing Examination is asked, and can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be any need The personnel tested use, including but not limited to tester, product manager and UED etc..
S403 obtains default response contents in default mock rules according to test request address, and makes a reservation for use to first Family equipment returns to default response contents.
After test request address is obtained, which is obtained in default mock rules according to test request address The corresponding response contents in address.Specifically, it is to be stored in local or be stored in rule database to preset mock rules, is preset Mock request address and the corresponding response contents of mock request address of tester's setting are specifically included in mock rules.By It pre-sets and finishes before test in mock rules, it, can be automatically preset after obtaining test request address The corresponding response contents in test request address are obtained in mock rules, realize that the automatic of response contents obtains and feed back.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
Fifth embodiment of the invention provides a kind of method of simulation test, and the flow of this method is as shown in figure 5, including step Rapid S501 to S502:
S501 receives the test request of access preset port that first predesignated subscriber's equipment is sent, wherein, in test request Including at least test request address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration, the Internet protocol address (IP address, Internet Protocol Address) of especially computer terminal are not fixed When, it is required for reusing new IP address on agent software when test every time and is attached, seriously affected test Efficiency.And further, when product manager, user experience design team (UED, User Experience Design) etc. Non-technical personnel, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, the embodiment of the present invention can receive the survey that first predesignated subscriber's equipment is sent first when realizing Examination is asked, and can include test request address in the test request.Specifically, which is the test of access preset port Request, default port is that tester is pre-set according to test purpose, as tester wishes to test the related visits of App to be measured When asking the function of HTTP service or WWW (WWW, World Wide Web) agency service, then default port is set as 80 ports Or 8080 port.
During specific implementation, the executive agent of the embodiment of the present invention can carry out test for router, server etc. please Seek the network equipment of acquisition and result feedback.Preferably, the method for the simulation test that the embodiment of the present invention is provided can conduct Agency service is built on router or server in the case where that can realize router or server original function, into one Step realizes the function of simulation test.
S502 obtains default response contents in default mock rules according to test request address, and makes a reservation for use to first Family equipment returns to default response contents.
After test request address is obtained, which is obtained in default mock rules according to test request address The corresponding response contents in address.Specifically, mock rules include mock request address (needs that i.e. tester determines are being surveyed The address of default response contents is fed back during examination) and the corresponding response contents of mock request address that set of tester.Due to Mock rules are pre-set before test to be finished, can be automatically in preset mock after obtaining test request address The corresponding response contents in test request address are obtained in rule, realize that the automatic of response contents obtains and feed back.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
The sixth embodiment of the present invention provides a kind of device of simulation test, and structure diagram is as shown in fig. 6, packet It includes:Request receiving module 10, for receiving the test request that first predesignated subscriber's equipment is sent, wherein, in test request at least Including test request address;Acquisition module 11 is coupled with request receiving module 10, for according to test request address in default mould Intend obtaining default response contents in mock rules;Feedback module 12 is coupled with acquisition module 11, for being set to the first predesignated subscriber It is standby to return to default response contents.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration when the IP address of especially computer terminal is not fixed, is required for reusing on agent software when test every time New IP address is attached, and has seriously affected the efficiency of test.And further, as the non-technical people such as product manager, UED Member, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, for the embodiment of the present invention when realizing, request receiving module can receive the first predesignated subscriber first The test request that equipment is sent can include test request address in the test request.Specifically, first predesignated subscriber's equipment can Think that any required personnel tested use, including but not limited to tester, product manager and UED etc..
After request receiving module obtains test request address, acquisition module is according to test request address in default mock The corresponding response contents in test request address are obtained in rule.Specifically, mock rules include mock request address and survey The corresponding response contents of mock request address of examination personnel setting.Since mock rules have been pre-set before test Finish, after request receiving module obtains test request address, acquisition module can be obtained automatically in preset mock rules should The corresponding response contents in test request address, and pass through feedback module response contents and feed back to the first predesignated subscriber, realize response The automatic of content obtains and feeds back.
Specifically, the test request that request receiving module receives is the test request of access preset port, and default port is Tester is pre-set according to test purpose, as tester wishes to test the related access HTTP services of App to be measured or WWW During the function of agency service, then default port is set as 80 ports or 8080 ports.
During specific implementation, the device of simulation test provided in an embodiment of the present invention may be mounted at router, server etc. It can carry out on the network equipment that test request obtains and result is fed back, can realize the feelings of router or server original function Under condition, achieve the purpose that further to realize the function of simulation test.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
The seventh embodiment of the present invention provides a kind of device of simulation test, and structure diagram is as shown in fig. 7, packet It includes:Request receiving module 10, for receiving the test request that first predesignated subscriber's equipment is sent, wherein, in test request at least Including test request address;Acquisition module 11 is coupled with request receiving module 10, for according to test request address in default mould Intend obtaining default response contents in mock rules;Feedback module 12 is coupled with acquisition module 11, for being set to the first predesignated subscriber It is standby to return to default response contents;Wherein, acquisition module 11 includes:Detection unit 111, for detect in default mock rules whether In the presence of the mock request address identical with test request address;Acquiring unit 112 is coupled with detection unit 111, for default In the case of there is the mock request address identical with test request address in mock rules, obtained in default mock rules pre- If response contents, wherein, it is the corresponding response contents of mock request address to preset response contents;Retransmission unit 113, it is single with detection Member 111 couples, for, there is no in the case of the mock request address identical with request address, will be surveyed in default mock rules Examination request is forwarded to the corresponding server in test request address.
The operating process for carrying out simulation test in the prior art is cumbersome, and tester is needed continually to change agent software Configuration when the IP address of especially computer terminal is not fixed, is required for reusing on agent software when test every time New IP address is attached, and has seriously affected the efficiency of test.And further, as the non-technical people such as product manager, UED Member, due to existing test operation complexity, may lead to not the operation to carry out an acceptance inspection when carrying out an acceptance inspection operation.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Based on above-mentioned consideration, for the embodiment of the present invention when realizing, request receiving module can receive the first predesignated subscriber first The test request that equipment is sent can include test request address in the test request.Specifically, first predesignated subscriber's equipment can Think that any required personnel tested use, including but not limited to tester, product manager and UED etc..
After request receiving module obtains test request address, whether detection unit detection deposits in default mock rules In the mock request address identical with test request address, to ensure that in the default response contents of feedback correct sound can be returned Answer content.In the case of there is the mock request address identical with test request address in default mock rules, acquiring unit The corresponding response contents of mock request address are obtained in default mock rules, as default response contents;In default mock It please there is no the test in the case of the mock request address identical with test request address, illustrated in the test request in rule Address is asked not need to carry out mock tests, test request address of the retransmission unit directly in test request, this is surveyed at this time Examination request is forwarded on the corresponding server in test request address, it is made to access real test address.
During specific implementation, the device of simulation test provided in an embodiment of the present invention may be mounted at router, server etc. It can carry out on the network equipment that test request obtains and result is fed back, can realize the feelings of router or server original function Under condition, achieve the purpose that further to realize the function of simulation test.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
The eighth embodiment of the present invention provides a kind of device of simulation test, and structure diagram is as shown in figure 8, packet It includes:Request receiving module 10, for receiving the test request that first predesignated subscriber's equipment is sent, wherein, in test request at least Including test request address;Acquisition module 11 is coupled with request receiving module 10, for according to test request address in default mould Intend obtaining default response contents in mock rules;Feedback module 12 is coupled with acquisition module 11, for being set to the first predesignated subscriber It is standby to return to default response contents;Link block 13 is coupled with request receiving module 10, for establishing and first predesignated subscriber's equipment Between connection.
Users at different levels (tester, product manager and UED etc.) can carry out mock tests, and do not need to for convenience By manual modification response results, link block is needed to establish with the user equipment that user uses and be connected before test is started. Specifically, the first predesignated subscriber's equipment mentioned in the embodiment of the present invention is equipped with App's to be tested for what users at different levels used Mobile terminal, and in embodiments of the present invention, link block can simultaneously be established with multiple user equipmenies in the same time and be connect, There is no conflict between user equipment, multiple users can be met and be carried out at the same time test.
During specific implementation, the device of simulation test provided in an embodiment of the present invention may be mounted at router, server etc. It can carry out on the network equipment that test request obtains and result is fed back, can realize the feelings of router or server original function Under condition, achieve the purpose that further to realize the function of simulation test.In the case where the execution of the embodiment of the present invention is router, User equipment directly can be connected to router by tester by the hot spot of router, facilitate the progress of follow-up simulation test.
For the embodiment of the present invention when realizing, request receiving module can receive the test that first predesignated subscriber's equipment is sent first It asks, can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be it is any required into The personnel of row test use, including but not limited to tester, product manager and UED etc..
After request receiving module obtains test request address, acquisition module is according to test request address in default mock The corresponding response contents in test request address are obtained in rule.Specifically, mock rules include mock request address and survey The corresponding response contents of mock request address of examination personnel setting.Since mock rules have been pre-set before test Finish, after request receiving module obtains test request address, acquisition module can be obtained automatically in preset mock rules should The corresponding response contents in test request address, and pass through feedback module response contents and feed back to the first predesignated subscriber, realize response The automatic of content obtains and feeds back.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
The ninth embodiment of the present invention provides a kind of device of simulation test, and structure diagram is as shown in figure 8, packet It includes:Request receiving module 10, for receiving the test request that first predesignated subscriber's equipment is sent, wherein, in test request at least Including test request address;Acquisition module 11 is coupled with request receiving module 10, for according to test request address in default mould Intend obtaining default response contents in mock rules;Feedback module 12 is coupled with acquisition module 11, for being set to the first predesignated subscriber It is standby to return to default response contents;Regular receiving module 14, for receiving the default mock rules that second predesignated subscriber's equipment is sent, And preserve default mock rules.
In embodiments of the present invention, before progress mock tests, it is necessary first to which tester carries out mock rules advance Setting to ensure that in test response results can be directly acquired, does not need to setting or manual modification, and connect in rule temporarily After receiving the default mock rules that module receives tester's setting, this is preset into mock rules and is preserved.Specifically, it tests Second predesignated subscriber's equipment that personnel use can be identical with first predesignated subscriber's equipment, can also be different;Mould is received in rule When block carries out the preservation of default mock rules, it can directly be preserved, default mock rules can also be stored in locally In dedicated rule database.
For the embodiment of the present invention when realizing, request receiving module can receive the test that first predesignated subscriber's equipment is sent first It asks, can include test request address in the test request.Specifically, first predesignated subscriber's equipment can be it is any required into The personnel of row test use, including but not limited to tester, product manager and UED etc..
After request receiving module obtains test request address, acquisition module is according to test request address in default mock The corresponding response contents in test request address are obtained in rule.Specifically, mock rules include mock request address and survey The corresponding response contents of mock request address of examination personnel setting.Since mock rules have been pre-set before test Finish, after request receiving module obtains test request address, acquisition module can be obtained automatically in preset mock rules should The corresponding response contents in test request address, and pass through feedback module response contents and feed back to the first predesignated subscriber, realize response The automatic of content obtains and feeds back.
During specific implementation, the device of simulation test provided in an embodiment of the present invention may be mounted at router, server etc. It can carry out on the network equipment that test request obtains and result is fed back, can realize the feelings of router or server original function Under condition, achieve the purpose that further to realize the function of simulation test.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
The tenth embodiment of the present invention provides a kind of storage medium, is stored with computer program, and computer program is located Reason device realizes following steps when performing:
S1 receives the test request that first predesignated subscriber's equipment is sent, wherein, test request is included at least in test request Address;
S2, obtains in default mock rules default response contents according to test request address, and to the first predesignated subscriber Equipment returns to default response contents.
The step of embodiment of the present invention is in order to simplify simulation test needs to pre-set the mock rules that may be used, When carrying out mock tests to App, if can corresponding response results be directly acquired from default mock rules automatically, so that it may The step of to save tester's manual modification, improves testing efficiency.
Computer program be executed by processor according to test request address obtained in predetermined analog mock rules it is pre- If during the step of response contents, it is implemented as follows step:It whether there is and test request address in the default mock rules of detection Identical mock request address;There is a situation where the mock request address identical with test request address in default mock rules Under, default response contents are obtained in default mock rules, wherein, it is the corresponding response of mock request address to preset response contents Content.Specifically, when computer program whether there is with test request in the default mock rules of detection are executed by processor After the step of identical mock request address in location, it is also executed by processor following steps:It is not present in default mock rules In the case of the mock request address identical with request address, test request is forwarded to the corresponding service in test request address Device.
When computer program be executed by processor the step of receiving test request that the first predesignated subscriber equipment sends it Before, also it is executed by processor following steps:Establish the connection between first predesignated subscriber's equipment.At different levels use to be facilitated per family may be used To carry out mock tests, and do not need to through manual modification response results.
Optionally, computer program is in the step for being executed by processor the test request for receiving the first predesignated subscriber equipment transmission Before rapid, it is also executed by processor following steps:The default mock rules that second predesignated subscriber's equipment is sent are received, and are preserved pre- If mock is regular.I.e. by pre-setting mock rules, ensure that in test response results can be directly acquired, do not need to be interim Setting or manual modification.
Specifically, it is being executed by processor the test request of the first predesignated subscriber of reception equipment transmission in computer program During step, it is implemented as follows step:Receive the test request of access preset port that first predesignated subscriber's equipment is sent.
The embodiment of the present invention can receive the test request that first predesignated subscriber's equipment is sent when carrying out simulation test, and Test request address in test request obtains default response contents accordingly automatically in preset mock rules, and Default response contents are fed back into first predesignated subscriber's equipment after default response contents are obtained.The embodiment of the present invention is carrying out mould When intending test, do not need to that just the response contents pre-set can be obtained by tester's progress manual modification response results, The step of simplifying simulation test improves the efficiency of simulation test, solves the prior art when carrying out simulation test every time Be required for by agent software carry out manual modification response results, make testing procedure cumbersome, testing efficiency reduce the problem of.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or The various media that can store program code such as CD.Optionally, in the present embodiment, processor has been deposited according in storage medium The program code of storage performs the method and step of above-described embodiment record.Optionally, the specific example in the present embodiment can refer to Example described in above-described embodiment and optional embodiment, details are not described herein for the present embodiment.Obviously, the technology of this field Personnel should be understood that each module of the above-mentioned present invention or each step can be realized with general computing device, they can be with It concentrates on single computing device or is distributed on the network that multiple computing devices are formed, optionally, they can be used The program code that computing device can perform is realized, is held by computing device it is thus possible to be stored in storage device Row, and in some cases, it can be with the steps shown or described are performed in an order that is different from the one herein or divides them It is not fabricated to each integrated circuit modules or multiple modules in them or step are fabricated to single integrated circuit module It realizes.It to be combined in this way, the present invention is not limited to any specific hardware and softwares.
The 11st embodiment of the present invention provides a kind of intelligent router, in the router there are agency service (such as Go-between acts on behalf of tool mitmproxy), above-mentioned agency service is builds according to the method that first embodiment of the invention provides , the workflow of the intelligent router is described in detail with reference to Figure 10.
Router is established with rule database and is connected, and user can be added by setting interface open on rule database Preset mock rules are sent in rule database by mock rules by router.Also, tester is in advance on road Port is redirected by being set in routing (router) service in device, by 80 port of all access received on router and 8080 The request of port is redirected to mitmproxy.It will be appreciated that tester can set redirect port be not limited to it is above-mentioned 80 ports and 8080 ports of setting in actual setting, should be set according to practical testing requirement to redirecting port It puts, if desired for hypertext transfer protocol (HTTPS, Hyper Text the Transfer Protocol in security socket layer Over Secure Socket Layer) request when carrying out mock, then redirecting the port institute that will be received on router of setting There is the request for accessing 443 ports to be redirected to mitmproxy.
User equipment A and user equipment B is connected to router by the hot spot that router is shared, and sends and survey to router Examination request A and test request B, and test request A and test request B are the test request for accessing 80 ports, then router will Test request A and test request B are redirected to mitmproxy.
Mitmproxy has found that the test request address of test request A is www.baidu.com, and the address is in regular data It is not present in library, then test request A is forwarded on the corresponding real server of www.baidu.com by mitmproxy, and will be true The response results A of real server feedback feeds back to user equipment A;Mitmproxy has found that the test request address of test request B is Www.google.com, the address exist in rule database, and corresponding response contents are " hello world ", then It obtains and result B feeds back to user B in response by " hello world ".
Although for example purpose, the preferred embodiment of the present invention is had been disclosed for, those skilled in the art will recognize Various improvement, increase and substitution are also possible, and therefore, the scope of the present invention should be not limited to the above embodiments.

Claims (13)

  1. A kind of 1. method of simulation test, which is characterized in that including:
    The test request that first predesignated subscriber's equipment is sent is received, wherein, in the test request including at least test request Location;
    Default response contents are obtained in predetermined analog mock rules according to the test request address, and predetermined to described first User equipment returns to the default response contents.
  2. 2. the method as described in claim 1, which is characterized in that according to the test request address in predetermined analog mock rules It is middle to obtain default response contents, including:
    It detects and whether there is the mock request address identical with the test request address in the default mock rules;
    In the case of there is the mock request address identical with the test request address in the default mock rules, in institute It states and the default response contents is obtained in default mock rules, wherein, the default response contents are the mock request address Corresponding response contents.
  3. 3. method as claimed in claim 2, which is characterized in that whether there is and the survey in the detection default mock rules After trying the identical mock request address of request address, further include:
    In the case of the mock request address identical with the request address is not present in the default mock rules, by described in Test request is forwarded to the corresponding server in the test request address.
  4. 4. the method as described in claim 1, which is characterized in that receive test request that the first predesignated subscriber equipment sends it Before, it further includes:
    Establish the connection between first predesignated subscriber's equipment.
  5. 5. the method as described in claim 1, which is characterized in that receive test request that the first predesignated subscriber equipment sends it Before, it further includes:
    The default mock rules that second predesignated subscriber's equipment is sent are received, and preserve the default mock rules.
  6. 6. the method as described in any one of claim 1 to 5, which is characterized in that receive what first predesignated subscriber's equipment was sent Test request, including:
    Receive the test request of access preset port that first predesignated subscriber's equipment is sent.
  7. 7. a kind of device of simulation test, which is characterized in that including:
    Request receiving module, for receiving the test request that first predesignated subscriber's equipment is sent, wherein, in the test request extremely Include test request address less;
    Acquisition module, for obtaining default response contents in predetermined analog mock rules according to the test request address;
    Feedback module, for returning to the default response contents to first predesignated subscriber equipment.
  8. 8. device as claimed in claim 7, which is characterized in that the acquisition module, including:
    Detection unit, please with the presence or absence of the mock identical with the test request address in the default mock rules for detecting Ask address;
    Acquiring unit, for there is the mock request address identical with the test request address in the default mock rules In the case of, the default response contents are obtained in the default mock rules, wherein, the default response contents are described The corresponding response contents of mock request address.
  9. 9. device as claimed in claim 8, which is characterized in that the acquisition module further includes:
    Retransmission unit, for the mock request address identical with the request address to be not present in the default mock rules In the case of, the test request is forwarded to the corresponding server in the test request address.
  10. 10. device as claimed in claim 7, which is characterized in that further include:
    Link block, for establishing the connection between first predesignated subscriber's equipment.
  11. 11. device as claimed in claim 7, which is characterized in that further include:
    Regular receiving module for receiving the default mock rules that second predesignated subscriber's equipment is sent, and preserves described pre- If mock is regular.
  12. 12. the device as described in any one of claim 7 to 11, which is characterized in that the request receiving module is specific to use In:
    Receive the test request of access preset port that first predesignated subscriber's equipment is sent.
  13. 13. a kind of storage medium, computer program is stored on the storage medium, is realized when described program is executed by processor In claim 1 to 6 the step of any one the method.
CN201711482610.XA 2017-12-29 2017-12-29 The method, apparatus and storage medium of a kind of simulation test Pending CN108199921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711482610.XA CN108199921A (en) 2017-12-29 2017-12-29 The method, apparatus and storage medium of a kind of simulation test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711482610.XA CN108199921A (en) 2017-12-29 2017-12-29 The method, apparatus and storage medium of a kind of simulation test

Publications (1)

Publication Number Publication Date
CN108199921A true CN108199921A (en) 2018-06-22

Family

ID=62587030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711482610.XA Pending CN108199921A (en) 2017-12-29 2017-12-29 The method, apparatus and storage medium of a kind of simulation test

Country Status (1)

Country Link
CN (1) CN108199921A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062806A (en) * 2018-09-14 2018-12-21 杭州数梦工场科技有限公司 A kind of program testing method, system, device and computer readable storage medium
CN109101430A (en) * 2018-08-24 2018-12-28 阿里巴巴集团控股有限公司 Test method, device and equipment
CN109639494A (en) * 2018-12-20 2019-04-16 瑞庭网络技术(上海)有限公司 Statistical method, device, server and the storage medium of interface message
CN109656807A (en) * 2018-11-01 2019-04-19 平安科技(深圳)有限公司 Interface mock test method, device, equipment and storage medium based on information security
CN109743222A (en) * 2018-12-25 2019-05-10 瑞庭网络技术(上海)有限公司 A kind of data test method and relevant device
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN110895507A (en) * 2018-09-13 2020-03-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111078477A (en) * 2019-11-13 2020-04-28 航天信息股份有限公司 Interface test method and device, storage medium and electronic equipment
CN111092878A (en) * 2019-12-13 2020-05-01 北京小米移动软件有限公司 Method, device and equipment for testing hijacking of man-in-the-middle and readable storage medium
CN111143224A (en) * 2019-12-30 2020-05-12 广州酷狗计算机科技有限公司 Pile service implementation method, device, equipment and computer storage medium
CN111198824A (en) * 2019-07-17 2020-05-26 广州市有车以后信息科技有限公司 Mock testing arrangement based on middle person agent technique
CN111555935A (en) * 2020-04-27 2020-08-18 北京奇艺世纪科技有限公司 Data communication method, device, electronic equipment and 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
CN113381911A (en) * 2021-06-09 2021-09-10 上海臣星软件技术有限公司 Test method, device, equipment and storage medium
CN113411234A (en) * 2021-06-17 2021-09-17 杭州遥望网络科技有限公司 Interface testing method, system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040056054A (en) * 2002-12-23 2004-06-30 주식회사 포스코 System and method for input/out signal simulation of a controller
CN104536884A (en) * 2014-12-17 2015-04-22 广州酷狗计算机科技有限公司 Code testing method and device
CN106250315A (en) * 2016-08-04 2016-12-21 上海携程商务有限公司 A kind of automatic imitation request-reply system and method for configurableization
US9552285B2 (en) * 2013-05-02 2017-01-24 Microsoft Technology Licensing, Llc Micro-execution for software testing
CN106528400A (en) * 2016-09-22 2017-03-22 深圳峰创智诚科技有限公司 MOCK testing method and device
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040056054A (en) * 2002-12-23 2004-06-30 주식회사 포스코 System and method for input/out signal simulation of a controller
US9552285B2 (en) * 2013-05-02 2017-01-24 Microsoft Technology Licensing, Llc Micro-execution for software testing
CN104536884A (en) * 2014-12-17 2015-04-22 广州酷狗计算机科技有限公司 Code testing method and device
CN107368405A (en) * 2016-05-11 2017-11-21 腾讯科技(北京)有限公司 Test system, method of testing, mock platforms, blocker and client
CN106250315A (en) * 2016-08-04 2016-12-21 上海携程商务有限公司 A kind of automatic imitation request-reply system and method for configurableization
CN106528400A (en) * 2016-09-22 2017-03-22 深圳峰创智诚科技有限公司 MOCK testing method and device

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101430A (en) * 2018-08-24 2018-12-28 阿里巴巴集团控股有限公司 Test method, device and equipment
CN110895507B (en) * 2018-09-13 2023-10-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN110895507A (en) * 2018-09-13 2020-03-20 杭州海康威视系统技术有限公司 Simulation test method and device, simulation server and storage medium
CN109062806B (en) * 2018-09-14 2021-03-23 杭州数梦工场科技有限公司 Program testing method, system, device and computer readable storage medium
CN109062806A (en) * 2018-09-14 2018-12-21 杭州数梦工场科技有限公司 A kind of program testing method, system, device and computer readable storage medium
CN109656807A (en) * 2018-11-01 2019-04-19 平安科技(深圳)有限公司 Interface mock test method, device, equipment and storage medium based on information security
CN109639494A (en) * 2018-12-20 2019-04-16 瑞庭网络技术(上海)有限公司 Statistical method, device, server and the storage medium of interface message
CN109639494B (en) * 2018-12-20 2022-03-29 瑞庭网络技术(上海)有限公司 Statistical method, device, server and storage medium of interface information
CN109743222A (en) * 2018-12-25 2019-05-10 瑞庭网络技术(上海)有限公司 A kind of data test method and relevant device
CN110069395A (en) * 2019-03-12 2019-07-30 平安科技(深圳)有限公司 A kind of method, apparatus, storage medium and computer equipment for simulating asynchronous interface
CN110069395B (en) * 2019-03-12 2023-07-25 平安科技(深圳)有限公司 Method and device for simulating asynchronous interface, storage medium and computer equipment
CN111198824A (en) * 2019-07-17 2020-05-26 广州市有车以后信息科技有限公司 Mock testing arrangement based on middle person agent technique
CN111198824B (en) * 2019-07-17 2022-03-25 广州市有车以后信息科技有限公司 Mock testing arrangement based on middle person agent technique
CN111078477A (en) * 2019-11-13 2020-04-28 航天信息股份有限公司 Interface test method and device, storage medium and electronic equipment
CN110990205B (en) * 2019-11-28 2022-09-02 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN110990205A (en) * 2019-11-28 2020-04-10 腾讯科技(深圳)有限公司 Interface call testing method, device and computer readable storage medium
CN111092878B (en) * 2019-12-13 2022-03-01 北京小米移动软件有限公司 Method, device and equipment for testing hijacking of man-in-the-middle and readable storage medium
CN111092878A (en) * 2019-12-13 2020-05-01 北京小米移动软件有限公司 Method, device and equipment for testing hijacking of man-in-the-middle and readable storage medium
CN111143224A (en) * 2019-12-30 2020-05-12 广州酷狗计算机科技有限公司 Pile service implementation method, device, equipment and computer storage medium
CN111555935A (en) * 2020-04-27 2020-08-18 北京奇艺世纪科技有限公司 Data communication method, device, electronic equipment and 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
CN113381911A (en) * 2021-06-09 2021-09-10 上海臣星软件技术有限公司 Test method, device, equipment and storage medium
CN113411234A (en) * 2021-06-17 2021-09-17 杭州遥望网络科技有限公司 Interface testing method, system and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108199921A (en) The method, apparatus and storage medium of a kind of simulation test
CN104980309B (en) website security detection method and device
CN109769261B (en) Network fault processing method and device
CN102694857B (en) Method and apparatus for giving over data networks
CN110990205B (en) Interface call testing method, device and computer readable storage medium
CN106302445B (en) Method and apparatus for handling request
CN109688280A (en) Request processing method, request processing equipment, browser and storage medium
CN108206830B (en) Vulnerability scanning method, apparatus, computer equipment and storage medium
CN104065528A (en) Method And Apparatus For Analyzing And Verifying Functionality Of Multiple Network Devices
US10277475B2 (en) System and method for dynamically testing networked target systems
CN109446075A (en) Interface testing method and device
CN108616389B (en) Network evaluation method, equipment, storage medium and device based on cloud server
CN105897497A (en) Interface test method, application device and service device
CN109873734B (en) Bottom layer data monitoring method, medium, equipment and device
CN107181779A (en) Processing method, the device and system of access request
CN104410546A (en) Testing method and device of real-time processing system
CN104040538B (en) A kind of the Internet, applications exchange method, apparatus and system
US20220131782A1 (en) Method and Apparatus for Providing Network Experience Testing
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN105979521A (en) Method for no-perception authentication free Internet access of fat WiFi AP and thin WiFi AP
CN109388924A (en) A kind of auth method, device, server and storage medium
CN105117340B (en) URL detection methods and device for iOS browser application quality evaluations
CN110224897A (en) Vulnerable network test method, device, mobile device and the storage medium of application program
CN115150377A (en) Method and device for calling and processing simulation interface
CN107360036A (en) A kind of network failure locating method, terminal and server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication