CN109101431A - A kind of testing case management, computer readable storage medium and terminal device - Google Patents

A kind of testing case management, computer readable storage medium and terminal device Download PDF

Info

Publication number
CN109101431A
CN109101431A CN201811121811.1A CN201811121811A CN109101431A CN 109101431 A CN109101431 A CN 109101431A CN 201811121811 A CN201811121811 A CN 201811121811A CN 109101431 A CN109101431 A CN 109101431A
Authority
CN
China
Prior art keywords
test case
text
measured
module
case
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
Application number
CN201811121811.1A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811121811.1A priority Critical patent/CN109101431A/en
Publication of CN109101431A publication Critical patent/CN109101431A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

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)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of testing case management, computer readable storage medium and terminal devices, comprising: software under testing is divided into multiple modules to be measured according to functional requirement;Test use cases are established for multiple modules to be measured, for any module to be measured in multiple modules to be measured, module to be measured at least corresponds at least one text test case in test use cases;According to the corresponding relationship of text test case and module to be measured that the value and test case that each of pre-set importance density to be measured are concentrated, the rank that test case concentrates each text test case is successively calculated;For any text test case that test case is concentrated, if the rank of text test case is more than preset value, for the corresponding Rich Media's test case of text test case creation.By the way that corresponding Rich Media's test case is arranged to the high text test case of rank, avoids important text test case data and lose brought test loss.

Description

