CN109918290A - Auto-screening method, device, computer equipment and the storage medium of target device - Google Patents

Auto-screening method, device, computer equipment and the storage medium of target device Download PDF

Info

Publication number
CN109918290A
CN109918290A CN201910042520.1A CN201910042520A CN109918290A CN 109918290 A CN109918290 A CN 109918290A CN 201910042520 A CN201910042520 A CN 201910042520A CN 109918290 A CN109918290 A CN 109918290A
Authority
CN
China
Prior art keywords
target
target device
test
target detection
equipment
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
Application number
CN201910042520.1A
Other languages
Chinese (zh)
Other versions
CN109918290B (en
Inventor
范永骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910042520.1A priority Critical patent/CN109918290B/en
Publication of CN109918290A publication Critical patent/CN109918290A/en
Application granted granted Critical
Publication of CN109918290B publication Critical patent/CN109918290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of auto-screening methods of target device, device, equipment and medium, this method comprises: by obtaining test dimension and target detection entry, according to the quantity of target detection entry, determine test equipment quantity N, obtain the attribute information and equipment sum m of target device, and N number of target device composition target device group is chosen from m target device, obtain K target device group, according to attribute information, judge whether target device group matches with target detection entry, when matching there are at least one target device group and target detection entry, the target device group to match is determined as test equipment, when each target device group does not match with target detection entry, one is added to test equipment quantity N, if test equipment quantity N is greater than or equal to equipment sum m, then export unsuccessfully prompt letter Breath, otherwise continues to choose, and continue to match, and without manual type screening, improves test equipment screening efficiency.

Description

Auto-screening method, device, computer equipment and the storage medium of target device
Technical field
The present invention relates to electronic technology field more particularly to a kind of auto-screening methods of target device, device, computer Equipment and storage medium.
Background technique
Currently, usually releasing a new mobile applications at regular intervals in Software Industry or old movement being answered It needs to carry out the mobile applications in order to guarantee the normal operation of the mobile applications with the new version of program Test, such as system compatibility test.
In conventional methods where, before testing the mobile applications, it is first determined go out test content, then use Manual type filters out the least target device comprising test content for test from a large amount of equipment, for example adopts first Manually mode obtains Intelligent target mobile phone largely comprising all test contents, then from a large amount of Intelligent target mobile phone The minimal number of test smart phone comprising all test contents is filtered out, still the process of " acquisition-screening " is cumbersome and consumes Shi Jiu, inefficiency.
Therefore, the screening technique for finding a kind of efficient target device becomes asking for those skilled in the art's urgent need to resolve Topic.
Summary of the invention
The embodiment of the present invention provides auto-screening method, device, computer equipment and the storage medium of a kind of target device, Cause screening efficiency low in a manner of solving the problems, such as at present to target device using artificial screening.
A kind of auto-screening method of target device, comprising:
The target detection that each test dimension and each test dimension for obtaining preset target detection project include Entry;
According to the quantity for the target detection entry that each test dimension includes, test equipment quantity N is determined, wherein N For positive integer;
Obtain the attribute information for testing each target device of the target detection project to be screened and described The equipment sum m of target device, wherein m is positive integer, and the equipment sum m is greater than the test equipment quantity N;
According to preset selection mode, N number of target is chosen from the equipment sum m of the target device to be screened Equipment forms target device group, the K selected the target device groups, wherein K is positive integer;
According to the attribute information of the target device of the target device group, judge the target device whether with the target Tested entries match;
When matching there are the target device of target device group described at least one and the target detection entry, It will be determined as the test equipment of the target detection project with the target device group that the target detection entry matches, In, the test equipment is to be actually used in the test target detection item purpose equipment;
When the target device of each target device group does not match with the target detection entry, to institute Test equipment quantity N is stated to carry out adding an operation;
If the test equipment quantity N is greater than or equal to the equipment sum m, it is automatic to export the target detection project Screen the failure prompt information of target device failure, otherwise return execute it is described according to preset selection mode, to be screened N number of target device composition target device group, the K institute selected are chosen in the equipment sum m of the target device The step of stating target device group.
A kind of automatic splinter screening device for screening of target device, comprising:
Data acquisition module, for obtaining each test dimension and each test dimension of preset target detection project The target detection entry that degree includes;
Number of devices determining module, the quantity of the target detection entry for including according to each test dimension, really Determine test equipment quantity N, wherein N is positive integer;
Attribute information obtains module, and each target for testing the target detection project for obtaining to be screened is set The equipment sum m of standby attribute information and the target device, wherein m is positive integer, and the equipment sum m is greater than described Test equipment quantity N;
Equipment group chooses module, is used for according to preset selection mode, total from the equipment of the target device to be screened N number of target device composition target device group, the K selected the target device groups are chosen in number m, wherein K is Positive integer;
Judgment module judges the described of each target device group for the attribute information according to the target device Whether target device matches with the target detection entry;
Test equipment determining module, for when there are the target device of target device group described at least one with it is described When target detection entry matches, the target will be determined as with the target device group that the target detection entry matches The test equipment of test item, wherein the test equipment is to be actually used in the test target detection item purpose equipment;
Add operation module, for when each target device group the target device not with the target detection When entry matches, the test equipment quantity N is carried out plus one operates;
Failure prompt information output module, if being greater than or equal to the equipment sum m for the test equipment quantity N, Otherwise the failure prompt information for then exporting the target detection project automatic screening target device failure triggers the equipment group choosing Modulus block.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize the automatic screening of above-mentioned target device when executing the computer program The step of method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter The step of calculation machine program realizes the auto-screening method of above-mentioned target device when being executed by processor.
Auto-screening method, device, computer equipment and the storage medium of above-mentioned target device, it is preset by first obtaining The target detection entry that each test dimension of target detection project and each test dimension include, is tieed up according to each test The quantity for the target detection entry that degree includes determines test equipment quantity N, obtains to be screened for test target test item Each target device attribute information and target device equipment sum m, and according to preset selection mode, from wait sieve Choose N number of target device composition target device group in m target device of choosing, the K target device group selected, according to The attribute information of the target device of target device group, judge each target device group target device whether with target detection entry Match, it, will be with target detection when matching there are the target device of at least one target device group and target detection entry The target device group that entry matches is determined as the test equipment of target detection project, when the target device of each target device group When not matching with target detection entry, to test equipment quantity N carry out plus one operation, if test equipment quantity N be greater than or Equal to equipment sum m, then the failure prompt information of target detection project automatic screening target device failure is exported, is otherwise pressed again According to preset selection mode, N number of target device composition target device group is chosen in continuation from m target device to be screened, and Continue that the target device and target detection entry of target device group are carried out to match to match.It realizes from a large amount of target device In filter out the test equipment that can be used in all test contents of test target test item, without manual type sieve Choosing, to effectively improve the screening efficiency to test equipment.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of the auto-screening method of target device in one embodiment of the invention;
Fig. 2 is a flow chart of the auto-screening method of target device in one embodiment of the invention;
Fig. 3 is the prompt information for exporting screening progress in one embodiment of the invention in the auto-screening method of target device One flow chart;
Fig. 4 is the process for generating target detection report in one embodiment of the invention in the auto-screening method of target device Figure;
Fig. 5 is a flow chart of step S50 in the auto-screening method of target device in one embodiment of the invention;
Fig. 6 is a flow chart of step S20 in the auto-screening method of target device in one embodiment of the invention;
Fig. 7 is a schematic diagram of the automatic splinter screening device for screening of target device in one embodiment of the invention;
Fig. 8 is another schematic diagram of the automatic splinter screening device for screening of target device in one embodiment of the invention;
Fig. 9 is another schematic diagram of the automatic splinter screening device for screening of target device in one embodiment of the invention;
Figure 10 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The auto-screening method of target device provided by the present application, can be applicable to electronic technology industry as Fig. 1 application In environment, wherein client is communicated by network with server-side.Wherein, client is for performance objective test item Test equipment, specifically can be, but not limited to various personal computers, laptop, smart phone, tablet computer and just Take formula wearable device.Server-side can be with the server cluster of the either multiple server compositions of independent server come real It is existing.Server-side obtains the attribute information of the target device of performance objective test item, according to the attribute information of target device, automatically Filter out the test equipment for meeting the requirement of target detection entry.
In one embodiment, it as shown in Fig. 2, providing a kind of auto-screening method of target device, applies in this way It is illustrated, includes the following steps: for server-side in Fig. 1
The target detection that S10, each test dimension for obtaining preset target detection project and each test dimension include Entry.
In the present embodiment, preset target detection project includes each test dimension, and test dimension is for testing this Dimension in target detection project, such as test dimension are the operating system and resolution ratio for testing the target detection project. Each test dimension includes more than one target detection entry, and target detection entry is in the test target detection project Specific entry, such as.If target detection project is needed to operating system Android 6.0 and operating system Android 5.0 Equipment tested, then test dimension be operating system when, the target detection entry for including includes 6.0 He of Android Android 5.0。
It is understood that test dimension is stored in dimension data library, in the state that can be called at any time.Target is surveyed Strip mesh is stored in articles database, in the state that can be called at any time.
Relationship between dimension and target detection entry is tested in order to better understand, is said below by an example It is bright, specifically it is expressed as follows:
For example, preset target detection project is the compatibility test of application program, which is " one account of safety It is logical ", each test dimension is system, resolution ratio and type, and when test dimension is system, corresponding target detection entry includes Android 4.0, Android 5.0 and Android 6.0, when test dimension is resolution ratio, corresponding target detection entry packet 1280*720 and 1280*800 are included, when test dimension is type, corresponding target detection entry includes Huawei, Samsung and Oppo. Table 1 is the schematic table tested between dimension and target detection entry.
Table 1
Specifically, the storage road of each test dimension of preset target detection project is obtained in dimension data library first Then diameter extracts each test dimension of the preset target detection project according to the store path.For example dimension data library is MySQL database, the store path of the test dimension of preset target detection project be " C: Program Files MySQL MySQL Server 5.0 data ", first in MySQL database obtain " C: Program Files MySQL MySQL Server 5.0 data ", then according to should " C: Program Files MySQL MySQL Server 5.0 data " mention Take the test dimension of the preset target detection project.
It is understood that obtaining the storage road for the target detection entry that each test dimension includes in articles database Then diameter extracts the target detection entry according to the store path.
It should be noted that dimension data library and articles database can be SQL database or oracle database etc., dimension The particular content for spending database, can be set, herein with no restrictions according to practical application.
The quantity of S20, the target detection entry for including according to each test dimension, determine test equipment quantity N, wherein N For positive integer.
In the present embodiment, test equipment quantity N is the target detection entry for including for performance objective test item Target device the smallest quantity of value.
Specifically, the unduplicated target detection entry for including by each test dimension got in step S10 first Quantity, as the corresponding number of entries of each test dimension, then from each number of entries choose the maximum entry of numerical value Quantity, and the number of entries selected is determined as test equipment quantity N.
Assuming that survey set dimension include A, B, C, D four dimensions, corresponding target detection number of entries be respectively NA, NB, NC, ND, then test equipment quantity N=Max { NA, NB, NC, ND }.
For example, continuing to be illustrated with the example in step S10, the unduplicated target detection entry for including under type Quantity is 5, and the quantity for the unduplicated target detection entry for including under system is 3, the unduplicated target for including under resolution ratio The quantity of tested entries is 2, and the quantity for the unduplicated target detection entry for including under mobile phone title is 4, then from 2,3,4 and 5 are selected in 5, and are determined as test equipment quantity for 5.
S30, the attribute information and target for obtaining each target device for test target test item to be screened The equipment sum m of equipment, wherein m is positive integer, and equipment sum m is greater than test equipment quantity N.
In the present embodiment, the attribute information of target device is the information of the software and hardware attribute of the representative target device, than If attribute information is the operating system for representing the attribute of smart phone, such as Android 2.0, equipment sum m is that the target is set Standby quantity in total, wherein equipment sum m is greater than test equipment quantity N.Attribute information is specially stored in attribute database In, in the state that can be called at any time, equipment sum is specially stored in total data library, in the shape that can be called at any time State.
Specifically, server-side first obtains each mesh for test target test item to be screened in attribute database Then the store path of the attribute information of marking device extracts the attribute information according to the store path, next in total data The store path that the equipment sum of target device is obtained in library, then extracts equipment sum m according to the store path.
It should be noted that attribute database and total data library can be SQL database or oracle database etc., belong to The particular content of property database and total data library, can be set, herein with no restrictions according to practical application.
S40, according to preset selection mode, choose N number of target device from the equipment sum m of target device to be screened Form target device group, the K target device group selected, wherein K is positive integer.
Specifically, according to preset selection mode, N number of target device composition is chosen from m target device to be screened Target device group, the K target device group selected.
For example, 3 target devices to be screened are respectively A, B and C according to preset selection mode, taken from A, B and C 2 target devices form target device group, the 3 target device groups selected, respectively AB group, B C group and AC group out.
It should be noted that the particular content of preset selection mode, can be set, herein not according to practical application It is limited.
S50, the attribute information according to the target device of target device group, judge target device whether with target detection entry Match.
Specifically, each tested entries group in target detection project is obtained, the tested entries group in step S10 by obtaining One target detection entry of each test dimension arrived is constituted, if each tested entries group is obtained with choosing in step S40 Target device group at least one target device attribute information it is consistent, then confirm the target device of the target device group with Target detection entry matches, if it exists at least one tested entries group not category with each target device in target device group Property information it is consistent, then confirm target device group target device and target detection entry mismatch.
Step S50 in order to better understand is illustrated below by an example, is specifically expressed as follows:
For example, a tested entries group in target detection project is by " resolution ratio 1280*800 ", " operating system Android 4.0 " and " Huawei " form, another tested entries group in target detection project by " resolution ratio 1280*720 ", " operating system Android 5.0 " and " Samsung " composition, if " resolution ratio 1280*800 ", " operating system Android 4.0 " and The attribute at least one target device in target device group chosen in " Huawei " this tested entries group and step S40 Information is consistent, and " resolution ratio 1280*720 ", " operating system Android 5.0 " and " Samsung " this tested entries group and step The attribute information at least one target device in target device group chosen in S40 is consistent, then confirms the target device The target device of group matches with target detection entry, if " resolution ratio
In 1280*800 ", " operating system Android 4.0 " and " Huawei " this tested entries group and target device group The attribute information of each target device is inconsistent, or " resolution ratio 1280*720 ", " operating system Android 5.0 " and " Samsung " this tested entries group and the attribute information of each target device in target device group are inconsistent, then confirm target The target device and target detection entry of equipment group mismatch.
S60, when matching there are the target device of at least one target device group and target detection entry, will be with target The target device group that tested entries match is determined as the test equipment of target detection project.
Specifically, when the attribute for the target device for depositing at least one the target device group chosen in step s 40 is believed When breath matches with target detection entry, the target device group to match with target detection entry is determined as target detection project Test equipment.
S70, when the target device of each target device group does not match with target detection entry, to test equipment number Amount N is carried out plus an operation.
Specifically, when the attribute information of the target device of each target device group does not match with target detection entry When, test equipment quantity N is carried out plus one operates.
If S80, test equipment quantity N are greater than or equal to equipment sum m, target detection project automatic screening target is exported The failure prompt information of equipment failure, otherwise returns to step S40.
Specifically, after carrying out adding an operation to test quantity N, compare the big of test equipment quantity N and equipment sum m It is small, if test equipment quantity N is greater than or equal to the equipment sum m got in step S30, illustrate target complete to be screened The target device group of equipment composition is still unable to satisfy the requirement of target detection entry, i.e. output target detection project automatic screening The failure prompt information of target device failure.
If test equipment quantity N is less than the equipment sum m got in step S30, can continue from all to be screened Target device in continue to choose N number of target device, continue to match, that is, return to step S40.
It should be noted that the particular content of failure prompt information, can be set according to practical application, not done herein Limitation.
In the corresponding embodiment of Fig. 2, by first obtaining each test dimension of preset target detection project and each The target detection entry for including under the test dimension, according to it is each test dimension under include target detection entry quantity, It determines test equipment quantity N, obtains the attribute information of each target device for test target test item to be screened, with And the equipment sum m of target device, and according to preset selection mode, N number of target is chosen from m target device to be screened Equipment forms target device group, and the K target device group selected is believed according to the attribute of the target device of target device group Breath, judges whether the target device of each target device group matches with target detection entry, when there are at least one targets to set When the target device and target detection entry of standby group match, the target device group to match with target detection entry is determined as The test equipment of target detection project, when the target device of each target device group does not match with target detection entry, Test equipment quantity N is carried out plus one operates, if test equipment quantity N is greater than or equal to equipment sum m, exports target detection Otherwise the failure prompt information of project automatic screening target device failure continues according to preset selection mode from wait sieve again N number of target device composition target device group is chosen in m target device of choosing, and continue to the target device of target device group and Target detection entry carries out matching and matches.It realizes to filter out from a large amount of target device and can be used in test target test The test equipment of all test contents of project, without manual type screening, to effectively improve the sieve to test equipment Select efficiency.
In one embodiment, it is exported in a kind of auto-screening method of target device in Fig. 2 corresponding embodiment as shown in Figure 3 Flow chart of the prompt information of screening progress under an application scenarios, specifically comprises the following steps:
Ratio between S90, calculating test equipment quantity N and equipment sum m.
Specifically, the ratio between test equipment quantity N and equipment sum m is calculated, for example, test equipment quantity N is 50, When equipment sum m is 100, then ratio is 0.5.
S100, determined according to ratio target detection project test equipment screening progress.
In the present embodiment, screening progress is the display item for display test equipment quantity and equipment sum, for example is surveyed Number of devices green display is tried, equipment sum is shown with yellow.
Specifically, the screening progress that the test equipment of target detection project is determined according to the calculated ratio of step S90, than The screening progress of the test equipment of target detection project is such as determined according to step S90 calculated 0.5.
It should be noted that the particular content of display item, can be set, herein with no restrictions according to practical application.
S110, output include the prompt information of screening progress.
Specifically, server-side output includes the prompt information of screening progress.Wherein, the particular content of prompt information, can be with It is set according to practical application, herein with no restrictions.
In the corresponding embodiment of Fig. 3, by calculate test equipment quantity N and equipment sum m between ratio, according to than It is worth the screening progress for determining the test equipment of target detection project, output includes the prompt information of screening progress, because using clear The ratio between progress display test equipment quantity and equipment sum intuitively screens in Chu, it can be ensured that current test is set The standby accounting in target device in total be it is clearly intuitive, improve the visual effect of data.
In one embodiment, it is generated in a kind of auto-screening method of target device in Fig. 2 corresponding embodiment as shown in Figure 4 Target detection is reported in the flow chart under an application scenarios, specifically comprises the following steps:
S120, the target detection use-case for obtaining target detection project.
In the present embodiment, target detection use-case is specially stored in case data library, in the shape that can be called at any time State.
Specifically, the target detection use-case for testing preset target detection project is obtained first in case data library Store path, the target detection use-case is then extracted according to the store path.It should be noted that case data library can be SQL database or oracle database etc., the particular content in case data library can be set, herein according to practical application With no restrictions.
S130, test instruction is sent to test equipment, and obtain the target that test equipment operational objective test case obtains Export result.
In the present embodiment, the instruction that test instruction is tested for starting test equipment.
Specifically, test instruction is sent to test equipment, and obtains the mesh that test equipment operational objective test case obtains Mark output result.
It should be noted that the particular content of test instruction, can be set according to practical application, not limited herein System.
If the target output result of S140, target detection use-case is consistent with the default output result of target detection use-case, Determine that the test result of target detection use-case passes through for test.
In the present embodiment, the result for the output pre-set that output result is target detection use-case is preset.
Specifically, if target output result and the target detection use-case of target detection use-case obtained in step S130 it is pre- If it is consistent to export result, it is determined that the test result of target detection use-case is that test passes through.
If the target output result of S150, target detection use-case and default output result are inconsistent, it is determined that target detection The test result of use-case is that test does not pass through.
Specifically, if the target output result of target detection use-case and default output result are inconsistent, it is determined that target is surveyed The test result of example on probation is that test does not pass through.
Step S130, step S140 and step S150 in order to better understand are illustrated below by an example, tool Body is expressed as follows:
For example, send " 1100 " to smart phone, and obtain that smart phone operational objective test case obtains " transfers accounts into Function " or " wechat log-in interface ", wechat log-in interface are that application program wechat needs user to input account and close before login The default output result at the interface of code, target detection use-case is " success of transferring accounts ", if smart phone operational objective test case obtains To " success of transferring accounts ", it is determined that the test result of target detection use-case be test pass through, if smart phone operational objective test " the wechat log-in interface " that use-case obtains, it is determined that the test result of target detection use-case is that test does not pass through.
S160, preset test report template is obtained.
In the present embodiment, preset test report template is the general test of all preset target detection projects Report template.Preset test report template specially store with template database in, in the state that can be called at any time.
Specifically, the store path of preset test report template is obtained in template database first, then basis should Store path extracts the preset test report template.It should be noted that template database can for SQL database or Oracle database etc., the particular content of template database can be set, herein with no restrictions according to practical application.
S170, the test result of target detection use-case is inserted in preset test report template, obtains target detection item The report of purpose target detection.
In the present embodiment, target detection is reported as the test report of the test object of target detection project.
Specifically, the test result for the target detection use-case determined in step S140 or step S150 is inserted into step In the preset test report template got in S160, the target detection report of target detection project is obtained.
In the corresponding embodiment of Fig. 4, by obtaining the target detection use-case of target detection project, sent to test equipment Test instruction, and obtain the target that test equipment operational objective test case obtains and export as a result, if the mesh of target detection use-case Mark output result is consistent with the default output result of target detection use-case, it is determined that the test result of target detection use-case is test Pass through, if the target output result of target detection use-case and default output result are inconsistent, it is determined that the survey of target detection use-case Test result is that test does not pass through, obtains preset test report template, and the test result filling of target detection use-case is preset In test report template, the target detection report of target detection project is obtained, because of the judgement using computer automatically rapidly Whether the target output result of target detection use-case is consistent with the default output result of target detection use-case, obtains test result, Obtained test result is automatically filled in preset test report template simultaneously, the target for automatically generating target detection project is surveyed Examination report does not need manual type and analyzes to obtain test result and write test report, improves the efficiency for generating test report.
In one embodiment, step in a kind of auto-screening method of target device in Fig. 2 corresponding embodiment as shown in Figure 5 Flow chart of the S50 under an application scenarios, specifically comprises the following steps:
Each tested entries group in S501, acquisition target detection project.
In the present embodiment, tested entries group is made of a target detection entry of each test dimension.Tested entries Group is specially stored in combined data base, in the state that can be called at any time.
Specifically, the store path of each tested entries group in target detection project is obtained in combined data base, so Each tested entries group is extracted according to the store path afterwards.
It should be noted that combined data base can be SQL database or oracle database etc., the tool of combined data base Hold in vivo, can be set according to practical application, herein with no restrictions.
If the attribute information one of S502, each tested entries group at least one target device in target device group It causes, then confirms that the target device of target device group matches with target detection entry.
Specifically, if each tested entries group got in step S501 is set with the target selected in step S40 The attribute information of at least one target device in standby group is consistent, then illustrates target device in current target device group It being capable of whole tested entries groups in coverage goal test item, the i.e. target device and target detection item of confirmation target device group Mesh matches.
S503, if it exists at least one tested entries group not attribute information with each target device in target device group Unanimously, then the target device and target detection entry for confirming target device group mismatch.
Specifically, at least one the tested entries group got in step S501 if it exists is not selected with step S40 Target device group in each target device attribute information it is consistent, then illustrate that there are at least one surveys in target detection project Strip mesh group cannot be covered by the target device in current target device group, that is, confirm the target device and mesh of target device group Label test strip mesh mismatches.
In the corresponding embodiment of Fig. 5, by obtaining each tested entries group in target detection project, wherein test Entry group is made of a target detection entry of each test dimension, if each tested entries group is and in target device group The attribute information of at least one target device is consistent, then confirms the target device and target detection entry phase of target device group Match, at least one tested entries group is not consistent with the attribute information of each target device in target device group if it exists, then really The target device and target detection entry for recognizing target device group mismatch, because quickly determining that target automatically using computer The target device of equipment group match with target detection entry or the target device of target device group and target detection entry not Matching is not necessarily to manpower intervention, so saving human cost.
In one embodiment, step in a kind of auto-screening method of target device in Fig. 2 corresponding embodiment as shown in Figure 6 Flow chart of the S20 under an application scenarios, specifically comprises the following steps:
The quantity of S201, the unduplicated target detection entry for including by each test dimension, as each test dimension The quantity of corresponding target detection entry.
Specifically, the number for the unduplicated target detection entry for including by each test dimension got in step S10 Amount as the quantity of the corresponding target detection entry of each test dimension, for example tests the target detection entry that dimension includes and is " resolution ratio 1280*720 ", " resolution ratio 1280*800 " and " resolution ratio 1280*720 ", then what the test dimension included does not repeat Target detection entry quantity be 2, by 2 quantity as the corresponding target detection entry of the test dimension.
S202, numerical value maximum quantity is chosen from the quantity of each target detection entry, and the numerical value selected is maximum Quantity is determined as test equipment quantity N.
Specifically, numerical value maximum quantity is chosen from the quantity of each target detection entry, and most by the numerical value selected Big quantity is determined as test equipment quantity N, for example the quantity of a target detection entry is 3, another target detection entry Quantity is 5, then numerical value maximum quantity 5 is chosen from 3 and 5, and be determined as test equipment quantity N for select 5.
In the corresponding embodiment of Fig. 6, by the number for the unduplicated target detection entry for including by each test dimension Amount, as the quantity of the corresponding target detection entry of each test dimension, from the corresponding target detection entry of each test dimension Quantity in choose numerical value maximum quantity, and the numerical value maximum quantity selected is determined as test equipment quantity N because using Computer chooses numerical value maximum quantity from the quantity of the corresponding target detection entry of each test dimension automatically, obtains test and sets Standby quantity N, it is undoubtedly more efficient than being chosen using manual type, so improving the efficiency of quantity selection.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of automatic splinter screening device for screening of target device, the automatic splinter screening device for screening of the target device are provided It is corresponded with the auto-screening method of target device in above-described embodiment.As shown in fig. 7, the Automatic sieve of the target device chooses to install It sets and obtains module 703 including data acquisition module 701, number of devices determining module 702, attribute information, equipment group chooses module 704, judgment module 705, test equipment determining module 706, add operation module 707 and failure prompt information output module 708. Detailed description are as follows for each functional module:
Data acquisition module 701, for obtaining each test dimension and each test dimension of preset target detection project The target detection entry that degree includes;
Number of devices determining module 702, the quantity of the target detection entry for including according to each test dimension, determines Test equipment quantity N, wherein N is positive integer;
Attribute information obtains module 703, and each target for test target test item for obtaining to be screened is set The equipment sum m of standby attribute information and target device, wherein m is positive integer, and equipment sum m is greater than test equipment quantity N;
Equipment group chooses module 704, is used for according to preset selection mode, from the target device of equipment sum to be screened Equipment sum m in choose N number of target device composition target device group, the K target device group selected, wherein K is Positive integer;
Judgment module 705, for the attribute information according to the target device of target device group, judge target device whether with Target detection entry matches;
Test equipment determining module 706, for when there are the target device of at least one target device group and target detections When entry matches, the target device group to match with target detection entry is determined as to the test equipment of target detection project, Wherein, test equipment is to be actually used in test target test item purpose equipment;
Add operation module 707, for when each target device group target device not with target detection entry phase Timing, carries out test equipment quantity N plus one operates;
Failure prompt information output module 708 exports if being greater than or equal to equipment sum m for test equipment quantity N Otherwise the failure prompt information of target detection project automatic screening target device failure triggers equipment group and chooses module 704.
Further, as shown in figure 8, the automatic splinter screening device for screening of target device further include:
Progress ratio calculation module 709, for calculating the ratio between test equipment quantity N and equipment sum m;
Progress determining module 710, the screening progress of the test equipment for determining target detection project according to ratio;
Progress prompt message output module 711, for exporting the prompt information comprising screening progress.
Further, as shown in figure 9, the automatic splinter screening device for screening of target device further include:
Use-case obtains module 712, for obtaining the target detection use-case of target detection project;
Instruction sending module 713 for sending test instruction to test equipment, and obtains the test of test equipment operational objective The target that use-case obtains exports result;
First test result determining module 714, if the target output result and target detection for target detection use-case are used The default output result of example is consistent, it is determined that the test result of target detection use-case is that test passes through;
Second test result determining module 715, if target output result and default output knot for target detection use-case Fruit is inconsistent, it is determined that the test result of target detection use-case is that test does not pass through;
Template obtains module 716, for obtaining preset test report template;
Module 717 is filled in report, for the test result of target detection use-case to be inserted in preset test report template, Obtain the target detection report of target detection project.
Further, which includes:
Entry group acquisition submodule 7051, for obtaining each tested entries group in target detection project, wherein test Entry group is made of a target detection entry of each test dimension;
First matched sub-block 7052, if for each tested entries group at least one target in target device group The attribute information of equipment is consistent, then confirms that the target device of target device group matches with target detection entry;
Second matched sub-block 7053, at least one tested entries group if it exists each of not with target device group The attribute information of target device is consistent, then confirms that the target device of target device group and target detection entry mismatch.
Further, which includes:
Number of entries determines submodule 7021, the unduplicated target detection entry for including by each test dimension Quantity, the quantity as the corresponding target detection entry of each test dimension;
Test equipment quantity determines submodule 7022, maximum for choosing numerical value from the quantity of each target detection entry Quantity, and the numerical value maximum quantity selected is determined as test equipment quantity N.
The specific restriction of automatic splinter screening device for screening about target device may refer to above for the automatic of target device The restriction of screening technique, details are not described herein.Modules in the automatic splinter screening device for screening of above-mentioned target device can whole or portion Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold The corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be server-side, internal junction Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing the data that the auto-screening method of target device is related to.The network of the computer equipment connects Mouth with external terminal by network connection for being communicated.To realize that a kind of target is set when the computer program is executed by processor Standby auto-screening method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize above-described embodiment target device when executing computer program The step of auto-screening method, such as step S10 shown in Fig. 2 to step S80.Alternatively, when processor executes computer program Realize the function of each module/unit of the automatic splinter screening device for screening of target device in above-described embodiment, such as module 701 shown in Fig. 7 To the function of module 708.To avoid repeating, which is not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated The auto-screening method that target device in above method embodiment is realized when machine program is executed by processor, alternatively, the computer The function of each module/unit in the automatic splinter screening device for screening of target device in above-mentioned apparatus embodiment is realized when program is executed by processor Energy.To avoid repeating, which is not described herein again.Those of ordinary skill in the art will appreciate that realizing complete in above-described embodiment method Portion or part process are relevant hardware can be instructed to complete by computer program, and the computer program can be deposited It is stored in a non-volatile computer read/write memory medium, the computer program is when being executed, it may include such as above-mentioned each method Embodiment process.Wherein, used in each embodiment provided herein to memory, storage, database or its Any reference of its medium, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only deposits Reservoir (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate (DDR) SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory are total Line (Rambus) directly RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of auto-screening method of target device, which is characterized in that the auto-screening method of the target device includes:
The target detection entry that each test dimension and each test dimension for obtaining preset target detection project include;
According to the quantity for the target detection entry that each test dimension includes, test equipment quantity N is determined, wherein N is positive Integer;
Obtain the attribute information for testing each target device of the target detection project to be screened and the target The equipment sum m of equipment, wherein m is positive integer, and the equipment sum m is greater than the test equipment quantity N;
According to preset selection mode, N number of target device is chosen from the equipment sum m of the target device to be screened Form target device group, the K selected the target device groups, wherein K is positive integer;
According to the attribute information of the target device of the target device group, judge the target device whether with the target detection Entry matches;
It, will be with when matching there are the target device of target device group described at least one and the target detection entry The target device group that the target detection entry matches is determined as the test equipment of the target detection project, wherein The test equipment is to be actually used in the test target detection item purpose equipment;
When the target device of each target device group does not match with the target detection entry, to the survey Examination number of devices N is carried out plus an operation;
If the test equipment quantity N is greater than or equal to the equipment sum m, the target detection project automatic screening is exported Otherwise the failure prompt information of target device failure returns described in executing according to preset selection mode, described in be screened N number of target device composition target device group, the K selected the mesh are chosen in the equipment sum m of target device The step of marking device group.
2. the auto-screening method of target device as described in claim 1, which is characterized in that described to the test equipment Quantity N is carried out after adding an operation, the auto-screening method of the target device further include:
Calculate the ratio between the test equipment quantity N and the equipment sum m;
The screening progress of the test equipment of the target detection project is determined according to the ratio;
Output includes the prompt information of the screening progress.
3. the auto-screening method of target device as described in claim 1, which is characterized in that will be surveyed with the target described The target device group that strip mesh matches is determined as after the test equipment of the target detection project, the target device Auto-screening method further include:
Obtain the target detection use-case of the target detection project;
Test instruction is sent to the test equipment, and obtains the test equipment and runs the mesh that the target detection use-case obtains Mark output result;
If the target output result of the target detection use-case is consistent with the default output result of the target detection use-case, really The test result of the fixed target detection use-case is that test passes through;
If the target output result of the target detection use-case and the default output result are inconsistent, it is determined that the target is surveyed The test result of example on probation is that test does not pass through;
Obtain preset test report template;
The test result of the target detection use-case is inserted in the preset test report template, the target detection is obtained The target detection of project is reported.
4. the auto-screening method of target device as described in claim 1, which is characterized in that described according to the target device Attribute information, judge whether the target device of each target device group matches packet with the target detection entry It includes:
Obtain each tested entries group in the target detection project, wherein the tested entries group is by each test The target detection entry of one of dimension is constituted;
If attribute information of each tested entries group with target device described at least one of the target device group Unanimously, then the target device and the target detection entry for confirming the target device group match;
At least one described tested entries group not attribute with each of the target device group target device if it exists Information is consistent, then confirms that the target device of the target device group and the target detection entry mismatch.
5. such as the auto-screening method of the described in any item target devices of Claims 1-4, which is characterized in that the basis is every The quantity for the target detection entry that a test dimension includes, determines that test equipment quantity N includes:
The quantity for the unduplicated target detection entry for including by each test dimension, as each test dimension pair The quantity for the target detection entry answered;
Numerical value maximum quantity, and the numerical value maximum number that will be selected are chosen from the quantity of each target detection entry Amount is determined as the test equipment quantity N.
6. a kind of automatic splinter screening device for screening of target device, which is characterized in that the automatic splinter screening device for screening of the target device includes:
Data acquisition module, for obtain preset target detection project each test dimension and each test dimension packet The target detection entry contained;
Number of devices determining module, the quantity of the target detection entry for including according to each test dimension, determines and surveys Try number of devices N, wherein N is positive integer;
Attribute information obtains module, for obtaining each target device for testing the target detection project to be screened The equipment sum m of attribute information and the target device, wherein m is positive integer, and the equipment sum m is greater than the test Number of devices N;
Equipment group chooses module, is used for according to preset selection mode, from the equipment sum m of the target device to be screened Choose N number of target device composition target device group, the K selected the target device groups, wherein K is positive whole Number;
Whether judgment module judges the target device for the attribute information according to the target device of the target device group Match with the target detection entry;
Test equipment determining module, for when there are the target devices of target device group described at least one and the target When tested entries match, the target detection will be determined as with the target device group that the target detection entry matches The test equipment of project, wherein the test equipment is to be actually used in the test target detection item purpose equipment;
Add operation module, for when each target device group the target device not with the target detection entry When matching, the test equipment quantity N is carried out plus one operates;
Failure prompt information output module, it is defeated if being greater than or equal to the equipment sum m for the test equipment quantity N The failure prompt information of the target detection project automatic screening target device failure out, otherwise triggers the equipment group and chooses mould Block.
7. the automatic splinter screening device for screening of target device as claimed in claim 6, which is characterized in that the Automatic sieve of the target device Screening device further include:
Progress ratio calculation module, for calculating the ratio between the test equipment quantity N and the equipment sum m;
Progress determining module, the screening progress of the test equipment for determining the target detection project according to the ratio;
Progress prompt message output module, for exporting the prompt information comprising the screening progress.
8. the automatic splinter screening device for screening of the target device as described in any one of claim 6 to 7, which is characterized in that the target The automatic splinter screening device for screening of equipment further include:
Use-case obtains module, for obtaining the target detection use-case of the target detection project;
Instruction sending module for sending test instruction to the test equipment, and obtains the test equipment and runs the mesh The target output result that mark test case obtains;
First test result determining module, if being used for the target output result of the target detection use-case and the target detection The default output result of example is consistent, it is determined that the test result of the target detection use-case is that test passes through;
Second test result determining module, if being tied for the target output result of the target detection use-case and the default output Fruit is inconsistent, it is determined that the test result of the target detection use-case is that test does not pass through;
Template obtains module, for obtaining preset test report template;
Module is filled in report, for the test result of the target detection use-case to be inserted the preset test report template In, obtain the target detection report of the target detection project.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of auto-screening method of target device described in any one of 5.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the Automatic sieve of realization target device as described in any one of claims 1 to 5 when the computer program is executed by processor The step of choosing method.
CN201910042520.1A 2019-01-17 2019-01-17 Automatic screening method and device for target equipment, computer equipment and storage medium Active CN109918290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910042520.1A CN109918290B (en) 2019-01-17 2019-01-17 Automatic screening method and device for target equipment, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910042520.1A CN109918290B (en) 2019-01-17 2019-01-17 Automatic screening method and device for target equipment, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109918290A true CN109918290A (en) 2019-06-21
CN109918290B CN109918290B (en) 2022-03-15

Family

ID=66960356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910042520.1A Active CN109918290B (en) 2019-01-17 2019-01-17 Automatic screening method and device for target equipment, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109918290B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936605A (en) * 2015-12-29 2017-07-07 迈普通信技术股份有限公司 A kind of method and apparatus for creating test assignment
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN107889139A (en) * 2016-09-30 2018-04-06 中国移动通信有限公司研究院 A kind of signal test system and method
CN107908544A (en) * 2017-08-21 2018-04-13 中国平安人寿保险股份有限公司 A kind of use-case test method and terminal device
CN108459964A (en) * 2018-03-06 2018-08-28 平安科技(深圳)有限公司 Test cases selection method, apparatus, equipment and computer readable storage medium
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936605A (en) * 2015-12-29 2017-07-07 迈普通信技术股份有限公司 A kind of method and apparatus for creating test assignment
CN107889139A (en) * 2016-09-30 2018-04-06 中国移动通信有限公司研究院 A kind of signal test system and method
CN107908544A (en) * 2017-08-21 2018-04-13 中国平安人寿保险股份有限公司 A kind of use-case test method and terminal device
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN108459964A (en) * 2018-03-06 2018-08-28 平安科技(深圳)有限公司 Test cases selection method, apparatus, equipment and computer readable storage medium
CN109144869A (en) * 2018-08-16 2019-01-04 平安科技(深圳)有限公司 Automated testing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109918290B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN110377667A (en) It is associated with map methods of exhibiting, device, computer equipment and storage medium
CN109189785A (en) Date storage method, device, computer equipment and storage medium
CN108470004A (en) Test script generation method, test method, device, equipment and storage medium
CN109040191B (en) File downloading method and device, computer equipment and storage medium
CN108717391A (en) Monitoring device, method and the computer readable storage medium of test process
CN109377383A (en) Product data synchronous method, device, computer equipment and storage medium
CN106294299A (en) A kind of report form generation method and device
CN103294805B (en) The creation method of data warehouse personalization dimension table and device
CN107590144A (en) A kind of file memory method and terminal
CN107977317A (en) A kind of test method of data network, system and relevant apparatus
CN110221960A (en) Generate method and device, the computer equipment, storage medium of test case
CN109189385A (en) Algorithm configuration method, apparatus, computer equipment and storage medium
CN109543073A (en) Enterprise's supply and marketing relation map generation method, device and computer equipment
CN110147201A (en) Line compression method, apparatus, computer equipment and storage medium
CN110059002A (en) Generation method, test equipment, storage medium and the device of test data
CN108268275A (en) Software version control method and software version control device
CN109325868A (en) Questionnaire data processing method, device, computer equipment and storage medium
CN109669644A (en) A kind of method and apparatus of data storage
CN104639359B (en) The processing method and device of information
CN107943912B (en) A kind of response type Resource TOC data visualization management method, terminal and device
CN109767288A (en) Product information synchronous method, device, computer equipment and storage medium
CN109918290A (en) Auto-screening method, device, computer equipment and the storage medium of target device
CN109901998A (en) Recovery method as resource, device, system, computer equipment and storage medium
CN109656817A (en) A kind of automation interface test device and equipment
CN109857656A (en) Adaptation method, device, computer equipment and storage medium based on test

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