CN111666301B - Service interface testing method, computer device and storage medium - Google Patents

Service interface testing method, computer device and storage medium Download PDF

Info

Publication number
CN111666301B
CN111666301B CN202010380330.3A CN202010380330A CN111666301B CN 111666301 B CN111666301 B CN 111666301B CN 202010380330 A CN202010380330 A CN 202010380330A CN 111666301 B CN111666301 B CN 111666301B
Authority
CN
China
Prior art keywords
service interface
determining
data
fields
field
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.)
Active
Application number
CN202010380330.3A
Other languages
Chinese (zh)
Other versions
CN111666301A (en
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.)
Guangzhou Duling Technology Co ltd
Original Assignee
Guangzhou Micro Computing Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Micro Computing Information Technology Co ltd filed Critical Guangzhou Micro Computing Information Technology Co ltd
Priority to CN202010380330.3A priority Critical patent/CN111666301B/en
Publication of CN111666301A publication Critical patent/CN111666301A/en
Application granted granted Critical
Publication of CN111666301B publication Critical patent/CN111666301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a service interface testing method, a computer device and a storage medium. The service interface testing method comprises the steps of obtaining a test case, a service request and a query request, sending the service request to a service interface, receiving first data returned by the service interface, sending the query request to a database, receiving second data returned by the database, determining the accuracy of the first data according to the second data, determining a test result of the service interface according to the accuracy and the like. By comparing the first data with the second data field by field, faults or errors of the service interface can be effectively eliminated. By determining the accuracy of the first data according to the number of the consistent fields, the number of the non-consistent fields and the like, the interference on the test process caused by the change of the service interface due to the change of the common module, which does not influence the interface function, can be ignored, and the stability of the test process is improved on the basis of ensuring the reliability of the test result. The invention is widely applied to the technical field of computers.

Description

