CN111209190B - Central randomness-based control cable software testing method and device - Google Patents

Central randomness-based control cable software testing method and device Download PDF

Info

Publication number
CN111209190B
CN111209190B CN201911386029.7A CN201911386029A CN111209190B CN 111209190 B CN111209190 B CN 111209190B CN 201911386029 A CN201911386029 A CN 201911386029A CN 111209190 B CN111209190 B CN 111209190B
Authority
CN
China
Prior art keywords
test
defect
defects
defect data
data set
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.)
Active
Application number
CN201911386029.7A
Other languages
Chinese (zh)
Other versions
CN111209190A (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201911386029.7A priority Critical patent/CN111209190B/en
Publication of CN111209190A publication Critical patent/CN111209190A/en
Application granted granted Critical
Publication of CN111209190B publication Critical patent/CN111209190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

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)
  • Tests Of Electronic Circuits (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a central random-based control cable software testing method and device, comprising the following steps: screening original defect data to obtain a defect data set, randomly numbering each defect in the defect data set by using a static random algorithm, mapping the random number with the number of a test executive personnel, and dispatching a test task according to the mapping relation; and collecting test results of the test tasks and corresponding newly discovered defects, and designing test cases and test data according to the test results and the defects to solve the problems that an existing software test method is not in place in a test coverage path and is incomplete in test data organization.

Description

Central randomness-based control cable software testing method and device
Technical Field
The application relates to the field of software testing, in particular to a central random-based control cable property software testing method and a central random-based control cable property software testing device.
Background
The definition of the exploratory test that is the most straightforward is: while designing the test and performing the test. Exploratory testing is sometimes confused with impulse testing (ad hoc testing). Impulse testing generally refers to a temporarily prepared, impulse Bug search test procedure. From the definition, it can be seen who can do impulse tests. The exploratory test by Cem Kaner is an elegant, ideological process compared to the impulse test. In the present software testing process, in particular, exploratory testing in agile development mode is increasingly used as an important means for system testing, so as to find more potential defects of the tested system by utilizing personal capability and experience of testers.
On the other hand, defects of software typically have a clustering effect, i.e., the more defects a certain functional module has found during the testing of the software, the greater the likelihood of finding more defects it has not found. Meanwhile, if a defect tested by a certain module is considered to have higher value after analysis, the probability that the module has other defects with higher value is higher. However, the solidification of the test coverage path and the test data organization is easily caused by the thinking inertia of the person, namely, the tested branches are repeatedly tested, and no branch is detected.
Disclosure of Invention
The application provides a central random-based control cable software testing method and device, which solve the problems that the existing software testing method is not in place in test coverage paths and is incomplete in test data organization.
The application provides a central random-based control cable software testing method, which comprises the following steps:
acquiring original defect data, screening the original defect data, and acquiring a defect data set;
partitioning the defect data set, and randomly numbering each defect in the defect data set by using a static random algorithm;
mapping the random number with the number of the test executive personnel, and dispatching the test task according to the mapping relation;
and collecting the test result of the test task and the corresponding newly discovered defects, and designing test cases and test data according to the test result and the defects.
Preferably, the screening the original defect data to obtain a defect data set includes:
the defect grade is classified into three grades of general, serious and deadly;
screening the original defect data according to the defect grade to obtain serious and deadly grade defects;
serious and deadly level defects are taken as defect data sets.
Preferably, the partitioning of the defect dataset comprises:
obtaining the blocking number of the defect data set according to the number of test executives;
the number of test executives corresponds to the number of defective dataset partitions.
Preferably, each defect in the defect dataset is randomly numbered using a static random algorithm, comprising:
and according to the serial numbers of the test executives, randomly numbering each defect in the defect data set by using a static random algorithm.
Preferably, mapping the random number with the test executor number includes:
mapping the random number of each defect with the corresponding test executive number;
and obtaining the defects corresponding to the testers.
Preferably, the distributing the test task according to the mapping relation includes:
acquiring defects corresponding to the testers according to the mapping relation;
acquiring a functional module corresponding to the defect according to the defect;
and distributing the test task of the functional module to the tester.
Preferably, collecting the test result of the test task and the corresponding newly found defect, and designing test cases and test data according to the test result and the defect, including:
collecting test results of the test tasks, wherein the test results comprise test passing and test failing;
if the test does not pass, collecting the corresponding newly found defects;
and designing test cases and test data according to the newly discovered defects.
The application provides a accuse sex software testing arrangement based on central randomness simultaneously, includes:
a defect data set acquisition unit for acquiring original defect data, screening the original defect data and acquiring a defect data set;
a random numbering unit for partitioning the defect data set and randomly numbering each defect in the defect data set by using a static random algorithm;
the task distributing unit is used for mapping the random number with the number of the test executive personnel and distributing the test task according to the mapping relation;
and the test result collecting unit is used for collecting test results of the test tasks and corresponding newly discovered defects, and designing test cases and test data according to the test results and the defects.
Preferably, the defect data set acquiring unit includes:
dividing sub-units for dividing the defect level into three levels of general, serious and deadly;
a screening subunit, for screening the original defect data according to the defect grade to obtain serious and deadly grade defects;
the defect data set acquisition subunit takes serious and deadly level defects as defect data sets.
Preferably, the test result collecting unit includes:
a test result collection subunit, configured to collect test results of the test task, where the test results include a pass test and a fail test;
a defect collection subunit, configured to collect the corresponding newly discovered defect if the test fails;
and the design subunit designs the test cases and the test data according to the newly discovered defects.
The application provides a central random-based control cable property software testing method and device, which are used for screening original defect data to obtain a defect data set, carrying out random numbering on each defect in the defect data set by using a static random algorithm, mapping the random numbering and the number of a test executive personnel, and distributing a test task according to the mapping relation; and collecting test results of the test tasks and corresponding newly discovered defects, and designing test cases and test data according to the test results and the defects to solve the problems that an existing software test method is not in place in a test coverage path and is incomplete in test data organization.
Drawings
FIG. 1 is a schematic flow chart of a central random control-request software test method provided by the application;
FIG. 2 is a block diagram of a central random based control-compliance software testing method provided herein;
FIG. 3 is a schematic diagram of the execution steps of a central random-based control-cable software testing method according to the present application;
fig. 4 is a schematic diagram of a central random-based control-cable software testing device provided in the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
Fig. 1 is a schematic flow chart of a central random control software testing method provided in the present application, and the method provided in the present application is described in detail below with reference to fig. 1.
Step S101, original defect data are obtained, and screening is carried out on the original defect data to obtain a defect data set.
The central random (central random) refers to a scientific research design method which is realized by adopting a central control dynamic block random method with a computer system in order to realize a blind method and eliminate deviation influence of artificial or other unknown factors on research results in scientific research. The central random system is usually combined with management of each link in scientific research, and the central random method is adopted, so that the scientific research level and efficiency can be remarkably improved. Therefore, the central randomness is suitable for the software testing field, the software testing work generally comprises links such as tester distribution, work distribution, test result analysis and the like, but if the fixed personnel are always adopted to test corresponding to the fixed functional modules, the problems of incomplete test coverage paths and incomplete test data organization are easily caused. Therefore, the central random control cable software testing method is adopted in the aspects of personnel distribution, work distribution and the like, so that the defects of the existing method are overcome.
Firstly, the defect grade is divided into three grades of general, serious and deadly; screening the original defect data according to the defect grade to obtain serious and deadly grade defects; serious and deadly level defects are taken as defect data sets. Original defect data is acquired. Wherein the screening process may also be performed according to other aspects, as typically indicated.
Step S102, the defect data set is segmented, and each defect in the defect data set is randomly numbered by using a static random algorithm.
The meaning of the partitioning is that the number of the partitioning of the defect data set is obtained according to the number of test executives, and the number of the test executives corresponds to the number of the partitioning of the defect data set. Defect number/number of people = block number.
Then, each defect in the defect dataset is randomly numbered using a static random algorithm according to the test executor number. For example, if the test executor numbers range from 1 to M, then the defect numbers range from 1 to M, ready for the next mapping.
And step S103, mapping the random number and the number of the test executive personnel, and distributing the test task according to the mapping relation.
Mapping the random number of each defect with the corresponding test executive personnel number, and acquiring the defect corresponding to the test personnel according to the number. Through mapping, the defects corresponding to each tester are at any time, and the functional modules corresponding to the defects are fixed, so that the aim of randomly distributing test tasks to the testers is fulfilled. Specifically, according to the defects, obtaining functional modules corresponding to the defects; and distributing the test task of the functional module to the test executive personnel. To avoid the problem that the test coverage path is out of place easily caused by the thinking inertia of people.
Step S104, collecting the test result of the test task and the corresponding newly found defects, and designing test cases and test data according to the test result and the defects.
After the test task is randomly distributed to the test executive, the test executive starts the test, and after the test executive completes the test task, the test result of the test task is collected, wherein the test result comprises that the test passes and the test fails; if the test does not pass, collecting the corresponding newly found defects; and designing test cases and test data according to the newly discovered defects. To perfect the test coverage path and test data.
The block diagram of the central random-based control cable software testing method provided by the application is shown in fig. 2, and the method comprises the following steps: the system comprises a data preparation module, a data random module, a test task distribution module and a test result feedback module, wherein the data preparation module acquires a defect data set by screening original defect data; the data random module is used for randomly assigning numbers to each defect and establishing a mapping relation between test executives and the defects; the test task distribution module distributes test tasks according to the mapping relation between test executives and defects; and the test result feedback module is used for designing test cases and test data according to the test results. The specific implementation steps are as shown in fig. 3, firstly, an original data set is obtained, a defect data set is segmented, and each defect is randomly numbered; and then the serial numbers of the test executives and the serial execution sequence of the defect numbers of the test executives are arbitrary. The method is not affected, in fig. 3, whether random block data does not exist is further determined, if not, a mapping relation between test executives and defects is established, and if yes, random numbers are continuously generated for the defects in the blocks; the task dispatch and collection of test results are followed by the design of test cases and test data based on the test results
The present application also provides a central randomness-based control-cable software testing device 400, as shown in fig. 4, comprising:
a defect data set obtaining unit 410, for obtaining original defect data, screening the original defect data, and obtaining a defect data set;
a random numbering unit 420 that blocks the defect data set and randomly numbers each defect in the defect data set using a static random algorithm;
the task dispatch unit 430 maps the random number with the number of the test executor, and dispatches the test task according to the mapping relation;
and a test result collection unit 440 for collecting test results of the test task and corresponding newly discovered defects, and designing test cases and test data according to the test results and defects.
Preferably, the defect data set acquiring unit includes:
dividing sub-units for dividing the defect level into three levels of general, serious and deadly;
a screening subunit, for screening the original defect data according to the defect grade to obtain serious and deadly grade defects;
the defect data set acquisition subunit takes serious and deadly level defects as defect data sets.
Preferably, the test result collecting unit includes:
a test result collection subunit, configured to collect test results of the test task, where the test results include a pass test and a fail test;
a defect collection subunit, configured to collect the corresponding newly discovered defect if the test fails;
and the design subunit designs the test cases and the test data according to the newly discovered defects.
The application provides a central random-based control cable property software testing method and device, which are used for screening original defect data to obtain a defect data set, carrying out random numbering on each defect in the defect data set by using a static random algorithm, mapping the random numbering and the number of a test executive personnel, and distributing a test task according to the mapping relation; and collecting test results of the test tasks and corresponding newly discovered defects, and designing test cases and test data according to the test results and the defects to solve the problems that an existing software test method is not in place in a test coverage path and is incomplete in test data organization.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the specific embodiments of the present invention without departing from the spirit and scope of the present invention, and all modifications and equivalents are intended to be included in the scope of the claims of the present invention.

Claims (10)

1. A central random based control cable software testing method, comprising:
acquiring original defect data, screening the original defect data, and acquiring a defect data set;
partitioning the defect data set, and randomly numbering each defect in the defect data set by using a static random algorithm;
mapping the random number with the number of the test executive personnel, and dispatching the test task according to the mapping relation;
and collecting the test result of the test task and the corresponding newly discovered defects, and designing test cases and test data according to the test result and the defects.
2. The method of claim 1, wherein screening the raw defect data to obtain a defect dataset comprises:
the defect grade is classified into three grades of general, serious and deadly;
screening the original defect data according to the defect grade to obtain serious and deadly grade defects;
serious and deadly level defects are taken as defect data sets.
3. The method of claim 1, wherein blocking the defect dataset comprises:
obtaining the blocking number of the defect data set according to the number of test executives;
the number of test executives corresponds to the number of defective dataset partitions.
4. The method of claim 1, wherein randomly numbering each defect in the defect dataset using a static random algorithm comprises:
and according to the serial numbers of the test executives, randomly numbering each defect in the defect data set by using a static random algorithm.
5. The method of claim 1 or 4, wherein mapping the random number with a test executive number comprises:
mapping the random number of each defect with the corresponding test executive number;
and obtaining the defects corresponding to the testers.
6. The method according to claim 1 or 4, wherein performing test task dispatch according to the mapping relationship comprises:
acquiring defects corresponding to the testers according to the mapping relation;
acquiring a functional module corresponding to the defect according to the defect;
and distributing the test task of the functional module to the tester.
7. The method according to claim 1 or 4, wherein collecting test results of the test task and corresponding newly discovered defects, designing test cases and test data according to the test results and defects, comprises:
collecting test results of the test tasks, wherein the test results comprise test passing and test failing;
if the test does not pass, collecting the corresponding newly found defects;
and designing test cases and test data according to the newly discovered defects.
8. A central stochastic based control cable software test device, comprising:
a defect data set acquisition unit for acquiring original defect data, screening the original defect data and acquiring a defect data set;
a random numbering unit for partitioning the defect data set and randomly numbering each defect in the defect data set by using a static random algorithm;
the task distributing unit is used for mapping the random number with the number of the test executive personnel and distributing the test task according to the mapping relation;
and the test result collecting unit is used for collecting test results of the test tasks and corresponding newly discovered defects, and designing test cases and test data according to the test results and the defects.
9. The apparatus according to claim 8, wherein the defect data set acquiring unit includes:
dividing sub-units for dividing the defect level into three levels of general, serious and deadly;
a screening subunit, for screening the original defect data according to the defect grade to obtain serious and deadly grade defects;
the defect data set acquisition subunit takes serious and deadly level defects as defect data sets.
10. The apparatus of claim 8, wherein the test result collection unit comprises:
a test result collection subunit, configured to collect test results of the test task, where the test results include a pass test and a fail test;
a defect collection subunit, configured to collect the corresponding newly discovered defect if the test fails;
and the design subunit designs the test cases and the test data according to the newly discovered defects.
CN201911386029.7A 2019-12-29 2019-12-29 Central randomness-based control cable software testing method and device Active CN111209190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911386029.7A CN111209190B (en) 2019-12-29 2019-12-29 Central randomness-based control cable software testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911386029.7A CN111209190B (en) 2019-12-29 2019-12-29 Central randomness-based control cable software testing method and device

Publications (2)

Publication Number Publication Date
CN111209190A CN111209190A (en) 2020-05-29
CN111209190B true CN111209190B (en) 2024-02-02

Family

ID=70784299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911386029.7A Active CN111209190B (en) 2019-12-29 2019-12-29 Central randomness-based control cable software testing method and device

Country Status (1)

Country Link
CN (1) CN111209190B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131108B (en) * 2020-09-18 2024-04-02 电信科学技术第十研究所有限公司 Feature attribute-based test strategy adjustment method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520822A (en) * 2009-03-06 2009-09-02 北京迪美斯科技发展有限公司 Central stochastic system applied to medical clinical test
CN103377104A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Test method and device
CN103699385A (en) * 2013-12-23 2014-04-02 国云科技股份有限公司 Continuous code integration method
JP2014174724A (en) * 2013-03-08 2014-09-22 Mitsubishi Electric Corp Software testing device
US9727448B1 (en) * 2015-04-22 2017-08-08 Google Inc. Method and system for software application testing recommendations
CN107145442A (en) * 2017-04-27 2017-09-08 广东艾檬电子科技有限公司 A kind of method and device for testing application
CN107767061A (en) * 2017-10-27 2018-03-06 郑州云海信息技术有限公司 A kind of system of software test Amount of work
CN109495657A (en) * 2018-10-11 2019-03-19 平安科技(深圳)有限公司 List distributing method, device, equipment and medium based on artificial intelligence
CN109871328A (en) * 2019-02-26 2019-06-11 网宿科技股份有限公司 A kind of method for testing software and device
CN110083528A (en) * 2019-03-19 2019-08-02 深圳壹账通智能科技有限公司 Distribution method, device, computer equipment and the storage medium of test assignment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313564B2 (en) * 2002-12-03 2007-12-25 Symbioware, Inc. Web-interactive software testing management method and computer system including an integrated test case authoring tool

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520822A (en) * 2009-03-06 2009-09-02 北京迪美斯科技发展有限公司 Central stochastic system applied to medical clinical test
CN103377104A (en) * 2012-04-19 2013-10-30 腾讯科技(深圳)有限公司 Test method and device
JP2014174724A (en) * 2013-03-08 2014-09-22 Mitsubishi Electric Corp Software testing device
CN103699385A (en) * 2013-12-23 2014-04-02 国云科技股份有限公司 Continuous code integration method
US9727448B1 (en) * 2015-04-22 2017-08-08 Google Inc. Method and system for software application testing recommendations
CN107145442A (en) * 2017-04-27 2017-09-08 广东艾檬电子科技有限公司 A kind of method and device for testing application
CN107767061A (en) * 2017-10-27 2018-03-06 郑州云海信息技术有限公司 A kind of system of software test Amount of work
CN109495657A (en) * 2018-10-11 2019-03-19 平安科技(深圳)有限公司 List distributing method, device, equipment and medium based on artificial intelligence
CN109871328A (en) * 2019-02-26 2019-06-11 网宿科技股份有限公司 A kind of method for testing software and device
CN110083528A (en) * 2019-03-19 2019-08-02 深圳壹账通智能科技有限公司 Distribution method, device, computer equipment and the storage medium of test assignment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于数据过采样和集成学习的软件缺陷数目预测方法;简艺恒等;《计算机应用》;全文 *

Also Published As

Publication number Publication date
CN111209190A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN109144857A (en) Cross-platform test of heuristics method and system
CN104081359B (en) Identifcation of a failed code change
CN107992415B (en) Fault positioning and analyzing method of transaction system and related server
CN106980571B (en) Method and equipment for constructing test case suite
CN104133771B (en) A kind of test method and device
RU2010137352A (en) METHOD, COMPUTER SOFTWARE PRODUCT AND CLINICAL DECISION SUPPORT SYSTEM
US20160217061A1 (en) Determining test case efficiency
US20070247937A1 (en) Information processing system for calculating the number of redundant lines optimal for memory device
CN111209190B (en) Central randomness-based control cable software testing method and device
CN111400505A (en) Method and system for matching fault elimination scheme of power consumption information acquisition system
CN109213645A (en) A kind of method and apparatus of distributed memory system performance test
CN111782532B (en) Software fault positioning method and system based on network abnormal node analysis
CN105701013A (en) Software defect data feature selection method based on mutual information
Tsai et al. Adaptive fault detection for testing tenant applications in multi-tenancy saas systems
JPH10170605A (en) Failure analyzing device and method of memory lsi
CN109088793B (en) Method and apparatus for detecting network failure
US20110289086A1 (en) System, method and apparatus for data analysis
CN101894073B (en) Defect automatic positioning device based on control flow intersection and automatic positioning method thereof
CN117608903A (en) Method, device, equipment and storage medium for automatically generating test report
CN106294174B (en) The various dimensions measure and device of testing adequacy
CN107844427A (en) A kind of Test Case Prioritization method perceived based on test resource
CN107229828A (en) Data early warning method and device for endocrine detection and analysis
CN112612702B (en) Automatic testing method and device based on web
Ramya et al. Clustering based prioritization of test cases
CN113885896A (en) Application software package installation method and device, computer equipment and storage medium

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