CN111352782A - Interface testing method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN111352782A
CN111352782A CN202010131596.4A CN202010131596A CN111352782A CN 111352782 A CN111352782 A CN 111352782A CN 202010131596 A CN202010131596 A CN 202010131596A CN 111352782 A CN111352782 A CN 111352782A
Authority
CN
China
Prior art keywords
test
interface
parameter
parameter value
cases
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010131596.4A
Other languages
Chinese (zh)
Inventor
林晓升
杨萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010131596.4A priority Critical patent/CN111352782A/en
Publication of CN111352782A publication Critical patent/CN111352782A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

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

Abstract

The present disclosure provides an interface testing method, apparatus, computer device and storage medium, wherein the method comprises: acquiring an interface parameter type of a test interface to be tested; generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request; and storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results. By adopting the interface testing scheme, once the regression testing needs to be carried out on the testing interface, the testing can be automatically completed by reading a plurality of stored testing cases and testing results, so that the problem of low testing efficiency in a manual mode is avoided, and time and labor are saved.

Description

Interface testing method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an interface testing method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of computer technology, more and more businesses (such as financial services, social services, online shopping, and the like) are implemented by computer programs. The data interaction between various service systems and the interaction between the service systems and the user are realized by calling predefined interfaces. In order to ensure that various interfaces can meet interaction requirements, the interfaces need to be tested after being developed.
Generally, before an interface needs to be tested, a tester needs to compile a large number of interface test cases based on any one or any combination of interface parameters corresponding to the interface, and needs to perform manual input operation on the compiled interface test cases, which is time-consuming and labor-consuming. In particular, when performing the regression test, the above-mentioned series of operations are required to be performed every time the computer program is executed, which results in an extremely low efficiency of the regression test.
Disclosure of Invention
The embodiment of the disclosure at least provides an interface testing method, an interface testing device, computer equipment and a storage medium, and realizes automatic regression testing of a testing interface through automatic generation and storage of a testing case and a testing result, so that time and labor are saved.
In a first aspect, an embodiment of the present disclosure provides an interface testing method, where the method includes:
acquiring an interface parameter type of a test interface to be tested;
generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
and storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results.
In an embodiment, the generating, based on the interface parameter type of the test interface, a plurality of test cases corresponding to the test interface includes:
determining a candidate interface parameter value range corresponding to the interface parameter type based on the interface parameter type of the test interface;
and determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range, and generating each test case containing one test case parameter value in the plurality of test case parameter values.
In one embodiment, if the interface parameter type is an integer type, a floating point type, or a character type, the test case parameter values include at least one of the following:
a first parameter value belonging to the range of candidate interface parameter values;
a second parameter value not within the range of candidate interface parameter values;
and two boundary parameter values corresponding to the candidate interface parameter value range.
In an embodiment, if the parameter values of the plurality of test cases include the first parameter value, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the first parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case carrying the first parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include the second parameter value, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the second parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result contains error prompt information, storing the test case carrying the second parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include the boundary parameter value, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the boundary parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result contains correct prompt information, storing the test case and the test result which carry the boundary parameter value.
In an embodiment, if the interface parameter type is a boolean type, the plurality of test case parameter values include two boolean parameter values corresponding to the candidate interface parameter value range.
In an embodiment, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the Boolean parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case and the test result carrying the Boolean parameter value.
In one embodiment, the determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range includes:
if the number of the interface parameters of the test interface is multiple, determining multiple test case parameter values of each interface parameter in the multiple interface parameters of the test interface from the candidate interface parameter value range of each interface parameter in the multiple interface parameters of the test interface;
determining a plurality of groups of test case parameter values corresponding to the test interface based on a plurality of test case parameter values of each interface parameter in a plurality of interface parameters of the test interface; wherein, various test case parameter value combinations of any two interface parameters in the plurality of interface parameters of the test interface are at least covered by a group of test case parameter values; each test case parameter value combination is formed by combining one test case parameter value of one interface parameter in any two interface parameters and one test case parameter value of the other interface parameter.
In one embodiment, the performing a regression test on the test interface based on the stored multiple test cases and test results includes:
reading a plurality of stored test cases and test results corresponding to the test interface when the test interface reaches a preset test triggering condition;
sending a test request to the test interface based on the read multiple test cases to obtain a test result corresponding to the test request;
if the test result is consistent with the test result corresponding to each test case in the read test cases, the test is successful;
and if the test result is inconsistent with the test result corresponding to any one of the read test cases, the test fails, and test failure reminding information is generated and sent to the development end.
In a second aspect, the present disclosure also provides an interface testing apparatus, the apparatus including:
the acquisition module is used for acquiring the interface parameter type of the test interface to be tested;
the generating module is used for generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
and the test module is used for storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results.
In a third aspect, the present disclosure also provides a computer device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the interface testing method according to the first aspect and any of its various embodiments.
In a fourth aspect, the present disclosure also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the interface testing method according to the first aspect and any of its various embodiments.
By adopting the interface test scheme, after the interface parameter type of the test interface to be tested is obtained, a plurality of test cases corresponding to the test interface can be automatically generated, and a test request can be sent to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request. And then, storing a plurality of test cases and test results corresponding to the test interface. Therefore, once the regression test is needed to be carried out on the test interface, the test can be automatically completed by reading the stored multiple test cases and test results, the problem of low test efficiency in a manual mode is solved, and time and labor are saved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a flowchart illustrating an interface testing method according to a first embodiment of the disclosure;
fig. 2 is a flowchart illustrating a specific method for generating test case parameter values in an interface testing method according to a first embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a specific method for executing a test case in an interface testing method according to a first embodiment of the present disclosure;
fig. 4 is a flowchart illustrating a specific method of a retest test in the interface test method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating an interface testing apparatus according to a second embodiment of the disclosure;
fig. 6 shows a schematic diagram of a computer device provided in a third embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It is found through research that after a developer uses a computer program to implement a set of business systems, in order to facilitate the interaction between the business system and other business systems or users, some predefined interfaces are usually set to meet the interaction requirements. The tester can verify whether the current interface can meet the interaction requirement through testing the interface.
Generally, before an interface needs to be tested, a tester needs to compile a large number of interface test cases based on any one or any combination of interface parameters corresponding to the interface, and needs to perform manual input operation on the compiled interface test cases, which is time-consuming and labor-consuming.
It is contemplated that as business systems improve, developers will modify computer programs based on business needs. At this time, the tester is required to perform the interface test again according to the above operation process to confirm that no new error is introduced into the modification or that other program codes are in error, that is, a regression test is required. In particular, when performing multiple regression tests, the above-mentioned series of operations are required to be performed every time the computer program is executed, which results in an extremely low efficiency of the regression tests.
Based on the research, the present disclosure provides at least one interface test scheme, which may automatically generate and store test cases and test results according to the obtained interface parameter types of the test interface, and automatically complete a regression test by reading a plurality of stored test cases and test results, thereby avoiding a problem of low test efficiency in a manual manner, and saving time and labor.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, an interface testing method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the interface testing method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the interface test method may be implemented by a processor calling computer readable instructions stored in a storage medium.
The following describes an interface testing method provided by the embodiment of the present disclosure by taking an execution subject as a server.
Example one
Referring to fig. 1, which is a flowchart of an interface testing method provided in an embodiment of the present disclosure, the method includes steps S101 to S103, where:
s101, obtaining the interface parameter type of the test interface to be tested.
S102, generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
s103, storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression testing on the test interface based on the stored plurality of test cases and the stored test results.
Here, the interface testing method provided by the embodiment of the present disclosure can perform an automatic regression test on the test interface based on the stored multiple test cases and test results. Therefore, the implementation of the automatic regression test depends on the storage of the test case and the test result, and in the embodiment of the disclosure, the test case and the test result can be automatically generated and then stored.
The Test Case is a Test file for performing a Test task on the Test interface, and the Test Case is executed to realize a related Test on the interface. According to the traditional test case generation scheme, after definition information of a test interface is determined, all possible values of the parameters are discretized through analyzing interface parameters of the test interface, then the test case is compiled after permutation and combination, in an actual service scene, due to the fact that interface parameters and optional values of the parameters are increased, manual parameter input is time-consuming, and test case explosion is easily caused by all permutation and combination of the completely tested interface parameters.
In order to alleviate the problem, in most cases, core use cases can be written for testing by means of a boundary value method, an equivalence class division method and the like, however, the generation scheme is relatively dependent on personal experience of testers, and when the experience is insufficient, an ideal test result is likely not obtained.
In order to solve the above various problems, the embodiments of the present disclosure provide a scheme for automatically generating test cases based on interface parameter types, where the scheme may directly obtain the interface parameter types from definition information of a test interface, and directly generate a plurality of test cases by using the interface parameter types, without analyzing the interface parameters, which is time-saving and labor-saving, and can reduce the scale of the test cases on the premise of ensuring a false detection rate.
In the embodiment of the disclosure, after the plurality of test cases are automatically generated for the test interface, the test interface to be tested may be automatically tested by the test cases to obtain the test structure, that is, the test structure may send the test request to the test interface based on the determined plurality of test cases to obtain the test result corresponding to the test request.
It is worth mentioning that, in the embodiment of the present disclosure, an automated test may be performed in a manner of executing test cases in batches, so as to further improve the test efficiency.
After the automated test is executed, in order to facilitate implementation of subsequent regression testing, the embodiments of the present disclosure may store the executed object (i.e., multiple test cases) and the execution result (i.e., test result) for executing the automated test when the batch of test cases are executed for the first time. Here, the test case and the test result may be stored in a preset database, so as to be read as required during a subsequent regression test.
In the embodiment of the present disclosure, after it is determined that the test interface meets the preset test trigger condition (for example, it is determined that the code is updated), the stored multiple test cases and the test result may be read, the interface test may be executed by using the read multiple test cases, then, the executed test result may be compared with the read test result, and a final test result may be determined by using the comparison result.
It should be noted that the interface test here may be a functional test, and whether the test interface to be regression tested meets the interface functional requirement may be determined according to a comparison result between the interface execution result and the pre-stored test result, so as to avoid the problem of interface functional abnormality that may exist in code modification. The number of the test interfaces in the embodiments of the present disclosure may be one or more.
Considering that the automatic generation method of the test case is a key step for implementing the automatic regression test in the embodiment of the present disclosure, as shown in fig. 2, the method may be implemented by the following method steps:
s201, determining a candidate interface parameter value range corresponding to an interface parameter type based on the interface parameter type of the test interface;
s202, determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range, and generating each test case containing one test case parameter value of the plurality of test case parameter values.
Here, the embodiment of the present disclosure may first determine a candidate interface parameter value range corresponding to an interface parameter type of a test interface based on the interface parameter type of the test interface, and then determine a plurality of test case parameter values of the test interface based on the candidate interface parameter value range. Wherein, one test case parameter value can correspond to one test case.
The number of the test interfaces in the embodiments of the present disclosure may be one or more. For each test interface, the test interface may have one or more interface parameters, and each interface parameter may correspond to an interface parameter type, such as an integer type, a floating point type, a character type, a boolean type, and the like. However, no matter the interface parameters are different for the same test interface or the same interface parameters are different for different test interfaces, the interface parameter types can be determined in the definition information of the test interface, the ranges of the candidate interface parameter values corresponding to the same interface parameter type are the same, and the ranges of the candidate interface parameter values corresponding to different interface parameter types are also different.
In consideration of that there may be a plurality of interface parameter types related to the embodiment of the present disclosure, and values of test case parameter values corresponding to different interface parameter types are also different, so that final test results are also different. The following may be specifically described in several aspects, respectively.
In a first aspect, if the interface parameter type is an integer type, a floating point type, or a character type, the multiple test case parameter values at this time may only include first parameter values that belong to a candidate interface parameter value range (where the number of the first parameter values is the same as the number of the test case parameter values), may only include second parameter values that do not belong to the candidate interface parameter value range (where the number of the second parameter values is the same as the number of the test case parameter values), may only include two boundary parameter values corresponding to the candidate interface parameter value range, and may further include a combination of any two or three of the first parameter values, the second parameter values, and the two boundary parameter values.
First, if the plurality of test case parameter values includes the first parameter value, the final storage content may be determined based on the following steps.
Step one, sending a test request to a test interface based on a test case carrying a first parameter value to obtain an actual test result;
and step two, if the actual test result is consistent with the theoretical test result, storing the test case carrying the first parameter value and the test result.
Here, the first parameter value is used as a parameter value belonging to a candidate interface parameter value range, a test request sent to the test interface based on a test case carrying the first parameter value can be determined, an actual test result is obtained, the actual test result is compared with a theoretical test result, if the actual test result is consistent with the theoretical test result, the first parameter value can be determined as a test case parameter value included in a test case corresponding to the test interface, if the actual test result is inconsistent with the theoretical test result, it is indicated that the current test result has a problem, the test case and the test result referred to by the regression test can be stored until the comparison is consistent, that is, the test case and the test result referred to by the regression test can be the test case and the test result after manual calibration. The theoretical test result is used for indicating a test result which should be theoretically obtained after a test request is sent to the test interface based on a test case carrying a first parameter value according to preset interface definition information of the test interface.
When the interface parameter type of the test interface is determined to be an integer type, the candidate interface parameter value range may point to an integer range, for example, from-32768 to +32767, and the first parameter value may be any one or more integers from-32768 to +32767, for example, 412, 1283, 55846, etc. Similarly, when the interface parameter type of the test interface is determined to be a floating point type, the candidate interface parameter range may point to a floating point number range, and the value of the first parameter value may refer to the integer type determination method, which is not described herein again.
When the interface parameter type of the test interface is determined to be a character type, the candidate interface parameter value range may point to a character range, for example, 2 characters to 10 characters, and the first parameter value may be any character within 2 characters to 10 characters, for example, abcde.
Secondly, if the plurality of test case parameter values include the second parameter value, the final storage content may be determined based on the following steps.
Step one, sending a test request to a test interface based on a test case carrying a second parameter value to obtain an actual test result;
and step two, if the actual test result contains the error prompt information, storing the test case carrying the second parameter value and the test result.
Here, the second parameter value is used as a parameter value not within the range of the candidate interface parameter value, it may be determined that a test request is sent to the test interface based on the test case carrying the second parameter value, an actual test result is obtained, and if it is determined that the actual test result includes the error prompt information, the test case carrying the second parameter value and the test result may be stored. The error prompt information is used for indicating that an error indication should be returned theoretically after a test request is sent to the test interface based on the test case carrying the second parameter value according to the preset interface definition information.
When the interface parameter type of the test interface is determined to be an integer type, similarly, the candidate interface parameter value range may point to an integer range, where-32768- +32767 is still taken as an example of the candidate interface parameter value range, and if the selected second parameter value is 4000000, that is, the selected second parameter value overflows the integer range, the interface will feed back an error prompt message when the interface test is performed based on the second parameter value. Similarly, when the interface parameter type of the test interface is determined to be a floating point type, the candidate interface parameter range may point to a floating point number range, and the value of the second parameter value may refer to the integer type determination method, which is not described herein again.
When the interface parameter type of the test interface is determined to be a character type, the candidate interface parameter value range may point to a character range, and here, for example, 2 to 10 characters are still used as the candidate interface parameter value range, if the selected second parameter value is Abc46q14732 (corresponding to 11 characters), the interface will also feed back an error prompt message.
Thirdly, if the plurality of test case parameter values include boundary parameter values, the final storage content can be determined based on the following steps.
Step one, sending a test request to a test interface based on a test case carrying boundary parameter values to obtain an actual test result;
and step two, if the actual test result contains correct prompt information, storing the test case and the test result which carry the boundary parameter values.
Here, the boundary parameter value is used as a special parameter value of the candidate interface parameter value range, and test verification can be performed independently. That is, the test case carrying the boundary parameter value may send a test request to the test interface to obtain an actual test result, and if the actual test result includes the correct prompt information, the test case carrying the boundary parameter value and the test result may be stored. The correct prompt information is used for indicating that a correct prompt should be returned theoretically after a test request is sent to the test interface based on the test case carrying the boundary parameter value according to the preset interface definition information.
When the interface parameter type of the test interface is determined to be an integer type, similarly, the candidate interface parameter value range may point to an integer range, where still taking-32768- +32767 as an example of the candidate interface parameter value range, the minimum boundary parameter value of the candidate interface parameter value range is-32768, and the maximum boundary parameter value is + 32768. If the minimum boundary parameter value of-32768 is selected for interface test, the interface feeds back correct prompt information. Similarly, when the interface parameter type of the test interface is determined to be a floating point type, the candidate interface parameter range may point to a floating point number range, and the value of the relevant boundary parameter value may refer to the integer type determination method, which is not described herein again.
When the interface parameter type of the test interface is determined to be a character type, the candidate interface parameter value range may point to a character range, and here, 2 to 10 characters are still taken as an example of the candidate interface parameter value range, the minimum boundary parameter value of the candidate interface parameter value range is 2 characters, and the maximum boundary parameter value is 10 characters. If the minimum boundary parameter value (such as ab) of 2 characters is selected for interface test, the interface feeds back correct prompt information.
In a second aspect, if the interface parameter type is a boolean type, the multiple test case parameter values at this time may include two boolean parameter values corresponding to the candidate interface parameter value range, and at this time, the final storage content may be determined based on the following steps.
Step one, sending a test request to a test interface based on a test case carrying Boolean parameter values to obtain an actual test result;
and step two, if the actual test result is consistent with the theoretical test result, storing the test case and the test result carrying the Boolean parameter value.
Here, it is considered that the boolean interface parameter may have two boolean parameter values, that is, True/False, so that after a test request is sent to the test interface based on the test case carrying the boolean parameter value and an actual test result is obtained, the test case carrying the boolean parameter value and the storage of the test result may be determined based on a comparison result between the actual test result and the theoretical test result. The theoretical test result may be a test result obtained after the test request based on the boolean parameter value is executed according to the preset interface definition information.
If the comparison is consistent, the Boolean parameter value can be determined as the test case parameter value included in a test case corresponding to the test interface, if the Boolean parameter value is inconsistent, the problem of the current test result is shown, and the Boolean parameter value can be re-executed after correction until the Boolean parameter value is stored when the comparison is consistent.
For example, when a boolean interface parameter is True, the theoretical test result obtained according to the interface definition information should be 0, while the actual test result corresponds to 11111111, which indicates that the current interface is abnormal, and the test needs to be performed again after manual calibration, so as to store the test case parameter values and the test results that are consistent with each other, thereby ensuring that the test cases and the test results referred to by the regression test can be the test cases and the test results after manual calibration, and further ensuring the accuracy of the regression test.
Considering that the number of the interface parameters of the test interface in the embodiment of the present disclosure may be multiple, for a test interface including multiple interface parameters, the corresponding test case size is relatively large. In order to further reduce the scale of the test case, the embodiment of the disclosure may perform the interface test in a parameter combination test manner. As shown in fig. 3, an embodiment of the present disclosure provides a method for determining multiple groups of test case parameter values, where the method specifically includes the following steps:
s301, if a plurality of interface parameters of the test interface are available, determining a plurality of test case parameter values of each interface parameter in the plurality of interface parameters of the test interface from a candidate interface parameter value range of each interface parameter in the plurality of interface parameters of the test interface;
s302, determining multiple groups of test case parameter values corresponding to the test interface based on multiple test case parameter values of each interface parameter in multiple interface parameters of the test interface; wherein, various test case parameter value combinations of any two interface parameters in the plurality of interface parameters of the test interface are at least covered by a group of test case parameter values; each test case parameter value combination is formed by combining one test case parameter value of one interface parameter in any two interface parameters and one test case parameter value of the other interface parameter.
Determining a plurality of test case parameter values of each interface parameter in a plurality of interface parameters of the test interface based on the candidate interface parameter value range of each interface parameter in the plurality of interface parameters of the test interface; in the embodiment of the present disclosure, in the process of executing the parameter combination test, it is required to ensure that various test case parameter combinations of any two interface parameters are covered by one group of test case parameter values.
For example, for a test interface including three interface parameters (i.e., language, font, and presentation mode), the value corresponding to the interface parameter of the language includes english, french, and spanish, the value corresponding to the interface parameter of the font includes a minimum font and a standard font, and the value corresponding to the presentation mode includes a text-only presentation mode and a minimum side length presentation mode.
At this time, for the two interface parameters of the language and the display mode, each test parameter value combination in all the test parameter value combinations needs to be combined by a set of test case parameter values, that is, it needs to be ensured that a set of test case parameter values includes the test parameter value combination (english, text display mode), and it needs to be ensured that a set of test case parameter values includes the test parameter value combination (english, minimum side length display mode), and similarly, it needs to be ensured that there are a set of test case parameter values respectively including the test parameter value combinations (french, text display mode), (french, minimum side length display mode), (spanish, text display mode), (spanish, minimum side length display mode), and when determining a set of test case parameter values, the set of test case parameter values is combined by the test parameter value combination (english, text display mode) as an example, the font value can be null or one of the font values, and similarly, for the two interface parameters of the font and the display mode and the two interface parameters of the language and the font, the font value can also be determined according to the method, and after various test case parameter value combinations of any two interface parameters are covered by one group of test case parameter values, a plurality of groups of test case parameter values can be obtained.
After obtaining multiple groups of test case parameter values, the combined test can be carried out based on the multiple groups of test case parameter values, that is, the multiple groups of test case parameter values are utilized to send test requests to the test interface to obtain test results corresponding to the test requests.
Similarly, the plurality of test cases corresponding to the plurality of groups of test case parameter values are used for sending test requests to the test interface, and the test results corresponding to the test requests and the plurality of test cases are obtained and stored, so that regression test of the interface can be performed.
The interface testing method provided by the embodiment of the present disclosure may perform a regression test on a test interface based on a plurality of stored test cases and test results, as shown in fig. 4, the regression test method specifically includes the following steps:
s401, when the test interface reaches a preset test trigger condition, reading a plurality of test cases and test results corresponding to the stored test interface;
s402, sending a test request to a test interface based on the read multiple test cases to obtain a test result corresponding to the test request;
s403, if the test result is consistent with the test result corresponding to each test case in the read test cases, the test is successful;
s404, if the test result is inconsistent with the test result corresponding to any one of the read test cases, the test fails, and test failure reminding information is generated and sent to the initiating terminal.
Here, when the test interface reaches the preset test trigger condition, the stored multiple test cases and test results corresponding to the test interface can be read, then, the read test cases are utilized to send test requests to the test interface respectively to obtain test results corresponding to the test requests, at this time, the test result can be compared with the test result corresponding to each test case in the plurality of read test cases, if the comparison is consistent, the test cases of all the test cases are verified to pass, that is, the success of the test for the test interface is described, if the comparison is inconsistent, the condition that at least one test case fails to be verified exists, that is, to explain the test failure of the test interface, a test failure reminding message may be generated and sent to the development end, therefore, the developer can search the reason of the test failure of the test interface according to the test failure reminding information.
The preset test triggering condition in the embodiment of the present disclosure may be that a preset triggering period is reached, for example, a regression test is performed every two days, or a test triggering instruction sent by the development end is received, where the test triggering instruction may be automatically generated and pushed to the server after a developer modifies a program, that is, a regression test is performed every time the test triggering instruction sent by the development end is received, or other triggering conditions are also possible, which is not specifically limited in the embodiment of the present disclosure.
The regression test is automatically executed, namely after the triggering condition is met, the server can automatically and circularly read and store each test case for testing, the whole process does not need manual participation, and time and labor are saved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, an interface testing device corresponding to the interface testing method is also provided in the embodiments of the present disclosure, and since the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the interface testing method in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Example two
Referring to fig. 5, which is a schematic diagram of an interface testing apparatus according to a second embodiment of the disclosure, the apparatus includes:
an obtaining module 501, configured to obtain an interface parameter type of a test interface to be tested;
a generating module 502, configured to generate multiple test cases corresponding to the test interface based on the interface parameter type of the test interface, and send a test request to the test interface based on the multiple test cases to obtain a test result corresponding to the test request;
the test module 503 is configured to store the multiple test cases and the test results corresponding to the test interface, so as to perform a regression test on the test interface based on the stored multiple test cases and the stored test results.
The interface testing device provided by the embodiment of the disclosure realizes automatic regression testing of the testing interface through automatic generation and storage of the testing case and the testing result, and is time-saving and labor-saving.
In an embodiment, the generating module 502 is configured to generate a plurality of test cases corresponding to a test interface according to the following steps:
determining a candidate interface parameter value range corresponding to the interface parameter type based on the interface parameter type of the test interface;
and determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range, and generating each test case containing one test case parameter value in the plurality of test case parameter values.
In one embodiment, if the interface parameter type is an integer type, a floating point type, or a character type, the plurality of test case parameter values includes at least one of the following:
a first parameter value that falls within a range of candidate interface parameter values;
a second parameter value not within the range of candidate interface parameter values;
and two boundary parameter values corresponding to the candidate interface parameter value range.
In an embodiment, if the parameter values of the plurality of test cases include a first parameter value, the generating module 502 is configured to obtain a test result corresponding to the test request according to the following steps:
sending a test request to a test interface based on a test case carrying a first parameter value to obtain an actual test result;
the test module 503 is configured to store a plurality of test cases and test results corresponding to the test interface according to the following steps:
and if the actual test result is consistent with the theoretical test result, storing the test case carrying the first parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include the second parameter value, the generating module 502 is configured to obtain a test result corresponding to the test request according to the following steps:
sending a test request to the test interface based on the test case carrying the second parameter value to obtain an actual test result;
the test module 503 is configured to store a plurality of test cases and test results corresponding to the test interface according to the following steps:
and if the actual test result contains the error prompt information, storing the test case carrying the second parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include boundary parameter values, the generating module 502 is configured to obtain a test result corresponding to the test request according to the following steps:
sending a test request to a test interface based on the test case carrying the boundary parameter value to obtain an actual test result;
the test module 503 is configured to store a plurality of test cases and test results corresponding to the test interface according to the following steps:
and if the actual test result contains correct prompt information, storing the test case and the test result which carry the boundary parameter values.
In an embodiment, if the interface parameter type is a boolean type, the plurality of test case parameter values include two boolean parameter values corresponding to the candidate interface parameter value range.
In an embodiment, the generating module 502 is configured to obtain a test result corresponding to the test request according to the following steps:
sending a test request to a test interface based on a test case carrying Boolean parameter values to obtain an actual test result;
the test module 503 is configured to store a plurality of test cases and test results corresponding to the test interface according to the following steps:
and if the actual test result is consistent with the theoretical test result, storing the test case and the test result carrying the Boolean parameter value.
In one embodiment, the generating module 502 is configured to determine a plurality of test case parameter values of a test interface according to the following steps:
if the number of the interface parameters of the test interface is multiple, determining multiple test case parameter values of each interface parameter in the multiple interface parameters of the test interface from the candidate interface parameter value range of each interface parameter in the multiple interface parameters of the test interface;
determining a plurality of groups of test case parameter values corresponding to the test interface based on a plurality of test case parameter values of each interface parameter in a plurality of interface parameters of the test interface; wherein, various test case parameter value combinations of any two interface parameters in the plurality of interface parameters of the test interface are at least covered by a group of test case parameter values; each test case parameter value combination is formed by combining one test case parameter value of one interface parameter in any two interface parameters and one test case parameter value of the other interface parameter.
In one embodiment, the testing module 503 is configured to perform regression testing on the test interface according to the following steps:
reading a plurality of test cases and test results corresponding to the stored test interface when the test interface reaches a preset test triggering condition;
sending a test request to a test interface based on the read multiple test cases to obtain a test result corresponding to the test request;
if the test result is consistent with the test result corresponding to each test case in the read plurality of test cases, the test is successful;
if the test result is inconsistent with the test result corresponding to any one of the read test cases, the test fails, and test failure reminding information is generated and sent to the development end.
EXAMPLE III
A third embodiment of the present disclosure provides a computer device, as shown in fig. 6, the computer device includes: a processor 601, a storage medium 602 and a bus 603, where the storage medium 602 stores machine-readable instructions executable by the processor 601 (such as execution instructions corresponding to the obtaining module 501, the generating module 502, and the testing module 503 in the interface testing apparatus in fig. 5, etc.), when the computer device runs, the processor 601 and the storage medium 602 communicate via the bus 603, and the machine-readable instructions are executed by the processor 601 to perform the following processes:
acquiring an interface parameter type of a test interface to be tested;
generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
and storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results.
In an embodiment, the generating, in the instruction executed by the processor 601, a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface includes:
determining a candidate interface parameter value range corresponding to the interface parameter type based on the interface parameter type of the test interface;
generating a plurality of test case parameter values of the test interface based on the candidate interface parameter value range; and each test case parameter value corresponds to one test case.
In one embodiment, if the interface parameter type is an integer type, a floating point type, or a character type, the plurality of test case parameter values includes at least one of the following:
a first parameter value that falls within a range of candidate interface parameter values;
a second parameter value not within the range of candidate interface parameter values;
and two boundary parameter values corresponding to the candidate interface parameter value range.
In an embodiment, if the parameter values of the plurality of test cases include a first parameter value, the sending, by the instruction executed by the processor 601, a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to a test interface based on a test case carrying a first parameter value to obtain an actual test result;
in the instructions executed by the processor 601, storing a plurality of test cases and test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case carrying the first parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include the second parameter value, the sending, by the instruction executed by the processor 601, a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the second parameter value to obtain an actual test result;
in the instructions executed by the processor 601, storing a plurality of test cases and test results corresponding to the test interface includes:
and if the actual test result contains the error prompt information, storing the test case carrying the second parameter value and the test result.
In an embodiment, if the parameter values of the plurality of test cases include boundary parameter values, the instructions executed by the processor 601 send test requests to the test interface based on the plurality of test cases to obtain test results corresponding to the test requests, including:
sending a test request to a test interface based on the test case carrying the boundary parameter value to obtain an actual test result;
in the instructions executed by the processor 601, storing a plurality of test cases and test results corresponding to the test interface includes:
and if the actual test result contains correct prompt information, storing the test case and the test result which carry the boundary parameter values.
In an embodiment, if the interface parameter type is a boolean type, the plurality of test case parameter values include two boolean parameter values corresponding to the candidate interface parameter value range.
In an embodiment, the instructions executed by the processor 601, which issue a test request to a test interface based on a plurality of test cases to obtain a test result corresponding to the test request, includes:
sending a test request to a test interface based on a test case carrying Boolean parameter values to obtain an actual test result;
in the instructions executed by the processor 601, storing a plurality of test cases and test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case and the test result carrying the Boolean parameter value.
In one embodiment, the instructions executed by the processor 601 to determine a plurality of test case parameter values of the test interface from the candidate interface parameter value range includes:
if the number of the interface parameters of the test interface is multiple, determining multiple test case parameter values of each interface parameter in the multiple interface parameters of the test interface from the candidate interface parameter value range of each interface parameter in the multiple interface parameters of the test interface;
determining a plurality of groups of test case parameter values corresponding to the test interface based on a plurality of test case parameter values of each interface parameter in a plurality of interface parameters of the test interface; wherein, various test case parameter value combinations of any two interface parameters in the plurality of interface parameters of the test interface are at least covered by a group of test case parameter values; each test case parameter value combination is formed by combining one test case parameter value of one interface parameter in any two interface parameters and one test case parameter value of the other interface parameter.
In one embodiment, the instructions executed by the processor 601 perform a regression test on the test interface based on the stored multiple test cases and the test results, including:
reading a plurality of test cases and test results corresponding to the stored test interface when the test interface reaches a preset test triggering condition;
sending a test request to a test interface based on the read multiple test cases to obtain a test result corresponding to the test request;
if the test result is consistent with the test result corresponding to each test case in the read plurality of test cases, the test is successful;
if the test result is inconsistent with the test result corresponding to any one of the read test cases, the test fails, and test failure reminding information is generated and sent to the development end.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 601, the steps of the interface testing method in the above method embodiments are performed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the interface testing method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the interface testing method in the above method embodiments, which may be referred to specifically in the above method embodiments, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (13)