Service interface testing method, computer device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a service interface testing method, a computer device, and a storage medium.
Background
When upgrading and maintaining some service interfaces of the server, if the common module is modified, other service interfaces may be affected, so that regression testing on the service interfaces is required. Because of the large number of service interfaces, it is extremely difficult to test all service interfaces one by one manually.
The existing automatic test method for the service interface is to automatically generate a test case by using a computer device, input the test case into the service interface, receive an actual result fed back by the service interface in response to the test case, and compare the expected result in the test case with the actual result, thereby determining the performance of the service interface. The prior art relies on the accuracy of the expected result in the test case, and if the expected result in the test case is set unreasonably, the test result of the service interface is affected, so that the test result is unreliable and the test process is unstable.
Disclosure of Invention
In view of at least one of the foregoing technical problems, an object of the present invention is to provide a service interface testing method, a computer device, and a storage medium.
In one aspect, an embodiment of the present invention includes a service interface testing method, including:
acquiring a test case, and determining a service request and a query request according to the test case;
sending the service request to the service interface; the service interface responds to the service request and obtains first data from the database query;
receiving the first data returned by the service interface;
sending the query request to the database; the database responds to the query request and queries to obtain second data;
receiving the second data returned by the database;
determining the accuracy of the first data according to the second data;
and determining a test result of the service interface according to the accuracy.
Further, the step of determining the accuracy of the first data according to the second data specifically includes:
performing field comparison on the first data and the second data; the field comparison is used for determining a consistent field and a non-consistent field in the first data and the second data;
and determining the accuracy of the first data according to the number of the consistent fields and the number of the non-consistent fields.
Further, the step of determining the accuracy of the first data according to the number of the consistent fields and the number of the non-consistent fields specifically includes:
determining the accuracy of the first data according to the ratio of the number of the consistent fields to the total number of fields; the total number of fields is the sum of the number of consistent fields and the number of non-consistent fields.
Further, the step of determining the accuracy of the first data according to the number of the consistent fields and the number of the non-consistent fields specifically includes:
determining importance scores of the fields according to the attributes of the fields;
taking the importance scores as weights, determining weighted scores of the consistent fields and the non-consistent fields; the weight of the consistent field is positive number, and the weight of the non-consistent field is negative number;
and determining the accuracy of the first data according to the weighted scores.
Further, the step of determining the test result of the service interface according to the accuracy specifically includes:
and when the accuracy reaches a preset threshold value, determining that the test result of the service interface is passed, otherwise, determining that the test result of the service interface is failed.
Further, the service interface testing method further comprises the following steps:
acquiring a plurality of negative sample test cases; the negative sample test case is a test case which enables the test result of the service interface to be failed;
determining the distribution of the inconsistent fields corresponding to each negative sample test case;
determining the same part of the distribution of each non-uniform field;
determining the fault reason of the service interface;
and determining the mapping relation between the same part and the fault reason.
Further, the service interface testing method further comprises the following steps:
acquiring a plurality of positive sample test cases; the positive sample test case is a test case which enables the test result of the service interface to be passed;
determining the distribution of the inconsistent fields corresponding to each positive sample test case;
determining the same part of the distribution of each non-uniform field;
and carrying out fault detection on the service interface according to the same part.
Further, the step of determining the test result of the service interface according to the accuracy specifically further includes:
when the test result of the service interface is not passed, determining the distribution of the inconsistent fields;
and determining the fault reason of the service interface according to the distribution of the inconsistent fields.
In another aspect, an embodiment of the present invention further includes a computer apparatus including a memory for storing at least one program and a processor for loading the at least one program to perform a service interface testing method.
In another aspect, embodiments of the present invention also include a storage medium having stored therein processor-executable instructions that when executed by a processor are for performing a business interface testing method.
The beneficial effects of the invention are as follows: in the embodiment of the invention, the fault or error of the service interface can be effectively eliminated by comparing the first data with the second data field by field. The accuracy of the first data is determined according to the number of the consistent fields, the number of the non-consistent fields, the importance scores of the consistent fields and the importance scores of the non-consistent fields, so that the interference on the testing process caused by the change of the service interface due to the change of the common module and not affecting the interface function can be ignored, and the stability of the testing process is improved on the basis of ensuring the reliability of the testing result.
Drawings
FIG. 1 is a schematic diagram of a service interface testing method in an embodiment;
FIG. 2 is a flow chart of a method for testing a service interface according to an embodiment;
FIG. 3 is a schematic diagram of the format of the first data and the second data according to the embodiment;
FIG. 4 is a schematic diagram of field alignment of first data and second data according to an embodiment;
FIG. 5 is a schematic diagram of acquiring a negative sample test case in an embodiment;
FIG. 6 is a schematic diagram of acquiring a positive sample test case in an embodiment.
Detailed Description
Example 1
In this embodiment, the principle of the service interface testing method is shown in fig. 1. A computer device is used to run a testing tool Jmeter, and the configuration of the Jmeter enables the computer device to run a service interface testing method, i.e. steps S1-S7 in the embodiment.
Referring to fig. 2, the service interface testing method in this embodiment includes the following steps:
s1, acquiring a test case, and determining a service request and a query request according to the test case;
s2, sending the service request to the service interface; the service interface responds to the service request and obtains first data from the database query;
s3, receiving the first data returned by the service interface;
s4, sending the query request to the database; the database responds to the query request and queries to obtain second data;
s5, receiving the second data returned by the database;
s6, determining the accuracy of the first data according to the second data;
s7, determining the test result of the service interface according to the accuracy.
In this embodiment, the first data obtained by calling the service interface may be obtained by executing steps S2 and S3 using the test tool Jmeter. In this embodiment, the first data is the actual result used to test the service interface.
In this embodiment, the second data can be obtained directly from the database by performing steps S4 and S5 using the test tool Jmeter. In this embodiment, the second data is the expected result for testing the traffic interface.
In this embodiment, by using the testing tool Jmeter to perform steps S6 and S7, verification of the first data according to the second data may be achieved, that is, the accuracy of the actual result is determined using the expected result, so as to obtain the test result for the service interface.
In this embodiment, the second data as the expected result is obtained by directly connecting to the database, and the second data may be used to verify the accuracy of the first data obtained by querying the database by the service interface, that is, the test process of the service interface may not depend on the expected result set in the test case, so as to improve the reliability of the test result and the stability of the test process. On the other hand, since the second data serving as the expected result can be obtained directly from the database, the process of setting the expected result can be avoided, so that a large number of test cases can be quickly generated, and the large-scale business interface test can be facilitated.
In this embodiment, as shown in fig. 3, the acquired first data and second data have the same format and are respectively composed of n fields, such as field 1, field 2, … …, field n, and the like. Referring to fig. 4, the consistency of each field may be determined by comparing the fields at the same location in the first data and the second data one by one, that is, comparing field 1 in the first data with field 1 in the second data, comparing field 2 in the first data with field 2 in the second data … …, and comparing field n in the first data with field n in the second data. For example, if field 1 in the first data is identical to field 1 in the second data in content, field 1 belongs to the consistent field, whereas field 1 belongs to the non-consistent field.
In this embodiment, the accuracy of the first data is determined according to the number of consistent fields and the number of non-consistent fields.
In this embodiment, when determining the accuracy of the first data, only the number of consistent fields and the number of non-consistent fields may be considered, that is, the ratio obtained by dividing the number of consistent fields by the total number of fields n may be used as the accuracy of the first data. If the accuracy of the first data obtained by calculation reaches a preset threshold value, the test result of the service interface is passed, otherwise, the test result of the service interface is failed.
In this embodiment, when determining the accuracy of the first data, the number of consistent fields and the number of non-consistent fields may be considered, and the attribute of each field may be considered. In this embodiment, the importance score of each field is determined based on the attribute of each field, including the data described in each field, and the importance score is used as the absolute value of the weight of the field. For a consistent field, its weight is a positive number, i.e., its weight is a positive importance score; for non-uniform fields, their weights are negative numbers, i.e., their weights are negative importance scores. And adding the weights of the fields to obtain a ratio which is used as the accuracy of the first data. If the accuracy of the first data obtained by calculation reaches a preset threshold value, the test result of the service interface is passed, otherwise, the test result of the service interface is failed.
A failure or error of the service interface may cause a change in the content of the data queried by the service interface from the database, so that the content of some or all of the fields in the first data returned by the service interface is different from the content of the corresponding fields of the second data. By comparing the first data with the second data field by field, faults or errors of the service interface can be effectively eliminated. The accuracy of the first data is determined according to the number of the consistent fields, the number of the non-consistent fields, the importance scores of the consistent fields and the importance scores of the non-consistent fields, so that the interference on the testing process caused by the change of the service interface due to the change of the common module and not affecting the interface function can be ignored, and the stability of the testing process is improved on the basis of ensuring the reliability of the testing result.
In this embodiment, the following steps may also be performed:
s8, acquiring a plurality of negative sample test cases; the negative sample test case is a test case which enables the test result of the service interface to be failed;
s9, determining distribution of the inconsistent fields corresponding to each negative sample test case;
s10, determining the same part of the distribution of each non-uniform field;
s11, determining a fault reason of the service interface;
s12, determining the mapping relation between the same part and the fault reason.
The principle of the steps S8-S12 is as follows: a plurality of test cases can be obtained by using one test case each time the steps S1-S7 are executed, so that the steps S1-S7 are executed for a plurality of times. If the test result obtained after each execution of the steps S1-S7 is not passed, the test case used by the execution of the steps S1-S7 is defined as a negative sample test case.
And acquiring a plurality of negative sample test cases, wherein each negative sample test case corresponds to the execution process of one step S1-S7, and the results of the execution processes of the steps S1-S7 are all test results which are not passed. Referring to fig. 5, in this embodiment, m negative sample test cases are obtained, corresponding to m execution procedures of steps S1-S7. The execution of each of steps S1-S7 determines the distribution of one non-uniform field, i.e. where each non-uniform field is located.
Referring to fig. 5, during the execution of the 1 st execution step S1-S7, the distribution of the determined non-uniform fields is (field 3, … … field n-1); during the execution of the 2 nd execution step S1-S7, the determined distribution of non-uniform fields is (field 1, field 3, … … field n-1); … … during the execution of the mth execution step S1-S7, the distribution of the non-uniform fields determined is (field 1, field 2, field 3, … … field n-1). From the distribution of these non-uniform fields, some fields are found in the distribution of all non-uniform fields, i.e. field 3 … … and field n-1, so the same part of the distribution of these non-uniform fields can be determined to be (field 3, … … field n-1).
Since the test results obtained after the m times of execution of steps S1-S7 are failed, the person skilled in the art can determine the cause of the failure of the service interface according to the professional technology. After determining the cause of the fault, a mapping relationship between the same part (field 3, … … field n-1) and the cause of the fault is established.
Based on the execution of steps S8-S12, according to the mapping relationship, if the test result of the service interface is failed in the process of executing steps S1-S7 later, the distribution of the inconsistent fields obtained in the process of executing steps S1-S7 at this time can be analyzed, and if the obtained distribution of the inconsistent fields includes (field 3, … … field n-1), the failure cause can be mapped, so as to determine the failure cause of the service interface, so that a person skilled in the art can quickly and accurately determine the failure existing in the service interface in the later test by using the experience of the previous test.
In this embodiment, the following steps may also be performed:
s13, acquiring a plurality of positive sample test cases; the positive sample test case is a test case which enables the test result of the service interface to be passed;
s14, determining distribution of the inconsistent fields corresponding to each positive sample test case;
s15, determining the same part of the distribution of each non-uniform field;
s16, according to the same part, performing fault detection on the service interface.
In this embodiment, if the test result obtained after each execution of steps S1 to S7 is a pass, the test case used for executing steps S1 to S7 at this time is defined as a positive sample test case.
And acquiring a plurality of positive sample test cases, wherein each positive sample test case corresponds to the execution process of one step S1-S7, and the results of the execution processes of the steps S1-S7 are all the passing test results. Referring to fig. 6, in this embodiment, p positive sample test cases are obtained, corresponding to the execution procedures of p steps S1 to S7. The execution of each of steps S1-S7 determines the distribution of one non-uniform field, i.e. where each non-uniform field is located.
Referring to fig. 6, during the execution of the 1 st execution step S1-S7, the distribution of the determined non-uniform fields is (field 1, field 3 … … field n); in the execution of the 2 nd execution step S1-S7, the distribution of the determined non-uniform fields is (field 1, field 3, … … field n-1, field n); … … during the execution of the p-th execution step S1-S7, the distribution of the non-uniform fields determined is (field 1, field 3, … … field n-1, field n). From the distribution of these non-uniform fields, it is possible to determine that some fields exist in the distribution of all non-uniform fields, i.e., field 1, field 3 … …, and field n, and thus the same part of the distribution of these non-uniform fields is (field 1, field 3 … … field n).
Although the test results obtained after p times of execution of the steps S1-S7 are passed, that is, the performance of the service interface can meet the service requirement, the performance of the service interface may be changed after the working parameters are adjusted due to the change of the content of part of the fields in the first data, that is, the service interface may have hidden trouble that the working process is unstable. By executing the steps S13-S15, the same part of the distribution of the inconsistent fields obtained by executing the steps S1-S7 for multiple times can be extracted, that is, the statistical rule of the data generated in the service interface working process is obtained, and when executing the step S16, the corresponding fault cause of the same part obtained by executing the steps S13-S15 can be determined through the mapping relationship between the same part determined by the step S12 and the fault cause, so that guidance is provided for the person skilled in the art, and the person skilled in the art can directionally check whether the corresponding fault cause actually exists in the service interface, thereby more possibly eliminating or reducing the hidden trouble.
Example 2
In this embodiment, a computer apparatus includes a memory for storing at least one program and a processor for loading the at least one program to perform the service interface test method in embodiment 1.
In this embodiment, a storage medium has stored therein processor-executable instructions that, when executed by a processor, are used to perform the service interface test method in embodiment 1, achieving the same technical effects as described in embodiment 1.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. Further, the descriptions of the upper, lower, left, right, etc. used in this disclosure are merely with respect to the mutual positional relationship of the various components of this disclosure in the drawings. As used in this disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used in this embodiment includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described in the present embodiments may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described in this embodiment may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, that collectively execute on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described in this embodiment, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the converted data represents physical and tangible target terminals, including specific visual depictions of physical and tangible target terminals generated on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention, which are included in the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.

