CN109101415A - Interface test method, system, equipment and the storage medium compared based on database - Google Patents
Interface test method, system, equipment and the storage medium compared based on database Download PDFInfo
- Publication number
- CN109101415A CN109101415A CN201810656983.2A CN201810656983A CN109101415A CN 109101415 A CN109101415 A CN 109101415A CN 201810656983 A CN201810656983 A CN 201810656983A CN 109101415 A CN109101415 A CN 109101415A
- Authority
- CN
- China
- Prior art keywords
- test
- interface
- result
- database
- testing tool
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 19
- 238000012360 testing method Methods 0.000 claims abstract description 340
- 238000000034 method Methods 0.000 claims abstract description 42
- 241000208340 Araliaceae Species 0.000 claims abstract description 16
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims abstract description 16
- 235000003140 Panax quinquefolius Nutrition 0.000 claims abstract description 16
- 235000008434 ginseng Nutrition 0.000 claims abstract description 16
- 230000006870 function Effects 0.000 claims description 37
- 230000008569 process Effects 0.000 claims description 11
- 238000005070 sampling Methods 0.000 claims description 11
- HJCCZIABCSDUPE-UHFFFAOYSA-N methyl 2-[4-[[4-methyl-6-(1-methylbenzimidazol-2-yl)-2-propylbenzimidazol-1-yl]methyl]phenyl]benzoate Chemical compound CCCC1=NC2=C(C)C=C(C=3N(C4=CC=CC=C4N=3)C)C=C2N1CC(C=C1)=CC=C1C1=CC=CC=C1C(=O)OC HJCCZIABCSDUPE-UHFFFAOYSA-N 0.000 claims description 9
- 238000010276 construction Methods 0.000 claims description 8
- 238000007689 inspection Methods 0.000 claims description 7
- 238000012937 correction Methods 0.000 claims description 6
- 230000008676 import Effects 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims description 2
- 238000007792 addition Methods 0.000 description 25
- 230000004044 response Effects 0.000 description 12
- 235000013399 edible fruits Nutrition 0.000 description 6
- 244000046052 Phaseolus vulgaris Species 0.000 description 4
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of interface test method, system, computer equipment and storage mediums compared based on database to configure the required parameter of the interface the method comprise the steps that creating test interface in user interface;The content parameterized in user interface to needs parameterizes;Test interface is called, addition is asserted;Testing tool executes test operation, is configured to assert the database statement and enter ginseng that frame calls in configuration file;It is compared by the result that database statement configured in return message and configuration file is checked out to complete precisely to assert;Corresponding test case is generated one by one by parameter value replacement;It obtains a result and test result is carried out asserting judgement one by one, by test data, test result determines that result is stored in list.The above method is accomplished precisely to assert in logic from business, realizes judging automatically for service logic, reduce the artificial investment of regression test, improve testing efficiency.
Description
Technical field
The present invention relates to the field of test technology more particularly to it is a kind of based on database compare interface test method, system,
Computer equipment and storage medium.
Background technique
Interface testing is a kind of test between test system components, mainly for detection of between external system and system and
Interaction point between internal subsystems, the emphasis of test are the exchanges for checking data.
Jmeter testing tool can simulate HTTP, and the request such as FTP carries out function and performance for open api interface
Test.Principle is to establish a thread pool, and multithreading runs sampler and generates a large amount of loads.In the process of running by assert come
The correctness of verification result records test result by monitor.The processing work before request is sent is done by preprocessor
Make.Response message is processed by post processor, information that treated for next request use, here mainly as
The range of functional test.
Existing interface testing tool when result is asserted generally can only by returning response code and it is simple just
It matches response message then to assert, cannot accomplish in logic precisely to assert from business.But for business, interface operation
Whether business operation afterwards is normal, and return code is not enough to judge.Therefore, for there is database additions and deletions to change the business of operation looked into
Interface needs manual query data-base recording, judges whether to meet expected to complete interface testing.However this workload compared with
It greatly, is a no small human input for regression test.
Summary of the invention
Based on this, it is necessary to which the drawbacks of being directed to existing interface test method provides a kind of interface compared based on database
Test method, system, computer equipment and storage medium.
A kind of interface test method compared based on database, the test method includes: by testing tool in user
Create test interface in interactive interface, configure the required parameter of the interface, the required parameter include requesting method, the address URL,
Port, server ip, protocol type, solicited message head and solicited message body;Testing tool is in user interface to needs
The content of parametrization is parameterized, and specified parameterized object type determines the affiliated type of parameter value by parameterized object,
Convenient for carrying out parameter value construction in background process, to generate the test case of various situations;Testing tool calls test to connect
Mouthful, addition is asserted, for carrying out success or failure judgement to test result;Testing tool executes test operation, in configuration file
In be configured to assert database statement and enter ginseng that frame calls;By number configured in return message and configuration file
It is compared according to the result that library sentence checks out to complete precisely to assert;Server receives the test number that test user terminal transmits
According to, automatically according to parametrization content and type be extended, corresponding test case is generated by parameter value replacement one by one;Clothes
Business device executes test according to the test case expanded automatically, obtains a result and carries out asserting judgement one by one to test result, will
Test data, test result determine that result is stored in list.
The testing tool calls test interface in one of the embodiments, and addition is asserted, for test result into
Row success or failure determines further include:
Test interface is called, increases Bean Shell function before the return message of interface testing tool Jmeter, it is described
Jmeter is the pressure test tool based on Java, and for doing pressure test to software, the Bean Shell is embedded
Java source code interpreter can dynamically execute standard Java grammer;
It is obtained in Bean Shell function by Prev and returns to message, returning to message is a string of words for meeting prescribed form
Symbol string obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provides read/write access and becomes
The method of amount, the Prev are the results for obtaining sampling;
It is asserted outside being imported in BeanShell function, is passed to the business scenario that the interface asserts needs, input field
List, interface return message, obtain the judging result for asserting frame.
Inspection and offer to wrong content data is also provided in the user interface in one of the embodiments,
Corresponding prompt information carries out data correction convenient for user.
The testing tool calls test interface in one of the embodiments, and addition is asserted, for test result into
Row success or failure further includes that user's addition is asserted as expected result in determining, to judge the success or mistake of test result
It loses.
The server executes test according to the test case expanded automatically in one of the embodiments, obtains knot
Fruit simultaneously one by one carries out test result to assert judgement, and by test data, test result determines also to wrap after result deposit list
It includes, server is by test data, test result and determines that result is pushed to the user terminal page and is shown, and user chooses whether to lead
Test result out.
A kind of interface test system compared based on database, the interface test system packet compared based on database
It includes:
Creating unit configures asking for the interface for creating test interface in user interface by testing tool
Parameter is sought, the required parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head and asks
Seek imformosome;
Parameterized units, the content parameterized in user interface to needs for testing tool parameterize,
Specified parameterized object type determines the affiliated type of parameter value by parameterized object, convenient for carrying out parameter in background process
Value construction, to generate the test case of various situations;
Adding unit calls test interface for testing tool, and addition is asserted, for test result to be carried out successfully or lost
Lose judgement;
Test cell executes test operation for testing tool, is configured to assert what frame called in configuration file
Database statement and enter ginseng;
Comparing unit, for the knot by the way that database statement configured in return message and configuration file is checked out
Fruit is compared to complete precisely to assert;
Generation unit receives the test data that transmits of test user terminal for server, automatically according to parametrization content and
Type is extended, and generates corresponding test case one by one by parameter value replacement;
Judging unit executes test according to the test case expanded for server automatically, obtains a result and right one by one
Test result carries out asserting judgement, and by test data, test result determines that result is stored in list.
The adding unit in one of the embodiments, further include:
Calling module increases Bean before the return message of interface testing tool Jmeter for calling test interface
Shell function, the Jmeter are the pressure test tools based on Java, for being pressure test, the Bean to software
Shell is embedded Java source code interpreter, can dynamically execute standard Java grammer;
Module is obtained, returns to message for obtaining in Bean Shell function by Prev, returning to message is a string of symbols
The character string for closing prescribed form obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provides reading
/ the method for write-access variable is taken, the Prev is the result for obtaining sampling;
Import modul is passed to the business that the interface asserts needs for asserting outside importing in BeanShell function
Scene, input field list, interface return message, obtain the judging result for asserting frame.
The judging unit is also used to server for test data, test result and judgement in one of the embodiments,
As a result it is pushed to the user terminal page to be shown, user chooses whether export test result.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute
When stating computer-readable instruction and being executed by the processor, so that the step of processor executes above-mentioned test method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more
When device executes, so that the step of one or more processors execute above-mentioned test method.
Above-mentioned interface test method, system, computer equipment and the storage medium compared based on database, by testing work
Tool creates test interface in user interface, configures the required parameter of the interface, the required parameter include requesting method,
The address URL, port, server ip, protocol type, solicited message head and solicited message body, testing tool is in user interface
In the content that parameterizes of needs is parameterized, specified parameterized object type determines parameter value institute by parameterized object
Belong to type, convenient for carrying out parameter value construction in background process, to generate the test case of various situations, testing tool is called
Test interface, addition assert that, for carrying out success or failure judgement to test result, testing tool executes test operation, matching
The database statement and enter ginseng for being configured to assert that frame calls in file are set, by configuring in return message and configuration file
The result that good database statement checks out is compared to complete precisely to assert, server receives what test user terminal transmitted
Test data is extended automatically according to parametrization content and type, generates corresponding test one by one by parameter value replacement
Use-case, server execute test according to the test case expanded automatically, obtain a result and assert one by one to test result
Determine, by test data, test result determines that result is stored in list, accomplishes precisely to assert in logic from business, realize business
Logic judges automatically, and reduces the artificial investment of regression test, improves testing efficiency.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.
Fig. 1 is the flow chart of the interface test method compared in one embodiment based on database;
Fig. 2 is to call test interface to add the flow chart asserted in one embodiment;
Fig. 3 is the structural block diagram of the interface test system compared in one embodiment based on database;
Fig. 4 is the structural block diagram of adding unit 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 the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.
As a preferable embodiment, as shown in Figure 1 ,-kind of the interface test method compared based on database, should-
Kind of the interface test method compared based on database the following steps are included:
Step S101 creates test interface by testing tool in user interface, configures the request ginseng of the interface
Number, required parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head and solicited message
Body;
The technical program provides a kind of method that interface testing is precisely asserted, for there is database additions and deletions to change the industry of operation
It is engaged in interface, can automatically complete and accurately assert, manpower intervention is not necessarily to when regression test.By developer or white-box testing work
Cheng Shi, using some testing tools, the new test interface of creation, the request for configuring the interface are joined in user interface (web)
Number, required parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head and solicited message body
Equal required contents, the page provide the inspection to wrong content data and provide corresponding prompt information and repair convenient for user's progress data
Just.
Step S102, the content that testing tool parameterizes needs in user interface parameterize, and specify ginseng
Numberization object type determines the affiliated type of parameter value by parameterized object, convenient for carrying out parameter value structure in background process
It makes, to generate the test case of various situations;
The content parameterized in user interface (web) to needs parameterizes, and specifies parameterized object type,
Such as character string, email address, telephone number etc..By parameterized object, the affiliated type of parameter value is determined, convenient in background process
When call corresponding module carry out parameter value construction, to generate the test case of various situations.
Step S103, testing tool call test interface, and addition is asserted, sentence for carrying out success or failure to test result
It is fixed;
Call test interface addition asserts, for test result carry out successfully/unsuccessfully determine, user can add and assert
As expected result, to judge the success or failure of test result.It obtains to return by prev in BeanShell function and disappear
Breath, returning to message is usually a string of character strings for meeting certain prescribed form, obtains user-defined variable by vars.prev
It is the common built-in variable of Bean Shell with vars, JMeter built-in variable, user in its BeanShell can pass through
These variables are interacted with JMeter.Vars (JMeterVariables) is operation Jmeter variable, provides read/write
The method of access variable, the practical local variable container (being substantially Map) referred in JMeter thread of this variable, it is
The bridge that test case is interacted with BeanShell.For example,
Vars.get (String key): variate-value is obtained from jmeter;
Vars.put (String key, String value): data are stored in jmeter variable;
vars.putObject("OBJ1",new Object())。
Prev (SampleResult) is the result for obtaining the sample sampling of front.For example,
GetResponseDataAsString (): response message is obtained;
GetResponseCode (): response code is obtained.
It is asserted outside being imported in BeanShell function.It is passed to the business scenario that this interface asserts needs, input field column
Table, the return message of interface, obtains the judging result for asserting frame.Assert that frame realizes the interface encapsulation of database manipulation, packet
The main method of handle has been included, has received request, treated for return as a result, realizing how to do the logic that database comparison is asserted
Frame.Input is business scenario, and required parameter list exports to enter the result after data base querying and expectation according to input and tying
Fruit relatively after assert.
Step S104, testing tool execute test operation, are configured to assert the data that frame calls in configuration file
Library sentence and enter ginseng;
Testing tool executes test operation, is configured to assert the database statement and enter that frame calls in configuration file
Ginseng asserts that frame removes SQL (Structured Query Language, structuralized query according to the business scenario in input parameter
Language) corresponding SQL statement group is matched in Map Profile.Here it can be a SQL statement, be also possible to multiple SQL
Sentence.Enter ginseng required for each SQL statement to obtain from required parameter list.The name of required parameter is defined in SQL statement
Claim, the name and value for being passed to required parameter in framework interface is asserted, such as table 1
Table 1
Step S105, by result that database statement configured in return message and configuration file is checked out into
Row compares to complete precisely to assert;
By the result that database statement configured in return message and configuration file is checked out be compared come
Completion is precisely asserted.The result of SQL statement inquiry is database result collection form, in order to compare with return message.Need needle
Data DAO modeling is come back for the interface of each business scenario.DAO is data access object, is industry in web programming
A level being engaged between logical layer and database, for receiving service request and handling database.Each business
To return the result be an object, include multiple attributes, attribute can be String character string, be also possible to Array object.
Its level packed meets the definition of this interface document.After the completion of modeling, it is put into after the result that SQL statement is inquired being parsed
In interface object.Then character string is carried out with return message precisely to compare.It is consistent then succeed, it is inconsistent, fail.It is inconsistent to return
What return inconsistent at field.String is to define a string, and the character string in memory is all an object,
String, which is once initialised, to be changed, thus it is possible to vary variable is directed toward, but cannot change contents of object.Array pairs
As for storing multiple values in single variable.It asserts and completes to return the result in BeanShell function what success failed
It returns.Result is stored in global variable by vars.Result includes result code and results messages content two parts.00 table
It is shown as function, 01 indicates failure situation.Failure is also available at what field comparison.Knot of the Beanshell script step 6
Fruit splits into result code and results messages two parts.It compares successfully, then returns the result code 00, message is ' success '.Comparison failure
Result code 01 is also returned to, message is details inconsistent after comparing.For example, so-and-so field result is inconsistent.Interface is returned as xx,
Expected result is xx.Jmeter response message carries out simple result code judgement according to the result in global variable.In Jmeter
Increase response to assert, response code includes 00 to pass through, and response code is failure comprising 01.When execution, if it is successful, tool
In response assert and can show green, be otherwise red.
Step S106, server receives the test data that test user terminal transmits, automatically according to parametrization content and type
It is extended, corresponding test case is generated by parameter value replacement one by one;
Server receives the test data that test user terminal transmits, and calls use-case expansion module automatically according to parametrization content
It is extended with type, corresponding test case is generated by parameter value replacement one by one.For example parameterized object is cell-phone number
Code type can then expand automatically data card telephone number according to its content, virtual operator's number, be unsatisfactory for 11 bit digitals
The parameter of the types such as the number that number, the number for including spcial character, the number for including letter, front and back meet containing space
Value, then by generating these value alternative parameter objects new test case to extend, completing to parameterized object
Test.
Step S107, server execute test according to the test case expanded automatically, obtain a result and one by one to test
As a result it carries out asserting judgement, by test data, test result determines that result is stored in list.
Server calls use-case operation module to execute test automatically according to the test case that expands, obtains a result and one by one
Test result is carried out to assert judgement, by test data, test result determines that result is stored in list.
As shown in Fig. 2, in one embodiment, testing tool calls test interface, addition is asserted, for test result
Carry out success or failure judgement further include:
Step S201 calls test interface, increases Bean Shell before the return message of interface testing tool Jmeter
Function, Jmeter are the pressure test tools based on Java, and for doing pressure test to software, Bean Shell is embedded
Java source code interpreter can dynamically execute standard Java grammer;
Test interface is called, increases Bean Shell function before the return message of interface testing tool Jmeter,
Jmeter is the pressure test tool based on Java, and for doing pressure test to software, Bean Shell is embedded Java source
Code interpretative device can dynamically execute standard Java grammer.It calls test interface addition to assert, leads in BeanShell function
It crosses prev and obtains return message, returning to message is usually a string of character strings for meeting certain prescribed form, passes through vars and obtains use
The variable that family defines.Prev and vars is the common built-in variable of Bean Shell, and JMeter is built-in in its BeanShell
Variable, user can be interacted by these variables with JMeter.
Step S102 is obtained by Prev in Bean Shell function and is returned to message, and returning to message is to meet rule a string
The character string for the formula that fixes obtains user-defined variable by Vars, and Vars is operation Jmeter variable, provides read/write
The method of access variable, Prev are the results for obtaining sampling;
It is obtained in Bean Shell function by Prev and returns to message, returning to message is a string of words for meeting prescribed form
Symbol string obtains user-defined variable by Vars, and Vars is operation Jmeter variable, provides read/write access variable
Method, Prev are the results for obtaining sampling.Vars (JMeterVariables) is operation Jmeter variable, provides read/write
The method of access variable, the practical local variable container (being substantially Map) referred in JMeter thread of this variable, it is
The bridge that test case is interacted with BeanShell.For example,
Vars.get (String key): variate-value is obtained from jmeter;
Vars.put (String key, String value): data are stored in jmeter variable;
vars.putObject("OBJ1",new Object())。
Prev (SampleResult) is the result for obtaining the sample sampling of front.For example,
GetResponseDataAsString (): response message is obtained;
GetResponseCode (): response code is obtained.
Step S203 asserts that incoming interface asserts the business scenario of needs, defeated in BeanShell function outside importing
Enter list of fields, the return message of interface, obtains the judging result for asserting frame.
It is asserted outside being imported in BeanShell function, is passed to the business scenario that this interface asserts needs, input field column
Table, the return message of interface, obtains the judging result for asserting frame.
In one embodiment, the inspection to wrong content data is also provided in user interface and corresponding prompt is provided
Information carries out data correction convenient for user.
New test interface is created in user interface, configures the required parameter of the interface, and required parameter includes asking
Required contents, the pages such as method, the address URL, port, server ip, protocol type, solicited message head and solicited message body is asked to mention
For the inspection to wrong content data and corresponding prompt information is provided convenient for user's progress data correction.
In one embodiment, testing tool calls test interface, and addition asserts, for test result carry out successfully or
Failure further includes that user's addition is asserted as expected result in determining, to judge the success or failure of test result.
Testing tool calls test interface, and addition is asserted, for carrying out success or failure judgement to test result, wherein using
Family, which can also add, asserts as expected result, to judge the success or failure of test result, carries out data convenient for user and repairs
Just.
In one embodiment, server executes test according to the test case expanded automatically, obtains a result and one by one
Test result is carried out to assert judgement, by test data, test result determines that result deposit list further includes later server
By test data, test result and determine that result is pushed to the user terminal page and is shown, user chooses whether export test knot
Fruit.
Test data, test result are determined that the data-pushings such as result are shown to the user terminal page, user by server
Export test result, such as Excel etc. can be chosen whether by button.
As shown in figure 3, in one embodiment, a kind of interface test system compared based on database is described based on number
Include: according to the interface test system that library compares
Creating unit configures asking for the interface for creating test interface in user interface by testing tool
Parameter is sought, the required parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head and asks
Seek imformosome;
Parameterized units, the content parameterized in user interface to needs for testing tool parameterize,
Specified parameterized object type determines the affiliated type of parameter value by parameterized object, convenient for carrying out parameter in background process
Value construction, to generate the test case of various situations;
Adding unit calls test interface for testing tool, and addition is asserted, for test result to be carried out successfully or lost
Lose judgement;
Test cell executes test operation for testing tool, is configured to assert what frame called in configuration file
Database statement and enter ginseng;
Comparing unit, for the knot by the way that database statement configured in return message and configuration file is checked out
Fruit is compared to complete precisely to assert;
Generation unit receives the test data that transmits of test user terminal for server, automatically according to parametrization content and
Type is extended, and generates corresponding test case one by one by parameter value replacement;
Judging unit executes test according to the test case expanded for server automatically, obtains a result and right one by one
Test result carries out asserting judgement, and by test data, test result determines that result is stored in list.
As shown in figure 4, in one embodiment, the adding unit further include:
Calling module increases Bean before the return message of interface testing tool Jmeter for calling test interface
Shell function, the Jmeter are the pressure test tools based on Java, for being pressure test, the Bean to software
Shell is embedded Java source code interpreter, can dynamically execute standard Java grammer;
Module is obtained, returns to message for obtaining in Bean Shell function by Prev, returning to message is a string of symbols
The character string for closing prescribed form obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provides reading
/ the method for write-access variable is taken, the Prev is the result for obtaining sampling;
Import modul is passed to the business that the interface asserts needs for asserting outside importing in BeanShell function
Scene, input field list, interface return message, obtain the judging result for asserting frame.
In one embodiment, the judging unit is also used to server for test data, test result and determines result
It is pushed to the user terminal page to be shown, user chooses whether export test result.
In one embodiment it is proposed that a kind of computer equipment, the computer equipment includes memory and processor,
Computer-readable instruction is stored in memory, when computer-readable instruction is executed by processor, so that described in processor execution
It is performed the steps of when computer program and test interface is created in user interface by testing tool, configure the interface
Required parameter, the required parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head
With solicited message body;The content that testing tool parameterizes needs in user interface parameterizes, and specifies parametrization
Object type determines the affiliated type of parameter value by parameterized object, convenient for carrying out parameter value construction in background process, from
And generate the test case of various situations;Testing tool calls test interface, and addition is asserted, for carrying out success to test result
Or unsuccessfully determine;Testing tool executes test operation, is configured to assert the database statement that frame calls in configuration file
With enter ginseng;It is compared by the result that database statement configured in return message and configuration file is checked out come complete
At precisely asserting;Server receives the test data that test user terminal transmits, and is expanded automatically according to parametrization content and type
Exhibition, generates corresponding test case by parameter value replacement one by one;Server executes automatically according to the test case expanded
Test, obtains a result and carries out asserting judgement one by one to test result, and by test data, test result determines result deposit column
Table.
In one embodiment, the testing tool calls test interface, and addition is asserted, for test result carry out at
Function unsuccessfully determines further include:
Test interface is called, increases Bean Shell function before the return message of interface testing tool Jmeter, it is described
Jmeter is the pressure test tool based on Java, and for doing pressure test to software, the Bean Shell is embedded
Java source code interpreter can dynamically execute standard Java grammer;
It is obtained in Bean Shell function by Prev and returns to message, returning to message is a string of words for meeting prescribed form
Symbol string obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provides read/write access and becomes
The method of amount, the Prev are the results for obtaining sampling;
It is asserted outside being imported in BeanShell function, is passed to the business scenario that the interface asserts needs, input field
List, interface return message, obtain the judging result for asserting frame.
In one embodiment, the inspection to wrong content data is also provided in the user interface and is provided corresponding
Prompt information carries out data correction convenient for user.
In one embodiment, the testing tool calls test interface, and addition is asserted, for test result carry out at
Function or unsuccessfully determine in further include user addition assert as expected result, to judge the success or failure of test result.
In one embodiment, the server executes test according to the test case expanded automatically, obtains a result simultaneously
Test result is carried out one by one to assert judgement, by test data, test result determines that result deposit list further includes taking later
Business device is by test data, test result and determines that result is pushed to the user terminal page and is shown, and user chooses whether export and surveys
Test result.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, this is computer-readable
When instruction is executed by one or more processors, so that one or more processors execute following steps:
Test interface is created in user interface by testing tool, configures the required parameter of the interface, it is described to ask
Seeking parameter includes requesting method, the address URL, port, server ip, protocol type, solicited message head and solicited message body;Test
The content that tool parameterizes needs in user interface parameterizes, and specifies parameterized object type, passes through parameter
Change object, determine the affiliated type of parameter value, convenient for carrying out parameter value construction in background process, to generate the survey of various situations
Example on probation;Testing tool calls test interface, and addition is asserted, for carrying out success or failure judgement to test result;Test work
Tool executes test operation, is configured to assert the database statement and enter ginseng that frame calls in configuration file;By return
The result that configured database statement checks out in message and configuration file is compared to complete precisely to assert;Server
The test data that test user terminal transmits is received, is extended automatically according to parametrization content and type, is replaced by parameter value
To generate corresponding test case one by one;Server executes test according to the test case expanded automatically, obtain a result and by
Item carries out test result to assert judgement, and by test data, test result determines that result is stored in list.
In one embodiment, the testing tool calls test interface, and addition is asserted, for test result carry out at
Function unsuccessfully determines further include:
Test interface is called, increases Bean Shell function before the return message of interface testing tool Jmeter, it is described
Jmeter is the pressure test tool based on Java, and for doing pressure test to software, the Bean Shell is embedded
Java source code interpreter can dynamically execute standard Java grammer;
It is obtained in Bean Shell function by Prev and returns to message, returning to message is a string of words for meeting prescribed form
Symbol string obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provides read/write access and becomes
The method of amount, the Prev are the results for obtaining sampling;
It is asserted outside being imported in BeanShell function, is passed to the business scenario that the interface asserts needs, input field
List, interface return message, obtain the judging result for asserting frame.
In one embodiment, the inspection to wrong content data is also provided in the user interface and is provided corresponding
Prompt information carries out data correction convenient for user.
In one embodiment, the testing tool calls test interface, and addition is asserted, for test result carry out at
Function or unsuccessfully determine in further include user addition assert as expected result, to judge the success or failure of test result.
In one embodiment, the server executes test according to the test case expanded automatically, obtains a result simultaneously
Test result is carried out one by one to assert judgement, by test data, test result determines that result deposit list further includes taking later
Business device is by test data, test result and determines that result is pushed to the user terminal page and is shown, and user chooses whether export and surveys
Test result.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but
It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field
For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention
Protection scope.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 compared based on database, which comprises the following steps:
Test interface is created in user interface by testing tool, configures the required parameter of the interface, the request ginseng
Number includes requesting method, the address URL, port, server ip, protocol type, solicited message head and solicited message body;
The content that testing tool parameterizes needs in user interface parameterizes, and specifies parameterized object type,
By parameterized object, the affiliated type of parameter value is determined, convenient for carrying out parameter value construction in background process, to generate various
The test case of situation;
Testing tool calls test interface, and addition is asserted, for carrying out success or failure judgement to test result;
Testing tool executes test operation, is configured to assert the database statement and enter ginseng that frame calls in configuration file;
It is compared by the result that database statement configured in return message and configuration file is checked out to complete
Precisely assert;
Server receives the test data that test user terminal transmits, and is extended, passes through automatically according to parametrization content and type
Parameter value is replaced to generate corresponding test case one by one;
Server executes test according to the test case expanded automatically, obtains a result and assert to test result one by one and sentences
Fixed, by test data, test result determines that result is stored in list.
2. the interface test method according to claim 1 compared based on database, which is characterized in that the testing tool
Test interface is called, addition is asserted, for carrying out success or failure judgement to test result further include:
Test interface is called, increases Bean Shell function before the return message of interface testing tool Jmeter, it is described
Jmeter is the pressure test tool based on Java, and for doing pressure test to software, the Bean Shell is embedded
Java source code interpreter can dynamically execute standard Java grammer;
It is obtained in BeanShell function by Prev and returns to message, returning to message is a string of character strings for meeting prescribed form,
User-defined variable is obtained by Vars, the Vars is operation Jmeter variable, provides the side of read/write access variable
Method, the Prev are the results for obtaining sampling;
It is asserted outside being imported in BeanShell function, is passed to the business scenario that the interface asserts needs, input field column
The return message of table, interface, obtains the judging result for asserting frame.
3. the interface test method according to claim 1 compared based on database, which is characterized in that user's interaction
Inspection to wrong content data is also provided in interface and corresponding prompt information is provided and carries out data correction convenient for user.
4. the interface test method according to claim 1 compared based on database, which is characterized in that the testing tool
Test interface is called, addition is asserted, for carrying out further including that work is asserted in user's addition in success or failure judgement to test result
For expectation as a result, to judge the success or failure of test result.
5. the interface test method according to claim 1 compared based on database, which is characterized in that the server root
Test is executed automatically according to the test case expanded, obtain a result and test result is carried out asserting judgement one by one, will test number
According to test result determines to further include that server is by test data, test result and determines that result pushes away after result deposit list
It is sent to the user terminal page to be shown, user chooses whether export test result.
6. a kind of interface test system compared based on database, which is characterized in that the interface compared based on database is surveyed
Test system includes:
Creating unit configures the request ginseng of the interface for creating test interface in user interface by testing tool
Number, the required parameter include requesting method, the address URL, port, server ip, protocol type, solicited message head and request letter
Cease body;
Parameterized units, the content parameterized in user interface to needs for testing tool parameterize, and specify
Parameterized object type determines the affiliated type of parameter value by parameterized object, convenient for carrying out parameter value structure in background process
It makes, to generate the test case of various situations;
Adding unit calls test interface for testing tool, and addition is asserted, sentences for carrying out success or failure to test result
It is fixed;
Test cell executes test operation for testing tool, is configured to assert the data that frame calls in configuration file
Library sentence and enter ginseng;
Comparing unit, for the result by the way that database statement configured in return message and configuration file is checked out into
Row compares to complete precisely to assert;
Generation unit receives the test data that test user terminal transmits for server, automatically according to parametrization content and type
It is extended, corresponding test case is generated by parameter value replacement one by one;
Judging unit executes test according to the test case expanded for server automatically, obtains a result and one by one to test
As a result it carries out asserting judgement, by test data, test result determines that result is stored in list.
7. the interface test system according to claim 6 compared based on database, which is characterized in that the adding unit
Further include:
Calling module increases Bean Shell for calling test interface before the return message of interface testing tool Jmeter
Function, the Jmeter are the pressure test tools based on Java, and for doing pressure test to software, the Bean Shell is
Embedded Java source code interpreter can dynamically execute standard Java grammer;
Module is obtained, returns to message for obtaining in Bean Shell function by Prev, return message is to meet rule a string
The character string for the formula that fixes obtains user-defined variable by Vars, and the Vars is operation Jmeter variable, provide reading/
The method of write-access variable, the Prev are the results for obtaining sampling;
Import modul is passed to the business field that the interface asserts needs for asserting outside importing in BeanShell function
Scape, input field list, interface return message, obtain the judging result for asserting frame.
8. the interface test system according to claim 6 compared based on database, which is characterized in that the judging unit
Server is also used to by test data, test result and determines that result is pushed to the user terminal page and is shown, user's selection is
No export test result.
9. a kind of computer equipment, which is characterized in that including memory and processor, being stored with computer in the memory can
Reading instruction, when the computer-readable instruction is executed by the processor, so that the processor executes such as claim 1 to 5
Any one of the method the step of.
10. a kind of storage medium for being stored with computer-readable instruction, which is characterized in that the computer-readable instruction is by one
Or multiple processors are when executing, so that one or more processors execute the step such as any one of claims 1 to 5 the method
Suddenly.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810656983.2A CN109101415A (en) | 2018-06-25 | 2018-06-25 | Interface test method, system, equipment and the storage medium compared based on database |
PCT/CN2018/106689 WO2020000706A1 (en) | 2018-06-25 | 2018-09-20 | Database comparison-based interface testing method and system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810656983.2A CN109101415A (en) | 2018-06-25 | 2018-06-25 | Interface test method, system, equipment and the storage medium compared based on database |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109101415A true CN109101415A (en) | 2018-12-28 |
Family
ID=64844916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810656983.2A Pending CN109101415A (en) | 2018-06-25 | 2018-06-25 | Interface test method, system, equipment and the storage medium compared based on database |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109101415A (en) |
WO (1) | WO2020000706A1 (en) |
Cited By (62)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800170A (en) * | 2019-01-25 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of test method based on API test platform, equipment and readable storage medium storing program for executing |
CN109902026A (en) * | 2019-03-27 | 2019-06-18 | 北京奇艺世纪科技有限公司 | A kind of processing method and test platform of interface testing information |
CN110188036A (en) * | 2019-05-10 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A software testing method and device |
CN110221967A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Test data building method, device, computer equipment and storage medium |
CN110232016A (en) * | 2019-03-08 | 2019-09-13 | 上海蔚来汽车有限公司 | Interface testing case generation method, device and controller and medium |
CN110297761A (en) * | 2019-05-23 | 2019-10-01 | 深圳壹账通智能科技有限公司 | Acquisition methods, device, computer equipment and the storage medium of returned data |
CN110362495A (en) * | 2019-07-19 | 2019-10-22 | 浙江诺诺网络科技有限公司 | A kind of interface enters to join function test method, device, equipment and storage medium |
CN110377463A (en) * | 2019-06-19 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Interface test method, device, terminal and computer readable storage medium |
CN110427188A (en) * | 2019-08-02 | 2019-11-08 | 深圳前海微众银行股份有限公司 | It is single to survey configuration method, device, equipment and the storage medium for asserting program |
CN110489349A (en) * | 2019-09-23 | 2019-11-22 | 四川长虹电器股份有限公司 | A kind of interface test method based on JSON configuration file |
CN110569196A (en) * | 2019-09-11 | 2019-12-13 | 宝付网络科技(上海)有限公司 | Regression testing system |
CN110704328A (en) * | 2019-10-15 | 2020-01-17 | 北京城市网邻信息技术有限公司 | Interface testing method and device, electronic equipment and readable storage medium |
CN110764998A (en) * | 2019-09-06 | 2020-02-07 | 平安健康保险股份有限公司 | Data comparison method, device and equipment based on Django framework and storage medium |
CN110825635A (en) * | 2019-11-05 | 2020-02-21 | 京东数字科技控股有限公司 | Test method, test device and computer-readable storage medium |
CN110908892A (en) * | 2019-09-18 | 2020-03-24 | 泰康保险集团股份有限公司 | Interface data testing method and device and readable storage medium |
CN110928796A (en) * | 2019-11-29 | 2020-03-27 | 宝付网络科技(上海)有限公司 | Automatic change test platform |
CN110990250A (en) * | 2019-10-12 | 2020-04-10 | 平安医疗健康管理股份有限公司 | Interface test method, device, equipment and storage medium |
CN111026645A (en) * | 2019-11-20 | 2020-04-17 | 航天信息股份有限公司 | User interface automatic testing method and device, storage medium and electronic equipment |
CN111104325A (en) * | 2019-12-17 | 2020-05-05 | 广州品唯软件有限公司 | Data acquisition and analysis method and device for stress test and readable storage medium |
CN111382051A (en) * | 2018-12-29 | 2020-07-07 | 北京数聚鑫云信息技术有限公司 | API automatic test method and test device |
CN111506503A (en) * | 2020-04-13 | 2020-08-07 | 深圳市潮流网络技术有限公司 | Interface signature verification method and device based on JMeter, computing equipment and storage medium |
CN111625464A (en) * | 2020-05-28 | 2020-09-04 | 杭州鸿雁电器有限公司 | Interface test method and device, storage medium and processor |
CN111666301A (en) * | 2020-05-08 | 2020-09-15 | 广州微算互联信息技术有限公司 | Service interface testing method, computer device and storage medium |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN111831547A (en) * | 2020-05-29 | 2020-10-27 | 大数金科网络技术有限公司 | Automated Interface Test Platform |
CN112035443A (en) * | 2020-09-02 | 2020-12-04 | 携程计算机技术(上海)有限公司 | Big data execution method, system, equipment and storage medium based on Linux platform |
CN112069078A (en) * | 2020-09-15 | 2020-12-11 | 平安银行股份有限公司 | ESA interface pressure testing method, device, testing equipment and storage medium |
CN112116439A (en) * | 2020-08-10 | 2020-12-22 | 杭州优行科技有限公司 | Clearing and settlement testing method, device, terminal and storage medium |
CN112131091A (en) * | 2019-06-24 | 2020-12-25 | 百度在线网络技术(北京)有限公司 | Test method and device and electronic equipment |
CN112131131A (en) * | 2020-10-10 | 2020-12-25 | 四川长虹电器股份有限公司 | Automatic interface testing framework system for pre-constructed domain name and request body |
CN112181845A (en) * | 2020-10-13 | 2021-01-05 | 湖南快乐阳光互动娱乐传媒有限公司 | An interface testing method and device |
CN112256578A (en) * | 2020-10-23 | 2021-01-22 | 恒生电子股份有限公司 | Management method and management terminal of test case, electronic device and storage medium |
CN112306855A (en) * | 2019-08-02 | 2021-02-02 | 北大方正集团有限公司 | Interface automated testing method, device, terminal and storage medium |
CN112380113A (en) * | 2020-10-15 | 2021-02-19 | 猫岐智能科技(上海)有限公司 | Software testing method and system |
CN112486810A (en) * | 2020-11-25 | 2021-03-12 | 上海中通吉网络技术有限公司 | Interface verification method, system, computer and storage medium of Jmeter platform |
CN112486806A (en) * | 2020-11-18 | 2021-03-12 | 中信银行股份有限公司 | Test case execution method and device, electronic equipment and readable storage medium |
CN112579461A (en) * | 2020-12-24 | 2021-03-30 | 成都新希望金融信息有限公司 | Assertion processing method, system and storage medium |
CN112597051A (en) * | 2020-12-30 | 2021-04-02 | 北京华胜天成科技股份有限公司 | Method and device for obtaining test result, electronic equipment and storage medium |
CN112612706A (en) * | 2020-12-25 | 2021-04-06 | 深圳市彬讯科技有限公司 | Automated testing method, computer device and storage medium |
CN112699027A (en) * | 2020-12-29 | 2021-04-23 | 平安银行股份有限公司 | Interface testing method, device, equipment and readable storage medium |
CN112711525A (en) * | 2019-10-25 | 2021-04-27 | 中国移动通信集团浙江有限公司 | UI test and interface test cooperative test method and device and computing equipment |
CN113515439A (en) * | 2020-04-10 | 2021-10-19 | 中国电信股份有限公司 | Background interface data access security test method and device |
CN113590407A (en) * | 2021-09-29 | 2021-11-02 | 云账户技术(天津)有限公司 | Interface testing method and device |
CN113709448A (en) * | 2021-08-05 | 2021-11-26 | 贵阳朗玛视讯科技有限公司 | A kind of testing device and method based on IPTV system |
CN113778889A (en) * | 2021-09-16 | 2021-12-10 | 行云智网络科技(北京)有限公司 | Dynamic parameter setting method and system for automatic test |
CN113849418A (en) * | 2021-11-30 | 2021-12-28 | 阿里云计算有限公司 | Code quality debugging method, server, user equipment and storage medium |
CN113886216A (en) * | 2020-07-03 | 2022-01-04 | 腾讯科技(深圳)有限公司 | Interface test and tool configuration method, device, electronic equipment and storage medium |
CN114048140A (en) * | 2021-11-23 | 2022-02-15 | 杭州遥望网络科技有限公司 | A method and device for parameterizing test cases in an automated testing framework |
CN114238155A (en) * | 2022-02-25 | 2022-03-25 | 北京宇信科技集团股份有限公司 | Test method, test platform, test device, server and storage medium |
CN114253848A (en) * | 2021-12-17 | 2022-03-29 | 瀚云科技有限公司 | Parameterized interface testing method and device, electronic equipment and storage medium |
CN114385223A (en) * | 2022-01-14 | 2022-04-22 | 平安普惠企业管理有限公司 | Method and device for realizing universal interface, computer equipment and storage medium |
CN114567621A (en) * | 2022-04-29 | 2022-05-31 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
CN114637692A (en) * | 2022-05-17 | 2022-06-17 | 杭州优诗科技有限公司 | Test data generation and test case management method |
WO2022227314A1 (en) * | 2021-04-25 | 2022-11-03 | 深圳壹账通智能科技有限公司 | Method and apparatus for dynamic synchronous testing, device, and storage medium |
CN115297039A (en) * | 2022-10-08 | 2022-11-04 | 天津华来科技股份有限公司 | HTTP (hyper text transport protocol) parameterized test architecture method, electronic equipment and storage medium |
CN115499345A (en) * | 2022-09-22 | 2022-12-20 | 北京沃东天骏信息技术有限公司 | Data testing method and device, storage medium and computer product |
CN115809201A (en) * | 2022-12-23 | 2023-03-17 | 广州市保伦电子有限公司 | Interface test control method, device, equipment and medium based on two-dimensional table |
CN116431522A (en) * | 2023-06-12 | 2023-07-14 | 天翼云科技有限公司 | A low-code object storage gateway automated testing method and system |
CN116467189A (en) * | 2023-03-31 | 2023-07-21 | 青岛民航凯亚系统集成有限公司 | Method and system for interface call completion performance pressure measurement and full link data monitoring |
CN116662209A (en) * | 2023-07-27 | 2023-08-29 | 金篆信科有限责任公司 | Automatic test method, device, equipment and storage medium for database interface |
CN116909936A (en) * | 2023-09-13 | 2023-10-20 | 深圳市智慧城市科技发展集团有限公司 | Big data automatic test method, equipment and readable storage medium |
CN118132568A (en) * | 2024-05-08 | 2024-06-04 | 四创科技有限公司 | Method for calling external API or inquiring database and storage medium |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111416756B (en) * | 2020-03-13 | 2021-12-14 | 深圳市腾讯信息技术有限公司 | Protocol testing method, device, computer equipment and storage medium |
CN111597120B (en) * | 2020-05-26 | 2023-07-04 | 中国工商银行股份有限公司 | Interface test apparatus, method, electronic device, and computer-readable storage medium |
CN111651358B (en) * | 2020-06-05 | 2024-04-12 | 北京金山云网络技术有限公司 | Method for generating test cases, software testing method, device and server |
CN112286812A (en) * | 2020-10-30 | 2021-01-29 | 上海莉莉丝科技股份有限公司 | JSON data processing method, system, device and medium |
CN112860562B (en) * | 2021-02-23 | 2024-02-02 | 中国工商银行股份有限公司 | Automatic test method and device |
CN113127321B (en) * | 2021-04-21 | 2022-11-18 | 平安银行股份有限公司 | Data reading method, device and equipment based on Jmeter and storage medium |
CN113138937A (en) * | 2021-05-18 | 2021-07-20 | 中国建设银行股份有限公司 | Test method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841841A (en) * | 2011-06-20 | 2012-12-26 | 阿里巴巴集团控股有限公司 | Method and system for processing assertion in test |
WO2017015955A1 (en) * | 2015-07-30 | 2017-02-02 | Hewlett-Packard Development Company,L.P. | Application testing |
CN107203473A (en) * | 2017-05-26 | 2017-09-26 | 四川长虹电器股份有限公司 | The automatization test system and method for automatic expansion interface test case |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106155891B (en) * | 2015-04-02 | 2019-07-05 | 阿里巴巴集团控股有限公司 | Interface test method, interface description data library generating method and device |
CN106354634A (en) * | 2016-08-25 | 2017-01-25 | 青岛海信传媒网络技术有限公司 | Interface testing method and device |
-
2018
- 2018-06-25 CN CN201810656983.2A patent/CN109101415A/en active Pending
- 2018-09-20 WO PCT/CN2018/106689 patent/WO2020000706A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102841841A (en) * | 2011-06-20 | 2012-12-26 | 阿里巴巴集团控股有限公司 | Method and system for processing assertion in test |
WO2017015955A1 (en) * | 2015-07-30 | 2017-02-02 | Hewlett-Packard Development Company,L.P. | Application testing |
CN107203473A (en) * | 2017-05-26 | 2017-09-26 | 四川长虹电器股份有限公司 | The automatization test system and method for automatic expansion interface test case |
Non-Patent Citations (2)
Title |
---|
(加)(P.冈特斯)PETER GULUTZAN;ISBN : 7-111-07773-3: "《SQL-3参考大全》", 31 January 2000 * |
王维民,ISBN : 978-7-5630-3127-6: "《Access数据库技术与应用教程》", 31 August 2012 * |
Cited By (93)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111382051A (en) * | 2018-12-29 | 2020-07-07 | 北京数聚鑫云信息技术有限公司 | API automatic test method and test device |
CN111382051B (en) * | 2018-12-29 | 2023-04-18 | 北京数聚鑫云信息技术有限公司 | API automatic test method and test device |
CN109800170A (en) * | 2019-01-25 | 2019-05-24 | 郑州云海信息技术有限公司 | A kind of test method based on API test platform, equipment and readable storage medium storing program for executing |
CN110232016A (en) * | 2019-03-08 | 2019-09-13 | 上海蔚来汽车有限公司 | Interface testing case generation method, device and controller and medium |
CN109902026A (en) * | 2019-03-27 | 2019-06-18 | 北京奇艺世纪科技有限公司 | A kind of processing method and test platform of interface testing information |
CN111756594A (en) * | 2019-03-29 | 2020-10-09 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN111756594B (en) * | 2019-03-29 | 2022-04-15 | 上海哔哩哔哩科技有限公司 | Control method of pressure test, computer device and computer readable storage medium |
CN110188036A (en) * | 2019-05-10 | 2019-08-30 | 深圳前海微众银行股份有限公司 | A software testing method and device |
CN110221967A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Test data building method, device, computer equipment and storage medium |
CN110297761A (en) * | 2019-05-23 | 2019-10-01 | 深圳壹账通智能科技有限公司 | Acquisition methods, device, computer equipment and the storage medium of returned data |
WO2020253124A1 (en) * | 2019-06-19 | 2020-12-24 | 深圳壹账通智能科技有限公司 | Interface testing method and device, terminal and computer readable storage medium |
CN110377463A (en) * | 2019-06-19 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Interface test method, device, terminal and computer readable storage medium |
CN112131091B (en) * | 2019-06-24 | 2024-04-16 | 百度在线网络技术(北京)有限公司 | Test method and device and electronic equipment |
CN112131091A (en) * | 2019-06-24 | 2020-12-25 | 百度在线网络技术(北京)有限公司 | Test method and device and electronic equipment |
CN110362495A (en) * | 2019-07-19 | 2019-10-22 | 浙江诺诺网络科技有限公司 | A kind of interface enters to join function test method, device, equipment and storage medium |
CN112306855B (en) * | 2019-08-02 | 2022-06-17 | 北大方正集团有限公司 | Interface automation test method, device, terminal and storage medium |
CN112306855A (en) * | 2019-08-02 | 2021-02-02 | 北大方正集团有限公司 | Interface automated testing method, device, terminal and storage medium |
CN110427188A (en) * | 2019-08-02 | 2019-11-08 | 深圳前海微众银行股份有限公司 | It is single to survey configuration method, device, equipment and the storage medium for asserting program |
CN110764998B (en) * | 2019-09-06 | 2024-04-02 | 平安健康保险股份有限公司 | Data comparison method, device, equipment and storage medium based on Django framework |
CN110764998A (en) * | 2019-09-06 | 2020-02-07 | 平安健康保险股份有限公司 | Data comparison method, device and equipment based on Django framework and storage medium |
CN110569196A (en) * | 2019-09-11 | 2019-12-13 | 宝付网络科技(上海)有限公司 | Regression testing system |
CN110908892A (en) * | 2019-09-18 | 2020-03-24 | 泰康保险集团股份有限公司 | Interface data testing method and device and readable storage medium |
CN110489349A (en) * | 2019-09-23 | 2019-11-22 | 四川长虹电器股份有限公司 | A kind of interface test method based on JSON configuration file |
CN110489349B (en) * | 2019-09-23 | 2022-06-03 | 四川长虹电器股份有限公司 | JSON configuration file-based interface test method |
CN110990250A (en) * | 2019-10-12 | 2020-04-10 | 平安医疗健康管理股份有限公司 | Interface test method, device, equipment and storage medium |
CN110990250B (en) * | 2019-10-12 | 2022-09-06 | 深圳平安医疗健康科技服务有限公司 | Interface test method, device, equipment and storage medium |
CN110704328A (en) * | 2019-10-15 | 2020-01-17 | 北京城市网邻信息技术有限公司 | Interface testing method and device, electronic equipment and readable storage medium |
CN112711525A (en) * | 2019-10-25 | 2021-04-27 | 中国移动通信集团浙江有限公司 | UI test and interface test cooperative test method and device and computing equipment |
CN112711525B (en) * | 2019-10-25 | 2023-12-26 | 中国移动通信集团浙江有限公司 | Collaborative testing method and device for UI test and interface test and computing equipment |
CN110825635A (en) * | 2019-11-05 | 2020-02-21 | 京东数字科技控股有限公司 | Test method, test device and computer-readable storage medium |
CN110825635B (en) * | 2019-11-05 | 2021-05-04 | 京东数字科技控股有限公司 | Test method, test device and computer-readable storage medium |
CN111026645A (en) * | 2019-11-20 | 2020-04-17 | 航天信息股份有限公司 | User interface automatic testing method and device, storage medium and electronic equipment |
CN111026645B (en) * | 2019-11-20 | 2023-11-28 | 航天信息股份有限公司 | User interface automatic test method and device, storage medium and electronic equipment |
CN110928796A (en) * | 2019-11-29 | 2020-03-27 | 宝付网络科技(上海)有限公司 | Automatic change test platform |
CN110928796B (en) * | 2019-11-29 | 2023-05-30 | 宝付网络科技(上海)有限公司 | Automatic test platform |
CN111104325A (en) * | 2019-12-17 | 2020-05-05 | 广州品唯软件有限公司 | Data acquisition and analysis method and device for stress test and readable storage medium |
CN111104325B (en) * | 2019-12-17 | 2024-02-02 | 广州品唯软件有限公司 | Data acquisition and analysis method and device for pressure test and readable storage medium |
CN113515439B (en) * | 2020-04-10 | 2023-09-29 | 中国电信股份有限公司 | Method and device for testing security of background interface data access |
CN113515439A (en) * | 2020-04-10 | 2021-10-19 | 中国电信股份有限公司 | Background interface data access security test method and device |
CN111506503B (en) * | 2020-04-13 | 2024-05-24 | 深圳市潮流网络技术有限公司 | JMeter-based interface signature verification method and device, computing equipment and storage medium |
CN111506503A (en) * | 2020-04-13 | 2020-08-07 | 深圳市潮流网络技术有限公司 | Interface signature verification method and device based on JMeter, computing equipment and storage medium |
CN111666301B (en) * | 2020-05-08 | 2023-08-15 | 广州微算互联信息技术有限公司 | Service interface testing method, computer device and storage medium |
CN111666301A (en) * | 2020-05-08 | 2020-09-15 | 广州微算互联信息技术有限公司 | Service interface testing method, computer device and storage medium |
CN111625464A (en) * | 2020-05-28 | 2020-09-04 | 杭州鸿雁电器有限公司 | Interface test method and device, storage medium and processor |
CN111831547A (en) * | 2020-05-29 | 2020-10-27 | 大数金科网络技术有限公司 | Automated Interface Test Platform |
CN113886216A (en) * | 2020-07-03 | 2022-01-04 | 腾讯科技(深圳)有限公司 | Interface test and tool configuration method, device, electronic equipment and storage medium |
CN113886216B (en) * | 2020-07-03 | 2024-09-17 | 腾讯科技(深圳)有限公司 | Interface test and tool configuration method, device, electronic equipment and storage medium |
CN112116439A (en) * | 2020-08-10 | 2020-12-22 | 杭州优行科技有限公司 | Clearing and settlement testing method, device, terminal and storage medium |
CN112035443B (en) * | 2020-09-02 | 2023-07-07 | 携程计算机技术(上海)有限公司 | Big data execution method, system, equipment and storage medium based on Linux platform |
CN112035443A (en) * | 2020-09-02 | 2020-12-04 | 携程计算机技术(上海)有限公司 | Big data execution method, system, equipment and storage medium based on Linux platform |
CN112069078B (en) * | 2020-09-15 | 2024-03-19 | 平安银行股份有限公司 | ESA interface pressure test method, ESA interface pressure test device, ESA interface pressure test equipment and storage medium |
CN112069078A (en) * | 2020-09-15 | 2020-12-11 | 平安银行股份有限公司 | ESA interface pressure testing method, device, testing equipment and storage medium |
CN112131131A (en) * | 2020-10-10 | 2020-12-25 | 四川长虹电器股份有限公司 | Automatic interface testing framework system for pre-constructed domain name and request body |
CN112181845B (en) * | 2020-10-13 | 2024-12-13 | 湖南快乐阳光互动娱乐传媒有限公司 | Interface testing method and device |
CN112181845A (en) * | 2020-10-13 | 2021-01-05 | 湖南快乐阳光互动娱乐传媒有限公司 | An interface testing method and device |
CN112380113A (en) * | 2020-10-15 | 2021-02-19 | 猫岐智能科技(上海)有限公司 | Software testing method and system |
CN112380113B (en) * | 2020-10-15 | 2024-05-17 | 猫岐智能科技(上海)有限公司 | Software testing method and system |
CN112256578B (en) * | 2020-10-23 | 2024-01-19 | 恒生电子股份有限公司 | Management method and system for test cases, electronic equipment and storage medium |
CN112256578A (en) * | 2020-10-23 | 2021-01-22 | 恒生电子股份有限公司 | Management method and management terminal of test case, electronic device and storage medium |
CN112486806A (en) * | 2020-11-18 | 2021-03-12 | 中信银行股份有限公司 | Test case execution method and device, electronic equipment and readable storage medium |
CN112486810A (en) * | 2020-11-25 | 2021-03-12 | 上海中通吉网络技术有限公司 | Interface verification method, system, computer and storage medium of Jmeter platform |
CN112579461A (en) * | 2020-12-24 | 2021-03-30 | 成都新希望金融信息有限公司 | Assertion processing method, system and storage medium |
CN112612706A (en) * | 2020-12-25 | 2021-04-06 | 深圳市彬讯科技有限公司 | Automated testing method, computer device and storage medium |
CN112699027A (en) * | 2020-12-29 | 2021-04-23 | 平安银行股份有限公司 | Interface testing method, device, equipment and readable storage medium |
CN112597051A (en) * | 2020-12-30 | 2021-04-02 | 北京华胜天成科技股份有限公司 | Method and device for obtaining test result, electronic equipment and storage medium |
WO2022227314A1 (en) * | 2021-04-25 | 2022-11-03 | 深圳壹账通智能科技有限公司 | Method and apparatus for dynamic synchronous testing, device, and storage medium |
CN113709448A (en) * | 2021-08-05 | 2021-11-26 | 贵阳朗玛视讯科技有限公司 | A kind of testing device and method based on IPTV system |
CN113709448B (en) * | 2021-08-05 | 2025-01-10 | 贵阳朗玛视讯科技有限公司 | A test device and method based on IPTV system |
CN113778889A (en) * | 2021-09-16 | 2021-12-10 | 行云智网络科技(北京)有限公司 | Dynamic parameter setting method and system for automatic test |
CN113590407A (en) * | 2021-09-29 | 2021-11-02 | 云账户技术(天津)有限公司 | Interface testing method and device |
CN113590407B (en) * | 2021-09-29 | 2021-11-30 | 云账户技术(天津)有限公司 | Interface testing method and device |
CN114048140A (en) * | 2021-11-23 | 2022-02-15 | 杭州遥望网络科技有限公司 | A method and device for parameterizing test cases in an automated testing framework |
CN113849418A (en) * | 2021-11-30 | 2021-12-28 | 阿里云计算有限公司 | Code quality debugging method, server, user equipment and storage medium |
CN114253848A (en) * | 2021-12-17 | 2022-03-29 | 瀚云科技有限公司 | Parameterized interface testing method and device, electronic equipment and storage medium |
CN114385223A (en) * | 2022-01-14 | 2022-04-22 | 平安普惠企业管理有限公司 | Method and device for realizing universal interface, computer equipment and storage medium |
CN114238155A (en) * | 2022-02-25 | 2022-03-25 | 北京宇信科技集团股份有限公司 | Test method, test platform, test device, server and storage medium |
CN114567621B (en) * | 2022-04-29 | 2022-07-12 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
CN114567621A (en) * | 2022-04-29 | 2022-05-31 | 成都瑞华康源科技有限公司 | Client-side adaptive response content control system, method and storage medium |
CN114637692B (en) * | 2022-05-17 | 2022-08-19 | 杭州优诗科技有限公司 | Test data generation and test case management method |
CN114637692A (en) * | 2022-05-17 | 2022-06-17 | 杭州优诗科技有限公司 | Test data generation and test case management method |
CN115499345A (en) * | 2022-09-22 | 2022-12-20 | 北京沃东天骏信息技术有限公司 | Data testing method and device, storage medium and computer product |
CN115499345B (en) * | 2022-09-22 | 2024-05-17 | 北京沃东天骏信息技术有限公司 | Data testing method and device, storage medium and computer product |
CN115297039A (en) * | 2022-10-08 | 2022-11-04 | 天津华来科技股份有限公司 | HTTP (hyper text transport protocol) parameterized test architecture method, electronic equipment and storage medium |
CN115297039B (en) * | 2022-10-08 | 2023-01-10 | 天津华来科技股份有限公司 | HTTP (hyper text transport protocol) parameterized test architecture method, electronic equipment and storage medium |
CN115809201B (en) * | 2022-12-23 | 2023-10-20 | 广东保伦电子股份有限公司 | Interface test control method, device, equipment and medium based on two-dimensional table |
CN115809201A (en) * | 2022-12-23 | 2023-03-17 | 广州市保伦电子有限公司 | Interface test control method, device, equipment and medium based on two-dimensional table |
CN116467189B (en) * | 2023-03-31 | 2023-12-05 | 青岛民航凯亚系统集成有限公司 | Method and system for interface call completion performance pressure measurement and full link data monitoring |
CN116467189A (en) * | 2023-03-31 | 2023-07-21 | 青岛民航凯亚系统集成有限公司 | Method and system for interface call completion performance pressure measurement and full link data monitoring |
CN116431522A (en) * | 2023-06-12 | 2023-07-14 | 天翼云科技有限公司 | A low-code object storage gateway automated testing method and system |
CN116662209A (en) * | 2023-07-27 | 2023-08-29 | 金篆信科有限责任公司 | Automatic test method, device, equipment and storage medium for database interface |
CN116909936B (en) * | 2023-09-13 | 2024-05-14 | 深圳市智慧城市科技发展集团有限公司 | Big data automatic test method, equipment and readable storage medium |
CN116909936A (en) * | 2023-09-13 | 2023-10-20 | 深圳市智慧城市科技发展集团有限公司 | Big data automatic test method, equipment and readable storage medium |
CN118132568A (en) * | 2024-05-08 | 2024-06-04 | 四创科技有限公司 | Method for calling external API or inquiring database and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020000706A1 (en) | 2020-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109101415A (en) | Interface test method, system, equipment and the storage medium compared based on database | |
US10992551B2 (en) | Software proof-of-concept platform, including simulation of production behavior and/or data | |
US11762717B2 (en) | Automatically generating testing code for a software application | |
CN104360920B (en) | A kind of automatic interface testing method and device | |
CN105389256B (en) | A kind of unit test method and system | |
CN109800258B (en) | Data file deployment method, device, computer equipment and storage medium | |
CN111930617B (en) | Automatic test method and device based on data objectification | |
CN108959076A (en) | A kind of API on-line debugging method | |
CN109408357A (en) | A kind of automatic interface testing method and device | |
CN107451068A (en) | Use-case operation method, device, computing device and storage medium | |
CN112905459A (en) | Service interface testing method and device, electronic equipment and storage medium | |
CN108073429A (en) | A kind of means of payment collocation method, device, equipment and storage medium | |
CN112015648A (en) | Test method, device, computer equipment and medium based on automation script | |
CN108809896A (en) | A kind of information calibration method, device and electronic equipment | |
CN111708712A (en) | User behavior test case generation method, flow playback method and electronic equipment | |
CN117632710A (en) | Method, device, equipment and storage medium for generating test code | |
CN112511384B (en) | Flow data processing method and device, computer equipment and storage medium | |
US20170220449A1 (en) | Infrastructure rule generation | |
CN112783513A (en) | Code risk checking method, device and equipment | |
CN109710535A (en) | Service method of calibration and system for voice dialogue platform | |
CN113672674A (en) | Method, electronic device and storage medium for automatically arranging service flow | |
CN116860636A (en) | Unit test code generation method, device, equipment and storage medium | |
CN114490337A (en) | Commissioning method, commissioning platform, equipment and storage medium | |
Usaola et al. | Test case generation with regular expressions and combinatorial techniques | |
CN113609014A (en) | Interface field checking method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181228 |
|
RJ01 | Rejection of invention patent application after publication |