CN109857632A - Test method, device, terminal device and readable storage medium storing program for executing - Google Patents
Test method, device, terminal device and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN109857632A CN109857632A CN201811489920.9A CN201811489920A CN109857632A CN 109857632 A CN109857632 A CN 109857632A CN 201811489920 A CN201811489920 A CN 201811489920A CN 109857632 A CN109857632 A CN 109857632A
- Authority
- CN
- China
- Prior art keywords
- data
- test
- data information
- information
- sublist
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Test method, device, terminal device and readable storage medium storing program for executing provided by the invention, by reading a plurality of data from test database using the first test case, wherein every data includes the data information under multiple classifications;According to the data information under each datum target classification, each data are divided into different groups of other data groups, and construct corresponding data sublist for each data group;Classification processing, and the rank of the data information according to every data are carried out to the data information under the non-targeted classification of each data, data information is input in data sublist corresponding with the data, acquisition includes the data list of multiple data sublist;Application software to be tested is tested according to the second test case and data list, so that the quantity of the data information stored in data list in test substantially reduces, be conducive to the maintenance and management to data list, effectively increase the utilization rate of data information in data list.
Description
Technical field
The present invention relates to data analysis technique more particularly to a kind of test method, device, terminal device and readable storage mediums
Matter.
Background technique
With the development of computer technology, application software is more and more extensive to be applied in daily life.Generally
For, in order to guarantee the normal operation of application software, before issuing application software, a series of test can be carried out to it.
In the prior art, the test of application software is realized using test case.Test case can be from test number
According to a plurality of data are read in library to form data list, which is input in application software to be tested, so as to
The application software of test is handled data list according to test case, obtains test result.
But in the data list that test case is formed by read test database, there is a large amount of for data information
Duplicate message, these duplicate data informations make data list occupy a large amount of storage resource, are unfavorable for test case
During the test to the maintenance and management of data list, the utilization rate of data information is very low.
Summary of the invention
For it is above-mentioned refer in existing test method, due to being stored with a large amount of weight in the data list of test
Complex information, caused by test case it is lower to data information utilization rate of the data list to data list during the test,
The problem of maintenance and management for the problem of being not easy to the maintenance and management to data list, the present invention provides a kind of test sides
Method, device, terminal device and readable storage medium storing program for executing.
On the one hand, the present invention provides a kind of test methods, comprising:
A plurality of data are read from test database using the first test case, wherein every data include multiple classifications
Under data information;
According to the data information under each datum target classification, each data are divided into different groups of other data groups, and be directed to
Each data group constructs corresponding data sublist;Wherein, the data in same data group under target category have it is identical
Data information;
Classification processing is carried out to the data information under the non-targeted classification of each data, and according to the data information of every data
Rank, data information is input in data sublist corresponding with the data, acquisition includes multiple data sublist
Data list;
Application software to be tested is tested according to the second test case and the data list.
It is described to read a plurality of number from test database using the first test case in a kind of wherein optional embodiment
According to before, comprising:
According to the test scene of application software to be tested, determine for testing the several of the application software to be tested
Sequence is executed between test case and each test case;
Wherein, several test cases include for read from test database the first test case of a plurality of data with
And the second test case for being tested using the data list application software to be tested.
In a kind of wherein optional embodiment, the data information under the non-targeted classification to each data divides
Grade processing, comprising:
It is directed to the other each data information of same non-target class, counts the number that each data information occurs;
The number occurred according to each data information determines the data information and the category of the global level under the category
Under non-global level data information.
In a kind of wherein optional embodiment, the rank of the data information according to every data believes data
Breath is input in data sublist corresponding with the data, comprising:
It is directed to the data information of each data, is determining that the data information is the feelings of the data information of non-global level
Under condition, it is input to the corresponding data sublist of the data, until the data information of the non-global level of total data is equal
It is input to data sublist.
The overall situation being also stored in a kind of wherein optional embodiment, in the data list under each non-targeted classification
The data information of rank;
Correspondingly, described carry out test bag to application software to be tested according to the second test case and the data list
It includes:
Using second test case, the data information of each data of storage is read from data sublist and from data class
The data information of the global level under each non-targeted classification is read in table.
On the other hand, the present invention provides a kind of test devices, comprising:
Read module, for reading a plurality of data from test database using the first test case, wherein every number
According to including the data information under multiple classifications;
Processing module, for according to the data information under each datum target classification, by each data be divided into different groups it is other
Data group, and corresponding data sublist is constructed for each data group;Wherein, the data in same data group under target category
Have identical data information;Classification processing is carried out to the data information under the non-targeted classification of each data, and according to every
Data information is input in data sublist corresponding with the data, is included by the rank of the data information of data
The data list of multiple data sublist;
Test module, for being surveyed according to the second test case and the data list to application software to be tested
Examination.
In a kind of wherein optional embodiment, further include, test case calling module;
The test case calling module is used before reading a plurality of data from test database using the first test case
In the test scene according to application software to be tested, determine that several tests for testing the application software to be tested are used
Sequence is executed between example and each test case;Wherein, several test cases include for reading from test database
First test case of a plurality of data and for being tested using the data list application software to be tested
Two test cases.
In a kind of wherein optional embodiment, the processing module is other specifically for being directed to same non-target class
Each data information counts the number that each data information occurs;The number occurred according to each data information is determined in the category
Under global level data information and the non-global level under the category data information;
The processing module is specifically also used to: being directed to the data information of each data, is being determined that the data information is
In the case where the data information of non-global level, it is input to the corresponding data sublist of the data, until total data
The data information of non-global level be both input into data sublist.
The overall situation being also stored in a kind of wherein optional embodiment, in the data list under each non-targeted classification
The data information of rank;
The test module, is specifically used for: using second test case, each number of storage is read from data sublist
According to data information and from the data information for reading the global level under each non-targeted classification in data class table.
Another aspect, the present invention provides a kind of terminal devices, comprising: memory, the processing connecting with the memory
Device, and it is stored in the computer program that can be run on the memory and on the processor, which is characterized in that
The processor executes such as preceding described in any item methods when running the computer program.
Last aspect, the present invention provides a kind of readable storage medium storing program for executing, including program, when it runs on the terminal device
When, so that terminal device executes such as preceding described in any item methods.
Test method, device, terminal device and readable storage medium storing program for executing provided by the invention, by utilizing the first test case
A plurality of data are read from test database, wherein every data include the data information under multiple classifications;According to each data
Each data are divided into different groups of other data groups by the data information under target category, and corresponding for the building of each data group
Data sublist;Wherein, the data in same data group under target category has identical data information;To each data
Data information under non-targeted classification carries out classification processing, and the rank of the data information according to every data, by data information
It is input in data sublist corresponding with the data, acquisition includes the data list of multiple data sublist;According to
Application software to be tested is tested in two test cases and the data list, so that in test in data list
The quantity of the data information of storage substantially reduces, and is conducive to effectively increase data list to the maintenance and management of data list
The utilization rate of middle data information.
Detailed description of the invention
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings
It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments
Those skilled in the art illustrate the concept of the disclosure.
Fig. 1 be the present invention is based on network architecture schematic diagram;
Fig. 2 is a kind of flow diagram for test method that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow diagram of test method provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of structural schematic diagram for test device that the embodiment of the present invention three provides;
Fig. 5 is a kind of hardware structural diagram for terminal device that the embodiment of the present invention four provides.
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
With the development of computer technology, application software is more and more extensive to be applied in daily life.Generally
For, in order to guarantee the normal operation of application software, before issuing application software, a series of test can be carried out to it.
In the prior art, the test of application software is realized using test case.Test case can be from test number
According to a plurality of data are read in library to form data list, which is input in application software to be tested, so as to
The application software of test is handled data list according to test case, obtains test result.
But in the data list that test case is formed by read test database, there is a large amount of for data information
Duplicate message, these duplicate data informations make data list occupy a large amount of storage resource, are unfavorable for test case
During the test to the maintenance and management of data list, the utilization rate of data information is very low.
For it is above-mentioned refer in existing test method, due to being stored with a large amount of weight in the data list of test
Complex information, caused by test case it is lower to data information utilization rate of the data list to data list during the test,
The problem of maintenance and management for the problem of being not easy to the maintenance and management to data list, the present invention provides a kind of test sides
Method, device, terminal device and readable storage medium storing program for executing.
It should be noted that the application provides test method, device, terminal device and readable storage medium storing program for executing can be used in pair
In the scene that each middle application software is tested.
Fig. 1 be the present invention is based on network architecture schematic diagram, as shown in Figure 1, the present invention is based on the network architecture at least wrap
It includes: terminal device 1, the test device 2 being mounted on terminal device 1 and data server 3.Wherein, test device 2 uses C/
The language such as C++, Java, Shell or Python are write;Terminal device 1 then can be such as desktop computer, tablet computer.Data clothes
Business device 3 can be then cloud server or server cluster, be stored with a large amount of data.
Fig. 2 is a kind of flow diagram for test method that the embodiment of the present invention one provides.
As shown in Fig. 2, the test method includes:
Step 101 reads a plurality of data from test database using the first test case, wherein every data include
Data information under multiple classifications.
Step 102, according to the data information under each datum target classification, each data are divided into different groups of other data
Group, and corresponding data sublist is constructed for each data group;Wherein, the tool of the data in same data group under target category
Standby identical data information.
Step 103 carries out classification processing to the data information under the non-targeted classification of each data, and according to every data
Data information is input in data sublist corresponding with the data by the rank of data information, and acquisition includes multiple numbers
According to the data list of sublist.
Step 104 tests application software to be tested according to the second test case and the data list.
It should be noted that the executing subject of test method provided by the invention concretely test device shown in FIG. 1
2.The test device 2 is mounted on terminal device 1, terminal device 1 can with data server 3 obtain communication connection and into
Row data interaction.
In order to solve in existing test method, due to being stored with a large amount of duplicate message in the data list of test,
Caused by test case it is lower to data information utilization rate of the data list to data list during the test, be not easy to pair
The problem of maintenance and management of the problem of maintenance and management of data list, the present invention provides a kind of test method, device, ends
End equipment and readable storage medium storing program for executing.
In the present embodiment, include test database in data server, be previously stored in the test database
It largely can be used for the data tested.For example, if desired the personnel information management function of a certain application software is surveyed
Examination, each data of the test prestored may include " personnel's title ", " personnel's position " and " personnel nationality " these three classes
Other data information.
In test, a plurality of data can be read from test database first with the first test case, and according to each number
According to the data information under target category, each data are divided into different groups of other data groups, and construct phase for each data group
The data sublist answered, so that data in same data group under target category has identical data information.Specifically,
Still it is with the data information of " personnel's title " in every data above-mentioned, " personnel's position " and " personnel nationality " these three classifications
Example, it is contemplated that this kind of other information repetitive rates of personnel title are very low and this kind of other information repetitive rates of personnel nationality very
Height, can be using personnel's position this classification as target category.For with for each data, in " personnel's position " this target category
Under will be provided with a variety of data informations, such as " research and development engineer ", " legal affairs specialist ", the data for being directed to identical data information are come
It says, these data can be divided to same group and form data group, i.e., be to research and develop the data division of engineer by personnel's position
To same data group, the data that personnel's position is legal affairs specialist are divided to same data group.It is constructed for each data group
The data information of each data can be input to data corresponding with the affiliated data group of data for subsequent by corresponding data sublist
In sublist, the also management so as to subsequent to the data list being made of multiple data sublist.
Then, test device carries out classification processing to the data information under the non-targeted classification of each data, and according to every
Data information is input in data sublist corresponding with the data, is included by the rank of the data information of data
The data list of multiple data sublist.Specifically, still with " personnel's title " in every data above-mentioned, " personnel's position " and
For the data information of " personnel nationality " these three classifications, " personnel's position " this classification is targeted classification, accordingly
" personnel's title " and " personnel nationality " will be used as non-targeted classification.Test device will be directed to and each number in each non-targeted classification
It is believed that breath carries out classification processing, to obtain rank of each data information under the category, which can be regarded as a certain data
Information repetitive rate of the information under its corresponding non-targeted classification.Then, it using the rank of each data information, is input to
In corresponding data sublist, final acquisition includes the data list of multiple data sublist.
Finally, being tested using the second test case and the data list application software to be tested, to obtain
Test result.
In other optional embodiments, the test method include: according to the test scene of application software to be tested,
It determines and executes sequence between several test cases and each test case for testing the application software to be tested;Its
In, several test cases include for reading the first test case of a plurality of data from test database and for utilizing
The second test case that application software to be tested is tested in the data list.Specifically, for each test
Scene, can call the test case of different function from preset test case library, and determine each test case executes sequence,
To test application software to be tested.In the present embodiment, the test case of calling is included at least for from test
Database read a plurality of data the first test case and for using the data list to application software to be tested into
Second test case of row test.
The test method that the embodiment of the present invention one provides, it is a plurality of by being read using the first test case from test database
Data, wherein every data include the data information under multiple classifications;According to the data information under each datum target classification,
Each data are divided into different groups of other data groups, and construct corresponding data sublist for each data group;Wherein, same
Data in data group under target category have identical data information;To the data information under the non-targeted classification of each data
Classification processing, and the rank of the data information according to every data are carried out, data information is input to corresponding with the data
In data sublist, acquisition includes the data list of multiple data sublist;It is arranged according to the second test case and the data
Table tests application software to be tested, so that the quantity of the data information stored in data list in test is big
It is big to reduce, be conducive to the maintenance and management to data list, effectively increase the utilization rate of data information in data list.
On the basis of example 1, Fig. 3 is a kind of flow diagram of test method provided by Embodiment 2 of the present invention.
As shown in figure 3, the test method includes:
Step 201 reads a plurality of data from test database using the first test case, wherein every data include
Data information under multiple classifications.
Step 202, according to the data information under each datum target classification, each data are divided into different groups of other data
Group, and corresponding data sublist is constructed for each data group;Wherein, the tool of the data in same data group under target category
Standby identical data information.
Step 203 is directed to the other each data information of same non-target class, counts the number that each data information occurs,
And it is non-under the data information of the global level under the category and the category according to the number determination that each data information occurs
The data information of global level.
Step 204, the data information for being directed to each data are determining that the data information is the data of non-global level
In the case where information, it is input to the corresponding data sublist of the data, until the number of the non-global level of total data
It is believed that breath is both input into data sublist, to obtain the data list for including multiple data sublist, wherein the data
The data information of the global level under each non-targeted classification is also stored in list.
Step 205, using second test case, from data sublist read each data of storage data information and
From the data information for reading the global level under each non-targeted classification in data class table.
Similarly with embodiment one, the executing subject of test method provided by the invention concretely survey shown in FIG. 1
Trial assembly sets 2.The test device 2 is mounted on terminal device 1, and terminal device 1 can obtain communication connection with data server 3
And carry out data interaction.
In order to solve in existing test method, due to being stored with a large amount of duplicate message in the data list of test,
Caused by test case it is lower to data information utilization rate of the data list to data list during the test, be not easy to pair
The problem of maintenance and management of the problem of maintenance and management of data list, the present invention provides a kind of test method, device, ends
End equipment and readable storage medium storing program for executing.
In the present embodiment, include test database in data server, be previously stored in the test database
It largely can be used for the data tested.For example, if desired the personnel information management function of a certain application software is surveyed
Examination, each data of the test prestored may include " personnel's title ", " personnel's position " and " personnel nationality " these three classes
Other data information.
In test, a plurality of data can be read from test database first with the first test case, and according to each number
According to the data information under target category, each data are divided into different groups of other data groups, and construct phase for each data group
The data sublist answered, so that data in same data group under target category has identical data information.Specifically,
Still it is with the data information of " personnel's title " in every data above-mentioned, " personnel's position " and " personnel nationality " these three classifications
Example, it is contemplated that this kind of other information repetitive rates of personnel title are very low and this kind of other information repetitive rates of personnel nationality very
Height, can be using personnel's position this classification as target category.For with for each data, in " personnel's position " this target category
Under will be provided with a variety of data informations, such as " research and development engineer ", " legal affairs specialist ", the data for being directed to identical data information are come
It says, these data can be divided to same group and form data group, i.e., be to research and develop the data division of engineer by personnel's position
To same data group, the data that personnel's position is legal affairs specialist are divided to same data group.It is constructed for each data group
The data information of each data can be input to data corresponding with the affiliated data group of data for subsequent by corresponding data sublist
In sublist, the also management so as to subsequent to the data list being made of multiple data sublist.
Then, test device carries out classification processing to the data information under the non-targeted classification of each data, and according to every
Data information is input in data sublist corresponding with the data, is included by the rank of the data information of data
The data list of multiple data sublist, what is different from the first embodiment is that this step is specifically used such as under type:
It is directed to the other each data information of same non-target class, counts the number that each data information occurs, and according to every
The number that a data information occurs determines the non-global level under the data information of the global level under the category and the category
Data information;It is directed to the data information of each data, is determining that the data information is the data information of non-global level
In the case where, it is input to the corresponding data sublist of the data, until the data letter of the non-global level of total data
Breath is both input into data sublist, to obtain the data list for including multiple data sublist.Wherein, the data list
In be also stored with the data information of global level under each non-targeted classification.
Still with the number of " personnel's title " in every data above-mentioned, " personnel's position " and " personnel nationality " these three classifications
It is believed that for breath: " personnel's position " this classification is targeted classification, and corresponding " personnel's title " and " personnel nationality " will
As non-targeted classification.Test device will be directed to " personnel's title " and the other data of " personnel nationality " the two non-target classes respectively
Information carries out classification processing.For example, under " personnel nationality " this non-targeted classification, by statistics know data information be " in
The number of state " is 999 times, and the number that data information is " U.S. " is 1 time, at this point, can should " China " this data information
As the data information of the global level under " personnel nationality " this non-targeted classification, by " U.S. " this data information conduct
The data information of non-global level under " personnel nationality " this non-targeted classification.
Subsequently, as being input to phase according to the rank of data information having had been built up each data sublist before
In the data sublist answered.For example, when the data information under " personnel nationality " this non-targeted classification in data to be entered is
When the data information of non-global level is " U.S. ", " U.S. " this data information can be directly inputted into corresponding data column
The corresponding position of table;When the data information under " personnel nationality " this non-targeted classification in data to be entered is global level
When data information is " China ", the step of inputting next data information can be performed, i.e., do not input " China " this data information
Into data sublist.In addition, in order to guarantee the complete of data information, the data information of the global level under each non-targeted classification
It will uniformly be stored in data list.In this way, so that it is more to be directed to frequency of occurrence in the data list constituted
Global level data information such as " China ", be merely stored in data list, rather than in subdata list, to reduce
The quantity of total data information in data class table, i.e., by using such mode, the number for being directed to appearance " China " is 999
It is secondary " and the number in " U.S. " be for 1 situation, the quantity that these data informations are stored in original data list is
1000, and the quantity that these data informations are stored in present embodiment is 2.
It repeats the above process until the data information of non-global level of total data is both input into data sublist, with
Acquisition includes the data list of multiple data sublist.
Finally, being tested using the second test case and the data list application software to be tested, to obtain
Test result.Specifically, using second test case, the data information of each data of storage is read from data sublist
With from the data information for reading the global level under each non-targeted classification in data class table.Furthermore, it is understood that being used in the second test
When example reads data information from data list, for a certain data, data information can be carried out from data sublist first
Reading then judge whether the data information of its data reads completely, read next data if complete;If no
Completely, then the data information of global level is read in the position that the data information of global level need to be stored with from data list, with
Constitute the complete data information of the data.
In other optional embodiments, the test method include: according to the test scene of application software to be tested,
It determines and executes sequence between several test cases and each test case for testing the application software to be tested;Its
In, several test cases include for reading the first test case of a plurality of data from test database and for utilizing
The second test case that application software to be tested is tested in the data list.Specifically, for each test
Scene, can call the test case of different function from preset test case library, and determine each test case executes sequence,
To test application software to be tested.In the present embodiment, the test case of calling is included at least for from test
Database read a plurality of data the first test case and for using the data list to application software to be tested into
Second test case of row test.
Test method provided by Embodiment 2 of the present invention, it is a plurality of by being read using the first test case from test database
Data, wherein every data include the data information under multiple classifications;According to the data information under each datum target classification,
Each data are divided into different groups of other data groups, and construct corresponding data sublist for each data group;Wherein, same
Data in data group under target category have identical data information;To the data information under the non-targeted classification of each data
Classification processing, and the rank of the data information according to every data are carried out, data information is input to corresponding with the data
In data sublist, acquisition includes the data list of multiple data sublist;It is arranged according to the second test case and the data
Table tests application software to be tested, so that the quantity of the data information stored in data list in test is big
It is big to reduce, be conducive to the maintenance and management to data list, effectively increase the utilization rate of data information in data list.
Fig. 4 is a kind of structural schematic diagram for test device that the embodiment of the present invention three provides, as shown in figure 4, the test fills
It sets and includes:
Read module 10, for reading a plurality of data from test database using the first test case, wherein described in every
Data include the data information under multiple classifications;
Processing module 20, for according to the data information under each datum target classification, each data to be divided into different groups
Data group, and construct corresponding data sublist for each data group;Wherein, the number in same data group under target category
According to have identical data information;Classification processing is carried out to the data information under the non-targeted classification of each data, and according to every
Data information is input in data sublist corresponding with the data by the rank of the data information of data, including
There is the data list of multiple data sublist;
Test module 30, for being surveyed according to the second test case and the data list to application software to be tested
Examination.
In a kind of wherein optional embodiment, further include, test case calling module;
The test case calling module is used before reading a plurality of data from test database using the first test case
In the test scene according to application software to be tested, determine that several tests for testing the application software to be tested are used
Sequence is executed between example and each test case;Wherein, several test cases include for reading from test database
First test case of a plurality of data and for being tested using the data list application software to be tested
Two test cases.
In a kind of wherein optional embodiment, the processing module 20 is specifically used for being directed to same non-targeted classification
Each data information, count the number that each data information occurs;The number occurred according to each data information is determined at such
The data information of the data information of global level under not and the non-global level under the category;
The processing module 20 is specifically also used to: being directed to the data information of each data, is being determined the data information
In the case where data information for non-global level, it is input to the corresponding data sublist of the data, until whole numbers
According to the data information of non-global level be both input into data sublist.
The overall situation being also stored in a kind of wherein optional embodiment, in the data list under each non-targeted classification
The data information of rank;
The test module 30, is specifically used for: using second test case, reads each of storage from data sublist
The data information of data and from the data information for reading the global level under each non-targeted classification in data class table.
The technical staff in the field can be understood that, for convenience and simplicity of description, the system of foregoing description
Specific work process and corresponding beneficial effect, can refer to corresponding processes in the foregoing method embodiment, herein no longer
It repeats.
Test device provided by the invention, by reading a plurality of data from test database using the first test case,
In every data include data information under multiple classifications;According to the data information under each datum target classification, by each number
According to being divided into different groups of other data groups, and corresponding data sublist is constructed for each data group;Wherein, same data group
Data under interior target category have identical data information;Data information under the non-targeted classification of each data is divided
Data information is input to data corresponding with the data by grade processing, and the rank of the data information according to every data
In list, acquisition includes the data list of multiple data sublist;It is treated according to the second test case and the data list
The application software of test is tested, so that the quantity of the data information stored in data list in test drops significantly
It is low, be conducive to the maintenance and management to data list, effectively increase the utilization rate of data information in data list.
In other embodiments, Fig. 5 is a kind of hardware configuration signal for terminal device that the embodiment of the present invention four provides
Figure.As shown in figure 5, the terminal device is specific can include:
Processor 42;
Memory 41 for storage processor executable instruction;
Wherein, processor 42 is configured as:
A plurality of data are read from test database using the first test case, wherein every data include multiple classifications
Under data information;
According to the data information under each datum target classification, each data are divided into different groups of other data groups, and be directed to
Each data group constructs corresponding data sublist;Wherein, the data in same data group under target category have it is identical
Data information;
Classification processing is carried out to the data information under the non-targeted classification of each data, and according to the data information of every data
Rank, data information is input in data sublist corresponding with the data, acquisition includes multiple data sublist
Data list;
Application software to be tested is tested according to the second test case and the data list.
Wherein, above-mentioned memory 41 can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and light
Data storage device etc..And processor 42 can be by one or more application specific integrated circuit (ASIC), digital signal processor
Framework (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA),
Controller, microcontroller, microprocessor framework or other electronic components are realized.
Above-metioned instruction can be used the language such as C/C++, Java, Shell or Python and write, and the present embodiment is to this without limit
System.
The technical staff in the field can be understood that, for convenience and simplicity of description, the system of foregoing description
Specific work process and corresponding beneficial effect, can refer to corresponding processes in the foregoing method embodiment, herein no longer
It repeats.
Terminal device provided by the invention, by reading a plurality of data from test database using the first test case,
In every data include data information under multiple classifications;According to the data information under each datum target classification, by each number
According to being divided into different groups of other data groups, and corresponding data sublist is constructed for each data group;Wherein, same data group
Data under interior target category have identical data information;Data information under the non-targeted classification of each data is divided
Data information is input to data corresponding with the data by grade processing, and the rank of the data information according to every data
In list, acquisition includes the data list of multiple data sublist;It is treated according to the second test case and the data list
The application software of test is tested, so that the quantity of the data information stored in data list in test drops significantly
It is low, be conducive to the maintenance and management to data list, effectively increase the utilization rate of data information in data list.
The present invention provides a kind of computer readable storage medium, including instruction, when described instruction on the computer
When operation, the computer can execute any method in above-described embodiment one or embodiment two.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claims are pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (10)
1. a kind of test method characterized by comprising
A plurality of data are read from test database using the first test case, wherein every data include under multiple classifications
Data information;
According to the data information under each datum target classification, each data are divided into different groups of other data groups, and for each
Data group constructs corresponding data sublist;Wherein, the data in same data group under target category has identical data
Information;
Classification processing, and the grade of the data information according to every data are carried out to the data information under the non-targeted classification of each data
Not, data information is input in data sublist corresponding with the data, acquisition includes the number of multiple data sublist
According to list;
Application software to be tested is tested according to the second test case and the data list.
2. test method according to claim 1, which is characterized in that described to utilize the first test case from test database
Before reading a plurality of data, comprising:
According to the test scene of application software to be tested, several tests for testing the application software to be tested are determined
Sequence is executed between use-case and each test case;
Wherein, several test cases include the first test case and use for reading a plurality of data from test database
In the second test case tested using the data list application software to be tested.
3. test method according to claim 1, which is characterized in that the data under the non-targeted classification to each data
Information carries out classification processing, comprising:
It is directed to the other each data information of same non-target class, counts the number that each data information occurs;
The number occurred according to each data information determines under the data information of the global level under the category and the category
The data information of non-global level.
4. test method according to claim 3, which is characterized in that the grade of the data information according to every data
Not, data information is input in data sublist corresponding with the data, comprising:
It is directed to the data information of each data, is determining the case where data information is the data information of non-global level
Under, it is input to the corresponding data sublist of the data, until the data information quilt of the non-global level of total data
It is input to data sublist.
5. test method according to claim 4, which is characterized in that be also stored with each non-target class in the data list
The data information of global level under not;
Test is carried out to application software to be tested according to the second test case and the data list include: correspondingly, described
Using second test case, the data information of each data of storage is read from data sublist and from data class table
Read the data information of the global level under each non-targeted classification.
6. a kind of test device characterized by comprising
Read module, for reading a plurality of data from test database using the first test case, wherein every data packet
Include the data information under multiple classifications;
Processing module, for according to the data information under each datum target classification, each data to be divided into different groups of other data
Group, and corresponding data sublist is constructed for each data group;Wherein, the tool of the data in same data group under target category
Standby identical data information;Classification processing is carried out to the data information under the non-targeted classification of each data, and according to every data
Data information rank, data information is input in data sublist corresponding with the data, acquisition includes multiple
The data list of data sublist;
Test module, for being tested according to the second test case and the data list application software to be tested.
7. test device according to claim 6, which is characterized in that further include test case calling module;
The test case calling module is used for root before reading a plurality of data from test database using the first test case
According to the test scene of application software to be tested, determine for test several test cases of the application software to be tested with
And sequence is executed between each test case;Wherein, several test cases include a plurality of for reading from test database
First test case of data and for using the data list to application software to be tested tested second survey
Example on probation.
8. test device according to claim 6, which is characterized in that the processing module is specifically used for being directed to same non-
Each data information of target category counts the number that each data information occurs;The number occurred according to each data information is true
It is scheduled on the data information of the data information of the global level under the category and the non-global level under the category;
The processing module is specifically also used to: being directed to the data information of each data, is being determined that the data information is non-complete
In the case where the data information of office's rank, it is input to the corresponding data sublist of the data, until total data is non-
The data information of global level is both input into data sublist.
9. a kind of terminal device characterized by comprising memory, the processor being connect with the memory, and it is stored in institute
State the computer program that can be run on memory and on the processor, which is characterized in that
Perform claim requires the described in any item methods of 1-5 when the processor runs the computer program.
10. a kind of readable storage medium storing program for executing, which is characterized in that including program, when it runs on the terminal device, so that terminal is set
Standby perform claim requires the described in any item methods of 1-5.
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 true CN109857632A (en) | 2019-06-07 |
CN109857632B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900874A (en) * | 2021-10-18 | 2022-01-07 | 海光信息技术股份有限公司 | Test vector management system and test vector management method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140223237A1 (en) * | 2013-02-04 | 2014-08-07 | Alcatel-Lucent | Systems and methods for dynamic scan scheduling |
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 |
-
2018
- 2018-12-06 CN CN201811489920.9A patent/CN109857632B/en active Active
Patent Citations (6)
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 |
US20140223237A1 (en) * | 2013-02-04 | 2014-08-07 | Alcatel-Lucent | Systems and methods for dynamic scan scheduling |
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)
Title |
---|
尤枫 等: "基于页面聚类的Web应用测试方法研究", 《计算机工程与应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900874A (en) * | 2021-10-18 | 2022-01-07 | 海光信息技术股份有限公司 | Test vector management system and test vector management method |
Also Published As
Publication number | Publication date |
---|---|
CN109857632B (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109218114B (en) | Decision tree-based server fault automatic detection system and detection method | |
EP3447642A1 (en) | System and method for predicting application performance for large data size on big data cluster | |
CN109586952A (en) | Method of server expansion, device | |
CN107391142A (en) | The method and device that a kind of application is split | |
CN106682036A (en) | Data exchange system and exchange method thereof | |
CN109684052A (en) | Transaction analysis method, apparatus, equipment and storage medium | |
CN108415830A (en) | A kind of generation method and device of software test case | |
CN105989163A (en) | Data real-time processing method and system | |
CN109684319A (en) | Data clean system, method, apparatus and storage medium | |
CN104866556A (en) | Database fault handling method and apparatus, and database system | |
CN109783151A (en) | The method and apparatus of rule change | |
CN109743286A (en) | A kind of IP type mark method and apparatus based on figure convolutional neural networks | |
CN106502720A (en) | A kind of data processing method and device | |
CN107153702A (en) | A kind of data processing method and device | |
CN110895506A (en) | Construction method and construction system of test data | |
CN106484459A (en) | It is applied to flow control method and the device of JavaScript | |
CN106802865B (en) | Response simulator and method for software test | |
CN110473530A (en) | Instruction classification method, apparatus, electronic equipment and computer readable storage medium | |
CN112559525B (en) | Data checking system, method, device and server | |
CN109857632A (en) | Test method, device, terminal device and readable storage medium storing program for executing | |
CN112631754A (en) | Data processing method, data processing device, storage medium and electronic device | |
CN106502842A (en) | Data reconstruction method and system | |
WO2020237535A1 (en) | Systems, methods, and computer readable mediums for controlling federation of automated agents | |
CN113722141B (en) | Method and device for determining delay reason of data task, electronic equipment and medium | |
CN111143177B (en) | Method, system, device and storage medium for collecting RMF III data of IBM host |
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 |