Claims (8)

1. The service interface testing method is characterized by comprising the following steps:
acquiring a test case, and determining a service request and a query request according to the test case;
sending the service request to the service interface; the service interface responds to the service request and obtains first data from the database query;
receiving the first data returned by the service interface;
sending the query request to the database; the database responds to the query request and queries to obtain second data;
receiving the second data returned by the database;
determining the accuracy of the first data according to the second data; the step of determining the accuracy of the first data according to the second data specifically includes: performing field comparison on the first data and the second data; the field comparison is used for determining a consistent field and a non-consistent field in the first data and the second data; determining the accuracy of the first data according to the number of the consistent fields and the number of the non-consistent fields;
determining importance scores of the fields according to the attributes of the fields;
taking the importance scores as weights, determining weighted scores of the consistent fields and the non-consistent fields; the weight of the consistent field is positive number, and the weight of the non-consistent field is negative number;
determining the accuracy of the first data according to the weighted score;
and determining a test result of the service interface according to the accuracy.
2. The method for testing a service interface according to claim 1, wherein the step of determining the accuracy of the first data according to the number of the consistent fields and the number of the non-consistent fields specifically comprises:
determining the accuracy of the first data according to the ratio of the number of the consistent fields to the total number of fields; the total number of fields is the sum of the number of consistent fields and the number of non-consistent fields.
3. The service interface testing method according to claim 1 or 2, wherein the step of determining the test result of the service interface according to the accuracy specifically comprises:
and when the accuracy reaches a preset threshold value, determining that the test result of the service interface is passed, otherwise, determining that the test result of the service interface is failed.
4. A service interface testing method according to claim 3, further comprising the steps of:
acquiring a plurality of negative sample test cases; the negative sample test case is a test case which enables the test result of the service interface to be failed;
determining the distribution of the inconsistent fields corresponding to each negative sample test case;
determining the same part of the distribution of each non-uniform field;
determining the fault reason of the service interface;
and determining the mapping relation between the same part and the fault reason.
5. The service interface testing method according to claim 4, further comprising the steps of:
acquiring a plurality of positive sample test cases; the positive sample test case is a test case which enables the test result of the service interface to be passed;
determining the distribution of the inconsistent fields corresponding to each positive sample test case;
determining the same part of the distribution of each non-uniform field;
and carrying out fault detection on the service interface according to the same part.
6. The service interface testing method according to claim 4 or 5, wherein the step of determining the test result of the service interface according to the accuracy specifically further comprises:
when the test result of the service interface is not passed, determining the distribution of the inconsistent fields;
and determining the fault reason of the service interface according to the distribution of the inconsistent fields.
7. A computer device comprising a memory for storing at least one program and a processor for loading the at least one program to perform the method of any of claims 1-6.
8. A storage medium having stored therein processor executable instructions which, when executed by a processor, are for performing the method of any of claims 1-6.
CN202010380330.3A 2020-05-08 2020-05-08 Service interface testing method, computer device and storage medium Active CN111666301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010380330.3A CN111666301B (en) 2020-05-08 2020-05-08 Service interface testing method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010380330.3A CN111666301B (en) 2020-05-08 2020-05-08 Service interface testing method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN111666301A CN111666301A (en) 2020-09-15
CN111666301B true CN111666301B (en) 2023-08-15

