CN108694120A - The method and apparatus of testing service component - Google Patents
The method and apparatus of testing service component Download PDFInfo
- Publication number
- CN108694120A CN108694120A CN201710235946.XA CN201710235946A CN108694120A CN 108694120 A CN108694120 A CN 108694120A CN 201710235946 A CN201710235946 A CN 201710235946A CN 108694120 A CN108694120 A CN 108694120A
- Authority
- CN
- China
- Prior art keywords
- information
- contract
- servicing
- service
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides a kind of method and apparatus of testing service component, can reduce the testing cost of serviced component and reach preferably test effect.The first aspect according to the ... of the embodiment of the present invention provides a kind of method of testing service component, including:Service component information and service method information are asked to server-side;According to the serviced component title of user's selection and service method name, generates contract parameter information request Concurrency and give the server-side;According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;Receive the test result returned after method of servicing of the server-side according to contract test information calling respective service component.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of testing service component.
Background technology
In large-scale web system, system provides or has relied on different types of serviced component, and serviced component refers to having
The code collection of a certain service function, such as:It inquires the order information of user, inquiry commodity price information, send message, report
Data export etc..It needs to realize that serviced component can be tested in these scenes, to understand the run time behaviour of service in time
And run time result.
The prior art needs to be the specific clothes for needing serviced component to be tested in web system in testing service component
Business method develops corresponding HTTP interface, services the method for servicing of intrinsic call serviced component by HTTP interface to be surveyed
Examination.
In realizing process of the present invention, inventor has found that at least there are the following problems in the prior art:(1) existing web
Open system frame is numerous, and different open frames needs developer oneself to go to provide the HTTP interface of corresponding technology, in order to make
Serviced component can be tested, it is also necessary to the correlative code needed for exploitation test;When serviced component quantity is more, each serviced component has
Including when several method of servicing, since prior art testing scheme is not general, huge workload can be brought, increases application and development
The burden of person.(2) on the other hand, prior art Transfer Parameters, Transfer Parameters directly in URL when sending the parameter of test
During need to carry out URL codings to prevent mess code, spcial character also needs to escape, right especially for the complexity for having nested
As artificial establishment parameter is very inconvenient;In addition, test when parameter all by being manually entered, caller it must be appreciated that parameter lattice
Formula information brings great difficulty to test..
Invention content
In view of this, the embodiment of the present invention provides a kind of method and apparatus of testing service component, service group can be reduced
The testing cost of part simultaneously reaches preferably test effect.
To achieve the above object, the first aspect according to the ... of the embodiment of the present invention provides a kind of testing service component
Method, including:
Service component information and service method information are asked to server-side;
According to the serviced component title of user's selection and service method name, generates contract parameter information request Concurrency and give
The server-side;
According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;
It receives the server-side and is tested after information calls the method for servicing of respective service component according to the contract and returned
Test result.
In some optional embodiments, asks service component information and service method information to server-side and show, wrap
It includes:
Serviced component name request is sent to server-side;
Show the serviced component name list that server-side returns;
According to the serviced component title that user selects, sends the request of serviced component class to server-side and service method name is asked
It asks;
Show the serviced component class and service method name list that server-side returns.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
To achieve the above object, the second aspect according to the ... of the embodiment of the present invention provides a kind of testing service component
Method, including:
According to request service component information and service method information are returned to user terminal;
Contract parameter information is requested to generate according to the contract parameter information including serviced component title and service method name
And it is back to user terminal, so that user terminal generates contract test according to test parameter input by user and the contract parameter information
Information;
The contract test information sent according to user terminal calls the method for servicing of respective service component, and to the use
Family end returns to test result.
In some optional embodiments, service component information and service method information are returned to user terminal according to request,
Including:
Receive the serviced component name request that user terminal is sent;
It generates serviced component name list and is back to user terminal;
It receives what user terminal was sent, includes the request of serviced component class and the service method name request of serviced component title;
Serviced component class and service method name list are searched according to serviced component title, and is back to user terminal.
In some optional embodiments, the contract test information sent according to user terminal calls respective service component
Method of servicing, including:
The contract test information is parsed, service operation context is generated;
The method of servicing of respective service component is called according to the service operation context.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
To achieve the above object, in terms of third according to the ... of the embodiment of the present invention, a kind of testing service component is provided
Device, including:
Selecting module, for asking service component information and service method information to server-side;
Contract parameter information module, the serviced component title for being selected according to user and service method name, generate contract
About parameter information request Concurrency gives the server-side;
Contract tests information module, the contract parameter information for being returned according to server-side, generates contract test letter
It ceases and is sent to the server-side;
It receives the server-side and is tested after information calls the method for servicing of respective service component according to the contract and returned
Test result.
In some optional embodiments, the selecting module is additionally operable to:Serviced component name request is sent to server-side;
Show the serviced component name list that server-side returns;According to the serviced component title that user selects, sends and service to server-side
Component class is asked and service method name request;Show the serviced component class and service method name list that server-side returns.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
To achieve the above object, the 4th aspect according to the ... of the embodiment of the present invention, provides a kind of testing service component
Device, including:
Responder module is selected, for returning to service component information and service method information to user terminal according to request;
Contract parameter information generation module, for according to the contract parameter for including serviced component title and service method name
Information request generates contract parameter information and is simultaneously back to user terminal, so that user terminal is according to test parameter input by user and described
Contract parameter information generates contract and tests information;
Test module, the contract test information for being sent according to user terminal call the service side of respective service component
Method, and return to test result to the user terminal.
In some optional embodiments, the selection responder module is additionally operable to receive the serviced component name that user terminal is sent
Claim request;It generates serviced component name list and is back to user terminal;Receive what user terminal was sent, including serviced component title
Serviced component class is asked and service method name request;Serviced component class and service method name are searched according to serviced component title
List, and it is back to user terminal.
In some optional embodiments, the test module is additionally operable to:The contract test information is parsed, service is generated
Run context;The method of servicing of respective service component is called according to the service operation context.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
To achieve the above object, the 5th aspect according to the ... of the embodiment of the present invention, provides a kind of testing service component
Terminal, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing
Device is at least realized:
Service component information and service method information are asked to server-side;
According to the serviced component title of user's selection and service method name, generates contract parameter information request Concurrency and give
The server-side;
According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;
It receives the server-side and is tested after information calls the method for servicing of respective service component according to the contract and returned
Test result.
To achieve the above object, the 6th aspect according to the ... of the embodiment of the present invention, provides a kind of testing service component
Server, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processing
Device is at least realized:
According to request service component information and service method information are returned to user terminal;
Contract parameter information is requested to generate according to the contract parameter information including serviced component title and service method name
And it is back to user terminal, so that user terminal generates contract test according to test parameter input by user and the contract parameter information
Information;
The contract test information sent according to user terminal calls the method for servicing of respective service component, and to the use
Family end returns to test result.
To achieve the above object, the 7th aspect according to the ... of the embodiment of the present invention, provides a kind of computer-readable medium,
On be stored with computer program, at least realized when described program is executed by processor:
Service component information and service method information are asked to server-side;
According to the serviced component title of user's selection and service method name, generates contract parameter information request Concurrency and give
The server-side;
According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;
It receives the server-side and is tested after information calls the method for servicing of respective service component according to the contract and returned
Test result.
To achieve the above object, the 8th aspect according to the ... of the embodiment of the present invention, provides a kind of computer-readable medium,
On be stored with computer program, at least realized when described program is executed by processor:
According to request service component information and service method information are returned to user terminal;
Contract parameter information is requested to generate according to the contract parameter information including serviced component title and service method name
And it is back to user terminal, so that user terminal generates contract test according to test parameter input by user and the contract parameter information
Information;
The contract test information sent according to user terminal calls the method for servicing of respective service component, and to the use
Family end returns to test result.
One embodiment in foregoing invention has the following advantages that or advantageous effect:It is asked according to user's input because using
The technological means of component Name and method name is sought, user can be allowed to learn the relevant information of serviced component and method of servicing, into
The purposive test of row, solves the problems, such as that web system can not be investigated in the prior art, has reached simplification
Test process, the technique effect for improving testing efficiency;Because using default formality of contract Transfer Parameters and test information, use
Family is solved and needs to be manually entered parameter in the prior art without being manually entered parameter, it is difficult to the problem of transfer complex object, be reached
The technique effect for having arrived simplified test process, having improved testing efficiency;Because using reflection technology calls service group to be tested
The method of servicing of part solves test development in the prior art without developing testing tool respectively for different Development Frameworks
The huge technical problem of workload has reached the technique effect for reducing test development cost.
Further effect possessed by above-mentioned non-usual optional mode adds hereinafter in conjunction with specific implementation mode
With explanation.
Description of the drawings
Attached drawing does not constitute inappropriate limitation of the present invention for more fully understanding the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method for testing service component according to the ... of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the key step of the method for testing service component according to another embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of the device of testing service component according to the ... of the embodiment of the present invention;
Fig. 4 is the schematic diagram of the main modular of the device of testing service component according to another embodiment of the present invention;
Fig. 5 is the schematic diagram of the main modular of the system of testing service component according to the ... of the embodiment of the present invention;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention
Figure.
Specific implementation mode
It explains to the exemplary embodiment of the present invention below in conjunction with attached drawing, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
The description to known function and structure is omitted for clarity and conciseness in sample in following description.
Fig. 1 is the schematic diagram of the key step of the method for testing service component according to the ... of the embodiment of the present invention.
As shown in Figure 1, for the method for testing service component provided in an embodiment of the present invention, including:
S10, user terminal ask service component information and service method information to server-side.It should be noted that in order to just
In user's operation, a test page (such as html page) for serviced component test can be preset in server-side;User
After user terminal is asked and loads the test page, request, the clothes of service component information are completed according to the content that the page is shown
The call request of the request and serviced component corresponding with service method of business method information.In view of interaction convenience (fills in parameter, exhibition
Show result, optimum results displaying, exception information feedback etc.), and convenience is developed, the test page can select static state
Html page.
S11, server-side return to service component information and service method information according to request to user terminal.Service component information
Including at least serviced component title, service method information includes at least method of servicing title.For example, user terminal asks and loads survey
After the page on probation, user terminal active request or the page ask service component information, server-side to return to service component information automatically
Afterwards, the specific service component Name that user terminal is selected according to user, asks the service that the serviced component includes to server-side again
Method information, server-side return to service method information.So, user is apparent that each serviced component is included
Method of servicing;Service component information and service method information can also include the related of more serviced components or method of servicing
Information, for example, class, parameter, whether static method etc., so that user examines, to facilitate user to understand institute's service to be tested
Component and method of servicing, and facilitate user investigate web system there are the problem of.
S12, the serviced component title and service method name, generation contract parameter information that user terminal is selected according to user are asked
It asks and is sent to the server-side." contract " is meant that pre-set format, that is to say, that contract parameter information asks institute
The content of request is about serviced component and method of servicing, the information for meeting preset format.
S13, server-side are asked according to the contract parameter information, are generated contract parameter information and are back to user terminal.Clothes
End be engaged according to contract parameter request, serviced component title and service method name that user wishes test can be got, according to
Serviced component title, can search the class of serviced component, and search the method for servicing that serviced component is included, according to method of servicing
Title can further search for the specifying information of respective service method, such as serviced component class, serviced component title, service
Method name and for indicate the method for servicing whether be static method static method mark etc.;If in the service side
The corresponding method of servicing of legitimate name includes testable method parameter, and the contract parameter information further includes default method parameter.
According to the class of serviced component and service method name, server-side can get specific service using reflection technology
Method.Reflex mechanism is, for any one class, can to know all properties and method of this class in operating status;
For any one object, its any one method and attribute can be called;It is a kind of dynamic access information and dynamic
Call the function of the method for object.
S14, user terminal generate contract test information and are sent to the server-side according to the contract parameter information.Contract
About test information is also to be generated according to default contract, and format can be different from contract parameter information;Contract tests information
Effect is to provide the necessary information that server-side calls method of servicing in serviced component, such as serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark etc.;If in the service
The corresponding method of servicing of method name includes testable method parameter, and the contract test information further includes survey input by user
Method for testing parameter.
S15, server-side tests the method for servicing that information calls respective service component according to contract, and returns and survey to user terminal
Test result.Server-side can parse the contract according to default contract and test information, and be generated according to the content being analyzed and acquired by
Service operation context;Service operation context is oneself for obtaining the Information encapsulation needed for method of servicing in calling serviced component
Define object;According to service operation context, server-side can call the designation method of specified services component, and be returned to user terminal
Return test result.It should be noted that when returning to test result, it can be according to advance setting, at each committed step
Return stage after reason is as a result, the problem of understanding method operational process for user, including inside investigation method.By in contract
About test defined in information and the test parameter made an appointment of addition, various feedback when can get calling interface as a result,
Solve test result in the prior art single (such as stack information of feedback when calling abnormal, method tune when calling successfully
With take etc.) the technical issues of.
From the above it can be seen that the embodiment of the present invention inputs request component Name and side because using according to user
The technological means of legitimate name can allow user to learn the relevant information of serviced component and method of servicing, carry out purposive test,
It solves the problems, such as that web system can not be investigated in the prior art, has reached simplified test process, improved and survey
Try the technique effect of efficiency;Because using default formality of contract Transfer Parameters and test information, make the user do not need to be manually entered
Parameter solves and needs to be manually entered parameter in the prior art, it is difficult to the problem of transfer complex object, reach simplified and test
Journey, the technique effect for improving testing efficiency;Because using the method for servicing that reflection technology calls serviced component to be tested, nothing
Testing tool need to be developed respectively for different Development Frameworks, solve the huge technology of test development workload in the prior art
Problem has reached the technique effect for reducing test development cost.
Fig. 2 is the schematic diagram of the key step of the method for testing service component according to another embodiment of the present invention.
As shown in Fig. 2, the method for the testing service component that another embodiment of the present invention provides includes:
S201. user terminal is to the server-side request for test page.
S202. server-side returns to test page according to request to user terminal.A HTTP is provided in server-side
ServleT and test page for serviced component test, HTTP ServleT is responsible for the request that receiving unit test is submitted
Parameter obtains serviced component list, obtains method of servicing list, the functions such as method parameter automatically generates.Test page can select
With the static HTTP pages;User's request can be sent ajax requests by the JS in the static HTTP pages and be obtained, and can thus be made
Test page asks a small amount of information from server-side, rather than asks full page repeatedly.
S203. the user terminal load test page.
S204. user terminal sends service component information request to server-side.The request that user terminal is sent is with character string class
What type was sent;Server-side can convert the request into JAVA after receiving the request of character string type of user terminal transmission
True data type inside language and it is converted into true data value, and method parameter is automatically generated into lattice needed for contract
The relevant parameter of formula.
S205. after server-side receives service component information request, the whole serviced components of inquiry (for test).Service
Upon receiving a request, there are the processes of a parsing, that is, by the request of above-mentioned character string type, resolve at end
The truthful data type and true data value that JAVA can be identified, and subsequently grasped according to the true parameter after parsing
Make.
S206. (for test), the serviced component title of whole serviced components returns to user terminal to server-side by described in.
S207. user terminal receives and shows serviced component title, for selection by the user.For example, can be by serviced component name
Title is shown on test page in the form of a list.
S208. the serviced component title that user terminal is selected according to user sends service method information request to server-side.When
It, can be with the transmission of automatic trigger service method information request after user has selected serviced component title;When user reselects
After serviced component title, method of servicing title and component class are realized in the meeting transmission that automatic trigger service method information is asked again
Automatically update.In addition, the Spring context environmentals of web system can be preserved in server-side, provide serviced component title with
And in serviced component method of servicing lookup.
S209. after server-side receives service method information request, according to serviced component name acquiring serviced component class, and
Whole method of servicing (for test) are further obtained in serviced component.
S210. the method for servicing title and serviced component of server-side whole method of servicing (for test) by described in
Class returns to user terminal.
S211. user terminal receives service side's religious name and component class and shows, for selection by the user.Return to serviced component class one
Aspect is easy for follow-up contract parameter information request, and user is on the other hand facilitated to understand the class letter for the serviced component for wishing to test
Breath.
S212. the method for servicing title that user terminal is selected according to user sends the request of contract parameter information to server-side.Contract
About parameter information request content may include:Request type (labeled as request contract parameter information), method of servicing title (or
It is used to indicate the tag entry of method of servicing title), serviced component class.
S213. after server-side receives the request of contract parameter information, according to the service for including in the request of contract parameter information
Method name, component class etc., query-related information generate contract parameter information.
S214. contract parameter information is returned to user terminal by server-side.
S215. after user terminal receives contract parameter information, contract parameter information is shown;It is generated according to contract parameter information
Contract tests information.When in contract parameter information including testable method parameter, (these can be surveyed in contract parameter information
The parameter of examination can save as null value or default value), user terminal can also show these method parameters in test page, for
User edits;When user inputs new test parameter alternative parameter, when generating contract and testing information then using test
Parameter substitutes former default parameters or null value.
S216. contract test information is sent to server-side by user terminal.
S217. server-side tests information according to contract, and the method for servicing of respective service component is called to be tested.
S218. test result is returned to user terminal by server-side.It if necessary, can also be during being tested, often
A committed step is completed then to user terminal returning part as a result, testing for user.
In order to make it easy to understand, being carried out below with the contract that server-side is used when interacting to user terminal in the embodiment of the present invention
Exemplary illustration.
In some optional embodiments, user terminal sends the request letter of character string type when sending request to server-side
It ceases, the required parameter for including in solicited message pre-defines corresponding meaning in server-side, and such server-side is believed in analysis request
After ceasing and getting required parameter, so that it may to be handled according to the prospective significance of required parameter.For example, request ginseng can be defined
Several meanings is as follows:
C//serviced component class
M//service side's religious name
B//serviced component name
P//method parameter
Token//calling token information
Mt//label method of servicing whether be static method static method mark
ShowError//whether show abnormal details
(1 indicates service call to execute test to cmd//order;2 indicate to obtain serviced component title;3 indicate to obtain service
The complete trails of component class, and service method name (such as serviced component list);4 indicate to obtain contract parameter information)
MIdx//method index (serial number in method list, since 0)
Contract about method of servicing parameter:Method of servicing parameter is divided into two major classes, and a non-Map parameter has typeInfo
(type information of parameter) attribute, value (value of parameter) attribute;The parameter of Map types has the kType (types of key in Map
Information) attribute, vType (type information of the corresponding values of key in Map) attribute, typeInfo (type information of parameter) attribute,
Value (value of parameter) attribute.
Type information is defined as follows:
Rt attributes indicate the initial form of type
Dt attributes indicate the truthful data type of type
What contract test information was transmitted is an array, sequence and method of servicing definition the inside ginseng that parameter is transmitted in array
Number sequence consensus
Following character string type can be transmitted respectively when user terminal sends request to server-side according to above-mentioned definition
Parameter:
(1) when asking service component information, it is only necessary to which the value of Transfer Parameters cmd, parameter cmd are 2;
(2) when asking service method information (service component type and service method list information), it is only necessary to Transfer Parameters b
With parameter cmd.The value of parameter b is the title of serviced component, and the value of cmd parameters is 3;
(3) request contract parameter information (including believe by service method information and parameter formality of contract information, wherein method of servicing
Whether breath such as method is static method, and whether method needs parameter, the description information etc. of method) when, it is only necessary to Transfer Parameters
Cmd, parameter mIdx, parameter c.The value of parameter cmd is 4, and the value of parameter mIdx parameters is to be taken selected in method of servicing list box
The index position (sequence) of business method, the value of parameter c are the type of serviced component;
(4) when sending contract test information to carry out serviced component and service method call, it is only necessary to Transfer Parameters c, ginseng
Number b, parameter m, parameter mt, parameter showError, parameter token, parameter cmd and parameter p.The value of parameter c is current service group
The class of part, the value of parameter b are the title of current service component, and the value of parameter m is currently selected method of servicing title, parameter
The value of mt is that the static method of method of servicing identifies, and whether the value of parameter showError is returned when calling abnormal for labeling method
Exception stack information is returned, the value of parameter token is token (carrying out method call for verifying whether to have permission), and parameter p is side
The parameter information of method (when method does not need method parameter, this parameter is not transmitted).
Generation about contract parameter information:When asking contract parameter information, server-side is serviced according in required parameter
Component class parameter acquiring is to component type (Class in JAVA), to get the method list of this serviced component class, according to
Method index mIdx finds specifically which method of servicing in required parameter, and the service side can be got after finding method of servicing
The type information of the parameter of method can thus generate the contract information of parameter.
The Parameter analysis of electrochemical of service invocation procedure:When sending contract test information request service calling, server-side is according to contract
The type for about testing parameter in information calls transfer function that the value of character string type value attributes is converted into true data class
Type gets corresponding serviced component, according to contract according to serviced component name parameter in the application context of Spring frames
Serviced component class parameter acquiring in information is about tested to be tested in information according to contract to service component type (Class in JAVA)
Method of servicing title finds specifically which method of servicing.Method of servicing, method parameter can be thus obtained, serviced component carrys out structure
Operation context is built, and carries out the calling of method using JAVA reflection technologies.
For example, it is desired to which the serviced component of test and the relevant information of method of servicing are as follows:
Component name:testService
Component type:com.xxx.test.service.TestService
Method is defined as follows:
public String queryOrder(String userPin,int page,int pageSize);(the party
Method is first method in method list, value of this information association to required parameter mIdx)
The form for the contract parameter information request that then user terminal is sent is as follows:
{
"cmd":4,
"mIdx":0,
"c":"com.xxx.test.service.TestService"
}
The contract parameter information that server-side returns is as follows:
{"isStaticMethod":false,"methodDesc":"public java.lang.String
com.xxx.test.service.TestServiceImpl.queryOrder(String userPin,int page,int
pageSize)","isParamRequired":true,"paramSuggest":[{"typeInfo":{"dt":"
ja va.lang.String","rt":"java.lang.String"},"value":""},{"typeInfo":{"dt":"
int","rt":"int"},"value":},{"typeInfo":{"dt":"int","rt":"int"},"value":}]}
IsStaticMethod describes whether method of servicing is static method wherein in return value, and methodDesc is service
The toString information of method, isParamRequired indicate whether method of servicing needs the method parameter, paramSuggest to be
The formality of contract of method parameter.User only needs to edit value attributes in paramSuggest and fills out lower method parameter for follow-up
Test.
It is as follows to send out contract test information when user determines and calls method of servicing for user terminal:
{
"cmd":1,
"c":"com.xxx.test.service.TestService",
"b":"testService",
"m":"queryOrder",
"mt":"false",
"showError":"false",
"token":"Ling Paixinxi ",
"p":[{"typeInfo":{"dt":"java.lang.String","rt":"java.lang.String"},"
val ue":"Zhang San "},{"typeInfo":{"dt":"int","rt":"int"},"value":1},{"typeInfo":{"
dt":"int","rt":"int"},"value":20}]
}
The parameter name meaning of required parameter has been described above in front.Parameter cmd is 1, indicates that the purpose of the request is to adjust
It is tested with method of servicing, the value of parameter c is the type of current service component, and the value of parameter b is the name of current service component
Claim, the value of parameter m is currently selected service side's religious name, and the value of parameter mt is whether method of servicing is static method, parameter
The value of showError is that exception stack information whether is returned when method of servicing calls abnormal, and the value of parameter token is that token (is used
Method call is carried out in whether verification has permission), parameter p is the method parameter of method of servicing.
Fig. 3 is the schematic diagram of the main modular of the device of testing service component according to the ... of the embodiment of the present invention.
As shown in figure 3, the device 300 of the testing service component of the embodiment of the present invention, including:
Selecting module 301, for asking service component information and service method information to server-side.
Contract parameter information request module 302, the serviced component title for being selected according to user and service method name,
It generates contract parameter information request Concurrency and gives the server-side.
Contract tests information generating module 303, and the contract parameter information for being returned according to server-side generates contract
Test information is simultaneously sent to the server-side.
As a result information calling respective service group is tested in receiving module 304 for receiving the server-side according to the contract
The test result returned after the method for servicing of part.
In some optional embodiments, the selecting module 301 is additionally operable to:Serviced component title is sent to server-side to ask
It asks;Show the serviced component name list that server-side returns;According to the serviced component title that user selects, sends and take to server-side
Component class of being engaged in request and service method name request;Show the serviced component class and service method name list that server-side returns.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
Fig. 4 is the schematic diagram of the main modular of the device of testing service component according to another embodiment of the present invention.
As shown in figure 4, the device 400 of the testing service component of another embodiment of the present invention, including:
Responder module 401 is selected, for returning to service component information and service method information to user terminal according to request.
Contract parameter information generation module 402, for according to the contract for including serviced component title and service method name
Parameter information requests to generate contract parameter information and is back to user terminal, so that user terminal is generated according to the contract parameter information
Contract tests information;
Test module 403, the contract test information for being sent according to user terminal call the clothes of respective service component
Business method, and return to test result to the user terminal.
In some optional embodiments, the selection responder module 401 is additionally operable to receive the service group that user terminal is sent
Part name request;It generates serviced component name list and is back to user terminal;Receive what user terminal was sent, including serviced component name
The serviced component class of title is asked and service method name request;Serviced component class and method of servicing are searched according to serviced component title
Name list, and it is back to user terminal.
In some optional embodiments, the test module 403 is additionally operable to:The contract test information is parsed, is generated
Service operation context;The method of servicing of respective service component is called according to the service operation context.
In some optional embodiments, the contract parameter information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract parameter information further includes default method parameter.
In some optional embodiments, the contract test information includes:Serviced component class, serviced component title, clothes
Business method name and for indicate the method for servicing whether be static method static method mark;In service side's religious name
When to claim corresponding method of servicing include testable method parameter, the contract test information further includes test side input by user
Method parameter.
Fig. 5 is the schematic diagram of the main modular of the system of testing service component according to the ... of the embodiment of the present invention.
As shown in figure 5, be the system 500 of testing service component provided in an embodiment of the present invention, including:
Gateway module 501, this module provides a HTTP Servlet and a static HTML for being used for module testing
The page, the Servlet are responsible for required parameter, acquisition application service list, the acquisition method of servicing row that receiving unit test is submitted
Table, method parameter such as automatically generate at the functions.
Parameter analysis of electrochemical module 502, the character string type Parameter Switch which is responsible for submit at JAVA language inside
Truthful data type and it is converted into true data value, and method parameter is automatically generated into format needed for contract.
Service context module 503, the module save the Spring context environmentals of application, provide serviced component list
And in component method of servicing lookup.
Service calling module 504, serviced component, method of servicing, service for being parsed according to Parameter analysis of electrochemical module
Parameter is called the true method of serviced component and is returned situations such as taking result and method execution.
User the list of Asynchronous Request serviced component and shows in the web browser request for test page, after the completion of page load
In Page Service list drop-down list box its type and clothes are inquired further according to the component name of a serviced component of the component list
Business method list information, then removes the lattice for asking method parameter to be converted into contract according to method of servicing list method of servicing
Formula (contract parameter information).User reselect serviced component name can trigger assembly type and method of servicing inquiry again and just
The meeting triggering method parameter contract that reselects of beginningization, method of servicing automatically generates.
The step flow of the system 500 of testing service component at runtime includes:
1. being needed according to contract Transfer Parameters when request, contract includes parameter transformat (JSON formats), test suite
Type, the title of test suite, the method for servicing (method name and whether be static method) of test, the parameter (class of parameter
Type, parameter value, if be dynamic parameter).The format of parameter is preset, is only transmitted according to the format of agreement, could be from ginseng
The information for wishing to get is got in several.When user has selected some component name to be tested, the page can go request to work as
Component type corresponding to preceding selected component name, the type of such component determine that.At the same time work as to user's displaying
All methods of preceding selected component, when user selects a certain method, method of servicing determines that.At the same time page meeting
The formality of contract information automatically generated corresponding to Asynchronous Request method parameter.
2. the JAVA Class classes of component are got according to the type of test suite, according to class and method name application reflection skill
Art gets true method of servicing;By Parameter Switch at true method of servicing data type.The parameter is transmitted for the page
HTTP request parameter, pass through HTTP request object (HTTPServletRequest) obtain.
3. inquiring serviced component according to component class and component name in service context mould application context in the block.Using
Context be using being core component using Spring frames, the inside maintain all components of application information (component
Title, the type of component).All objects of the inside managed all are components for Spring, and serviced component seeks to survey
The service object of examination.
4. 3. serviced component structure service that the method for servicing 2. obtained according to step, method of servicing parameter and step obtain
Run context (including serviced component class, serviced component, method of servicing, method parameter, if be static method).
5. calling the method for servicing of serviced component by reflection technology, and result and method are run into the information such as time-consuming and returned
It returns.Call serviced component method of servicing when, will call needed for information (serviced component class, serviced component, method of servicing,
Method parameter, if be static method) it is encapsulated into customized object (service operation context).
From the above it can be seen that the embodiment of the present invention inputs request component Name and side because using according to user
The technological means of legitimate name can allow user to learn the relevant information of serviced component and method of servicing, carry out purposive test,
It solves the problems, such as that web system can not be investigated in the prior art, has reached simplified test process, improved and survey
Try the technique effect of efficiency;Because using default formality of contract Transfer Parameters and test information, make the user do not need to be manually entered
Parameter solves and needs to be manually entered parameter in the prior art, it is difficult to the problem of transfer complex object, reach simplified and test
Journey, the technique effect for improving testing efficiency;Because using the method for servicing that reflection technology calls serviced component to be tested, nothing
Testing tool need to be developed respectively for different Development Frameworks, solve the huge technology of test development workload in the prior art
Problem has reached the technique effect for reducing test development cost.
According to an embodiment of the invention, the present invention also provides a kind of electronic equipment and a kind of readable storage medium storing program for executing.
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention
Figure.
Below with reference to Fig. 6, it illustrates the computer systems 600 suitable for the terminal device for realizing the embodiment of the present invention
Structural schematic diagram.Terminal device shown in Fig. 6 is only an example, to the function of the embodiment of the present invention and should not use model
Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various actions appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
It is connected to I/O interfaces 605 with lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to be read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, according to an embodiment of the invention, the process of the schematic diagram description of key step above may be implemented as
Computer software programs.For example, the embodiment of the present invention includes a kind of computer program product comprising being carried on computer can
The computer program on medium is read, which includes the program for executing method shown in the schematic diagram of key step
Code.In such embodiments, which can be downloaded and installed by communications portion 609 from network, and/
Or it is mounted from detachable media 611.When the computer program is executed by central processing unit (CPU) 601, the present invention is executed
System in the above-mentioned function that limits.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two arbitrarily combines.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or arbitrary above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just
It takes formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type and may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, can be any include computer readable storage medium or storage journey
The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.And at this
In invention, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By instruction execution system, device either device use or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned
Any appropriate combination.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part for a part for one module, program segment, or code of table, above-mentioned module, program segment, or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part is realized.Described module can also be arranged in the processor, for example, can be described as:A kind of processor packet
Include selecting module, contract parameter information request module, contract test information generating module and result receiving module;It for another example, can be with
It is described as:A kind of processor includes selection responder module, contract parameter information generation module and test module.Wherein, these moulds
The title of block does not constitute the restriction to the module itself under certain conditions, for example, selecting module be also described as " to
The server-side connected sends the module of information acquisition request ";For another example, selection responder module is also described as " according to institute
The information acquisition request of the user terminal of connection returns to the module of corresponding information ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which can be
Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
The equipment is obtained to include at least:
Service component information and service method information are asked to server-side;
According to the serviced component title of user's selection and service method name, generates contract parameter information request Concurrency and give
The server-side;
According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;
It receives the server-side and is tested after information calls the method for servicing of respective service component according to the contract and returned
Test result.
Alternatively, when one or more program of another computer-readable medium carrying is executed by the equipment,
So that the equipment includes at least:
According to request service component information and service method information are returned to user terminal;
Contract parameter information is requested to generate according to the contract parameter information including serviced component title and service method name
And it is back to user terminal, test information so that user terminal generates contract according to the contract parameter information;
The contract test information sent according to user terminal calls the method for servicing of respective service component, and to the use
Family end returns to test result.
From the above it can be seen that the embodiment of the present invention inputs request component Name and side because using according to user
The technological means of legitimate name can allow user to learn the relevant information of serviced component and method of servicing, carry out purposive test,
It solves the problems, such as that web system can not be investigated in the prior art, has reached simplified test process, improved and survey
Try the technique effect of efficiency;Because using default formality of contract Transfer Parameters and test information, make the user do not need to be manually entered
Parameter solves and needs to be manually entered parameter in the prior art, it is difficult to the problem of transfer complex object, reach simplified and test
Journey, the technique effect for improving testing efficiency;Because using the method for servicing that reflection technology calls serviced component to be tested, nothing
Testing tool need to be developed respectively for different Development Frameworks, solve the huge technology of test development workload in the prior art
Problem has reached the technique effect for reducing test development cost.
Above-mentioned specific implementation mode, does not constitute limiting the scope of the invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and replacement can occur.It is any
Modifications, equivalent substitutions and improvements made by within the spirit and principles in the present invention etc., should be included in the scope of the present invention
Within.
Claims (22)
1. a kind of method of testing service component, which is characterized in that including:
Service component information and service method information are asked to server-side;
According to the serviced component title of user's selection and service method name, generation contract parameter information request Concurrency is given described
Server-side;
According to the contract parameter information that server-side returns, generates contract test information and be sent to the server-side;
Receive the test returned after method of servicing of the server-side according to contract test information calling respective service component
As a result.
2. according to the method described in claim 1, it is characterized in that, asking service component information and method of servicing letter to server-side
It ceases and shows, including:
Serviced component name request is sent to server-side;
Show the serviced component name list that server-side returns;
According to the serviced component title that user selects, the request of serviced component class and service method name request are sent to server-side;
Show the serviced component class and service method name list that server-side returns.
3. according to the method described in claim 1, it is characterized in that, the contract parameter information includes:Serviced component class, service
Component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;Institute
When to state the corresponding method of servicing of method of servicing title include testable method parameter, the contract parameter information further includes acquiescence
Method parameter.
4. according to the method described in claim 1, it is characterized in that, contract test information includes:Serviced component class, service
Component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;Institute
When to state the corresponding method of servicing of method of servicing title include testable method parameter, the contract test information further includes user
The test method parameter of input.
5. a kind of method of testing service component, which is characterized in that including:
According to request service component information and service method information are returned to user terminal;
Contract parameter information is requested to generate according to the contract parameter information including serviced component title and service method name and is returned
It is back to user terminal, information is tested so that user terminal generates contract according to the contract parameter information;
The contract test information sent according to user terminal calls the method for servicing of respective service component, and to the user terminal
Return to test result.
6. according to the method described in claim 5, it is characterized in that, returning to service component information kimonos to user terminal according to request
Business method information, including:
Receive the serviced component name request that user terminal is sent;
It generates serviced component name list and is back to user terminal;
It receives what user terminal was sent, includes the request of serviced component class and the service method name request of serviced component title;
Serviced component class and service method name list are searched according to serviced component title, and is back to user terminal.
7. according to the method described in claim 5, it is characterized in that, the contract test information sent according to user terminal is called
The method of servicing of respective service component, including:
The contract test information is parsed, service operation context is generated;
The method of servicing of respective service component is called according to the service operation context.
8. according to the method described in claim 5, it is characterized in that, the contract parameter information includes:Serviced component class, service
Component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;Institute
When to state the corresponding method of servicing of method of servicing title include testable method parameter, the contract parameter information further includes acquiescence
Method parameter.
9. according to the method described in claim 5, it is characterized in that, contract test information includes:Serviced component class, service
Component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;Institute
When to state the corresponding method of servicing of method of servicing title include testable method parameter, the contract test information further includes user
The test method parameter of input.
10. a kind of device of testing service component, which is characterized in that including:
Selecting module, for asking service component information and service method information to server-side;
Contract parameter information request module, the serviced component title for being selected according to user and service method name, generate contract
About parameter information request Concurrency gives the server-side;
Contract tests information generating module, the contract parameter information for being returned according to server-side, generates contract test letter
It ceases and is sent to the server-side;
As a result receiving module tests the service that information calls respective service component for receiving the server-side according to the contract
The test result returned after method.
11. device according to claim 10, which is characterized in that the selecting module is additionally operable to:It sends and takes to server-side
Business component Name request;Show the serviced component name list that server-side returns;According to user select serviced component title, to
Server-side sends the request of serviced component class and service method name request;Show the serviced component class and service side that server-side returns
Legitimate name list.
12. device according to claim 10, which is characterized in that the contract parameter information includes:Serviced component class, clothes
Business component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;
When the corresponding method of servicing of the method for servicing title includes testable method parameter, the contract parameter information further includes writing from memory
Verifying method parameter.
13. device according to claim 10, which is characterized in that the contract tests information and includes:Serviced component class, clothes
Business component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;
When the corresponding method of servicing of the method for servicing title includes testable method parameter, the contract test information further includes using
The test method parameter of family input.
14. a kind of device of testing service component, which is characterized in that including:
Responder module is selected, for returning to service component information and service method information to user terminal according to request;
Contract parameter information generation module, for according to the contract parameter information for including serviced component title and service method name
It requests to generate contract parameter information and is back to user terminal, so that user terminal generates contract test according to the contract parameter information
Information;
Test module, the contract test information for being sent according to user terminal call the method for servicing of respective service component,
And return to test result to the user terminal.
15. device according to claim 14, which is characterized in that the selection responder module is additionally operable to receive user terminal hair
The serviced component name request sent;It generates serviced component name list and is back to user terminal;Receive what user terminal was sent, including
The serviced component class of serviced component title is asked and service method name request;Serviced component class is searched according to serviced component title
With service method name list, and it is back to user terminal.
16. device according to claim 14, which is characterized in that the test module is additionally operable to:The contract is parsed to survey
Information is tried, service operation context is generated;The method of servicing of respective service component is called according to the service operation context.
17. device according to claim 14, which is characterized in that the contract parameter information includes:Serviced component class, clothes
Business component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;
When the corresponding method of servicing of the method for servicing title includes testable method parameter, the contract parameter information further includes writing from memory
Verifying method parameter.
18. device according to claim 14, which is characterized in that the contract tests information and includes:Serviced component class, clothes
Business component Name, method of servicing title and for indicate the method for servicing whether be static method static method mark;
When the corresponding method of servicing of the method for servicing title includes testable method parameter, the contract test information further includes using
The test method parameter of family input.
19. a kind of terminal of testing service component, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now method as described in any in claim 1-4.
20. a kind of server of testing service component, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real
The now method as described in any in claim 5-9.
21. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
The method as described in any in claim 1-4 is realized when row.
22. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
The method as described in any in claim 5-9 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710235946.XA CN108694120B (en) | 2017-04-12 | 2017-04-12 | Method and device for testing service component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710235946.XA CN108694120B (en) | 2017-04-12 | 2017-04-12 | Method and device for testing service component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108694120A true CN108694120A (en) | 2018-10-23 |
CN108694120B CN108694120B (en) | 2022-04-12 |
Family
ID=63843591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710235946.XA Active CN108694120B (en) | 2017-04-12 | 2017-04-12 | Method and device for testing service component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108694120B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111159025A (en) * | 2019-12-23 | 2020-05-15 | 武汉联影医疗科技有限公司 | Application program interface testing method and device, computer equipment and storage medium |
CN111176660A (en) * | 2019-12-31 | 2020-05-19 | 中信百信银行股份有限公司 | Distributed architecture-oriented micro-service contract management method and device, computer equipment and readable storage medium |
CN111459801A (en) * | 2020-03-09 | 2020-07-28 | 江苏苏宁物流有限公司 | RSF remote service interface function test method, module, computer equipment and storage medium |
CN112905458A (en) * | 2021-02-08 | 2021-06-04 | 中国工商银行股份有限公司 | Interface automation contract testing method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050055442A1 (en) * | 2003-06-30 | 2005-03-10 | Microsoft Corporation | System and method for managing access points to distributed services |
CN104991777A (en) * | 2015-07-14 | 2015-10-21 | 普元信息技术股份有限公司 | System and method for implementing view development of Web application automatic testing |
CN105224869A (en) * | 2014-06-12 | 2016-01-06 | 腾讯科技(深圳)有限公司 | Assembly test method and device |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
CN105262614A (en) * | 2015-09-08 | 2016-01-20 | 北京思特奇信息技术股份有限公司 | Service processing method and system based on service plug-in |
CN105320598A (en) * | 2015-11-24 | 2016-02-10 | 广州华多网络科技有限公司 | Software testing method and device |
CN105871911A (en) * | 2016-06-02 | 2016-08-17 | 浪潮通用软件有限公司 | Service calling engine, method and system |
-
2017
- 2017-04-12 CN CN201710235946.XA patent/CN108694120B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050055442A1 (en) * | 2003-06-30 | 2005-03-10 | Microsoft Corporation | System and method for managing access points to distributed services |
CN105224869A (en) * | 2014-06-12 | 2016-01-06 | 腾讯科技(深圳)有限公司 | Assembly test method and device |
CN104991777A (en) * | 2015-07-14 | 2015-10-21 | 普元信息技术股份有限公司 | System and method for implementing view development of Web application automatic testing |
CN105262614A (en) * | 2015-09-08 | 2016-01-20 | 北京思特奇信息技术股份有限公司 | Service processing method and system based on service plug-in |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
CN105320598A (en) * | 2015-11-24 | 2016-02-10 | 广州华多网络科技有限公司 | Software testing method and device |
CN105871911A (en) * | 2016-06-02 | 2016-08-17 | 浪潮通用软件有限公司 | Service calling engine, method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111159025A (en) * | 2019-12-23 | 2020-05-15 | 武汉联影医疗科技有限公司 | Application program interface testing method and device, computer equipment and storage medium |
CN111176660A (en) * | 2019-12-31 | 2020-05-19 | 中信百信银行股份有限公司 | Distributed architecture-oriented micro-service contract management method and device, computer equipment and readable storage medium |
CN111459801A (en) * | 2020-03-09 | 2020-07-28 | 江苏苏宁物流有限公司 | RSF remote service interface function test method, module, computer equipment and storage medium |
CN112905458A (en) * | 2021-02-08 | 2021-06-04 | 中国工商银行股份有限公司 | Interface automation contract testing method and device |
CN112905458B (en) * | 2021-02-08 | 2024-05-07 | 中国工商银行股份有限公司 | Interface automatic contract testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108694120B (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107256195B (en) | Webpage front-end test method and device | |
CN109446071A (en) | Interface test method, interface test device, electronic equipment and storage medium | |
CN110310034A (en) | A kind of service orchestration applied to SaaS, business flow processing method and apparatus | |
CN108614774A (en) | Automated testing method and device | |
CN110442524A (en) | It is a kind of for have Certificate Authority web service interface test method and device | |
CN108694120A (en) | The method and apparatus of testing service component | |
CN108805594A (en) | Information-pushing method and device | |
CN109558134A (en) | The method and apparatus of business datum verification | |
CN109815105A (en) | Applied program testing method and device based on Btrace | |
CN108574604A (en) | test method and device | |
CN111221739A (en) | Service testing method, device and system | |
CN109815107A (en) | The method and apparatus of automatic test | |
CN109684188A (en) | Test method and device | |
CN109783197A (en) | Dispatching method and device for program runtime environment | |
CN109298948A (en) | Distributed computing method and system | |
CN108959087A (en) | test method and device | |
CN110011875A (en) | Dial testing method, device, equipment and computer readable storage medium | |
CN109582317A (en) | Method and apparatus for debugging boarding application | |
CN110399459B (en) | Online document searching method, device, terminal, server and storage medium | |
CN109753424A (en) | The method and apparatus of AB test | |
CN116414370A (en) | Platform construction method and device based on low codes, medium and electronic equipment | |
CN107273250A (en) | The method of testing and device of electronic declaration form automatic cover system | |
CN109873732A (en) | Test method and device for proxy server | |
CN109818994A (en) | Information processing method and device for agent side | |
CN109271160A (en) | Active rule construction method, device and computer system, medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |