CN109857632B - Test method, test device, terminal equipment and readable storage medium - Google Patents

Test method, test device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN109857632B
CN109857632B CN201811489920.9A CN201811489920A CN109857632B CN 109857632 B CN109857632 B CN 109857632B CN 201811489920 A CN201811489920 A CN 201811489920A CN 109857632 B CN109857632 B CN 109857632B
Authority
CN
China
Prior art keywords
data
data information
list
test
information
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
CN201811489920.9A
Other languages
Chinese (zh)
Other versions
CN109857632A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201811489920.9A priority Critical patent/CN109857632B/en
Publication of CN109857632A publication Critical patent/CN109857632A/en
Application granted granted Critical
Publication of CN109857632B publication Critical patent/CN109857632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

According to the testing method, the testing device, the terminal equipment and the readable storage medium, a plurality of pieces of data are read from a testing database by utilizing a first testing case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.

Description

Test method, test device, terminal equipment and readable storage medium
Technical Field
The present invention relates to data analysis technologies, and in particular, to a test method, an apparatus, a terminal device, and a readable storage medium.
Background
With the development of computer technology, application software is more and more widely applied to daily life of people. Generally, to ensure the proper operation of the application software, a series of tests are performed on the application software before it is released.
In the prior art, the test of the application software is implemented by using a test case. The test case reads a plurality of pieces of data from the test database to form a data list, and the data list is input into the application software to be tested, so that the application software to be tested processes the data list according to the test case to obtain a test result.
However, in the data list formed by reading the test database by the test case, a large amount of repeated information exists in the data information, and the repeated data information causes the data list to occupy a large amount of storage resources, which is not beneficial to the maintenance and management of the test case on the data list in the test process, and the utilization rate of the data information is very low.
Disclosure of Invention
The invention provides a test method, a test device, a terminal device and a readable storage medium, aiming at the problems that in the existing test method, due to the fact that a large amount of repeated information is stored in a test data list, the utilization rate of data information of the data list by a test case in the test process is low, and the maintenance and management of the data list are inconvenient.
In one aspect, the present invention provides a testing method, including:
reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories;
dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information;
grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
and testing the application software to be tested according to the second test case and the data list.
In an optional implementation manner, before reading the plurality of pieces of data from the test database by using the first test case, the method includes:
determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested;
the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list.
In an optional implementation manner, the performing hierarchical processing on the data information in the non-target category of each data includes:
counting the occurrence frequency of each data information aiming at each data information of the same non-target category;
and determining the data information of the global level under the category and the data information of the non-global level under the category according to the occurrence frequency of each data information.
In an optional implementation manner, the inputting the data information into the data sub-list corresponding to each piece of data according to the level of the data information of the piece of data includes:
and for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, inputting the data information into the corresponding data sub-list of the piece of data until the data information of the non-global level of all the data is input into the data sub-list.
In one optional implementation, the data list further stores global-level data information in each non-target category;
correspondingly, the testing the application software to be tested according to the second test case and the data list comprises:
and reading the stored data information of each data from the data sublist and reading the global-level data information under each non-target category from the data class table by adopting the second test case.
In another aspect, the present invention provides a test apparatus, comprising:
the reading module is used for reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories;
the processing module is used for dividing each data into data groups of different groups according to the data information under each data target category and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
and the testing module is used for testing the application software to be tested according to the second test case and the data list.
In one optional implementation, the method further includes a test case calling module;
the test case calling module is used for determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested before reading a plurality of pieces of data from a test database by using a first test case; the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list.
In one optional implementation, the processing module is specifically configured to count the occurrence frequency of each piece of data information for each piece of data information of the same non-target category; determining data information of a global level and data information of a non-global level under the category according to the occurrence frequency of each data information;
the processing module is specifically further configured to: and for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, inputting the data information into the corresponding data sub-list of the piece of data until the data information of the non-global level of all the data is input into the data sub-list.
In one optional implementation, the data list further stores global-level data information in each non-target category;
the test module is specifically configured to: and reading the stored data information of each data from the data sublist and reading the global-level data information under each non-target category from the data class table by adopting the second test case.
In another aspect, the present invention provides a terminal device, including: a memory, a processor coupled to the memory, and a computer program stored on the memory and executable on the processor,
the processor, when executing the computer program, performs the method of any of the preceding claims.
In a final aspect, the invention provides a readable storage medium comprising a program which, when run on a terminal device, causes the terminal device to perform the method as described in any of the preceding.
According to the testing method, the testing device, the terminal equipment and the readable storage medium, a plurality of pieces of data are read from a testing database by utilizing a first testing case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.
Drawings
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
FIG. 1 is a schematic diagram of a network architecture on which the present invention is based;
fig. 2 is a schematic flow chart of a testing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a testing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a terminal device according to a fourth embodiment of the present invention.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
With the development of computer technology, application software is more and more widely applied to daily life of people. Generally, to ensure the proper operation of the application software, a series of tests are performed on the application software before it is released.
In the prior art, the test of the application software is implemented by using a test case. The test case reads a plurality of pieces of data from the test database to form a data list, and the data list is input into the application software to be tested, so that the application software to be tested processes the data list according to the test case to obtain a test result.
However, in the data list formed by reading the test database by the test case, a large amount of repeated information exists in the data information, and the repeated data information causes the data list to occupy a large amount of storage resources, which is not beneficial to the maintenance and management of the test case on the data list in the test process, and the utilization rate of the data information is very low.
The invention provides a test method, a test device, a terminal device and a readable storage medium, aiming at the problems that in the existing test method, due to the fact that a large amount of repeated information is stored in a test data list, the utilization rate of data information of the data list by a test case in the test process is low, and the maintenance and management of the data list are inconvenient.
It should be noted that the test method, the test device, the terminal device and the readable storage medium provided by the present application may be applied in a scenario of testing various application software.
Fig. 1 is a schematic diagram of a network architecture based on the present invention, and as shown in fig. 1, the network architecture based on the present invention at least includes: a terminal device 1, a testing apparatus 2 mounted on the terminal device 1, and a data server 3. Wherein, the testing device 2 is written by C/C + +, Java, Shell or Python; the terminal device 1 may be a desktop computer, a tablet computer, or the like. The data server 3 may be a cloud server or a server cluster, and a large amount of data is stored therein.
Fig. 2 is a schematic flowchart of a testing method according to an embodiment of the present invention.
As shown in fig. 2, the test method includes:
step 101, reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories.
102, dividing each data into data groups of different groups according to data information under each data target category, and constructing a corresponding data sub-list for each data group; the data under the target category in the same data group have the same data information.
Step 103, carrying out hierarchical processing on the data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the level of the data information of each piece of data, so as to obtain a data list comprising a plurality of data sub-lists.
And 104, testing the application software to be tested according to the second test case and the data list.
It should be noted that the execution subject of the testing method provided by the present invention may be specifically the testing apparatus 2 shown in fig. 1. The test apparatus 2 is mounted on the terminal device 1, and the terminal device 1 can be connected to the data server 3 for communication and data exchange.
The invention provides a test method, a test device, a terminal device and a readable storage medium, and aims to solve the problems that in the existing test method, due to the fact that a large amount of repeated information is stored in a test data list, the utilization rate of data information of the data list to the data list is low in the test process of a test case, and the maintenance and management of the data list are inconvenient.
In the present embodiment, the data server includes a test database in which a large amount of data available for testing is stored in advance. For example, if the personnel information management function of an application needs to be tested, each piece of data for testing may include three types of data information, namely "personnel name", "personnel position", and "personnel nationality".
During testing, a plurality of pieces of data can be read from a test database by using a first test case, the data are divided into data groups of different groups according to data information under target types of the data, and a corresponding data sub-list is constructed for each data group, so that the data under the target types in the same data group have the same data information. Specifically, taking the three types of data information of "person name", "position of person", and "nationality of person" in each piece of data as an example, considering that the information repetition rate of the type of person name is low and the information repetition rate of the type of nationality of person is high, the type of position of person can be regarded as the target type. For each data, a plurality of data information such as "research and development engineers", "legal experts" and the like are provided under the target category of "staff positions", and for data with the same data information, the data can be divided into the same group to form a data group, that is, the data with the staff positions both being the research and development engineers are divided into the same data group, and the data with the staff positions both being the legal experts are divided into the same data group. And constructing a corresponding data sub-list for each data group, so that the data information of each data can be input into the data sub-list corresponding to the data group to which the data belongs subsequently, and the subsequent management of the data list consisting of a plurality of data sub-lists is facilitated.
Then, the test device performs hierarchical processing on the data information of each piece of data under the non-target category, and inputs the data information into a data sub-list corresponding to each piece of data according to the level of the data information of each piece of data, so as to obtain a data list including a plurality of data sub-lists. Specifically, taking the data information of three categories of "person name", "person position", and "person nationality" in each piece of data as an example, the category "person position" is determined as the target category, and the corresponding "person name" and "person nationality" will be regarded as the non-target category. The test device performs hierarchical processing on each data information in each non-target category to obtain the level of each data information in the category, wherein the level can be understood as the information repetition rate of a certain data information in the corresponding non-target category. Then, the data information is input into a corresponding data sub-list by using the level of each data information, and finally, a data list comprising a plurality of data sub-lists is obtained.
And finally, testing the application software to be tested by using the second test case and the data list to obtain a test result.
In other alternative embodiments, the test method comprises: determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested; the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list. Specifically, for each test scenario, test cases with different functions can be called from a preset test case library, and the execution sequence of each test case is determined, so as to test the application software to be tested. In this embodiment, the invoked test cases at least include a first test case for reading a plurality of pieces of data from a test database and a second test case for testing the application software to be tested by using the data list.
In the test method provided by the first embodiment of the invention, a plurality of pieces of data are read from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.
On the basis of the first embodiment, fig. 3 is a schematic flow chart of a testing method provided in the second embodiment of the present invention.
As shown in fig. 3, the test method includes:
step 201, reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories.
Step 202, dividing each data into data groups of different groups according to data information under each data target category, and constructing a corresponding data sub-list for each data group; the data under the target category in the same data group have the same data information.
Step 203, counting the occurrence frequency of each data information for the same non-target category, and determining the data information of the global level and the data information of the non-global level according to the occurrence frequency of each data information.
Step 204, aiming at the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, the data information is input into the data sub-list corresponding to the piece of data until the data information of the non-global level of all the data is input into the data sub-list, so as to obtain the data list comprising a plurality of data sub-lists, wherein the data list also stores the data information of the global level under each non-target category.
And step 205, reading the stored data information of each data from the data sublist and reading the global-level data information under each non-target category from the data class table by using the second test case.
Similar to the embodiment, the execution subject of the testing method provided by the invention may be specifically the testing device 2 shown in fig. 1. The test apparatus 2 is mounted on the terminal device 1, and the terminal device 1 can be connected to the data server 3 for communication and data exchange.
The invention provides a test method, a test device, a terminal device and a readable storage medium, and aims to solve the problems that in the existing test method, due to the fact that a large amount of repeated information is stored in a test data list, the utilization rate of data information of the data list to the data list is low in the test process of a test case, and the maintenance and management of the data list are inconvenient.
In the present embodiment, the data server includes a test database in which a large amount of data available for testing is stored in advance. For example, if the personnel information management function of an application needs to be tested, each piece of data for testing may include three types of data information, namely "personnel name", "personnel position", and "personnel nationality".
During testing, a plurality of pieces of data can be read from a test database by using a first test case, the data are divided into data groups of different groups according to data information under target types of the data, and a corresponding data sub-list is constructed for each data group, so that the data under the target types in the same data group have the same data information. Specifically, taking the three types of data information of "person name", "position of person", and "nationality of person" in each piece of data as an example, considering that the information repetition rate of the type of person name is low and the information repetition rate of the type of nationality of person is high, the type of position of person can be regarded as the target type. For each data, a plurality of data information such as "research and development engineers", "legal experts" and the like are provided under the target category of "staff positions", and for data with the same data information, the data can be divided into the same group to form a data group, that is, the data with the staff positions both being the research and development engineers are divided into the same data group, and the data with the staff positions both being the legal experts are divided into the same data group. And constructing a corresponding data sub-list for each data group, so that the data information of each data can be input into the data sub-list corresponding to the data group to which the data belongs subsequently, and the subsequent management of the data list consisting of a plurality of data sub-lists is facilitated.
Subsequently, the test apparatus performs hierarchical processing on the data information of each piece of data under the non-target category, and inputs the data information into a data sub-list corresponding to each piece of data according to the level of the data information of each piece of data, to obtain a data list including a plurality of data sub-lists, which is different from the first embodiment in that the following method is specifically adopted in this step:
counting the occurrence frequency of each data information aiming at each data information of the same non-target category, and determining the data information of the global level under the category and the data information of the non-global level under the category according to the occurrence frequency of each data information; and for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, inputting the data information to the corresponding data sub-list of the piece of data until the data information of the non-global level of all the data is input to the data sub-list, so as to obtain the data list comprising a plurality of data sub-lists. And the data list also stores the global level data information under each non-target category.
Still, three types of data information, namely "person name", "person position", and "country of person" in each piece of data are taken as examples: the category "staff position" is determined as the target category, and the corresponding "staff name" and "staff nationality" will be the non-target categories. The test apparatus performs classification processing on data information of two non-target categories, namely "personal name" and "nationality of person". For example, in the non-target category of "nationality of people", the number of times the data information is "china" is 999 times and the number of times the data information is "usa" is 1 time, and in this case, the data information of "china" can be used as the data information of the global level in the non-target category of "nationality of people", and the data information of "usa" can be used as the data information of the non-global level in the non-target category of "nationality of people".
Subsequently, since each data sub-list has been previously constructed, it is input into the corresponding data sub-list according to the level of data information. For example, when the data information in the non-target category of "nationality of people" in the data to be input is the data information of non-global level, i.e., "usa", the data information of "usa" may be directly input to the corresponding position of the corresponding data sub-list; when the data information in the non-target category of "nationality of people" in the data to be input is data information of the global level, i.e., "china", the step of inputting the next data information may be executed, i.e., the data information of "china" is not input into the data sublist. In addition, in order to ensure the integrity of the data information, the data information of the global level under each non-target category is uniformly stored in the data list. In this way, in the constructed data list, the data information of the global level with a large number of occurrences, such as "china", is only stored in the data list, not in the sub-data list, so as to reduce the number of all data information in the data class table, that is, in this way, in the case where the number of occurrences of "china" is 999 times and the number of occurrences of "usa" is 1 time, the number of data information stored in the original data list is 1000, but the number of data information stored in the present embodiment is 2.
The above process is repeated until the data information of the non-global level of all the data is input into the data sub-list, so as to obtain the data list comprising a plurality of data sub-lists.
And finally, testing the application software to be tested by using the second test case and the data list to obtain a test result. Specifically, with the second test case, the stored data information of each data is read from the data sublist and the global level data information under each non-target category is read from the data class table. Further, when the second test case reads data information from the data list, for a certain piece of data, the data information may be read from the data sub-list first, and then, whether the data information of the piece of data is completely read is judged, and if the data information of the piece of data is completely read, the next piece of data is read; if the data is not complete, the data information of the global level needs to be read from the position where the data information of the global level is stored in the data list so as to form the complete data information of the data.
In other alternative embodiments, the test method comprises: determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested; the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list. Specifically, for each test scenario, test cases with different functions can be called from a preset test case library, and the execution sequence of each test case is determined, so as to test the application software to be tested. In this embodiment, the invoked test cases at least include a first test case for reading a plurality of pieces of data from a test database and a second test case for testing the application software to be tested by using the data list.
In the test method provided by the second embodiment of the invention, a plurality of pieces of data are read from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.
Fig. 4 is a schematic structural diagram of a testing apparatus according to a third embodiment of the present invention, as shown in fig. 4, the testing apparatus includes:
the test system comprises a reading module 10, a test data base and a test data processing module, wherein the reading module is used for reading a plurality of pieces of data from the test data base by using a first test case, and each piece of data comprises data information under a plurality of categories;
the processing module 20 is configured to divide each data into data groups of different groups according to data information under each data object category, and construct a corresponding data sub-list for each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
and the testing module 30 is configured to test the application software to be tested according to the second test case and the data list.
In one optional implementation, the method further includes a test case calling module;
the test case calling module is used for determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested before reading a plurality of pieces of data from a test database by using a first test case; the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list.
In an optional implementation manner, the processing module 20 is specifically configured to count the occurrence frequency of each data information with respect to each data information of the same non-target category; determining data information of a global level and data information of a non-global level under the category according to the occurrence frequency of each data information;
the processing module 20 is further specifically configured to: and for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, inputting the data information into the corresponding data sub-list of the piece of data until the data information of the non-global level of all the data is input into the data sub-list.
In one optional implementation, the data list further stores global-level data information in each non-target category;
the test module 30 is specifically configured to: and reading the stored data information of each data from the data sublist and reading the global-level data information under each non-target category from the data class table by adopting the second test case.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the system described above may refer to the corresponding process in the foregoing method embodiment, and are not described herein again.
The testing device reads a plurality of pieces of data from a testing database by utilizing a first testing case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.
In other implementation manners, fig. 5 is a schematic diagram of a hardware structure of a terminal device according to a fourth embodiment of the present invention. As shown in fig. 5, the terminal device may specifically include:
a processor 42;
a memory 41 for storing processor-executable instructions;
wherein the processor 42 is configured to:
reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories;
dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information;
grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
and testing the application software to be tested according to the second test case and the data list.
The memory 41 may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. And processor 42 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital signal processor architectures (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessor architectures or other electronic components.
The above-mentioned instructions can be written by using languages such as C/C + +, Java, Shell, Python, etc., which is not limited in this embodiment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process and corresponding beneficial effects of the system described above may refer to the corresponding process in the foregoing method embodiment, and are not described herein again.
The terminal equipment reads a plurality of pieces of data from a test database by utilizing a first test case, wherein each piece of data comprises data information under a plurality of categories; dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists; and testing the application software to be tested according to the second test case and the data list, so that the quantity of data information stored in the data list during testing is greatly reduced, the maintenance and management of the data list are facilitated, and the utilization rate of the data information in the data list is effectively improved.
The invention provides a computer-readable storage medium comprising instructions which, when executed on the computer, enable the computer to perform the method of any of the first or second embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. A method of testing, comprising:
reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories;
dividing each data into data groups of different groups according to data information under each data target class, and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information;
grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
testing the application software to be tested according to the second test case and the data list;
the step of performing hierarchical processing on the data information of each piece of data under the non-target category, and inputting the data information into a data sublist corresponding to each piece of data according to the level of the data information of each piece of data, includes:
counting the occurrence frequency of each data information aiming at each data information of the same non-target category;
determining data information of a global level and data information of a non-global level under the category according to the occurrence frequency of each data information;
for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, the data information is input into a data sub-list corresponding to the piece of data until the data information of the non-global level of all the data is input into the data sub-list;
and the data list also stores the global level data information under each non-target category.
2. The method according to claim 1, wherein prior to reading the plurality of pieces of data from the test database using the first test case, the method comprises:
determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested;
the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list.
3. The test method according to claim 1,
the testing the application software to be tested according to the second test case and the data list comprises the following steps:
and reading the stored data information of each data from the data sublist and reading the global-level data information under each non-target category from the data list by adopting the second test case.
4. A test apparatus, comprising:
the reading module is used for reading a plurality of pieces of data from a test database by using a first test case, wherein each piece of data comprises data information under a plurality of categories;
the processing module is used for dividing each data into data groups of different groups according to the data information under each data target category and constructing a corresponding data sub-list aiming at each data group; the data under the target category in the same data group have the same data information; grading data information of each data under the non-target category, and inputting the data information into a data sub-list corresponding to each piece of data according to the grade of the data information of each piece of data to obtain a data list comprising a plurality of data sub-lists;
the test module is used for testing the application software to be tested according to the second test case and the data list;
the processing module is specifically used for counting the occurrence frequency of each data information aiming at each data information of the same non-target type; determining data information of a global level and data information of a non-global level under the category according to the occurrence frequency of each data information;
the processing module is specifically further configured to: for the data information of each piece of data, under the condition that the data information is determined to be the data information of the non-global level, the data information is input into a data sub-list corresponding to the piece of data until the data information of the non-global level of all the data is input into the data sub-list; and the data list also stores the global level data information under each non-target category.
5. The testing device of claim 4, further comprising a test case calling module;
the test case calling module is used for determining a plurality of test cases for testing the application software to be tested and an execution sequence among the test cases according to a test scene of the application software to be tested before reading a plurality of pieces of data from a test database by using a first test case; the test cases comprise a first test case used for reading a plurality of pieces of data from a test database and a second test case used for testing the application software to be tested by utilizing the data list.
6. A terminal device, comprising: a memory, a processor coupled to the memory, and a computer program stored on the memory and executable on the processor;
the processor, when executing the computer program, performs the method of any of claims 1-3.
7. A readable storage medium, characterized by comprising a program which, when run on a terminal device, causes the terminal device to perform the method of any one of claims 1-3.
CN201811489920.9A 2018-12-06 2018-12-06 Test method, test device, terminal equipment and readable storage medium Active CN109857632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811489920.9A CN109857632B (en) 2018-12-06 2018-12-06 Test method, test device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811489920.9A CN109857632B (en) 2018-12-06 2018-12-06 Test method, test device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109857632A CN109857632A (en) 2019-06-07
CN109857632B true CN109857632B (en) 2022-04-15

Family

ID=66890813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811489920.9A Active CN109857632B (en) 2018-12-06 2018-12-06 Test method, test device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109857632B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015592B2 (en) * 2008-03-14 2015-04-21 Verizon Patent And Licensing Inc. Method, apparatus, and computer program for providing web service testing
CN106959920A (en) * 2016-01-12 2017-07-18 维布络有限公司 The method and system optimized to the protos test suite PROTOS comprising multiple test cases
CN106980573A (en) * 2016-10-26 2017-07-25 阿里巴巴集团控股有限公司 A kind of method for building test case request object, apparatus and system
CN107943694A (en) * 2017-11-21 2018-04-20 中国农业银行股份有限公司 A kind of test data generating method and device
CN107977317A (en) * 2017-12-22 2018-05-01 上海庆科信息技术有限公司 A kind of test method of data network, system and relevant apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183105B2 (en) * 2013-02-04 2015-11-10 Alcatel Lucent Systems and methods for dynamic scan scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015592B2 (en) * 2008-03-14 2015-04-21 Verizon Patent And Licensing Inc. Method, apparatus, and computer program for providing web service testing
CN106959920A (en) * 2016-01-12 2017-07-18 维布络有限公司 The method and system optimized to the protos test suite PROTOS comprising multiple test cases
CN106980573A (en) * 2016-10-26 2017-07-25 阿里巴巴集团控股有限公司 A kind of method for building test case request object, apparatus and system
CN107943694A (en) * 2017-11-21 2018-04-20 中国农业银行股份有限公司 A kind of test data generating method and device
CN107977317A (en) * 2017-12-22 2018-05-01 上海庆科信息技术有限公司 A kind of test method of data network, system and relevant apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于页面聚类的Web应用测试方法研究;尤枫 等;《计算机工程与应用》;20180315(第5期);全文 *

Also Published As

Publication number Publication date
CN109857632A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN108845936B (en) AB testing method and system based on massive users
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN112084179B (en) Data processing method, device, equipment and storage medium
CN111813666A (en) Memory leak positioning method, device, medium and electronic equipment
CN112181430A (en) Code change statistical method and device, electronic equipment and storage medium
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN110795331A (en) Software testing method and device
CN111221690B (en) Model determination method and device for integrated circuit design and terminal
CN109857632B (en) Test method, test device, terminal equipment and readable storage medium
CN110544166A (en) Sample generation method, device and storage medium
CN105245380B (en) Message propagation mode identification method and device
CN111859985B (en) AI customer service model test method and device, electronic equipment and storage medium
CN110852077B (en) Method, device, medium and electronic equipment for dynamically adjusting Word2Vec model dictionary
CN110032624B (en) Sample screening method and device
CN113157671A (en) Data monitoring method and device
CN112860538A (en) Method and device for performing interface regression test based on online log
CN113468401B (en) Office data checking and making method, device, computer equipment and storage medium
CN114979100B (en) Cloud resource inspection method and related device
CN117632712A (en) Application database use detection method and device
CN116909926A (en) Interface coverage rate statistical method and device, electronic equipment and readable storage medium
CN116010814A (en) Data set manufacturing method, device, equipment and storage medium
CN117271853A (en) Complex data processing method and device, electronic equipment and storage medium
CN115269353A (en) Energy consumption pressure measurement method and device of server, electronic equipment and storage medium
CN112416738A (en) Image testing method, device, computer device and readable 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
GR01 Patent grant
GR01 Patent grant