Family

ID=72383458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010380330.3A Active CN111666301B (en) 2020-05-08 2020-05-08 Service interface testing method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN111666301B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101415A (en) * 2018-06-25 2018-12-28 平安科技(深圳)有限公司 Interface test method, system, equipment and the storage medium compared based on database
CN109117375A (en) * 2018-08-30 2019-01-01 上海携程金融信息服务有限公司 Database interface test method, system, equipment and storage medium
CN109408379A (en) * 2018-09-30 2019-03-01 福建星瑞格软件有限公司 One kind is based on promotion jmeter interface automatic test data matching method
CN110297761A (en) * 2019-05-23 2019-10-01 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of returned data
CN110489343A (en) * 2019-07-31 2019-11-22 广州微算互联信息技术有限公司 A kind of conversational services test method, system, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101415A (en) * 2018-06-25 2018-12-28 平安科技(深圳)有限公司 Interface test method, system, equipment and the storage medium compared based on database
CN109117375A (en) * 2018-08-30 2019-01-01 上海携程金融信息服务有限公司 Database interface test method, system, equipment and storage medium
CN109408379A (en) * 2018-09-30 2019-03-01 福建星瑞格软件有限公司 One kind is based on promotion jmeter interface automatic test data matching method
CN110297761A (en) * 2019-05-23 2019-10-01 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of returned data
CN110489343A (en) * 2019-07-31 2019-11-22 广州微算互联信息技术有限公司 A kind of conversational services test method, system, device and storage medium