1. An interface testing method, the method comprising:
acquiring an interface parameter type of a test interface to be tested;
generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
and storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results.
2. The method according to claim 1, wherein the generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface comprises:
determining a candidate interface parameter value range corresponding to the interface parameter type based on the interface parameter type of the test interface;
and determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range, and generating each test case containing one test case parameter value in the plurality of test case parameter values.
3. The method of claim 2, wherein if the interface parameter type is an integer type, a floating point type, or a character type, the plurality of test case parameter values comprises at least one of:
a first parameter value belonging to the range of candidate interface parameter values;
a second parameter value not within the range of candidate interface parameter values;
and two boundary parameter values corresponding to the candidate interface parameter value range.
4. The method of claim 3, wherein if the first parameter value is included in the parameter values of the plurality of test cases, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the first parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case carrying the first parameter value and the test result.
5. The method of claim 3, wherein if the second parameter value is included in the parameter values of the plurality of test cases, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the second parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes: and if the actual test result contains error prompt information, storing the test case carrying the second parameter value and the test result.
6. The method of claim 3, wherein if the boundary parameter values are included in the parameter values of the plurality of test cases, the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request includes:
sending a test request to the test interface based on the test case carrying the boundary parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes: and if the actual test result contains correct prompt information, storing the test case and the test result which carry the boundary parameter value.
7. The method of claim 2, wherein if the interface parameter type is a boolean type, the plurality of test case parameter values includes two boolean parameter values corresponding to the candidate interface parameter value range.
8. The method according to claim 7, wherein the sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request comprises:
sending a test request to the test interface based on the test case carrying the Boolean parameter value to obtain an actual test result;
the storing the plurality of test cases and the test results corresponding to the test interface includes:
and if the actual test result is consistent with the theoretical test result, storing the test case and the test result carrying the Boolean parameter value.
9. The method according to any one of claims 2 to 8, wherein the determining a plurality of test case parameter values of the test interface from the candidate interface parameter value range comprises:
if the number of the interface parameters of the test interface is multiple, determining multiple test case parameter values of each interface parameter in the multiple interface parameters of the test interface from the candidate interface parameter value range of each interface parameter in the multiple interface parameters of the test interface;
determining a plurality of groups of test case parameter values corresponding to the test interface based on a plurality of test case parameter values of each interface parameter in a plurality of interface parameters of the test interface; wherein, various test case parameter value combinations of any two interface parameters in the plurality of interface parameters of the test interface are at least covered by a group of test case parameter values; each test case parameter value combination is formed by combining one test case parameter value of one interface parameter in any two interface parameters and one test case parameter value of the other interface parameter.
10. The method according to any one of claims 1 to 8, wherein performing a regression test on the test interface based on the stored plurality of test cases and test results comprises:
reading a plurality of stored test cases and test results corresponding to the test interface when the test interface reaches a preset test triggering condition;
sending a test request to the test interface based on the read multiple test cases to obtain a test result corresponding to the test request;
if the test result is consistent with the test result corresponding to each test case in the read test cases, the test is successful;
and if the test result is inconsistent with the test result corresponding to any one of the read test cases, the test fails, and test failure reminding information is generated and sent to the development end.
11. An interface testing apparatus, the apparatus comprising:
the acquisition module is used for acquiring the interface parameter type of the test interface to be tested;
the generating module is used for generating a plurality of test cases corresponding to the test interface based on the interface parameter type of the test interface, and sending a test request to the test interface based on the plurality of test cases to obtain a test result corresponding to the test request;
and the test module is used for storing the plurality of test cases and the test results corresponding to the test interface so as to perform regression test on the test interface based on the stored plurality of test cases and the stored test results.
12. A computer device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the computer device is run, the machine-readable instructions when executed by the processor performing the steps of the interface testing method according to any one of claims 1 to 10.
13. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the interface testing method according to one of claims 1 to 10.
CN202010131596.4A 2020-02-28 2020-02-28 Interface testing method and device, computer equipment and storage medium Pending CN111352782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010131596.4A CN111352782A (en) 2020-02-28 2020-02-28 Interface testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010131596.4A CN111352782A (en) 2020-02-28 2020-02-28 Interface testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111352782A true CN111352782A (en) 2020-06-30

