CN109165165A - Interface test method, device, computer equipment and storage medium - Google Patents

Interface test method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109165165A
CN109165165A CN201811026057.3A CN201811026057A CN109165165A CN 109165165 A CN109165165 A CN 109165165A CN 201811026057 A CN201811026057 A CN 201811026057A CN 109165165 A CN109165165 A CN 109165165A
Authority
CN
China
Prior art keywords
interface
test
request
service
interface service
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
CN201811026057.3A
Other languages
Chinese (zh)
Inventor
李季
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811026057.3A priority Critical patent/CN109165165A/en
Publication of CN109165165A publication Critical patent/CN109165165A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The present invention relates to a kind of interface test methods, are related to cloud service.Method includes: receiving interface test request, carries interface identifier in the interface testing request;Search the interface data associated with the interface identifier of preparatory typing;Test data is generated according to the interface data;The corresponding interface service resource of the interface to be tested is searched, the corresponding interface service of the interface to be tested is at least deployed in the interface service resource;To the interface service resource transmission interface service request, the interface service request of transmission carries the test data.Interface testing can be made simpler quick using this method.

Description

Interface test method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of interface test method, device, computer equipment and Storage medium.
Background technique
After the completion of software product ends, in order to ensure the function that can complete anticipated demand of software systems, need to soft Part is tested.Software test carries out the test of function and performance using testing tool according to testing scheme and process to product. Interface testing requires to write test case, is tested by test case the various usage scenarios of software and situation, protects The correct and safe operation of barrier system.
Traditional test method is: by tester according to the association attributes of interface to be tested, going to strike manually and writes test use Example.There are the following problems for this test mode: after interface Codes Revised, previous test case will be no longer applicable in, and need basis New test interface code rewrites test case and can be tested, and it is time-consuming and laborious, very numerous to eventually lead to test process It is trivial.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can make interface testing is simpler efficiently to connect Mouth test method, device, computer equipment and storage medium.
A kind of interface test method, comprising:
Receiving interface test request carries the interface identifier of interface to be tested in interface testing request;
Search the interface data associated with the interface identifier of preparatory typing;
Test data is generated according to the interface data;
The corresponding interface service resource of the interface to be tested is searched, is at least deployed in the interface service resource described The corresponding interface service of interface to be tested;
To the interface service resource transmission interface service request, the interface service request of transmission carries the test Data;
Receive the test result of the interface service resource feedback.
It is in one embodiment, described to search the corresponding interface service resource of the interface to be tested, comprising:
To the search request of load-balanced server transmission interface Service Source, interface mark is carried in the search request Know;
Receive the interface service resource address associated with the interface identifier that the load-balanced server returns;
It is described to the interface service resource transmission interface service request, comprising: to the interface service resource address pair The interface service resource transmission interface service request answered.
It in one embodiment, include the test response time in the test result;The method also includes:
If the test response time is more than given threshold, to the load-balanced server transmission interface Service Source Adjustment request is adjusted the corresponding interface service resource of test interface by the load-balanced server.
In one embodiment, the method also includes:
The request period where the interface service request that record is sent;
The test response time is obtained from the test result;
By the request period and the corresponding test response time associated storage under the interface identifier.
In one embodiment, the method also includes:
It the request period and the test response time for statisticalling analyze the associated storage under the interface identifier, obtains The functional relation of the request period and the test response time;
According to the functional relation, the Service Source for generating corresponding different periods configures plan;
The Service Source configuration plan is sent to load-balanced server, by the load-balanced server according to The Service Source configures the resource distribution of Plan rescheduling interface service.
A kind of interface test device, described device include:
Test request receiving module is used for receiving interface test request, carries to be measured try in the interface testing request The interface identifier of mouth;
Interface data searching module, for searching the interface data associated with the interface identifier of preparatory typing;
Test data generation module, for generating test data according to the interface data;
Interface service resource lookup module, it is described to connect for searching the corresponding interface service resource of the interface to be tested The corresponding interface service of the interface to be tested is at least deployed in mouth Service Source;
Interface service request module, for the interface service resource transmission interface service request, the described of transmission to be connect Mouth service request carries the test data;
Test result receiving module, for receiving the test result of the interface service resource feedback.
In one embodiment, the interface service resource lookup module is also used to connect to load-balanced server transmission The search request of mouthful Service Source carries interface identifier in the search request;Receive what the load-balanced server returned Interface service resource address associated with the interface identifier;
The test result receiving module is also used to interface service resource hair corresponding to the interface service resource address Interface service is sent to request.
It in one embodiment, include the test response time in the test result;Described device further include:
Service Source adjusts module, if being more than given threshold for the test response time, to the load balancing Server transmission interface Service Source adjustment request, by the load-balanced server to the corresponding interface service of test interface Resource is adjusted.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes method described above when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of method described above is realized when row.
Above-mentioned interface test method, device, computer equipment and storage medium are managed in platform by interface testing and are stored The interface data being adapted with newest Interface status generate test data, interface is carried out based on the test data that automatically generates Test, without tester manually be repeated as many times encoded test use-case, improve testing efficiency, and realize interface testing not by The limitation that interface updates.In addition, searching the interface service money for being capable of providing the corresponding interface service after generating test data Source is communicated with the foundation of the interface service resource of lookup, to interface service resource transmission interface service request, and receives its feedback Test result, it is ensured that each interface testing can accurately arrive specified position and seek the interface service resource needed.
Detailed description of the invention
Fig. 1 is the application scenario diagram of interface test method in one embodiment;
Fig. 2 is the flow diagram of interface test method in one embodiment;
Fig. 3 is the page figure of the display test result of terminal;
Fig. 4 is the flow diagram according to involved in test result progress interface service resource allocation in one embodiment;
Fig. 5 is the structural block diagram of interface test device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
Interface test method provided by the invention can be applied in application environment as shown in Figure 1.The application environment packet Include terminal 102, interface testing management platform 104, load-balanced server 106 and interface server 108, wherein 102 energy of terminal It enough manages platform 104 with interface testing by network to be communicated, interface testing manages platform 104 can be by network and load Equalization server 106 is communicated, and load-balanced server 106 can be led to by network and either interface server 108 Letter.Terminal manages platform transmission interface test request to interface testing, and interface testing management platform searches connecing for interface to be tested Mouth data, and interface testing data are directly generated according to interface data.Load-balanced server is in advance on interface server top Interface service is affixed one's name to, so that interface server can provide interface service to interface requests.Interface testing manages platform and generates test After data, to load-balanced server transmission interface Service Source search request, load-balanced server is looked into according to interface identifier The interface server address for disposing the interface service is looked for, and the interface server address of lookup is returned into interface testing management and is put down Platform, interface testing manages platform according to interface server address to corresponding interface server transmission interface call request, and connects Receive the test result that interface server returns.Interface test method provided by the invention realizes the automatic test of interface.
In one embodiment, as shown in Fig. 2, providing a kind of interface test method, it is applied in Fig. 1 in this way It is illustrated for interface testing management platform, comprising the following steps:
Step 202: receiving interface test request carries the interface identifier of interface to be tested in interface testing request.
Interface testing manages platform and receives the interface testing request that terminal is sent, and carries interface mark in interface testing request Know, interface identifier can be interface name, give IC push-button interface as csts provides risk appraisal model result.
Step 204: searching the interface data associated with interface identifier of preparatory typing.
Interface developers or interface guardian pass through terminal typing and real-time update interface according to newest Interface status Data.Interface data is stored under interface identifier by interface testing management platform.Interface testing manages platform will be according to input Interface message generates the corresponding interface list of corresponding system/project, and any entry in trigger list can show connecing for the entry The details page of mouth.If user terminal has modification authority, can modify to interface data so that storage interface data with The last state of interface is consistent.
Further, interface testing management platform sets up interface recycle bin, when getting the delete operation of user's triggering, Interface testing management platform removes interface message corresponding in interface list to interface recycle bin.
The interface data of storage may include: interface name, request header, required parameter name, required parameter explanation, request Parameter type and the corresponding example of each required parameter.Return parameters name, return parameters explanation, return parameters type and is each returned Return corresponding example of parameter etc..
Step 206: test data is generated according to interface data.
Using the request header in interface data as the request header in test data.By the required parameter in interface data As the required parameter of interface testing data, interface testing request of data ginseng is generated according to the required parameter example in interface data Several parameter values.It can also be illustrated to automatically generate required parameter value according to required parameter.May specify one or more or it is complete Return parameters of the return parameters in portion as interface testing.
Step 208: searching the corresponding interface service resource of interface to be tested, be at least deployed in interface service resource to be measured The corresponding interface service of mouth of trying.
After generating test data, interface testing manages platform and is capable of providing interface service to be tested according to interface identifier lookup Service Source, that is, search dispose the interface service to be tested interface server.
In one embodiment, it is serviced by load-balanced server deployment interface, according to interface in load-balanced server The actual deployment situation of service safeguards that a interface service disposes list, each service money is recorded in interface service deployment inventory The interface service that source is disposed.The pass between interface service resource identification and interface identifier is recorded namely in service arrangement list Connection relationship.Such as interface service resource A deployment interface 1 and interface 2, interface service resource B deployment interface 3 and interface 4.Load balancing Server can be sent to interface testing management platform through service arrangement list.Interface testing manages platform according to service arrangement list Search the Service Source for being deployed with current interface to be measured.
In one embodiment, it can also be that interface testing manages platform and provides to load-balanced server transmission interface service The search request in source carries the interface identifier of interface to be tested in search request.It is to be measured that deployment is searched by load-balanced server It tries the Service Source of mouth, and the corresponding interface service resource address of Service Source for obtaining lookup.Interface testing manages platform The interface service resource address that balancing received load server returns.
Step 210: according to test data to interface service resource transmission interface service request, the interface service of transmission is requested Carry test data.
Step 212: the test result of receiving interface Service Source feedback.
Interface testing manages with interface identifier corresponding interface server resource (interface service resource of the platform to lookup Location) transmission interface service request, so that interface service resource is handled the test data, obtains the corresponding interface testing of the test data As a result, and returning to test result to interface testing management platform.
The interface test method of the present embodiment, user, which need to only trigger test request, can be realized interface testing.In addition, this reality Applying example is to generate test number based on the interface data being adapted with newest Interface status stored in interface testing management platform According to, realize interface testing not by interface update limited, each interface testing be all based on newest interface version into Row test.
In addition, traditional interface testing mode is then to fixed service resource transmission interface test request.Work as Service Source Deployment constantly variation when, it is traditional this to be then not suitable for fixed service resource transmission interface test request.In the present embodiment Interface testing when need to inquire and currently dispose the interface service resource of the interface service to be tested, it is ensured that each interface testing is all Specified position can accurately be arrived and seek the interface service resource needed.
In one embodiment, as shown in figure 3, the interface testing management received test result of platform may include test knot Fruit status code." 200 " in Fig. 3 are to return to status code.When returning the result as status code, platform is managed according to interface testing Storage status code and the corresponding paraphrase of status code, obtain test return the corresponding paraphrase of status code, to test terminal Push the paraphrase of obtained status code.
As shown in figure 3, can also to return the result replicated, form collator and the Xin Kai page.
This case stores the paraphrase for all status codes that interface is returned, should so that tester checks The comparison that test macro directly carries out status code returns to readily comprehensible status code paraphrase, so that amateur tester also can Understand test result.
In one embodiment, as shown in figure 3, further including the test response time in the test result returned.In Fig. 3 " time:125.918ms ".Testing the response time is exported by the timer of interface server, and calculating is from interface service Device receives the interface call request that interface testing management platform is sent and obtains the time of test result to interface server is obtained.
With reference to Fig. 1, the interface call request of the not only Processing Interface test management platform of interface server 108, also processing by The interface requests in practical business that load-balanced server 106 distributes.Therefore, interface testing management platform receive by connecing The test response time of mouth server feedback is able to reflect outgoing interface server to the response feelings of the interface requests in practical business Condition.If testing the response time is more than given threshold, response time-consuming of the interface server to the interface requests in practical business It can be long.
In the present embodiment, interface service resource distribution is adjusted according to the test response time.If specifically: the test response time More than given threshold, then to load-balanced server transmission interface Service Source adjustment request, pass through load-balanced server pair The corresponding interface service resource of test interface is adjusted.
The test response time that receiving interface server returns searches if the test response time is greater than given threshold The corresponding load-balanced server of the interface server, the service of the test interface is sent to the load-balanced server found Resource adjustment request.The deployment of the interface service is adjusted by load-balanced server.Such as increase Service Source.Before adjustment, Load-balanced server only deploys the interface service of interface 1 on interface server 1.It, can be in interface server 2 after adjustment The interface service of upper deployment interface 1 goes the interface in response practical business to ask simultaneously by interface server 1 and interface server 2 It asks.
In one embodiment, the test response time that can also be returned according to different periods, connecing for different time is analyzed Mouth service scenario, and then Service Source is adjusted at times, to realize the Service Source deployment of more grain refined.
Firstly, interface testing management platform is directed to either interface, its following information: asking where interface call request is recorded Ask period and corresponding test response time.Then, request period and corresponding test response time associated storage are being connect Under mouth mark.
As shown in figure 4, mainly being included the following steps: based on the carry out Service Source adjustment at times that test result is realized
Step 402: the request period and test response time of associated storage under statistical analysis interface identifier, when obtaining request The functional relation of section and test response time.
In the present embodiment, the test response time is the interface response time.In order to be more clear the description of this case scheme, The test response time is set fourth as the interface response time as follows.
Interface test history data are analyzed, the rule of segment interface response time when analyzing different requests.To obtain the final product To request the period and the interface response time function t=f (Ti~(i+ △ i), can to the function carry out image conversion show.
For example, the time cycle (24 hours) that one recycles is divided into multiple periods, such as 1:00-6:00,6: 00-18:00,18:00-24:00 count interface requests in different time periods, obtain the interface response time of corresponding period, obtain Line chart.It is, of course, also possible to keep each period divided as small as possible, formation curve function.
Step 404: according to functional relation, the Service Source for generating corresponding different periods configures plan.
Step 406: Service Source configuration plan is sent to load-balanced server, by load-balanced server according to Service Source configures the resource distribution of Plan rescheduling interface service.
According to functional relation, determine the exception request period of exceptional interface response time occur, and to the exception request period Monitoring carries out the interface service resource of exception request period according to the exception request period corresponding exceptional interface response time It redeploys.It specifically can be, be more than the default response time when the interface response time, then increase and the money of the interface service is provided The dilatation of the interface service is realized in source.It the interface service instance will be such as provided is issued to and do not dispose the server of the service.When The interface response time is less than preset time, reduces and provides the resource of the interface service, that is, load balancing reduces the interface and asks The resource response asked.
In one embodiment, further include management of process center, mentioned for closing to be supported in balanced deactivated server For the process of the interface service, by closing process, releasing memory, so that load balancing is to the clothes for being deactivated certain interface services Business device provides other Service Instances.
In one embodiment, load-balanced server can also record in every Service Source it is available service into Journey, the current surplus resources of every Service Source.Load-balanced server is matched according to the Service Source that interface testing manages platform Set the available service processes in every Service Source of plan and record, the current surplus resources of every Service Source, Generate Service Source adjustment test.
In one embodiment, when being deployed with multiple interface services in an interface server, if after tested, the interface I.e. including the interface service of present period response timeout in server, and including response time very small idle interface service, The server is then preferentially deactivated to the service provision of idle interface, so that the server is provided to the interface offer for influencing time-out More Service Sources out.
It should be understood that although each step in the flow chart of Fig. 2 and 4 is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, in Fig. 2 and 4 at least A part of step may include that perhaps these sub-steps of multiple stages or stage are not necessarily in same a period of time to multiple sub-steps Quarter executes completion, but can execute at different times, the execution in these sub-steps or stage be sequentially also not necessarily according to Secondary progress, but in turn or can replace at least part of the sub-step or stage of other steps or other steps Ground executes.
In one embodiment, as shown in figure 5, providing a kind of interface test device, comprising:
Test request receiving module 502 is used for receiving interface test request, carries interface to be tested in interface testing request Interface identifier.
Interface data searching module 504, for searching the interface data associated with interface identifier of preparatory typing.
Test data generation module 506, for generating test data according to interface data.
Interface service resource lookup module 508, for searching the corresponding interface service resource of interface to be tested, interface service The corresponding interface service of interface to be tested is at least deployed in resource.
Interface service request module 510 is used for interface service resource transmission interface service request, the interface service of transmission Request carries test data.
Test result receiving module 512, the test result for receiving interface Service Source feedback.
In one embodiment, interface service resource lookup module 408 is also used to load-balanced server transmission interface The search request of Service Source carries interface identifier in search request;Balancing received load server returns and interface identifier Associated interface service resource address;Test result receiving module 510 is also used to connect to interface service resource address is corresponding Mouth Service Source transmission interface service request.
In one embodiment, interface test device further include:
Service Source adjusts module, if being more than given threshold for testing the response time, sends out to load-balanced server Interface service resource adjustment request is sent, the corresponding interface service resource of test interface is adjusted by load-balanced server It is whole.
In one embodiment, interface test device further include:
Test record module, for the request period where record interface call request;The acquisition request from test result The period corresponding test response time;It will request period and corresponding test response time associated storage under interface identifier.
In one embodiment, Service Source adjusts module, is also used to statistically analyze the associated storage under interface identifier Period and test response time are requested, the request period is obtained and tests the functional relation of response time;According to functional relation, generate The Service Source of corresponding different periods configures plan;Service Source configuration plan is sent to load-balanced server, load is equal Server weigh according to Service Source configuration Plan rescheduling interface service resource distribution.
Specific about interface test device limits the restriction that may refer to above for interface test method, herein not It repeats again.Modules in above-mentioned interface test device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment includes processor, the memory, network interface connected by system bus.Its In, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non-volatile Property storage medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and database.This is interior Memory provides environment for the operation of operating system and computer program in non-volatile memory medium.The computer equipment Database is used for memory interface data.The network interface of the computer equipment is used for and terminal, interface server and load balancing Server passes through network connection communication.To realize a kind of interface test method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to the present invention program is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to the present invention program, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of receiving interface test request, interface testing request when executing computer program The middle interface identifier for carrying interface to be tested;Search the interface data associated with interface identifier of preparatory typing;According to interface Data generate test data;Search the corresponding interface service resource of interface to be tested, be at least deployed in interface service resource to The corresponding interface service of test interface;To interface service resource transmission interface service request, the interface service of transmission requests to carry Test data;The test result of receiving interface Service Source feedback.
In one embodiment, it also performs the steps of when processor executes computer program to load-balanced server The search request of transmission interface Service Source;The interface service resource address that balancing received load server returns;It is taken to interface The corresponding interface service resource transmission interface call request of business resource address.
In one embodiment, if processor also performs the steps of the test response time and surpasses when executing computer program Given threshold is crossed, then to load-balanced server transmission interface Service Source adjustment request, by load-balanced server to survey The corresponding interface service resource of mouth of trying is adjusted.
In one embodiment, record interface call request is also performed the steps of when processor executes computer program The request period at place;The acquisition request period corresponding test response time from test result;It will request period and corresponding Response time associated storage is tested under interface identifier.
In one embodiment, statistical analysis interface identifier is also performed the steps of when processor executes computer program Under associated storage the request period and test the response time, obtain request the period and test the response time functional relation;Root According to functional relation, the Service Source for generating corresponding different periods configures plan;It is equal that Service Source configuration plan is sent to load Weigh server, and load-balanced server configures the resource distribution of Plan rescheduling interface service according to Service Source.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of receiving interface test request when being executed by processor, carry to be measured try in interface testing request The interface identifier of mouth;Search the interface data associated with interface identifier of preparatory typing;Test number is generated according to interface data According to;The corresponding interface service resource of interface to be tested is searched, it is corresponding to be at least deployed with interface to be tested in interface service resource Interface service;To interface service resource transmission interface service request, the interface service request of transmission carries test data;Reception connects The test result of mouth Service Source feedback.
In one embodiment, it also performs the steps of when computer program is executed by processor to load balancing service The search request of device transmission interface Service Source;The interface service resource address that balancing received load server returns;To interface The corresponding interface service resource transmission interface call request of service resource address.
In one embodiment, if also performing the steps of the test response time when computer program is executed by processor More than given threshold, then to load-balanced server transmission interface Service Source adjustment request, pass through load-balanced server pair The corresponding interface service resource of test interface is adjusted.
In one embodiment, record interface calling is also performed the steps of when computer program is executed by processor to ask The request period where asking;The acquisition request period corresponding test response time from test result;It will request period and correspondence Test response time associated storage under interface identifier.
In one embodiment, statistical analysis interface mark is also performed the steps of when computer program is executed by processor The request period and test response time of associated storage under knowing obtain the request period and test the functional relation of response time; According to functional relation, the Service Source for generating corresponding different periods configures plan;Service Source configuration plan is sent to load Equalization server, load-balanced server configure the resource distribution of Plan rescheduling interface service according to Service Source.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, computer program can be stored in a non-volatile computer and can be read In storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, of the invention To any reference of memory, storage, database or other media used in provided each embodiment, may each comprise non- Volatibility and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art, Under the premise of not departing from present inventive concept, various modifications and improvements can be made, and these are all within the scope of protection of the present invention. Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of interface test method, comprising:
Receiving interface test request carries the interface identifier of interface to be tested in interface testing request;
Search the interface data associated with the interface identifier of preparatory typing;
Test data is generated according to the interface data;
The corresponding interface service resource of the interface to be tested is searched, is at least deployed in the interface service resource described to be measured The corresponding interface service of mouth of trying;
To the interface service resource transmission interface service request, the interface service request of transmission carries the test number According to;
Receive the test result of the interface service resource feedback.
2. the method according to claim 1, wherein described search the corresponding interface service of the interface to be tested Resource, comprising:
To the search request of load-balanced server transmission interface Service Source, interface identifier is carried in the search request;
Receive the interface service resource address associated with the interface identifier that the load-balanced server returns;
It is described to the interface service resource transmission interface service request, comprising: it is corresponding to the interface service resource address Interface service resource transmission interface service request.
3. according to the method described in claim 2, it is characterized in that, including the test response time in the test result;It is described Method further include:
If the test response time is more than given threshold, adjusted to the load-balanced server transmission interface Service Source Request, is adjusted the corresponding interface service resource of test interface by the load-balanced server.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
The request period where the interface service request that record is sent;
The test response time is obtained from the test result;
By the request period and the corresponding test response time associated storage under the interface identifier.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The request period and the test response time for statisticalling analyze the associated storage under the interface identifier obtain described Request the functional relation of period and the test response time;
According to the functional relation, the Service Source for generating corresponding different periods configures plan;
The Service Source configuration plan is sent to load-balanced server, through the load-balanced server according to Service Source configures the resource distribution of Plan rescheduling interface service.
6. a kind of interface test device, which is characterized in that described device includes:
Test request receiving module is used for receiving interface test request, carries interface to be tested in the interface testing request Interface identifier;
Interface data searching module, for searching the interface data associated with the interface identifier of preparatory typing;
Test data generation module, for generating test data according to the interface data;
Interface service resource lookup module, for searching the corresponding interface service resource of the interface to be tested, the interface clothes The corresponding interface service of the interface to be tested is at least deployed in business resource;
Interface service request module, for being taken to the interface of the interface service resource transmission interface service request, transmission Business request carries the test data;
Test result receiving module, for receiving the test result of the interface service resource feedback.
7. device according to claim 6, which is characterized in that the interface service resource lookup module is also used to negative The search request of equalization server transmission interface Service Source is carried, carries interface identifier in the search request;It receives described negative Carry the interface service resource address associated with the interface identifier that equalization server returns;
The test result receiving module is also used to connect to the corresponding interface service resource transmission of the interface service resource address Mouth service request.
8. device according to claim 7, which is characterized in that include the test response time in the test result;It is described Device further include:
Service Source adjusts module, if being more than given threshold for the test response time, to the load balancing service Device transmission interface Service Source adjustment request, by the load-balanced server to the corresponding interface service resource of test interface It is adjusted.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201811026057.3A 2018-09-04 2018-09-04 Interface test method, device, computer equipment and storage medium Pending CN109165165A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811026057.3A CN109165165A (en) 2018-09-04 2018-09-04 Interface test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811026057.3A CN109165165A (en) 2018-09-04 2018-09-04 Interface test method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109165165A true CN109165165A (en) 2019-01-08

Family

ID=64894096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811026057.3A Pending CN109165165A (en) 2018-09-04 2018-09-04 Interface test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109165165A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902026A (en) * 2019-03-27 2019-06-18 北京奇艺世纪科技有限公司 A kind of processing method and test platform of interface testing information
CN110362492A (en) * 2019-07-18 2019-10-22 腾讯科技(深圳)有限公司 Intelligent algorithm test method, device, server, terminal and storage medium
CN110716878A (en) * 2019-10-11 2020-01-21 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN110765024A (en) * 2019-10-29 2020-02-07 百度在线网络技术(北京)有限公司 Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system
CN111917607A (en) * 2020-07-31 2020-11-10 交通运输部规划研究院 Communication system test method, communication system test device and system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880546A (en) * 2012-09-03 2013-01-16 上海方正数字出版技术有限公司 Software integration testing method and system based on extensible markup language (XML) database
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN106886494A (en) * 2017-03-07 2017-06-23 深圳国泰安教育技术股份有限公司 A kind of automatic interface testing method and its system
CN106991040A (en) * 2016-07-20 2017-07-28 平安科技(深圳)有限公司 Data-interface method of testing and device
CN107070735A (en) * 2016-12-30 2017-08-18 上海亿账通互联网科技有限公司 Method, test terminal and the system of asynchronous interface test
CN107203473A (en) * 2017-05-26 2017-09-26 四川长虹电器股份有限公司 The automatization test system and method for automatic expansion interface test case
CN107547299A (en) * 2017-06-01 2018-01-05 新华三信息安全技术有限公司 A kind of method of testing and system
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107800768A (en) * 2017-09-13 2018-03-13 平安科技(深圳)有限公司 Open platform control method and system
CN107861876A (en) * 2017-11-16 2018-03-30 平安科技(深圳)有限公司 Method of testing, device, computer equipment and readable storage medium storing program for executing
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN107872355A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The method and device of interface simulation test
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN108089972A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 interface test method and device

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880546A (en) * 2012-09-03 2013-01-16 上海方正数字出版技术有限公司 Software integration testing method and system based on extensible markup language (XML) database
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
CN106991040A (en) * 2016-07-20 2017-07-28 平安科技(深圳)有限公司 Data-interface method of testing and device
WO2018014580A1 (en) * 2016-07-20 2018-01-25 平安科技(深圳)有限公司 Data interface test method and apparatus, and server and storage medium
CN107872355A (en) * 2016-09-26 2018-04-03 平安科技(深圳)有限公司 The method and device of interface simulation test
CN108089972A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 interface test method and device
CN107070735A (en) * 2016-12-30 2017-08-18 上海亿账通互联网科技有限公司 Method, test terminal and the system of asynchronous interface test
CN106886494A (en) * 2017-03-07 2017-06-23 深圳国泰安教育技术股份有限公司 A kind of automatic interface testing method and its system
CN107203473A (en) * 2017-05-26 2017-09-26 四川长虹电器股份有限公司 The automatization test system and method for automatic expansion interface test case
CN107547299A (en) * 2017-06-01 2018-01-05 新华三信息安全技术有限公司 A kind of method of testing and system
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN107688526A (en) * 2017-08-25 2018-02-13 上海壹账通金融科技有限公司 Performance test methods, device, computer equipment and the storage medium of application program
CN107800768A (en) * 2017-09-13 2018-03-13 平安科技(深圳)有限公司 Open platform control method and system
CN107729243A (en) * 2017-10-12 2018-02-23 上海携程金融信息服务有限公司 API automated testing method, system, equipment and storage medium
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN107861876A (en) * 2017-11-16 2018-03-30 平安科技(深圳)有限公司 Method of testing, device, computer equipment and readable storage medium storing program for executing

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system
CN109902026A (en) * 2019-03-27 2019-06-18 北京奇艺世纪科技有限公司 A kind of processing method and test platform of interface testing information
CN110362492A (en) * 2019-07-18 2019-10-22 腾讯科技(深圳)有限公司 Intelligent algorithm test method, device, server, terminal and storage medium
CN110716878A (en) * 2019-10-11 2020-01-21 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN110716878B (en) * 2019-10-11 2023-09-26 赛诺贝斯(北京)营销技术股份有限公司 Automatic interface testing method, device and system
CN110765024A (en) * 2019-10-29 2020-02-07 百度在线网络技术(北京)有限公司 Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN110765024B (en) * 2019-10-29 2023-08-29 百度在线网络技术(北京)有限公司 Simulation test method, simulation test device, electronic equipment and computer readable storage medium
CN111917607A (en) * 2020-07-31 2020-11-10 交通运输部规划研究院 Communication system test method, communication system test device and system

Similar Documents

Publication Publication Date Title
CN109165165A (en) Interface test method, device, computer equipment and storage medium
CN108763090B (en) Test environment deployment method, device, computer equipment and storage medium
US10229039B2 (en) Testing a virtual network function by a virtual network tester
CN104023342B (en) For the system and method for the scale for determining cellular telecommunication network
CN108768728A (en) O&M task processing method, device, computer equipment and storage medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN108681504A (en) Automated testing method, test server and computer readable storage medium
CN109634730A (en) Method for scheduling task, device, computer equipment and storage medium
CN108959385A (en) Database portion arranging method, device, computer equipment and storage medium
US10637908B2 (en) Parallel and sequential execution of automated online charging test procedures
US9037716B2 (en) System and method to manage a policy related to a network-based service
CN110337076A (en) SMS platform interface test method, device, computer equipment and storage medium
CN103246606A (en) Method and system for testing performances of ESB (enterprises service bus) platform
CN109871308A (en) Automated testing method and device, terminal device and computer readable storage medium
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
CN109828840A (en) Resource method of combination, device, storage medium and electronic equipment
CN113377668A (en) Automatic testing method and device for service interface and computer equipment
CN111966556A (en) Performance pressure measurement method and device, server and computer readable storage medium
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN106294037A (en) Strike-machine method of testing and device
CN110620754B (en) NF (NF) required resource deployment method and device, storage medium and electronic device
CN107784548B (en) Order processing method and device
CN106294146B (en) Parameter replacement test method and device
CN115543491A (en) Microservice processing method and device
CN111949246A (en) Method and device for creating new energy power industry application

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