Also Published As

Publication number Publication date
CN111666301A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN107665171B (en) Automatic regression testing method and device
CN110109824B (en) Big data autoregression test method and device, computer equipment and storage medium
CN108427637B (en) Test case recommendation method, electronic device and readable storage medium
CN110096430B (en) Third party SDK access test method, device, terminal and storage medium
CN111615688A (en) Assertion verification code binding method and device
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
CN116909936B (en) Big data automatic test method, equipment and readable storage medium
CN111666301B (en) Service interface testing method, computer device and storage medium
CN117093484A (en) Test case generation method, device, equipment and storage medium
CN116701215A (en) Interface test case generation method, system, equipment and storage medium
CN110717315A (en) System data batch modification method and device, storage medium and electronic equipment
KR20120111618A (en) Apparatus and method for testing plc command
CN114020642A (en) Big data task testing method and device, storage medium and electronic equipment
CN114971926A (en) Premium calculation model test method, system, device and storage medium
US11520831B2 (en) Accuracy metric for regular expression
CN112633894A (en) Method, device, equipment and computer storage medium for pressure testing of repayment capacity
CN112685309A (en) Unit testing method, unit testing device, storage medium and computer equipment
CN112631929A (en) Test case generation method and device, storage medium and electronic equipment
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
US20210019252A1 (en) Information processing apparatus, test management method, and non-temporary computer readable medium storing program
CN112650683B (en) Program testing method, device and storage medium
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
CN114817067B (en) Automatic mock testing method and device
CN110727582B (en) Program testing method and device, computer equipment and storage medium
CN114528309B (en) Data checking method and device based on database fine comparison

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240313

Address after: Room 290, First Floor, No. 2429 Xingang East Road, Haizhu District, Guangzhou City, Guangdong Province, 510220

Patentee after: Guangzhou Duling Technology Co.,Ltd.

Country or region after: China

Address before: 510220 B301, building 2, Rongxi center, No. 713, Jiangnan Avenue South, Haizhu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU MICRO-COMPUTING INFORMATION TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200915

Assignee: GUANGZHOU MICRO-COMPUTING INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: Guangzhou Duling Technology Co.,Ltd.

Contract record no.: X2024990000438

Denomination of invention: Business interface testing methods, computer devices, and storage media

Granted publication date: 20230815

License type: Common License

Record date: 20240903

EE01 Entry into force of recordation of patent licensing contract