A kind of testing case management, computer readable storage medium and terminal device
Technical field
The invention belongs to field of computer technology more particularly to a kind of testing case managements, computer-readable storage Medium and terminal device.
Background technique
In recent years, with increasingly competitive and software test industry the development of Software Industry, each software company is opened Begin the quality for gradually paying attention to software, recognizes the necessity of software test.During test software product, root is usually required It is designed in advance according to specific software product and writes test case and form file.Test case refer to for implement test and to tested One specific collection of input data, operation or the setting of various environment and expected result that system provides.In test software In the process, test verifying is carried out to each function of software product according to designing the test case write before.
In test case management, conventional scheme is all to do the typing of text use-case, or the typing in text use-case On the basis of add corresponding document attachment.In the external transmitting for doing disparity items, it will usually because the expression of text use-case lacks It loses and information is caused to be lost.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of testing case management, computer readable storage medium and Terminal device, to solve the problems, such as text test case information loss in the prior art.
The first aspect of the embodiment of the present invention provides a kind of testing case management, comprising:
Software under testing is divided into multiple modules to be measured according to functional requirement;
Establish test use cases for the multiple module to be measured, wherein in the multiple module to be measured it is any to Module is surveyed, the module to be measured at least corresponds at least one text test case in the test use cases;
The text test case concentrated according to the value and the test case that each of pre-set importance density to be measured with The corresponding relationship of module to be measured successively calculates the rank that the test case concentrates each text test case;
For any text test case that the test case is concentrated, if the rank of the text test case is more than pre- If value, then be the corresponding Rich Media's test case of the text test case creation.
The second aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
Software under testing is divided into multiple modules to be measured according to functional requirement;
Establish test use cases for the multiple module to be measured, wherein in the multiple module to be measured it is any to Module is surveyed, the module to be measured at least corresponds at least one text test case in the test use cases;
The text test case concentrated according to the value and the test case that each of pre-set importance density to be measured with The corresponding relationship of module to be measured successively calculates the rank that the test case concentrates each text test case;
For any text test case that the test case is concentrated, if the rank of the text test case is more than pre- If value, then be the corresponding Rich Media's test case of the text test case creation.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer-readable instruction that can run on the processor, the processor executes the computer can Following steps are realized when reading instruction:
Software under testing is divided into multiple modules to be measured according to functional requirement;
Establish test use cases for the multiple module to be measured, wherein in the multiple module to be measured it is any to Module is surveyed, the module to be measured at least corresponds at least one text test case in the test use cases;
The text test case concentrated according to the value and the test case that each of pre-set importance density to be measured with The corresponding relationship of module to be measured successively calculates the rank that the test case concentrates each text test case;
For any text test case that the test case is concentrated, if the rank of the text test case is more than pre- If value, then be the corresponding Rich Media's test case of the text test case creation.
The present invention provides a kind of testing case management, computer readable storage medium and terminal device, according to The rank of the text test case of software is surveyed, for significance level height, influences big text test case setting pair on software test The Rich Media's test case answered avoids important text test case data and loses brought test loss.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of flow diagram of testing case management provided in an embodiment of the present invention;
Fig. 2 is a kind of correspondence diagram of module to be measured and test case provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of test example executing method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another testing case management provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another testing case management provided in an embodiment of the present invention;
Fig. 6 is a kind of structural block diagram of test case management device provided in an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
The embodiment of the invention provides a kind of testing case managements.In conjunction with Fig. 1, this method comprises:
Software under testing is divided into multiple modules to be measured according to functional requirement by S101.
Functional requirement provides the software function that developer must realize in the product, and user is completed using these functions Task meets business demand.It is to measure a software visual representation that whether functional requirement, which can reach preset standard, therefore, In the embodiment of the present invention, software under testing is divided into multiple modules to be measured according to functional requirement.
S102 establishes test use cases for the multiple module to be measured, wherein for appointing in the multiple module to be measured One module to be measured, the module to be measured at least correspond at least one text test case in the test use cases.
For software under testing and its testing requirement, one group of test case is designed, as shown in Fig. 2, due to the multiple to be measured In module, it is understood that there may be at least two modules to be measured for realizing the same or similar demand, at this point, can design one it is general Text test case, for example, text test case 1 can cover module 1 to be measured to module 3 to be measured, i.e. a text test simultaneously Use-case is possibly used for test more than one module to be measured.
Correspondingly, a module to be measured may need to be arranged multiple text tests due to its significance level and complexity Use-case, for example, module to be measured 4 is tested respectively by text test case 2 and text test case 3;
And as shown in Fig. 2, there is also such a case, the partial function of module 3 to be measured and module 4 to be measured have centainly Correlation, another part function also has certain correlation with module 1 to be measured and module to be measured 2, and module 1-3 to be measured is total at this time Enjoy text test case 1, the shared text test case 2 of module 3 and 4 to be measured.
S103 is tested according to the text that the value and the test case that each of pre-set importance density to be measured are concentrated The corresponding relationship of use-case and module to be measured successively calculates the rank that the test case concentrates each text test case.
For most softwares, the half that the higher software function of user's frequency of use generally only accounts for software general function is left The right side, at this point, the advantage function of the function high for user's frequency of use, software and featured function etc. affect to the greatest extent The quality of software and the usage experience of user according to Software functional requirements, are in embodiments of the present invention based on this thought Each module to be measured pre-sets the value of different degree.
For example, it is optional, by module to be measured according to the significance level for realizing function, it is divided into five grades, five grades pair The value for the different degree answered is followed successively by 0.2,0.4,0.6,0.8 and 1.0.
Optionally, the embodiment of the present invention provides a kind of grade method for distinguishing for calculating text test case, this method comprises: needle To any text test case that the test case is concentrated, all moulds to be measured corresponding to the text test case are obtained Block;The sum for calculating the value of the different degree of all modules to be measured, obtains the rank of the text test case.
Such as Fig. 2, text test case 1 is for testing module 1 to be measured to module 3 to be measured, if module to be measured 1 is to module to be measured The value of 3 different degree is followed successively by 0.2,0.4 and 0.4, then the rank of text test case 1 is 1.0;If module 4 to be measured is important The value of degree is 0.4, then since text test case 2 is for testing module 3 and module to be measured 4 to be measured, text test case 2 at this time Rank be 0.8;If the value of the different degree of module 5 to be measured be 0.2, due to module 3 to be measured for test module 4 to be measured and to Module 5 is surveyed, then the rank of text test case 3 is 0.6 ..., by this method, successively calculates test case and concentrates each The rank of text test case.
S104, for any text test case that the test case is concentrated, if the rank of the text test case It is then the corresponding Rich Media's test case of the text test case creation more than preset value.
By the rank of the step S101- step S103 text test case being calculated, when the grade of text test case When not high, it is more for testing as important module to be measured or text test case to represent the corresponding module to be measured of text test case A module to be measured, at this point, the rank of text test case can embody its significance level, when the rank of text test case is more than Preset value is illustratively the corresponding Rich Media's test case of text test case creation, rich matchmaker when the preset value is 0.4 Body test case is the test case of the forms such as voice, video, picture, animation, can completely, intuitively show test case Testing procedure avoids loss of data brought by text test case.
The embodiment of the invention provides a kind of testing case managements, comprising: by software under testing according to functional requirement point For multiple modules to be measured;Test use cases are established for multiple modules to be measured, for any module to be measured in multiple modules to be measured, Module to be measured at least corresponds at least one text test case in test use cases;According to each of pre-seting module weight to be measured The corresponding relationship of text test case and module to be measured that the value and test case to be spent is concentrated, successively calculates test use cases In each text test case rank;For any text test case that test case is concentrated, if text test case Rank is more than preset value, then is the corresponding Rich Media's test case of text test case creation.By being surveyed to the high text of rank Corresponding Rich Media's test case is arranged in example on probation, avoids important text test case data and loses brought test damage It loses.
In conjunction with Fig. 3, the embodiment of the invention provides a kind of test example executing method, the realization of this method is based on above-mentioned reality The step S101-S104 in example is applied, this method comprises:
S301 is tested according to the text that the value and the test case that each of pre-set importance density to be measured are concentrated The corresponding relationship of use-case and module to be measured successively calculates the rank that the test case concentrates each text test case.
The concrete methods of realizing of this step can refer to the step S103 in above-described embodiment, and the embodiment of the present invention is herein no longer It repeats.
S302, the rank of each text test case is concentrated according to test case, and the text that implementation of test cases is concentrated is surveyed Example on probation.
Optionally, the text test case that can be concentrated by the following two kinds method implementation of test cases:
The first, the text test case that the test case is concentrated is arranged according to the sequence of rank from high to low Sequence obtains test case queue;The text test case in the test case queue is successively executed according to ranking results.
Specifically, as shown in Fig. 2, being followed successively by by the rank for calculating acquisition text test case 1 to text test case 3 1.0,0.8 and 0.6, it is only illustrated by taking text test case 1- text test case 3 as an example at this time, in the first feasible reality It applies in mode, text test case 1 to text test case 3 is arranged by rank descending, is followed successively by text test case 1, text This test case 2 and text test case 3 are used at this point, successively executing text test according to the significance level of text test case Example 1, text test case 2 and text test case 3 can preferentially find the bug of the module to be measured of software under testing critical function (loophole), when software is especially complex, usually stopping criterion is tested in setting, and the method provided through the embodiment of the present invention can Important test case is preferentially executed, in the shortest time can detect the loophole of important module to be measured or in the shortest time Detect module to be measured as much as possible.
Second: the highest text test case of executive level;To the text test case being not carried out, successively calculate again The rank of each text test case, wherein for any text test case in the text test case being not carried out, All modules to be measured corresponding to the text test case do not include module to be measured after tested;According to the knot recalculated The rank of fruit, the highest text test case of executive level, the text test case being not carried out again to residue recalculates, root According to the highest text test case of the result executive level recalculated again, use is tested until executing and completing all texts Example.
Specifically, as shown in Fig. 2, being followed successively by by the rank for calculating acquisition text test case 1 to text test case 3 1.0,0.8 and 0.6, it is only illustrated by taking text test case 1- text test case 3 as an example at this time, in second of feasible reality Apply in mode, it is preferential to execute text test case 1, at this time module 1 to be measured into module 3 to be measured with text test case 1 pair The function of answering is tested, and the rank of text test case 2 and text test case 3 is recalculated, at this time since text is surveyed Module 3 to be measured corresponding to example 2 on probation is tested by text test case 1, i.e., the survey of partial function is completed in module 3 to be measured Examination does not include the value of the different degree of the module to be measured 3 corresponding to it when calculating the rank of text test case 2 at this time, at this point, Calculated result is that the rank of text test case 2 is 0.4, and the rank of text test case 3 is 0.6, preferential to execute text test Use-case 3 has executed test case 3, and module 4 and module to be measured 5 to be measured are tested, and adjusts text test by this dynamic Use-case grade method for distinguishing, the module to be measured that test case can be made as far as possible to cover in testing time identical situation are most.
The embodiment of the invention provides a kind of test example executing methods, and the implementation of this method is based on reality corresponding to Fig. 1 Testing case management provided by example is applied, on the basis of the testing case management that embodiment provides, by survey The test case descending sort that example on probation is concentrated, according to the test case that ranking results implementation of test cases is concentrated, or by pair The mode implementation of test cases of text test case level dynamic adjustment can reach the high module to be measured of preferential test different degree Or the beneficial effect of module testing coverage rate to be measured is improved within the scheduled testing time.
In conjunction with Fig. 4, the embodiment of the invention provides a kind of testing case managements, this method comprises:
S401 sentences after the module to be measured is modified for any module to be measured in the multiple module to be measured Break for testing whether the text test case of the module to be measured is corresponding with Rich Media's test case.
Since software needs to carry out multiple test-modification process during exploitation, when a module to be measured occurs After modification, need to test modified module again.At this point, calling the corresponding text test case of the module.Due to The case where text test case is easy to appear loss of data, at this point, judging whether text test case is corresponding with Rich Media's survey Example on probation.
S402 passes through text test case and richness if the text test case is corresponding with Rich Media's test case respectively Media test case tests the module to be measured, obtains test result.
When text test case rank is higher, it is corresponding with Rich Media's test case, can be tested respectively by text at this time Use-case and Rich Media's test case test modified module to be measured, obtain test result.
S403 judges whether the test result of text test case and the test result of Rich Media test case are consistent.
The test result and Rich Media's test case pair of test acquisition will be carried out to module to be measured by text test case The test result that module to be measured obtains is compared, and test result is consistent, then illustrates that text test case does not have loss of data, If test result is inconsistent, illustrate that loss of data occurs for text test case.
S404, for text test case setting mark, is surveyed if inconsistent with indicating that tester modifies the text Example on probation.
The embodiment of the invention provides a kind of testing case managements, by testing text test case and Rich Media The test result of same module to be measured is compared in use-case, and the text test case of loss of data occurs for discovery in time, to refer to Show that tester modifies the text test case, reaches the beneficial effect of text test case maintenance.
In conjunction with Fig. 5, the embodiment of the invention provides a kind of testing case managements, this method comprises:
S501, for test case concentrate any test case, be the test case creation unique encodings, it is described only One coding includes corresponding to the number information, the version number information of the software under testing, the test case of the software under testing Module to be measured number information and the test case number information, wherein if the test case be text test use The example and test case is corresponding with Rich Media's test case, then the text test case and corresponding Rich Media's test case Unique encodings it is identical.
In embodiments of the present invention, illustratively, test case is compiled using a kind of coding mode of more bits Code.Illustratively, which includes 20 bits, and 20 bits are constituted by four sections, and each section of bit meaning is described below in detail:
First segment: 1-4, software number is represented.One enterprise may survey the software of its multiple exploitation maintenance Examination.A Games Software developed such as 0000 for the said firm, the 0001 a management software developed for the said firm;
Second segment: 5-8, software version number is represented.For example, such as first 1-8 is 0,000 0000, then represents above-mentioned The version v1.0 of Games Software;Such as first 1-8 represents the version v3.0 of above-mentioned management software for 0,001 0010.
Third section: 9-16, the number of the module to be measured of the version software is represented;
It should be noted that module to be measured representated by third section bit, refers to a kind of division according to the actual situation, Such as according to the division of functional requirement.
4th section: 17-20, represent the test case number of the module to be measured.
Since text test case is identical as the actual content that corresponding Rich Media's test case is included, if A text test case is corresponding with Rich Media's test case in test case library, then text test case and corresponding Rich Media The unique encodings of test case are identical.
By this coding mode, the mapping relations between test case and module to be measured can also be shown to come, such as Module to be measured for one is numbered according to the module to be measured in the encoded information of test case, so that it may be determined for testing this The test case of module to be measured.
S502 calls the test case according to the unique encodings of the test case after software under testing upgrading The test case of concentration.
Specifically, after being upgraded according to software under testing module increase, deletion, update/continue to use three kinds of situations to test This step of use-case is described.
The first, the increase of module to be measured.The upgrading of same software, number first segment (i.e. 1-4) it is identical, Software version number upgrades one, and if 5-8 of original version v1.0 are 0000,5-8 of the version v2.0 after upgrading are 0001, when needing to detect a module under the version, first calls and survey in the corresponding test case library of this version Example is tried out, does not have the corresponding available test case of the module in the corresponding test case library of this version, index is than this version at this time The corresponding test case library of the software of this low version, since the module is newly-increased module, a version lower than this version The corresponding test case library of software in also be not present the corresponding test case of the module, at this point, for the module creation test use Example (including text test case or text test case and Rich Media's test case), and it is corresponding to be stored in this version software In test case library.
For example, the software under testing is a Games Software of a company, which is encoded to 0000 (1-4 Position), version number is 0011 (5-8, v4.0, fourth edition), and a module under the version is newly-increased module, the newly-increased mould Whether block coding is 0,010 0110 (9-16), index deposit in the corresponding test case library of fourth edition Games Software at this time In the corresponding test case of 0,010 0110 modules, 17-20 contents are detected as sky, i.e. fourth edition Games Software is corresponding There is no the corresponding test case of the module in test case library.Then client automatic indexing 0000 (Games Software coding) 0010 Whether (5-8, the third edition) 0,010 0110 (module) is corresponding with test case.Due to the module and third edition software Speech is newly-increased module, therefore does not have 0,010 0110 this module in third edition software, and also there is no the corresponding tests of the module to use Example, at this point, (only creating text test case, or creation text test case and Rich Media for newly-increased module creation test case Test case).
Second, the deletion of module to be measured.
Continue to be illustrated using above-mentioned example.Such as certain module of the third edition (0010) of the said firm's Games Software (0000) (0,111 1110) are deleted in fourth edition, then do not have the module in fourth edition, also without the module testing use-case, without right The module is tested, and the test case of the module of the third edition is only stored in the test case library of the third edition.
The third, module to be measured is updated/is continued to use.
If the third edition (0010) of the said firm's Games Software (0000) includes module (0,111 1110), the game (0000) Fourth edition (0011) also include the module (0,111 1110), when fourth edition tests the module for the first time, the corresponding survey of fourth edition In example library on probation there is no the corresponding test case of the module, the module of the client automatic indexing software third edition at this time Corresponding test case in the module third edition after indexing, is copied to the corresponding test of fourth edition software by test case In use-case library, module number and test case number are constant, only change software version number.At this point, with the test case of the third edition Module for testing fourth edition, if, according to the testing standard in the test case, reaching desired knot using the test case Fruit does not improve the test case then;If using the test case, according to the testing standard in the test case, nothing Method reaches desired result, and (such as module is updated, and originally the test case of the module has not been suitable for updated mould Block), then the update of adaptability is carried out to the test case.
Through the above steps, when software has a new version, it can gradually set up the corresponding test of the version software and use Example library, and the test case before being allowed to obtains biggish reusability.
The embodiment of the invention provides a kind of testing case managements to work as software by encoding to test case It deposits in the updated, is encoded by test case, be the test case of the software transfer legacy version of new version, improve test case Reusability.
Fig. 6 is a kind of test case management device schematic diagram provided in an embodiment of the present invention, and in conjunction with Fig. 6, which includes: Division unit 61 establishes unit 62 and computing unit 63;
Division unit 61, for software under testing to be divided into multiple modules to be measured according to functional requirement;
Unit 62 is established, for establishing test use cases for the multiple module to be measured, wherein for the multiple to be measured Any module to be measured in module, the module to be measured at least correspond to the test of at least one text in the test use cases and use Example;
Computing unit 63, for being concentrated according to the value and the test case that each of pre-set importance density to be measured Text test case and module to be measured corresponding relationship, successively calculate the test case and concentrate each text test case Rank;
Unit 62 is established, any text test case concentrated for the test case is also used to, if the text is surveyed The rank of example on probation is more than preset value, then is the corresponding Rich Media's test case of the text test case creation.
Further, computing unit 63 is specifically used for:
For any text test case that the test case is concentrated, institute corresponding to the text test case is obtained There is module to be measured;The sum for calculating the value of the different degree of all modules to be measured, obtains the rank of the text test case.
Further, which further includes sequencing unit 64 and execution unit 65;
Sequencing unit 64, sequence of the text test case according to rank from high to low for concentrating the test case It is ranked up, obtains test case queue;
Execution unit 65, for successively executing the text test case in the test case queue according to ranking results.
Further, execution unit 65 is also used to execute the highest-ranking text test case of the acquisition of sequencing unit 64;
Computing unit 63 is also used to successively calculate each text test case again to the text test case being not carried out Rank, wherein for any text test case in the text test case being not carried out, the text test case institute Corresponding all modules to be measured do not include module to be measured after tested;
Execution unit 65 is also used to according to recalculating as a result, the highest text test case of executive level, calculates single The rank for the text test case that member 63 is again not carried out residue recalculates, according to the result executive level recalculated again Not highest text test case, until execution unit 65, which executes, completes all text test cases.
Further, which further includes the first judging unit 66, second judgment unit 67 and setting unit 68;
First judging unit 66 is used for for any module to be measured in the multiple module to be measured, when the module to be measured After modifying, judge whether be corresponding with Rich Media's test case for the text test case for testing the module to be measured;If The text test case is corresponding with Rich Media's test case, then execution unit 65 passes through text test case and Rich Media respectively Test case tests the module to be measured, obtains test result;Second judgment unit 67 judges text test case Whether test result and the test result of Rich Media's test case are consistent;If inconsistent, setting unit 68 is text test Use-case setting mark, to indicate that tester modifies the text test case.
Further, which further includes creating unit 69 and call unit 610;
For any test case that test case is concentrated, creating unit 69 is used to uniquely compile for the test case creation Code, the unique encodings include the number information of the software under testing, the version number information of the software under testing, test use The number information of module to be measured corresponding to example and the number information of the test case, wherein if the test case is text This test case and test case is corresponding with Rich Media's test case, then the text test case and corresponding Rich Media The unique encodings of test case are identical;
After software under testing upgrading, the call unit 610 is used for the unique encodings tune according to the test case The test case concentrated with the test case.
The embodiment of the invention provides a kind of test case management device, which is used by testing the high text of rank Corresponding Rich Media's test case is arranged in example, avoids important text test case data and loses brought test loss.
Fig. 7 is a kind of schematic diagram of test case management terminal device provided in an embodiment of the present invention.As shown in fig. 7, should The test case management terminal device 7 of embodiment includes: processor 70, memory 71 and is stored in the memory 71 simultaneously The computer program 72 that can be run on the processor 70, such as test case management program.The processor 70 executes institute The step in above-mentioned each testing case management embodiment, such as step shown in FIG. 1 are realized when stating computer program 72 101 to 104 or step 301 shown in Fig. 3 to 302 step 401 shown in Fig. 4 to 404 or step 501 shown in fig. 5 to 502.Alternatively, the processor 70 realizes each module/unit in above-mentioned each Installation practice when executing the computer program 72 Function, such as the function of module 61 to 610 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the test case management terminal device 7 is described.
The test case management terminal device 7 can be desktop PC, notebook, palm PC and cloud service Device etc. calculates equipment.The test case management terminal device may include, but be not limited only to, processor 70, memory 71.Ability Field technique personnel are appreciated that Fig. 7 is only the example of test case management terminal device 7, do not constitute to test case pipe The restriction for managing terminal device 7 may include perhaps combining certain components or different than illustrating more or fewer components Component, such as the test case management terminal device can also include input-output equipment, network access equipment, bus etc..
The processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the test case management terminal device 7, such as test is used The hard disk or memory of example management terminal device 7.The memory 71 is also possible to the outer of the test case management terminal device 7 The plug-in type hard disk being equipped in portion's storage equipment, such as the test case management terminal device 7, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, The memory 71 can also both including the test case management terminal device 7 internal storage unit and also including external storage Equipment.The memory 71 is for storing needed for the computer program and the test case management terminal device other Program and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
The embodiment of the present invention also provides a kind of computer readable storage medium, and the computer-readable recording medium storage has Computer program, the computer program realize testing case management described in any of the above-described embodiment when being executed by processor The step of.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
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 essence of corresponding technical solution is departed from the spirit and scope of the technical scheme of various embodiments of the present invention, it should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of testing case management, which is characterized in that this method comprises:
Software under testing is divided into multiple modules to be measured according to functional requirement;
Test use cases are established for the multiple module to be measured, wherein for any mould to be measured in the multiple module to be measured Block, the module to be measured at least correspond at least one text test case in the test use cases;
The text test case concentrated according to the value and the test case that each of pre-set importance density to be measured with it is to be measured The corresponding relationship of module successively calculates the rank that the test case concentrates each text test case;
For any text test case that the test case is concentrated, if the rank of the text test case is more than default Value, then be the corresponding Rich Media's test case of the text test case creation.
2. testing case management according to claim 1, which is characterized in that described successively to calculate the test case The rank for concentrating each text test case includes:
For any text test case that the test case is concentrated, obtains and needed corresponding to the text test case Survey module;
The sum for calculating the value of the different degree of all modules to be measured, obtains the rank of the text test case.
3. testing case management according to claim 2, which is characterized in that this method further include:
The text test case that the test case is concentrated is ranked up according to the sequence of rank from high to low, test is obtained and uses Example queue;
The text test case in the test case queue is successively executed according to ranking results.
4. testing case management according to claim 2, which is characterized in that this method further include:
The highest text test case of executive level;
To the text test case being not carried out, the rank of each text test case is successively calculated again, wherein for described in not Any text test case in the text test case of execution, all modules to be measured corresponding to the text test case are not Including module to be measured after tested;
According to recalculating as a result, the highest text test case of executive level, again tests the text that residue is not carried out The rank of use-case recalculates, according to the highest text test case of the result executive level recalculated again, until executing Complete all text test cases.
5. testing case management according to claim 3 or 4, which is characterized in that this method further include:
Judge after the module to be measured is modified for surveying for any module to be measured in the multiple module to be measured Whether the text test case for trying the module to be measured is corresponding with Rich Media's test case;
If the text test case is corresponding with Rich Media's test case, used respectively by text test case and Rich Media's test Example tests the module to be measured, obtains test result;
Judge whether the test result of text test case and the test result of Rich Media test case are consistent;
If inconsistent, identified for text test case setting, to indicate that tester modifies the text test case.
6. testing case management according to claim 1, which is characterized in that this method further include:
It is the test case creation unique encodings, the unique encodings packet for any test case that test case is concentrated Include the number information of the software under testing, the version number information of the software under testing, mould to be measured corresponding to the test case The number information of the number information of block and the test case, wherein if the test case is text test case and described Test case is corresponding with Rich Media's test case, then unique volume of the text test case and corresponding Rich Media's test case Code is identical;
After software under testing upgrading, the test of the test case concentration is called according to the unique encodings of the test case Use-case.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
8. a kind of terminal device, which is characterized in that the terminal device includes memory, processor, is stored on the memory There is the computer program that can be run on the processor, the processor realizes following step when executing the computer program It is rapid:
Software under testing is divided into multiple modules to be measured according to functional requirement;
Test use cases are established for the multiple module to be measured, wherein for any mould to be measured in the multiple module to be measured Block, the module to be measured at least correspond at least one text test case in the test use cases;
The text test case concentrated according to the value and the test case that each of pre-set importance density to be measured with it is to be measured The corresponding relationship of module successively calculates the rank that the test case concentrates each text test case;
For any text test case that the test case is concentrated, if the rank of the text test case is more than default Value, then be the corresponding Rich Media's test case of the text test case creation.
9. terminal device according to claim 8, which is characterized in that described successively to calculate the test case concentration each The rank of text test case includes:
For any text test case that the test case is concentrated, obtains and needed corresponding to the text test case Survey module;
The sum for calculating the value of the different degree of all modules to be measured, obtains the rank of the text test case.
10. terminal device according to claim 9, which is characterized in that the terminal device is also used to:
The text test case that the test case is concentrated is ranked up according to the sequence of rank from high to low, test is obtained and uses Example queue;
The text test case in the test case queue is successively executed according to ranking results.
CN201811121811.1A 2018-09-26 2018-09-26 A kind of testing case management, computer readable storage medium and terminal device Pending CN109101431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811121811.1A CN109101431A (en) 2018-09-26 2018-09-26 A kind of testing case management, computer readable storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811121811.1A CN109101431A (en) 2018-09-26 2018-09-26 A kind of testing case management, computer readable storage medium and terminal device

Publications (1)

Publication Number Publication Date
CN109101431A true CN109101431A (en) 2018-12-28

Family

ID=64867743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811121811.1A Pending CN109101431A (en) 2018-09-26 2018-09-26 A kind of testing case management, computer readable storage medium and terminal device

Country Status (1)

Country Link
CN (1) CN109101431A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522738A (en) * 2020-03-30 2020-08-11 拉扎斯网络科技(上海)有限公司 Test method and device of micro-service system, storage medium and electronic equipment
CN112529762A (en) * 2020-12-04 2021-03-19 成都新西旺自动化科技有限公司 Machine vision system configuration screening method and device and readable storage medium
CN113704103A (en) * 2021-08-24 2021-11-26 网易(杭州)网络有限公司 Test case recommendation method, device, medium and electronic equipment
CN114168472A (en) * 2021-12-09 2022-03-11 惠州Tcl移动通信有限公司 Use case execution method and device, electronic equipment and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software testing management method and system thereof
CN102662833A (en) * 2012-03-21 2012-09-12 天津书生软件技术有限公司 Method for managing test cases
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof
CN103365765A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Test case screening method and test case screening system for testing
US20140033175A1 (en) * 2012-07-27 2014-01-30 Hon Hai Precision Industry Co., Ltd. Computing device and method for creating test cases of software program
CN106776273A (en) * 2016-11-16 2017-05-31 乐视控股(北京)有限公司 The method and apparatus of automatic test
CN107357728A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108446231A (en) * 2018-03-19 2018-08-24 重庆邮电大学 A kind of testing protocol consistency use-case priority ordering method based on risk analysis

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software testing management method and system thereof
CN102662833A (en) * 2012-03-21 2012-09-12 天津书生软件技术有限公司 Method for managing test cases
CN103365765A (en) * 2012-03-28 2013-10-23 腾讯科技(深圳)有限公司 Test case screening method and test case screening system for testing
US20140033175A1 (en) * 2012-07-27 2014-01-30 Hon Hai Precision Industry Co., Ltd. Computing device and method for creating test cases of software program
CN103092756A (en) * 2013-01-08 2013-05-08 彭勇 Interactive automated testing system and method thereof
CN106776273A (en) * 2016-11-16 2017-05-31 乐视控股(北京)有限公司 The method and apparatus of automatic test
CN107357728A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108446231A (en) * 2018-03-19 2018-08-24 重庆邮电大学 A kind of testing protocol consistency use-case priority ordering method based on risk analysis

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FENKAM, P 等: "Constructing CORBA-supported oracles for testing: A case study in automated software testing", 17TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING *
徐强;: "加强软件测试能力提高测试用例设计水平", 神华科技, no. 04 *
王瑾;: "C语言软件错误定位的测试用例库构建", 太原师范学院学报(自然科学版), no. 04 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522738A (en) * 2020-03-30 2020-08-11 拉扎斯网络科技(上海)有限公司 Test method and device of micro-service system, storage medium and electronic equipment
CN112529762A (en) * 2020-12-04 2021-03-19 成都新西旺自动化科技有限公司 Machine vision system configuration screening method and device and readable storage medium
CN113704103A (en) * 2021-08-24 2021-11-26 网易(杭州)网络有限公司 Test case recommendation method, device, medium and electronic equipment
CN113704103B (en) * 2021-08-24 2023-08-04 网易(杭州)网络有限公司 Test case recommendation method and device, medium and electronic equipment
CN114168472A (en) * 2021-12-09 2022-03-11 惠州Tcl移动通信有限公司 Use case execution method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109101431A (en) A kind of testing case management, computer readable storage medium and terminal device
EP3447642B1 (en) System and method for predicting application performance for large data size on big data cluster
US9600275B2 (en) Smart source code review system
EP3249538A1 (en) Function execution prioritization
CN107908420A (en) A kind of code process method, apparatus and system
CN113821332B (en) Method, device, equipment and medium for optimizing efficiency of automatic machine learning system
CN109885474A (en) Test case edit methods and device, terminal and computer readable storage medium
CN105630683A (en) Cloud testing architecture
CN110096444A (en) A kind of management system, application method and equipment generating test case based on excel
CN109857431A (en) Code revision method and device, computer-readable medium and electronic equipment
CN109828859A (en) Mobile terminal memory analysis method, apparatus, storage medium and electronic equipment
CN109284198A (en) A kind of method and apparatus verifying data
CN113536081A (en) Data center data management method and system based on artificial intelligence
US7885906B2 (en) Problem solving system and method
CN107038120A (en) A kind of method for testing software and equipment
CN111475494A (en) Mass data processing method, system, terminal and storage medium
CN105868956A (en) Data processing method and device
US20140052842A1 (en) Measuring problems from social media discussions
CN103309676B (en) Web service method for packing and system for marine numerical simulation ROMS
US20220292392A1 (en) Scheduled federated learning for enhanced search
CN113849581A (en) Alarm information processing method, device, equipment and storage medium
CN113032258B (en) Electronic map testing method and device, electronic equipment and storage medium
CN105786941A (en) Information mining method and device
CN109254791A (en) Develop management method, computer readable storage medium and the terminal device of data
CN110069455A (en) A kind of file mergences method and device

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