A kind of for testing the test system and method recommending room data list
Technical field
The present invention relates to software testing technology field, be specifically a kind of for testing the survey recommending room data list
Test system and method.
Background technology
Along with developing rapidly of Internet technology, increasing user can use the terminal such as computer, mobile phone to pass through net
Network viewing Online Video is live.The live live video direct broadcast service referring to utilize Internet resource to carry out of Online Video,
Synchronizing to be published on network by on-the-spot video capture, user can see real-time on-the-spot feelings the same time on network
Condition.
In each business scenario of net cast website, it usually needs carry out the recommendation in popular room.And recommend popular room
Between time, be utilize recommend room data list be shown to user, this recommendation room data list be record have recommendation room
Between the list of data.Owing to recommending room data list higher to real-time and the accuracy requirement of data, therefore, in order to effectively
Ensure high real-time and the accuracy of list, it is ensured that effective recommendation in popular room, need recommending in room data list
Data are regularly tested.
At present, the result that traditional data test mode mainly uses after test data being processed with data compares
To mode, the most in advance carry out test data design, write test case and expected result;Then, after data process, will
Data processed result is compared with expected result.Although, existing data test method and technology is ripe, simple to operation, but
It is that test process is single, test result is the simplest, it is impossible to the links processing data carries out specific aim test, example
As, when room data list is recommended in test, it is impossible to the generation of data, process and each link such as displaying carries out specific aim survey
Examination, so that test of low quality.
Summary of the invention
The invention aims to overcome the deficiency of above-mentioned background technology, it is provided that one is used for testing recommendation room data
The test system and method for list, has run through and has recommended room data list from generating, processing completely testing of final displaying
Journey, it is possible to test quality is effectively ensured.
For reaching object above, the present invention provides a kind of for testing the test system recommending room data list, including
List Generating Module, list generate test module, list pretreatment module, list pretreatment test module, list display module
Test module is shown with list;
Described List Generating Module is used for: carry out statistical computation according to the room recommendation rules pre-set, and generates and recommends
Room data list;And when recommending room data list verification not pass through, the recommendation room data list to generating is repaiied
Just;
Described list generates test module and is used for: under test run environment, the recommendation room data list to generating is carried out
Validation test, will verify unsanctioned recommendation room data and corresponding test run ambient parameter in recommendation room data list
Submit to List Generating Module, for List Generating Module correction;
Described list pretreatment module is used for: according to the process strategy pre-set, to the recommendation room number being verified
Pretreatment is carried out according to list;And when preprocessing process checking is not passed through, re-start pre-after preprocessor is modified
Process;
Described list pretreatment test module is used for: under test run environment, preprocessing process is carried out validation test,
Preprocessing process is verified, and unsanctioned the result and corresponding test run ambient parameter submit to list pretreatment module,
For list pretreatment module correction;
Described list display module is used for: the recommendation room data list after pretreatment being verified is shown;And
When showing that process verification does not passes through, after presentation program is modified, re-start displaying;
Described list shows that test module is used for: under test run environment, displaying process is carried out validation test, by exhibition
Show that the unsanctioned the result of process verification and corresponding test run ambient parameter submit to list display module, pre-for list
Processing module correction uses.
On the basis of technique scheme, described in the room recommendation rules that pre-sets be: by predetermined period by point
Hit often and obtain the many rooms of virtual reward stage property to recommend as popular room.
On the basis of technique scheme, described list generates test module and enters the recommendation room data list generated
The concrete operations of row validation test are: comprehensive utilization code walkthrough mode, data base querying mode and sample design mode are verified
Recommending to recommend whether the constraints of room data meets service needed in room data list, described constraints includes recommending
Classification belonging to room, the average online number recommended the effective live duration of main broadcaster belonging to room, recommend room in a week, if about
Bundle condition is satisfied by service needed, shows to be verified, and otherwise, shows to verify and does not passes through.
On the basis of technique scheme, described in pre-set process strategy include the one in following strategy or many
Kind: removal recommendation room has closed the recommendation room data recommending room data, removal to recommend room to be shielded, the removal recommendation broadcast
What room was closed recommends room data, removes the recommendation room data recommending to classify disabled belonging to room;Described list is pre-
Process test module carries out the concrete operations of validation test to preprocessing process: whether checking preprocessor is according to above-mentioned place
Reason strategy completes the execution of each strategy, if so, shows to be verified, otherwise, shows to verify and do not pass through.
On the basis of technique scheme, described list shows that test module carries out the tool of validation test to displaying process
Gymnastics as: during checking is shown, the room whether recommended does not conflicts with other rooms and shows that interface meets interface requirements,
If so, show to be verified, otherwise, show to verify and do not pass through.
The present invention also provides for a kind of based on said system for testing the method for testing recommending room data list, including
Following steps: S1. List Generating Module carries out statistical computation according to the room recommendation rules pre-set, generate and recommend room number
According to list, proceed to S2;S2. list generate test module under test run environment to generate recommendation room data list carry out
Validation test, if checking is not passed through, then will verify unsanctioned recommendation room data and accordingly in recommendations room data list
Test run ambient parameter submits to List Generating Module, proceeds to S3;If being verified, the most directly proceed to S4;S3. list generates
Recommendation room data list is modified by the information that module generates test module submission according to list, regenerates recommendation room
Data list, returns S2;S4. list pretreatment module is according to the process strategy pre-set, to the recommendation room being verified
Data list carries out pretreatment, proceeds to S5;S5. preprocessing process is entered under test run environment by list pretreatment test module
Row validation test, if checking is not passed through, then verifies unsanctioned the result and corresponding test run ring by preprocessing process
Border parameter submits to list pretreatment module, proceeds to S6;If being verified, the most directly proceed to S7;S6. list pretreatment module root
The information submitted to according to list pretreatment test module, re-starts pretreatment, returns S5 after being modified preprocessor;
S7. the recommendation room data list after pretreatment is verified by list display module is shown, and proceeds to S8;S8. list exhibition
Show that test module carries out validation test to displaying process under test run environment, if checking is not passed through, then displaying process is tested
Demonstrate,prove unsanctioned the result and corresponding test run ambient parameter submits to list display module, proceed to S9;If checking is logical
Cross, terminate;S9. list display module shows, according to list, the information that test module is submitted to, weight after being modified presentation program
Newly it is shown, returns S8.
On the basis of technique scheme, the room recommendation rules pre-set described in step S1 is: by default week
In phase clicked often and obtain the many room of virtual reward stage property and recommend as popular room.
On the basis of technique scheme, it is right under test run environment that list described in step S2 generates test module
The recommendation room data list generated carries out validation test, specifically includes following operation: list generates test module synthesis and utilizes
Code walkthrough mode, data base querying mode and sample design mode are verified and are recommended to recommend in room data list room data
Whether constraints meets service needed, and described constraints includes recommending classification belonging to room, recommending main broadcaster belonging to room
Effective live duration, the recommendation room average online number in a week, if constraints is satisfied by service needed, shows that checking is logical
Cross, otherwise, show to verify and do not pass through.
On the basis of technique scheme, the strategy that processes pre-set described in step S4 includes in following strategy
One or more: remove recommend room closed broadcast recommend room data, remove recommend room shielded recommendation room data,
Remove the recommend room data, removal recommending room to be closed and recommend the recommendation room data classifying disabled belonging to room;Step
List pretreatment test module described in rapid S5 carries out validation test to preprocessing process under test run environment, specifically includes
Below operation: whether list pretreatment test module verification preprocessor completes each strategy according to above-mentioned process strategy
Execution, if so, show to be verified, otherwise, show to verify and do not pass through.
On the basis of technique scheme, list described in step S8 shows that test module is right under test run environment
Displaying process carries out validation test, specifically includes following operation: list shows whether test module verification is recommended during showing
Room do not conflict mutually with other rooms and show that interface meets interface requirements, if so, show to be verified, otherwise, show to test
Card does not passes through.
The beneficial effects of the present invention is:
In the present invention, first after recommending room data list to generate, the list generated can be carried out validation test, once
Checking is not passed through, and just carries out feeding back and revising table data immediately, thus the recommendation room data list of generation is effectively ensured
Correctness;Then, in recommending room data list preprocessing process, preprocessing process can be carried out validation test, once verify
Do not pass through, just carry out feeding back and revising preprocessor immediately, thus effectively the carrying out of preprocessing process is effectively ensured;Finally exist
During recommending the displaying of room data list, displaying process can be carried out validation test, once verify and do not pass through, enter the most immediately
Row feedback also revises presentation program, thus is effectively improved displaying quality.
Compared with prior art, the present invention is not that the result after simply test data being processed with data is compared,
But test has been extended through and has recommended room data list from generating, process the final complete test process shown, not only
Test with strong points, and the precision tested is high, the test quality of recommending room data list has been effectively ensured.
Accompanying drawing explanation
Fig. 1 is for testing the structured flowchart of the test system recommending room data list in the embodiment of the present invention;
Fig. 2 is for testing the flow chart of the method for testing recommending room data list in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of for testing the test system recommending room data list, bag
Include List Generating Module, list generates test module, list pretreatment module, list pretreatment test module, list displaying mould
Test module is shown in block and list.
Wherein, List Generating Module is used for: carry out statistical computation according to the room recommendation rules pre-set, and generates and recommends
Room data list;And when recommending room data list verification not pass through, the recommendation room data list to generating is repaiied
Just.
It is understood that a kind of room that the room recommendation rules pre-set can be system default to be set is recommended
Rule, it is also possible to be system certain room recommendation rules of being supplied to that user is arranged voluntarily.In the present embodiment, the room pre-set
Between recommendation rules be: by predetermined period clicked often and obtain virtual reward stage property (such as Fin Mustetus manazo present) how room and make
Carry out recommending (to carry out the recommendation in multiple popular room according to actual needs, may generally be 5 to 10 popular rooms for popular room
Between, select to recommend by many most at least carrying out according to number of clicks and award stage property).It addition, the recommendation room that List Generating Module generates
Between data list, will be stored in the data base of Redis data base or other forms according to the form specified.
List generates test module and is used for: under test run environment, the recommendation room data list to generating is verified
Test, will verify in recommendation room data list that unsanctioned recommendation room data and corresponding test run ambient parameter are submitted to
To List Generating Module, it is modified for List Generating Module.
List pretreatment module is used for: according to the process strategy pre-set, to the recommendation room data row being verified
Table carries out pretreatment;And when preprocessing process checking is not passed through, after preprocessor is modified, re-start pretreatment.
In the present embodiment, the described strategy that processes includes one or more in following strategy: removes and recommends room to close the recommendation room broadcast
Between data, remove and recommend room to be shielded recommending room data, removing and recommend room to be closed of (employing blacklist mechanism)
Recommend room data, remove the recommendation room data recommending classification belonging to room disabled.
List pretreatment test module is used for: preprocessing process carries out under test run environment validation test, will be pre-
Processing procedure verifies that unsanctioned the result and corresponding test run ambient parameter submit to list pretreatment module, for row
Table pretreatment module is modified using.
List display module is used for: the recommendation room data list after pretreatment being verified is shown;And in exhibition
Show when process verification does not passes through, after presentation program is modified, re-start displaying.
List shows that test module is used for: under test run environment, displaying process is carried out validation test, will show
Journey verifies that unsanctioned the result and corresponding test run ambient parameter submit to list display module, for list pretreatment
Module is modified using.
Shown in Figure 2, the embodiment of the present invention also provides for a kind of based on above-mentioned test system for testing recommendation room
The method of testing of data list, comprises the following steps:
Step S1: List Generating Module carries out statistical computation according to the room recommendation rules pre-set, generates and recommends room
Between data list;The recommendation room data list that will generate, will be stored in Redis data base or other shapes according to the form specified
In the data base of formula, proceed to step S2.
Step S2: list generates the recommendation room data list to generating under test run environment of the test module and tests
Card test, if checking is not passed through, then will verify unsanctioned recommendation room data and surveys accordingly in recommendation room data list
Trial run environment parameter submits to List Generating Module, proceeds to step S3;If being verified, the most directly proceed to step S4.
During practical operation, in step S2, the recommendation room data list to generating carries out validation test, specifically includes following
Operation: the modes such as comprehensive utilization code walkthrough, data base querying, sample design are verified in recommendation room data list and respectively recommended room
Between the constraints of data whether meet service needed, described constraints includes recommending classification belonging to room, it is recommended that room institute
The effective live duration that owner broadcasts, it is recommended that the room average online number etc. in a week, if constraints is satisfied by service needed,
Show to be verified, otherwise, show to verify and do not pass through.
Step S3: List Generating Module generates the information of test module submission to recommending room data list to enter according to list
Row is revised, and regenerates recommendation room data list, returns step S2.
Step S4: list pretreatment module is according to the process strategy pre-set, to the recommendation room data being verified
List carries out pretreatment, proceeds to step S5.
Step S5: list pretreatment test module carries out validation test to preprocessing process under test run environment, if
Checking is not passed through, then preprocessing process being verified, unsanctioned the result and corresponding test run ambient parameter submit to row
Table pretreatment module, proceeds to step S6;If being verified, the most directly proceed to step S7.
It is understood that process strategy described in step S4 to include one or more in following strategy: remove and recommend
Room closed broadcast recommend room data, remove recommend room shielded recommendation room data, remove recommend room closed
Recommend room data, remove the recommendation room data recommending classification belonging to room disabled.In step S5, to preprocessing process
Carry out validation test, be actually whether checking preprocessor completes holding of each strategy according to above-mentioned process strategy
OK, if so, show to be verified, otherwise, show to verify and do not pass through.
Step S6: the information that list pretreatment module is submitted to according to list pretreatment test module, enters preprocessor
Row re-starts pretreatment after revising, return step S5.
Step S7: the recommendation room data list after pretreatment is verified by list display module is shown, and proceeds to
Step S8;
Step S8: list shows that test module carries out validation test to displaying process under test run environment, if checking
Do not pass through, then will show that the unsanctioned the result of process verification and corresponding test run ambient parameter are submitted to list and shown
Module, proceeds to step S9;If being verified, then terminate.
During practical operation, in step S8, displaying process is carried out validation test, specifically include following operation: checking is shown
During the room whether recommended do not conflict mutually with other rooms and show that interface meets interface requirements and (i.e. shows to obtain friendly conjunction
Reason), if so, show to be verified, otherwise, show to verify and do not pass through.
Step S9: list display module shows, according to list, the information that test module is submitted to, is modified presentation program
After re-start displaying, return step S8.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, without departing from
On the premise of the principle of the invention, it is also possible to make some improvements and modifications, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.