CN110427315A - Push away excellent test device, method and storage medium - Google Patents
Push away excellent test device, method and storage medium Download PDFInfo
- Publication number
- CN110427315A CN110427315A CN201910525967.4A CN201910525967A CN110427315A CN 110427315 A CN110427315 A CN 110427315A CN 201910525967 A CN201910525967 A CN 201910525967A CN 110427315 A CN110427315 A CN 110427315A
- Authority
- CN
- China
- Prior art keywords
- product
- attribute information
- push away
- test
- optimal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 145
- 238000003860 storage Methods 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 title abstract description 16
- 238000010998 test method Methods 0.000 claims description 12
- 238000004519 manufacturing process Methods 0.000 claims description 11
- 230000000630 rising effect Effects 0.000 claims 2
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of measuring technologies, it discloses and a kind of pushes away excellent test device, method and storage medium, this method comprises: the user information in the order stored in ergodic data library, and user is grouped according to scheduled customer attribute information, the user in different grouping is obtained, does the first label for user identifier to push away first in excellent actuator for testing and push away excellent rule;Order volume based on each product obtains the first optimal product, generates each first test case;It obtains the product attribute information of each product, executes each first test case and adjusted and push away excellent actuator;Excellent rule is pushed away when pushing away excellent actuator execution first, the product attribute information of each product is matched based on customer attribute information, after obtaining the attribute information matches first suitable product, the product attribute information of the first suitable product and both the first optimal products is compared, to be tested.The present invention push away from the angle of multidimensional user the test of excellent rule, is able to carry out accurate test.
Description
Technical field
The present invention relates to the field of test technology more particularly to a kind of push away excellent test device, method and storage medium.
Background technique
Traditional information pushes away that excellent rule is simpler, for example, for the order for pushing away excellent rule, being according to product of product information
The priority ranking for measuring product push away excellent, and the test for pushing away excellent rule is the logic testing on backstage.However, in product information
In the case where more, optimal product information can often change in reality scene, for example, there is offline, pause etc. in the reason of causing, such as
It is still to obtain the priority ranking of product according to order volume that fruit, which pushes away excellent rule, is inaccurate it is evident that this pushes away excellent rule.This
In the case of kind, optimal product information in order to obtain, it would be highly desirable to it is a kind of to the scheme for pushing away excellent rule and accurately being tested, so as to final energy
Access optimal product information.
Summary of the invention
Excellent test device, method and storage medium are pushed away the purpose of the present invention is to provide a kind of, it is intended to from multidimensional user
Angle push away the test of excellent rule, be able to carry out accurate test.
To achieve the above object, the present invention provide it is a kind of push away excellent test device, it is described that push away excellent test device include depositing
Reservoir and the processor connecting with the memory are stored with the test journey that can be run on the processor in the memory
Sequence, the test program realize following steps when being executed by the processor:
The user information in order stored in ergodic data library, and carry out user according to scheduled customer attribute information
Grouping, obtain different grouping in user, for acquired each user user identifier do the first label with for test push away it is excellent
Scheduled first pushes away excellent rule in actuator;
The order volume for obtaining each product in the database, it is first optimal that the order volume based on each product obtains at least one
Product based on the described first optimal product and does each user identifier after the first label and generates each first test case;
It obtains the product attribute information of each product in the database, execute each first test case and pushes away described in having adjusted excellent
Actuator;
When it is described push away excellent actuator and execute described first push away excellent rule, based on the corresponding user of user identifier after the label
Attribute information matches the product attribute information of each product, obtains at least one first suitable production that the attribute information of the two matches
After product, the described first suitable product is compared with the product attribute information of both the described first optimal products, to test
It states and pushes away the first of the excellent actuator accuracy for pushing away excellent rule.
Preferably, the product attribute information by both the described first suitable product and the described first optimal product carries out
Compare, with test described in push away the accuracy that the first of excellent actuator pushes away excellent rule the step of, specifically include:
Described first suitable product is compared with the product attribute information of both the described first optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the first optimal product in first suitable product, then institute
It states and pushes away the first of excellent actuator to push away excellent rule accurate;
If in the first suitable product in the product attribute information and the first optimal product of product product product attribute
Information is all different, then described to push away the first of excellent actuator and push away excellent rule inaccuracy.
Preferably, when the test program is executed by the processor, following steps are also realized:
The user identifier of user is obtained, does the second label for acquired each user identifier described to push away excellent hold for testing
Scheduled second pushes away excellent rule in row device;
The order volume for obtaining each product in the database in online state, based on each product for being in online state
Order volume obtain at least one second optimal product, based on the described second optimal product and do the mark of each user after the second label
Know and generates each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed
And excellent actuator is pushed away described in having adjusted;
When it is described push away excellent actuator and execute described second push away excellent rule, online state will be in the order of the database
The attribute information of each product match the customer attribute information of the user in each grouping, what the attribute information both obtained matched
Each order volume calculates separately the matching rate of each product in online state based on each order volume to match, is based on this
After size with rate obtains at least one second suitable product, by both the described second suitable product and the described second optimal product
Product attribute information be compared, with test described in push away the second of the excellent actuator accuracy for pushing away excellent rule.
Preferably, the product attribute information by both the described second suitable product and the described second optimal product carries out
Compare, with test described in push away the accuracy that the second of excellent actuator pushes away excellent rule the step of, specifically include:
Described second suitable product is compared with the product attribute information of both the described second optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the second optimal product in second suitable product, then institute
It states and pushes away the second of excellent actuator to push away excellent rule accurate;
If in the second suitable product in the product attribute information and the second optimal product of product product product attribute
Information is all different, then described to push away the second of excellent actuator and push away excellent rule inaccuracy.
To achieve the above object, excellent test method is pushed away the present invention also provides a kind of, it is described to push away excellent test method and include:
S1, the user information in order stored in ergodic data library, and according to scheduled customer attribute information by user
It is grouped, obtains the user in different grouping, do the first label for testing for the user identifier of acquired each user
It pushes away in excellent actuator scheduled first and pushes away excellent rule;
S2 obtains the order volume of each product in the database, the order volume based on each product obtain at least one first
Optimal product based on the described first optimal product and does each user identifier after the first label and generates each first test case;
S3 obtains the product attribute information of each product in the database, executes each first test case and has adjusted described
Push away excellent actuator;
S4, when it is described push away excellent actuator and execute described first push away excellent rule, it is corresponding based on the user identifier after the label
Customer attribute information matches the product attribute information of each product, the attribute information both obtained match at least one is first suitable
After closing product, the described first suitable product is compared with the product attribute information of both the described first optimal products, to survey
The first of the excellent actuator accuracy for pushing away excellent rule is pushed away described in examination.
Preferably, the product attribute information by both the described first suitable product and the described first optimal product carries out
Compare, with test described in push away the accuracy that the first of excellent actuator pushes away excellent rule the step of, specifically include:
Described first suitable product is compared with the product attribute information of both the described first optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the first optimal product in first suitable product, then institute
It states and pushes away the first of excellent actuator to push away excellent rule accurate;
If in the first suitable product in the product attribute information and the first optimal product of product product product attribute
Information is all different, then described to push away the first of excellent actuator and push away excellent rule inaccuracy.
Preferably, after the user information in order stored in ergodic data library, further includes:
The user identifier of user is obtained, does the second label for acquired each user identifier described to push away excellent hold for testing
Scheduled second pushes away excellent rule in row device;
The order volume for obtaining each product in the database in online state, based on each product for being in online state
Order volume obtain at least one second optimal product, based on the described second optimal product and do the mark of each user after the second label
Know and generates each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed
And excellent actuator is pushed away described in having adjusted;
When it is described push away excellent actuator and execute described second push away excellent rule, online state will be in the order of the database
The attribute information of each product match the customer attribute information of the user in each grouping, what the attribute information both obtained matched
Each order volume calculates separately the matching rate of each product in online state based on each order volume to match, is based on this
After size with rate obtains at least one second suitable product, by both the described second suitable product and the described second optimal product
Product attribute information be compared, with test described in push away the second of the excellent actuator accuracy for pushing away excellent rule.
Preferably, the product attribute information by both the described second suitable product and the described second optimal product carries out
Compare, with test described in push away the accuracy that the second of excellent actuator pushes away excellent rule the step of, specifically include:
Described second suitable product is compared with the product attribute information of both the described second optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the second optimal product in second suitable product, then institute
It states and pushes away the second of excellent actuator to push away excellent rule accurate;
If in the second suitable product in the product attribute information and the second optimal product of product product product attribute
Information is all different, then described to push away the second of excellent actuator and push away excellent rule inaccuracy.
Preferably, the matching rate that each product in online state is calculated separately based on each order volume to match
The step of, it specifically includes: the blanket order amount of each product of the statistics in online state respectively, each order volume to be matched using this
Divided by the blanket order amount of corresponding each product in online state, the matching rate of each product in online state is obtained.
The present invention also provides a kind of computer readable storage medium, test is stored on the computer readable storage medium
Program, the test program are realized above-mentioned the step of pushing away excellent test method when being executed by processor.
The beneficial effects of the present invention are: the present invention is by the user in the order by database according to scheduled user property
Information is grouped, and the order volume based on each product obtains the first optimal product, and the first optimal product is as test case
Expected result executes each first test case and has adjusted and push away excellent actuator after generating test case, pushes away excellent actuator based on use
Family identifies the product attribute information that corresponding customer attribute information matches each product, the attribute information both obtained match the
One suitable product compares the product attribute information of the first suitable product and both the first optimal products, is pushed away with progress first excellent
The test of rule, the present invention is based on the tests for pushing away excellent rule of user's dimension, mainly take out different user category from different grouping
The user of property information, generates different test cases, push away from the angle of multidimensional user the test of excellent rule, be able to carry out standard
Really test, and improve testing efficiency.
Detailed description of the invention
Fig. 1 is the optional application environment schematic diagram of each embodiment one of the invention;
Fig. 2 is the schematic diagram that the hardware structure of excellent one embodiment of test device is pushed away in Fig. 1;
Fig. 3 is the Program modual graph of one embodiment of test program in Fig. 1, Fig. 2;
Fig. 4 is the flow diagram that the present invention pushes away excellent one embodiment of test method.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the application environment schematic diagram of presently preferred embodiments of the present invention.In this embodiment, this pushes away excellent
Test device 1 connect with database 2, which connect with business platform 3.Business platform 3 is by the product of intended service
Order is stored in database 2, push away excellent test device 1 from database 2 obtain order in user information and order its
His details generate test case and are simultaneously tested.
Pushing away excellent test device 1 is that one kind can be automatic to carry out numerical value calculating according to the instruction for being previously set or storing
And/or the equipment of information processing.It is described to push away excellent test device 1 and can be computer, be also possible to single network server, be more
The server group that a network server forms or the cloud being made of a large amount of hosts or network server based on cloud computing,
Middle cloud computing is one kind of distributed computing, a super virtual computer consisting of a loosely coupled set of computers.
Referring to shown in Fig. 2, in the present embodiment, pushing away excellent test device 1 may include, but be not limited only to, and can pass through system
Bus is in communication with each other the memory 11, processor 12, network interface 13 of connection, and memory 11, which is stored with, to be transported on the processor 12
Capable test program 10.It should be pointed out that Fig. 2, which is illustrated only, pushes away excellent test device 1 with component 11-13, but answer
What is understood is, it is not required that implements all components shown, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes the readable storage medium storing program for executing of memory and at least one type.It inside saves as and pushes away excellent test dress
The operation for setting 1 provides caching;Readable storage medium storing program for executing can be for if flash memory, hard disk, multimedia card, card-type memory are (for example, SD or DX
Memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable
It is non-except programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.
Volatile storage medium.In some embodiments, readable storage medium storing program for executing can be the storage inside list for pushing away excellent test device 1
Member, such as this pushes away the hard disk of excellent test device 1;In further embodiments, which is also possible to push away
The External memory equipment of excellent test device 1, such as push away the plug-in type hard disk being equipped in excellent test device 1, intelligent memory card
(Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..This
In embodiment, the readable storage medium storing program for executing of memory 11 be installed on commonly used in storage the operating system for pushing away excellent test device 1 and
The program code etc. of test program 10 in types of applications software, such as storage one embodiment of the invention.In addition, memory 11 is also
It can be used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips store in the memory 11 for running
Program code or processing data, such as operation test program 10 etc..
The network interface 13 may include the radio network interface of standard, wired network interface, and the network interface 13 is usual
For establishing communication connection between excellent test device 1 and other electronic equipments in described push away.
The test program 1 is stored in memory 11, can including at least one computer being stored in memory 11
Reading instruction, at least one computer-readable instruction can be executed by processor device 12, the method to realize each embodiment of the application;
And the function that at least one computer-readable instruction is realized according to its each section is different, can be divided into different logics
Module.
In one embodiment, following steps are realized when above-mentioned test program 10 is executed by the processor 12:
The user information in order stored in ergodic data library, and carry out user according to scheduled customer attribute information
Grouping, obtain different grouping in user, for acquired each user user identifier do the first label with for test push away it is excellent
Scheduled first pushes away excellent rule in actuator;
The order volume for obtaining each product in the database, it is first optimal that the order volume based on each product obtains at least one
Product based on the described first optimal product and does each user identifier after the first label and generates each first test case;
It obtains the product attribute information of each product in the database, execute each first test case and pushes away described in having adjusted excellent
Actuator;
When it is described push away excellent actuator and execute described first push away excellent rule, based on the corresponding user of user identifier after the label
Attribute information matches the product attribute information of each product, obtains at least one first suitable production that the attribute information of the two matches
After product, the described first suitable product is compared with the product attribute information of both the described first optimal products, to test
It states and pushes away the first of the excellent actuator accuracy for pushing away excellent rule.
Further, the product attribute information by both the described first suitable product and the described first optimal product into
Row compare, with test described in push away the accuracy that the first of excellent actuator pushes away excellent rule the step of, specifically include:
Described first suitable product is compared with the product attribute information of both the described first optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the first optimal product in first suitable product, then institute
It states and pushes away the first of excellent actuator to push away excellent rule accurate;
If in the first suitable product in the product attribute information and the first optimal product of product product product attribute
Information is all different, then described to push away the first of excellent actuator and push away excellent rule inaccuracy.
Further, when the test program is executed by the processor, following steps are also realized:
The user identifier of user is obtained, does the second label for acquired each user identifier described to push away excellent hold for testing
Scheduled second pushes away excellent rule in row device;
The order volume for obtaining each product in the database in online state, based on each product for being in online state
Order volume obtain at least one second optimal product, based on the described second optimal product and do the mark of each user after the second label
Know and generates each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed
And excellent actuator is pushed away described in having adjusted;
When it is described push away excellent actuator and execute described second push away excellent rule, online state will be in the order of the database
The attribute information of each product match the customer attribute information of the user in each grouping, what the attribute information both obtained matched
Each order volume calculates separately the matching rate of each product in online state based on each order volume to match, is based on this
After size with rate obtains at least one second suitable product, by both the described second suitable product and the described second optimal product
Product attribute information be compared, with test described in push away the second of the excellent actuator accuracy for pushing away excellent rule.
Further, the product attribute information by both the described second suitable product and the described second optimal product into
Row compare, with test described in push away the accuracy that the second of excellent actuator pushes away excellent rule the step of, specifically include:
Described second suitable product is compared with the product attribute information of both the described second optimal products, if described
Have that the product attribute information of product is identical as the product attribute information of product in the second optimal product in second suitable product, then institute
It states and pushes away the second of excellent actuator to push away excellent rule accurate;
If in the second suitable product in the product attribute information and the second optimal product of product product product attribute
Information is all different, then described to push away the second of excellent actuator and push away excellent rule inaccuracy.
It is the Program modual graph of test program 10 in Fig. 1, Fig. 2 referring to shown in Fig. 3.The test program 10 is divided into
Multiple modules, multiple module are stored in memory 12, and are executed by processor 13, to complete the present invention.Institute of the present invention
The module of title is the series of computation machine program instruction section for referring to complete specific function.
The test program 10 can be divided into: mark module 101, generation module 102, execution module 103 and test
Module 104.
The mark module 101, the user information in order for being stored in ergodic data library, and according to scheduled use
User is grouped by family attribute information, obtains the user in different grouping, does for the user identifier of acquired each user
One label for testing to push away in excellent actuator scheduled first and push away excellent rule;
The generation module 102, for obtaining the order volume of each product in the database, the order volume based on each product
Obtain at least one first optimal product, based on the described first optimal product and do each user identifier after the first label generate it is each
First test case;
The execution module 103 executes each first and surveys for obtaining the product attribute information of each product in the database
Example on probation simultaneously pushes away excellent actuator described in having adjusted;
The test module 104 pushes away excellent rule for pushing away excellent actuator execution described first described in, based on after the label
The corresponding customer attribute information of user identifier match the product attribute information of each product, the attribute information both obtained matches
At least one first suitable product after, the product attribute of both the described first suitable product and the described first optimal product is believed
Breath is compared, to push away the first of the excellent actuator accuracy for pushing away excellent rule described in test.
Concrete principle please refers to introduction of following Fig. 4 about the flow chart of this method.
As shown in figure 4, Fig. 4 is the flow diagram that the present invention pushes away excellent one embodiment of test method, excellent test dress is pushed away
The following steps of this method are realized when setting the test program 10 stored in the 1 execution memory 12 of processor 13:
Step S1, the user information in order stored in ergodic data library, and will according to scheduled customer attribute information
User is grouped, and obtains the user in different grouping, does the first label for the user identifier of acquired each user to be used for
Test pushes away in excellent actuator scheduled first and pushes away excellent rule;
Wherein, order is the order of the product of intended service, and the product of intended service is, for example, insurance products, loan product
Deng it is of course also possible to be the product of other business.
By the user information in order in reading database, the personal considerations of user can be learned.Scheduled user belongs to
Property information is mainly assets information, including room, vehicle, common reserve fund, declaration form data of user etc., does not limit certainly and only includes these use
Family attribute information.For example, it is as shown in table 1 below, user is divided into 4 groups according to scheduled customer attribute information:
User | Customer attribute information |
User 1,3,5 | There is room |
User 2,4,6 | There is vehicle |
User 7,9,11 | There is common reserve fund |
User 8,10,12 | There is order record |
Table 1
It obtains multiple users respectively from different grouping, and marks the user identifier of acquired user, for testing
It pushes away in excellent actuator scheduled first and pushes away excellent rule.It is excellent based on pushing away for user's dimension for pushing away first in excellent actuator and pushing away excellent rule
Rule.
Step S2 obtains the order volume of each product in the database, and the order volume based on each product obtains at least one
First optimal product based on the described first optimal product and does each user identifier after the first label and generates each first test and use
Example;
Wherein, at least one first optimal product is obtained from high to low sequence according to the order volume of each product, for example, obtaining
Take 3 the first optimal products.
Wherein, it is distinguished for the ease of pushing away the test case that excellent actuator pushes away excellent rule to difference, by the present embodiment
User identifier does the first label, in this way, pushing away excellent actuator after receiving this parameter of the user identifier of test case transmission, such as
The fruit user identifier has done the first label, then can determine that the test case is to push away excellent rule for testing first.
Wherein, test case is to push away the quantization of excellent actuator test, and the expected result in the first test case is above-mentioned
First optimal product.First test case pushes away the first of excellent actuator whether push away excellent rule accurate for testing.In the present embodiment,
Due to obtaining user from the grouping of different customer attribute informations, each first test case generated is also different.
Step S3 obtains the product attribute information of each product in the database, executes each first test case and adjusts
It is described to push away excellent actuator;
Step S4, when it is described push away excellent actuator and execute described first push away excellent rule, based on the user identifier pair after the label
The customer attribute information answered matches the product attribute information of each product, the attribute information both obtained match at least one the
After one suitable product, the described first suitable product is compared with the product attribute information of both the described first optimal products,
To push away the first of the excellent actuator accuracy for pushing away excellent rule described in test.
Wherein it is possible to the product attribute information of each product be pre-defined, for example, the exhibition of loan product and product attribute information
Show that certainly, loan product is not limited to only include these product attribute informations as shown in table 2 below:
Table 2
It wherein, can be by each user identifier as entering ginseng and be transmitted to push away excellent actuator when traversal executes each first test case
(be equivalent to and simulate the page that user accesses application), and adjusted and pushed away excellent actuator, it executes first and pushes away excellent rule, push away excellent actuator
After obtaining the user identifier in the first test case, the customer attribute information of the user is obtained according to the user identifier, it then, will
The product attribute information of the customer attribute information and each product, obtains customer attribute information and product attribute information matches the
One suitable product.For example, the customer attribute information of the user identifier is " having room ", then match with the customer attribute information
Product attribute information is " having room that can borrow ", " anyone can borrow ", and corresponding first suitable product includes above-mentioned product 1, product
2。
Finally, by the production of both the first suitable product and the first optimal product (i.e. expected result in the first test case)
Product attribute information is compared, and specifically includes: by the product attribute information of both the first suitable product and the first optimal product into
Row compares, if there is the product attribute information of product in the product attribute information and the first optimal product of product in the first suitable product
It is identical, then it pushes away the first of excellent actuator and pushes away excellent rule accurately, can put into practical application;If the production of product in the first suitable product
Product attribute information and the product attribute information of product in the first optimal product are all different, then push away excellent actuator first pushes away excellent rule
It is then inaccurate.For example, the first suitable product is above-mentioned product 1, product 2, according to the order volume of each product obtain first most
Excellent product are as follows: product 1, product 3, product 4, then, include both product 1, that is, has the product attribute information of product identical, that
It can test out and push away the first of excellent actuator to push away excellent rule accurate;Both, whereas if the two does not include identical product, i.e.,
The product attribute information of product is all different, and pushes away excellent rule inaccuracy then can test out and push away the first of excellent actuator.
The test that pushes away excellent rule of the present embodiment based on user's dimension mainly takes out different user attribute from different grouping
The user of information generates different test cases, for pushing away customer attribute information and product attribute in excellent actuator match orders
Information obtains the identical product of attribute information of the two, push away from the angle of multidimensional user the test of excellent rule.
In a preferred embodiment, on the basis of the above embodiments, in the order stored in ergodic data library
After user information, further includes: obtain the user identifier of user, do the second label for surveying for acquired each user identifier
Scheduled second is pushed away in excellent actuator described in examination pushes away excellent rule;
The order volume for obtaining each product in the database in online state, based on each product for being in online state
Order volume obtain at least one second optimal product, based on the described second optimal product and do the mark of each user after the second label
Know and generates each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed
And excellent actuator is pushed away described in having adjusted;
When it is described push away excellent actuator and execute described second push away excellent rule, online state will be in the order of the database
The attribute information of each product match the customer attribute information of the user in each grouping, what the attribute information both obtained matched
Each order volume calculates separately the matching rate of each product in online state based on each order volume to match, is based on this
After size with rate obtains at least one second suitable product, by both the described second suitable product and the described second optimal product
Product attribute information be compared, with test described in push away the second of the excellent actuator accuracy for pushing away excellent rule.
Wherein, after the user information in order stored in ergodic data library, the user identifier of user is directly acquired,
And the user identifier of acquired user is marked, to push away in excellent actuator scheduled second for testing and push away excellent rule.Push away excellent hold
Second in row device, which pushes away excellent rule, pushes away excellent rule for what is be based on the products dimension, and the test for pushing away excellent rule being based on the products dimension only is examined
Consider the product for being in online state, the products such as offline, pause are not considered.
At least one second optimal production is obtained from high to low sequence according to the order volume of each product in online state
Product, for example, obtaining 3 the second optimal products.
The user identifier of the present embodiment is done into the second label, in this way, pushing away excellent actuator is receiving test case transmission
After this parameter of user identifier, if the user identifier has done the second label, it can determine that the test case is for surveying
Examination second pushes away excellent rule.
Wherein, the expected result in the second test case is the second above-mentioned optimal product.Second test case is for surveying
Whether examination to push away excellent rule accurate if pushing away the second of excellent actuator.
Wherein, the product attribute information of each product in online state can refer to the content of above-mentioned table 2, herein no longer
It repeats.
It wherein, can be by each user identifier as entering ginseng and be transmitted to push away excellent actuator when traversal executes each second test case
(be equivalent to and simulate the page that user accesses application), and adjusted and pushed away excellent actuator, it executes second and pushes away excellent rule, push away excellent actuator
After obtaining the user identifier in the second test case, the attribute information of each product of online state will be in the order of database
The customer attribute information for matching the user in each grouping obtains each order volume that the attribute information of the two matches, counts respectively
The blanket order amount of each product in online state, each order volume to be matched with the attribute information of the two is divided by corresponding
The blanket order amount of product, obtains the matching rate of each product, then, obtains according to the matching rate sequence from big to small of each product
To at least one the second suitable product.For example, the product in the order of database in online state includes that product 4 (has public product
Gold can be borrowed), product 5 (having order record that can borrow), the customer attribute information of user is to have common reserve fund in all orders of product 4
Order volume is 5000, and it is 6000 that the customer attribute information of user, which is the order volume for having order record, in all orders of product 5, is produced
The blanket order amount of product 4,5 is 10000 respectively, then, the matching rate of product 4 is 5000/10000=50%, the matching of product 5
Rate is 6000/10000=60%.
Finally, by the production of both the second suitable product and the second optimal product (i.e. expected result in the second test case)
Product attribute information is compared, and specifically includes: by the product attribute information of both the second suitable product and the second optimal product into
Row compares, if there is the product attribute information of product in the product attribute information and the second optimal product of product in the second suitable product
It is identical, then it pushes away the second of excellent actuator and pushes away excellent rule accurately, can put into practical application;If the production of product in the second suitable product
Product attribute information and the product attribute information of product in the second optimal product are all different, then push away excellent actuator second pushes away excellent rule
It is then inaccurate.For example, the second suitable product is above-mentioned product 1, product 2, according to the order of each product in online state
The optimal product of first measured are as follows: product 1, product 3, product 4, then, include both product 1, that is, has the product of product
Attribute information is identical, pushes away excellent rule accurately then can test out and push away the second of excellent actuator;, whereas if the two does not include phase
With product, i.e., both the product attribute information of product is all different, then can test out push away the second of excellent actuator push away it is excellent
Regular inaccuracy.
What the present embodiment was based on the products dimension pushes away the test of excellent rule, mainly by the attribute information and use of product in order
The attribute information at family is matched, and the hit rate of the user of the product hit same alike result information of different attribute information is obtained, from
And push away from the angle of product the test of excellent rule, the dimension for pushing away excellent test is extended, the standard for pushing away excellent test is further increased
True rate.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
It can be hard disk, multimedia card, SD card, flash card, SMC, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM
(EPROM), any one in portable compact disc read-only memory (CD-ROM), USB storage etc. or several timess
Meaning combination.It include test program, the function which realizes when being executed by processor in the computer readable storage medium
Can, the above-mentioned introduction about Fig. 4 is please referred to, details are not described herein.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic
Element.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of push away excellent test device, which is characterized in that it is described push away excellent test device include memory and with the storage
The processor of device connection, is stored with the test program that can be run on the processor, the test program in the memory
Following steps are realized when being executed by the processor:
The user information in order stored in ergodic data library, and divide user according to scheduled customer attribute information
Group obtains the user in different grouping, does the first label for the user identifier of acquired each user to push away excellent hold for testing
Scheduled first pushes away excellent rule in row device;
The order volume for obtaining each product in the database, the order volume based on each product obtain at least one first optimal production
Product based on the described first optimal product and do each user identifier after the first label and generate each first test case;
It obtains the product attribute information of each product in the database, execute each first test case and pushes away excellent execution described in having adjusted
Device;
When it is described push away excellent actuator and execute described first push away excellent rule, based on the corresponding user property of user identifier after the label
The product attribute information of each product of information matches obtains at least one first suitable product that the attribute information of the two matches
Afterwards, the described first suitable product is compared with the product attribute information of both the described first optimal products, described in test
Push away the first of the excellent actuator accuracy for pushing away excellent rule.
2. according to claim 1 push away excellent test device, which is characterized in that described by the described first suitable product and institute
The product attribute information for stating both first optimal products is compared, and pushes away excellent rule to push away the first of excellent actuator described in test
The step of accuracy, specifically includes:
Described first suitable product is compared with the product attribute information of both the described first optimal products, if described first
Be suitble to have that the product attribute information of product is identical with the product attribute information of product in the first optimal product in product, then described in push away
It is accurate that the first of excellent actuator pushes away excellent rule;
If in the first suitable product in the product attribute information and the first optimal product of product product product attribute information
It is all different, then it is described to push away the first of excellent actuator and push away excellent rule inaccuracy.
3. according to claim 1 or 2 push away excellent test device, which is characterized in that the test program is by the processing
When device executes, following steps are also realized:
The user identifier of user is obtained, does the second label for acquired each user identifier described to push away excellent actuator for testing
In scheduled second push away excellent rule;
The order volume for obtaining each product in the database in online state, based on ordering for each product in online state
Single amount obtains at least one second optimal product, and based on the described second optimal product and to do each user identifier after the second label raw
At each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed and is adjusted
Excellent actuator is pushed away described in rising;
When it is described push away excellent actuator and execute described second push away excellent rule, will be each in online state in the order of the database
The attribute information of product matches the customer attribute information of the user in each grouping, and what the attribute information both obtained matched respectively orders
Dan Liang calculates separately the matching rate of each product in online state based on each order volume to match, is based on the matching rate
Size obtain at least one second suitable product after, by the production of both the described second suitable product and the described second optimal product
Product attribute information is compared, to push away the second of the excellent actuator accuracy for pushing away excellent rule described in test.
4. according to claim 3 push away excellent test device, which is characterized in that described by the described second suitable product and institute
The product attribute information for stating both second optimal products is compared, and pushes away excellent rule to push away the second of excellent actuator described in test
The step of accuracy, specifically includes:
Described second suitable product is compared with the product attribute information of both the described second optimal products, if described second
Be suitble to have that the product attribute information of product is identical with the product attribute information of product in the second optimal product in product, then described in push away
It is accurate that the second of excellent actuator pushes away excellent rule;
If in the second suitable product in the product attribute information and the second optimal product of product product product attribute information
It is all different, then it is described to push away the second of excellent actuator and push away excellent rule inaccuracy.
5. a kind of push away excellent test method, which is characterized in that described to push away excellent test method and include:
S1, the user information in order stored in ergodic data library, and carry out user according to scheduled customer attribute information
Grouping, obtain different grouping in user, for acquired each user user identifier do the first label with for test push away it is excellent
Scheduled first pushes away excellent rule in actuator;
S2 obtains the order volume of each product in the database, and it is first optimal that the order volume based on each product obtains at least one
Product based on the described first optimal product and does each user identifier after the first label and generates each first test case;
S3, obtains the product attribute information of each product in the database, executes each first test case and pushes away described in having adjusted excellent
Actuator;
S4, when it is described push away excellent actuator and execute described first push away excellent rule, based on the corresponding user of user identifier after the label
Attribute information matches the product attribute information of each product, obtains at least one first suitable production that the attribute information of the two matches
After product, the described first suitable product is compared with the product attribute information of both the described first optimal products, to test
It states and pushes away the first of the excellent actuator accuracy for pushing away excellent rule.
6. according to claim 5 push away excellent test method, which is characterized in that described by the described first suitable product and institute
The product attribute information for stating both first optimal products is compared, and pushes away excellent rule to push away the first of excellent actuator described in test
The step of accuracy, specifically includes:
Described first suitable product is compared with the product attribute information of both the described first optimal products, if described first
Be suitble to have that the product attribute information of product is identical with the product attribute information of product in the first optimal product in product, then described in push away
It is accurate that the first of excellent actuator pushes away excellent rule;
If in the first suitable product in the product attribute information and the first optimal product of product product product attribute information
It is all different, then it is described to push away the first of excellent actuator and push away excellent rule inaccuracy.
7. according to claim 5 or 6 push away excellent test method, which is characterized in that is stored in ergodic data library orders
After user information in list, further includes:
The user identifier of user is obtained, does the second label for acquired each user identifier described to push away excellent actuator for testing
In scheduled second push away excellent rule;
The order volume for obtaining each product in the database in online state, based on ordering for each product in online state
Single amount obtains at least one second optimal product, and based on the described second optimal product and to do each user identifier after the second label raw
At each second test case;
The product attribute information of each product in the database in online state is obtained, each second test case is executed and is adjusted
Excellent actuator is pushed away described in rising;
When it is described push away excellent actuator and execute described second push away excellent rule, will be each in online state in the order of the database
The attribute information of product matches the customer attribute information of the user in each grouping, and what the attribute information both obtained matched respectively orders
Dan Liang calculates separately the matching rate of each product in online state based on each order volume to match, is based on the matching rate
Size obtain at least one second suitable product after, by the production of both the described second suitable product and the described second optimal product
Product attribute information is compared, to push away the second of the excellent actuator accuracy for pushing away excellent rule described in test.
8. according to claim 7 push away excellent test method, which is characterized in that described by the described second suitable product and institute
The product attribute information for stating both second optimal products is compared, and pushes away excellent rule to push away the second of excellent actuator described in test
The step of accuracy, specifically includes:
Described second suitable product is compared with the product attribute information of both the described second optimal products, if described second
Be suitble to have that the product attribute information of product is identical with the product attribute information of product in the second optimal product in product, then described in push away
It is accurate that the second of excellent actuator pushes away excellent rule;
If in the second suitable product in the product attribute information and the second optimal product of product product product attribute information
It is all different, then it is described to push away the second of excellent actuator and push away excellent rule inaccuracy.
9. according to claim 7 push away excellent test method, which is characterized in that described based on each order volume to match
The step of calculating separately the matching rate of each product in online state, specifically includes: statistics is in each of online state respectively
The blanket order amount of product, using each order volume to match divided by the blanket order of corresponding each product in online state
Amount obtains the matching rate of each product in online state.
10. a kind of computer readable storage medium, which is characterized in that be stored with test journey on the computer readable storage medium
Sequence, when the test program is executed by processor realize as described in any one of claim 5 to 9 push away excellent test method
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910525967.4A CN110427315A (en) | 2019-06-18 | 2019-06-18 | Push away excellent test device, method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910525967.4A CN110427315A (en) | 2019-06-18 | 2019-06-18 | Push away excellent test device, method and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110427315A true CN110427315A (en) | 2019-11-08 |
Family
ID=68407734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910525967.4A Pending CN110427315A (en) | 2019-06-18 | 2019-06-18 | Push away excellent test device, method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110427315A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111290957A (en) * | 2020-02-19 | 2020-06-16 | 北京航天测控技术有限公司 | Signal-oriented test path planning method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108205768A (en) * | 2016-12-20 | 2018-06-26 | 百度在线网络技术(北京)有限公司 | Database building method and data recommendation method and device, equipment and storage medium |
CN108255653A (en) * | 2018-01-02 | 2018-07-06 | 深圳壹账通智能科技有限公司 | The test method and its terminal of a kind of product |
WO2019061612A1 (en) * | 2017-09-29 | 2019-04-04 | 平安科技(深圳)有限公司 | Loan product promotion method and apparatus, and computer-readable storage medium |
WO2019061990A1 (en) * | 2017-09-30 | 2019-04-04 | 平安科技(深圳)有限公司 | User intention prediction method, electronic device, and computer readable storage medium |
-
2019
- 2019-06-18 CN CN201910525967.4A patent/CN110427315A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108205768A (en) * | 2016-12-20 | 2018-06-26 | 百度在线网络技术(北京)有限公司 | Database building method and data recommendation method and device, equipment and storage medium |
WO2019061612A1 (en) * | 2017-09-29 | 2019-04-04 | 平安科技(深圳)有限公司 | Loan product promotion method and apparatus, and computer-readable storage medium |
WO2019061990A1 (en) * | 2017-09-30 | 2019-04-04 | 平安科技(深圳)有限公司 | User intention prediction method, electronic device, and computer readable storage medium |
CN108255653A (en) * | 2018-01-02 | 2018-07-06 | 深圳壹账通智能科技有限公司 | The test method and its terminal of a kind of product |
Non-Patent Citations (2)
Title |
---|
任翔宇;董晨;何林鸿;马杰涛;蒋泽宇;: "基于用户-标签-项目的特征聚合推荐算法研究", 信息记录材料, no. 04 * |
钱忠胜;缪淮扣;: "面向用户会话的Web应用测试用例生成及其优化", 计算机科学与探索, no. 06 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111290957A (en) * | 2020-02-19 | 2020-06-16 | 北京航天测控技术有限公司 | Signal-oriented test path planning method, device, equipment and storage medium |
CN111290957B (en) * | 2020-02-19 | 2023-07-21 | 北京航天测控技术有限公司 | Signal-oriented test path planning method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106033510B (en) | A kind of user equipment recognition methods and system | |
CN109309596B (en) | Pressure testing method and device and server | |
CN107870980B (en) | Electronic device, billing data processing method and computer storage medium | |
CN110008193A (en) | Data normalization method and device | |
CN110704486B (en) | Data processing method, device, system, storage medium and server | |
CN110309496B (en) | Data summarizing method, electronic device and computer readable storage medium | |
CN109783788A (en) | Tables of data complementing method, device, computer equipment and storage medium | |
CN114780371A (en) | Pressure measurement index analysis method, device, equipment and medium based on multi-curve fitting | |
CN110427315A (en) | Push away excellent test device, method and storage medium | |
CN116842012A (en) | Method, device, equipment and storage medium for storing Redis cluster in fragments | |
CN115481026A (en) | Test case generation method and device, computer equipment and storage medium | |
CN112882956B (en) | Method and device for automatically generating full-scene automatic test cases through data combination calculation, storage medium and electronic equipment | |
CN116186119A (en) | User behavior analysis method, device, equipment and storage medium | |
CN115269347A (en) | Storage performance testing method, device, medium and electronic equipment | |
CN115239514A (en) | Preparation circulation method, device, equipment and storage medium of insulating fiber sleeve | |
CN114187096A (en) | Risk assessment method, device and equipment based on user portrait and storage medium | |
CN110543897A (en) | memory bank classifying method, system, terminal and storage medium | |
CN113010609B (en) | Differentiated synchronization method and system applied to store operation | |
CN110674363B (en) | Similarity matching method and device between interface services and electronic equipment | |
CN109344369B (en) | Certificate making method based on original value verification and terminal equipment | |
CN114254170A (en) | Data processing method, system, electronic equipment and storage medium | |
CN113094654A (en) | Product data processing method, device and equipment | |
CN114300064A (en) | Molecular data storage method and device and application method and device | |
CN115983459A (en) | Multipoint power load prediction method and device and terminal equipment | |
CN115146104A (en) | Audio distribution information acquisition method, computer device, and computer program product |
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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240621 |