Family

ID=71197271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131596.4A Pending CN111352782A (en) 2020-02-28 2020-02-28 Interface testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111352782A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539174A (en) * 2020-07-08 2020-08-14 成都奥卡思微电科技有限公司 Regression testing method, storage medium and system based on proof kernel
CN112131113A (en) * 2020-09-23 2020-12-25 北京达佳互联信息技术有限公司 Method for automatically testing special effect and electronic equipment
CN113434396A (en) * 2021-06-22 2021-09-24 中国农业银行股份有限公司 Interface test method, device, equipment, storage medium and program product
CN116932403A (en) * 2023-07-25 2023-10-24 太初(无锡)电子科技有限公司 Test case generation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062788A (en) * 2018-07-17 2018-12-21 招银云创(深圳)信息技术有限公司 Method for generating test case, device, computer equipment and storage medium
CN109344048A (en) * 2018-08-17 2019-02-15 中国平安人寿保险股份有限公司 A kind of test method, storage medium and server
CN109388561A (en) * 2018-09-18 2019-02-26 深圳壹账通智能科技有限公司 Interface testing case generation method, device, computer equipment and storage medium
CN109933535A (en) * 2019-03-26 2019-06-25 北京金山云网络技术有限公司 Generation method, device and the server of test case
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN110334009A (en) * 2019-05-28 2019-10-15 中国平安人寿保险股份有限公司 Automatic example generation method, device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062788A (en) * 2018-07-17 2018-12-21 招银云创(深圳)信息技术有限公司 Method for generating test case, device, computer equipment and storage medium
CN109344048A (en) * 2018-08-17 2019-02-15 中国平安人寿保险股份有限公司 A kind of test method, storage medium and server
CN109388561A (en) * 2018-09-18 2019-02-26 深圳壹账通智能科技有限公司 Interface testing case generation method, device, computer equipment and storage medium
CN109947646A (en) * 2019-03-13 2019-06-28 平安信托有限责任公司 Interface test method, device, computer equipment and storage medium
CN109933535A (en) * 2019-03-26 2019-06-25 北京金山云网络技术有限公司 Generation method, device and the server of test case
CN110334009A (en) * 2019-05-28 2019-10-15 中国平安人寿保险股份有限公司 Automatic example generation method, device, terminal and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111539174A (en) * 2020-07-08 2020-08-14 成都奥卡思微电科技有限公司 Regression testing method, storage medium and system based on proof kernel
CN112131113A (en) * 2020-09-23 2020-12-25 北京达佳互联信息技术有限公司 Method for automatically testing special effect and electronic equipment
CN113434396A (en) * 2021-06-22 2021-09-24 中国农业银行股份有限公司 Interface test method, device, equipment, storage medium and program product
CN116932403A (en) * 2023-07-25 2023-10-24 太初(无锡)电子科技有限公司 Test case generation method
CN116932403B (en) * 2023-07-25 2024-06-11 太初(无锡)电子科技有限公司 Test case generation method

Similar Documents

Publication Publication Date Title
CN111352782A (en) Interface testing method and device, computer equipment and storage medium
CN109726105B (en) Test data construction method, device, equipment and storage medium
CN109033772B (en) Verification information input method and device
US20190095318A1 (en) Test-assisted application programming interface (api) learning
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN110990276A (en) Automatic testing method and device for interface field and storage medium
CN107316156B (en) Data processing method, device, server and storage medium
CN110389941B (en) Database checking method, device, equipment and storage medium
CN109542878B (en) List creation method and device
US20150186195A1 (en) Method of analysis application object which computer-executable, server performing the same and storage media storing the same
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN107291612B (en) Test method and device
CN110046086B (en) Expected data generation method and device for test and electronic equipment
CN108829882B (en) Information collection method, device, terminal and medium
CN112230963A (en) Method and device for repairing security vulnerability, computer equipment and storage medium
CN116302079A (en) Service data processing method and device, electronic equipment and storage medium
CN115017436B (en) Data interaction method and device of application program, computer equipment and storage medium
JP6563001B2 (en) System and method for detecting and alerting to risks in replenishment transactions
CN114185598A (en) Information acquisition method and device, computer equipment and storage medium
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment
CN110851456B (en) Information processing method, electronic equipment and storage medium
CN110572310A (en) Address book-based driving test route sharing method, terminal and storage medium
CN117851608B (en) Case map generation method, device, equipment and medium
CN112162929B (en) Test data generation method and device, computer equipment and storage medium
CN115563964B (en) Regular short message text generation method and device, electronic equipment and storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630

RJ01 Rejection of invention patent application after publication