CN113468053A - Application system testing method and device - Google Patents
Application system testing method and device Download PDFInfo
- Publication number
- CN113468053A CN113468053A CN202110752708.2A CN202110752708A CN113468053A CN 113468053 A CN113468053 A CN 113468053A CN 202110752708 A CN202110752708 A CN 202110752708A CN 113468053 A CN113468053 A CN 113468053A
- Authority
- CN
- China
- Prior art keywords
- test
- case set
- application system
- test case
- target
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
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)
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a testing method and a testing device for an application system, and relates to the technical field of automatic program design. One embodiment of the method comprises: acquiring information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; and determining a target test case set according to the test result, and testing the application system according to the target test case set. The implementation mode improves the automation degree of the test, reduces the test cost and improves the test efficiency.
Description
Technical Field
The invention relates to the technical field of automatic program design, in particular to a method and a device for testing an application system.
Background
The testing of the application system is a link that must be executed before release, and the purpose of the testing is to search for existing defects and then maintain and adjust the application system for the defects. The current testing method is mainly to design a test case according to steps and data generated by a found system defect after the system defect (mainly a common defect) is found, so as to ensure that the defect can be covered in the subsequent version of testing.
The prior art has at least the following problems:
in the existing method, because different application systems have different functional fields, and each functional field has different common defects, a test case is designed according to the found system defects, and the test is carried out according to the test case, so that the automation degree is low, the test cost is high, the test time consumption is long, and the test efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for testing an application system, which can improve the automation degree of testing, reduce the testing cost, and improve the testing efficiency.
In order to achieve the above object, according to a first aspect of the embodiments of the present invention, there is provided a method for testing an application system, including:
acquiring information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested;
constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases;
performing initial test on the application system according to the initial test case set, and acquiring a test result;
and determining a target test case set according to the test result, and testing the application system according to the target test case set.
Further, constructing an initial test case set according to a plurality of test entities includes:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
Further, determining a target test case set according to the test result includes:
respectively judging whether the test results corresponding to the test cases in the initial test case set indicate that defects exist or not;
if yes, determining a target test entity according to the defect information indicated in the test result;
determining related test entities related to the target test entity according to the calling relationship among the test entities;
and constructing a target test case set according to the target test entity and the related test entities.
Further, still include:
and placing the test cases with defects in the initial test case set into the target test case set.
Further, constructing a target test case set according to the target test entity and the related test entities, comprising:
combining the target test entity with any at least one relevant test entity respectively to obtain a plurality of target test cases;
and constructing a target test case set according to the plurality of target test cases.
Further, before the step of testing the application system according to the target test case set, the method further includes:
acquiring a historical test case corresponding to an application system;
and placing the historical test cases in a target test case set.
Further, still include:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
According to a second aspect of the embodiments of the present invention, there is provided a test apparatus for an application system, including:
the test entity determining module is used for acquiring the information of the application system to be tested and determining a plurality of test entities according to the information of the application system to be tested;
the system comprises an initial test case set construction module, a test execution module and a test execution module, wherein the initial test case set construction module is used for constructing an initial test case set according to a plurality of test entities, and the initial test case set comprises a plurality of test cases;
the initial test module is used for carrying out initial test on the application system according to the initial test case set and obtaining a test result;
and the test module is used for determining a target test case set according to the test result and testing the application system according to the target test case set.
Further, the initial test case set building module is used for:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
Further, the system comprises an updating module for:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for testing any one of the application systems as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, which when executed by a processor, implements a method of testing an application system as any one of the above.
One embodiment of the above invention has the following advantages or benefits: because the information of the application system to be tested is obtained, a plurality of test entities are determined according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; the technical means of determining the target test case set according to the test result and testing the application system according to the target test case set overcome the technical problems of low automation degree, high test cost, long test time consumption and low test efficiency in the existing method, thereby achieving the technical effects of improving the automation degree of the test, reducing the test cost and improving the test efficiency.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a test method of an application system provided according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a main flow of a test method of an application system according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of a testing device of an application system provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a test method of an application system provided according to a first embodiment of the present invention; as shown in fig. 1, the method for testing an application system provided in the embodiment of the present invention mainly includes:
step S101, obtaining information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested.
Specifically, according to the embodiment of the present invention, after the information of the application system to be tested is obtained, a plurality of test entities including a test object (such as a certain module of the application system), a test function, a test range, a test result, and the like are determined.
Step S102, an initial test case set is constructed according to a plurality of test entities, wherein the initial test case set comprises a plurality of test cases.
Further, according to the embodiment of the present invention, the constructing an initial test case set according to a plurality of test entities includes:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
According to the embodiment of the invention, the test cases are combinations of different test entities, the purpose is to better test the application system, a plurality of test cases are used as an initial test case set to test the application system, and the method is beneficial to rapidly screening and expanding the test cases to determine the target test case, thereby reducing the test cost and improving the test efficiency.
And S103, performing initial test on the application system according to the initial test case set, and acquiring a test result.
Through the setting, the initial test is carried out so as to screen and expand the initial test case set according to the test result to determine the target test case set, and then the test of the application system is executed.
And step S104, determining a target test case set according to the test result, and testing the application system according to the target test case set.
Specifically, according to the embodiment of the present invention, the determining a target test case set according to a test result includes:
respectively judging whether the test results corresponding to the test cases in the initial test case set indicate that defects exist or not;
if yes, determining a target test entity according to the defect information indicated in the test result;
determining related test entities related to the target test entity according to the calling relationship among the test entities;
and constructing a target test case set according to the target test entity and the related test entities.
Further, according to an embodiment of the present invention, the method further includes:
and placing the test cases with defects in the initial test case set into the target test case set.
The test cases with defects in the initial test case set are placed in the target test case set, so that the coverage rate of the application system with defects (embodied on the target test cases) in the target test case set is improved, and reference data is further provided for version updating and maintenance of the application system.
Preferably, according to the embodiment of the present invention, constructing a target test case set according to a target test entity and a related test entity includes:
combining the target test entity with any at least one relevant test entity respectively to obtain a plurality of target test cases;
and constructing a target test case set according to the plurality of target test cases.
In fact, when the application system runs, there is a logic association called each other between the test entities (corresponding to the running module, the implementation function, the running range, the running result, and the like of the application system). After the target test entity is determined according to the defect information (the step and data of defect generation), the target test case can be determined according to the combination of the test entities associated with the target test entity, and the target test case can be expanded and screened.
Illustratively, according to the embodiment of the present invention, before the step of testing the application system according to the target test case set, the method further includes:
acquiring a historical test case corresponding to an application system;
and placing the historical test cases in a target test case set.
According to the embodiment of the invention, the historical test case is used for testing the common defects of the application system in the development process, and through the arrangement, the coverage of testing the potential defects is further ensured, and the testing effect is improved.
Preferably, according to an embodiment of the present invention, the method further includes:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
Through the arrangement, the target test case set with higher coverage rate is automatically generated through iterative updating, so that the automation degree of the test is improved, and the accuracy of the subsequent test is also improved.
According to the technical scheme of the embodiment of the invention, the information of the application system to be tested is obtained, and a plurality of test entities are determined according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; the technical means of determining the target test case set according to the test result and testing the application system according to the target test case set overcome the technical problems of low automation degree, high test cost, long test time consumption and low test efficiency in the existing method, thereby achieving the technical effects of improving the automation degree of the test, reducing the test cost and improving the test efficiency.
Fig. 2 is a schematic diagram of a main flow of a test method of an application system according to a second embodiment of the present invention; as shown in fig. 2, the method for testing an application system provided in the embodiment of the present invention mainly includes:
step S201, obtaining information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested.
According to a specific implementation manner of the embodiment of the present invention, for example, a module of an application system is used as a test object, a function corresponding to the module is used as a test function, and the like, and the test object, the test function, the test range, the test result, and the like are defined as test entities.
The Test entity is a key part for forming the Test Case, and the Test Case (Test Case) is used for describing a Test task of a software product (an application system in the invention), including a Test target, a Test environment, input data, a Test step, an expected result and the like, and embodying a Test scheme, a method, a technology and a strategy. Briefly, a test case is a set of test inputs, execution conditions, and expected results written for some desired purpose to verify that a particular software requirement is met.
Step S202, selecting a plurality of test entities from the plurality of test entities respectively to combine so as to determine a plurality of test cases; and constructing an initial test case set according to the plurality of determined test cases.
According to the embodiment of the invention, a plurality of test cases are obtained according to the combination of different test entities, the purpose is to better test an application system, the plurality of test cases are used as an initial test case set to test the application system, the test cases are favorably and rapidly screened and expanded to determine a target test case, the test cost is reduced, and the test efficiency is improved.
Step S203, performing initial test on the application system according to the initial test case set, and acquiring a test result.
Step S204, determining a test case indicating that the defect exists in the test result, determining a target test entity according to the defect information indicated in the test result, and determining a related test entity associated with the target test entity according to the call relation between the test entities.
According to a specific implementation manner of the embodiment of the present invention, for example, one test result indicates that a test function is defective, and an entity corresponding to the test function is a target test entity, all entities calling the function of the entity are related test entities, and the target test case can be expanded according to different combinations of the target test entity and the related test entities.
Step S205, combining the target test entity with at least one arbitrary related test entity to obtain a plurality of target test cases; and constructing a target test case set according to the plurality of target test cases.
Further, according to the embodiment of the present invention, the method further includes: and placing the test cases with defects in the initial test case set into the target test case set.
The test cases with defects in the initial test case set are placed in the target test case set, so that the coverage rate of the application system with defects (embodied on the target test cases) in the target test case set is improved, and reference data is further provided for version updating and maintenance of the application system.
Preferably, according to the embodiment of the present invention, before the step of testing the application system according to the target test case set, the method further includes:
acquiring a historical test case corresponding to an application system;
and placing the historical test cases in a target test case set.
And S206, determining a target test case set according to the test result, and testing the application system according to the target test case set.
Further, according to an embodiment of the present invention, the method further includes:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
According to the technical scheme of the embodiment of the invention, the information of the application system to be tested is obtained, and a plurality of test entities are determined according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; the technical means of determining the target test case set according to the test result and testing the application system according to the target test case set overcome the technical problems of low automation degree, high test cost, long test time consumption and low test efficiency in the existing method, thereby achieving the technical effects of improving the automation degree of the test, reducing the test cost and improving the test efficiency.
FIG. 3 is a schematic diagram of the main modules of a testing device of an application system provided according to an embodiment of the present invention; as shown in fig. 3, a testing apparatus 300 of an application system according to an embodiment of the present invention mainly includes:
the test entity determining module 301 is configured to obtain information of an application system to be tested, and determine a plurality of test entities according to the information of the application system to be tested.
Specifically, according to the embodiment of the present invention, after the information of the application system to be tested is obtained, a plurality of test entities including a test object (such as a certain module of the application system), a test function, a test range, a test result, and the like are determined.
The initial test case set constructing module 302 is configured to construct an initial test case set according to a plurality of test entities, where the initial test case set includes a plurality of test cases.
Further, according to the embodiment of the present invention, the initial test case set building module 302 is configured to:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
According to the embodiment of the invention, the test cases are combinations of different test entities, the purpose is to better test the application system, a plurality of test cases are used as an initial test case set to test the application system, and the method is beneficial to rapidly screening and expanding the test cases to determine the target test case, thereby reducing the test cost and improving the test efficiency.
The initial test module 303 is configured to perform an initial test on the application system according to the initial test case set, and obtain a test result.
Through the setting, the initial test is carried out so as to screen and expand the initial test case set according to the test result to determine the target test case set, and then the test of the application system is executed.
And the test module 304 is configured to determine a target test case set according to the test result, and test the application system according to the target test case set.
Specifically, according to an embodiment of the present invention, the test module 304 is configured to:
respectively judging whether the test results corresponding to the test cases in the initial test case set indicate that defects exist or not;
if yes, determining a target test entity according to the defect information indicated in the test result;
determining related test entities related to the target test entity according to the calling relationship among the test entities;
and constructing a target test case set according to the target test entity and the related test entities.
Further, according to an embodiment of the present invention, the test module 304 is further configured to:
and placing the test cases with defects in the initial test case set into the target test case set.
The test cases with defects in the initial test case set are placed in the target test case set, so that the coverage rate of the application system with defects (embodied on the target test cases) in the target test case set is improved, and reference data is further provided for version updating and maintenance of the application system.
Preferably, according to an embodiment of the present invention, the test module 304 is further configured to:
combining the target test entity with any at least one relevant test entity respectively to obtain a plurality of target test cases;
and constructing a target test case set according to the plurality of target test cases.
In fact, when the application system runs, there is a logic association called each other between the test entities (corresponding to the running module, the implementation function, the running range, the running result, and the like of the application system). After the target test entity is determined according to the defect information (the step and data of defect generation), the target test case can be determined according to the combination of the test entities associated with the target test entity, and the target test case can be expanded and screened.
Illustratively, according to an embodiment of the present invention, the testing apparatus 300 of the application system further includes a historical test case obtaining module, before the step of testing the application system according to the target test case set, configured to:
acquiring a historical test case corresponding to an application system;
and placing the historical test cases in a target test case set.
According to the embodiment of the invention, the historical test case is used for testing the common defects of the application system in the development process, and through the arrangement, the coverage of testing the potential defects is further ensured, and the testing effect is improved.
Further, the testing apparatus 300 of the application system further includes an updating module, configured to:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
According to the technical scheme of the embodiment of the invention, the information of the application system to be tested is obtained, and a plurality of test entities are determined according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; the technical means of determining the target test case set according to the test result and testing the application system according to the target test case set overcome the technical problems of low automation degree, high test cost, long test time consumption and low test efficiency in the existing method, thereby achieving the technical effects of improving the automation degree of the test, reducing the test cost and improving the test efficiency.
Fig. 4 shows an exemplary system architecture 400 of a test method of an application system or a test apparatus of an application system to which an embodiment of the present invention can be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as a test-type application, a data processing-type application, a search-type application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server that provides various services, such as a server (for example only) that users use (perform testing/perform data processing on) the terminal devices 401, 402, 403. The server may analyze and perform other processing on the received data such as the information of the application system to be tested, and feed back a processing result (for example, a target test case set — only an example) to the terminal device.
It should be noted that the testing method of the application system provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the testing device of the application system is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use with a terminal device or server implementing an embodiment of the invention is shown. The terminal device or the server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor comprises a test case entity determining module, an initial test case set constructing module, an initial test module and a test module. The names of the modules do not form a limitation on the modules themselves under certain conditions, for example, the test case entity determining module may also be described as a "module for acquiring information of an application system to be tested and determining a plurality of test entities according to the information of the application system to be tested".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: acquiring information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; and determining a target test case set according to the test result, and testing the application system according to the target test case set.
According to the technical scheme of the embodiment of the invention, the information of the application system to be tested is obtained, and a plurality of test entities are determined according to the information of the application system to be tested; constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases; performing initial test on the application system according to the initial test case set, and acquiring a test result; the technical means of determining the target test case set according to the test result and testing the application system according to the target test case set overcome the technical problems of low automation degree, high test cost, long test time consumption and low test efficiency in the existing method, thereby achieving the technical effects of improving the automation degree of the test, reducing the test cost and improving the test efficiency.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A method for testing an application system, comprising:
acquiring information of an application system to be tested, and determining a plurality of test entities according to the information of the application system to be tested;
constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases;
performing initial test on the application system according to the initial test case set, and acquiring a test result;
and determining a target test case set according to the test result, and testing the application system according to the target test case set.
2. The method for testing an application system according to claim 1, wherein the constructing an initial set of test cases from the plurality of test entities comprises:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
3. The method according to claim 1, wherein the determining a target set of test cases according to the test result comprises:
respectively judging whether the test results corresponding to the test cases in the initial test case set indicate that defects exist or not;
if yes, determining a target test entity according to the defect information indicated in the test result;
determining related test entities related to the target test entity according to the calling relationship among the test entities;
and constructing a target test case set according to the target test entity and the related test entities.
4. The method for testing an application system according to claim 3, further comprising:
and placing the test cases with defects in the initial test case set into the target test case set.
5. The method for testing an application system according to claim 3, wherein the constructing a target test case set according to the target test entity and the related test entities comprises:
combining the target test entity with any at least one relevant test entity respectively to obtain a plurality of target test cases;
and constructing a target test case set according to the plurality of target test cases.
6. The method for testing an application system according to claim 1, further comprising, before the step of testing the application system according to the target set of test cases:
acquiring a historical test case corresponding to the application system;
and placing the historical test case into the target test case set.
7. The method for testing an application system according to claim 1, further comprising:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
8. An apparatus for testing an application system, comprising:
the system comprises a test entity determining module, a test entity determining module and a test entity determining module, wherein the test entity determining module is used for acquiring information of an application system to be tested and determining a plurality of test entities according to the information of the application system to be tested;
the initial test case set constructing module is used for constructing an initial test case set according to the plurality of test entities, wherein the initial test case set comprises a plurality of test cases;
the initial test module is used for carrying out initial test on the application system according to the initial test case set and obtaining a test result;
and the test module is used for determining a target test case set according to the test result and testing the application system according to the target test case set.
9. The testing apparatus of the application system according to claim 8, wherein the initial test case set constructing module is configured to:
selecting a plurality of test entities from the plurality of test entities respectively for combination so as to determine a plurality of test cases;
and constructing an initial test case set according to the plurality of determined test cases.
10. The apparatus for testing an application system according to claim 8, further comprising an update module configured to:
setting an updating time threshold;
and updating the target test case set according to the test result corresponding to the target test case set, and testing the application system again by using the updated target test case set until the update frequency threshold is reached.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110752708.2A CN113468053B (en) | 2021-07-02 | 2021-07-02 | Application system testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110752708.2A CN113468053B (en) | 2021-07-02 | 2021-07-02 | Application system testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113468053A true CN113468053A (en) | 2021-10-01 |
CN113468053B CN113468053B (en) | 2022-11-15 |
Family
ID=77877804
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110752708.2A Active CN113468053B (en) | 2021-07-02 | 2021-07-02 | Application system testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113468053B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118069501A (en) * | 2024-01-22 | 2024-05-24 | 南京数睿数据科技有限公司 | Program testing method and device based on test case and electronic equipment |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1536789A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Upgrading method by utilizing wave analysis of cuxiliary test example |
US20150169432A1 (en) * | 2013-12-12 | 2015-06-18 | Vertafore, Inc. | Integration testing method and system for web services |
CN105955882A (en) * | 2016-04-27 | 2016-09-21 | 南京大学 | Iterative learning model behavior similarity test case generation method and apparatus |
CN108287792A (en) * | 2018-01-26 | 2018-07-17 | 百度在线网络技术(北京)有限公司 | Method and apparatus for output information |
CN108829604A (en) * | 2018-06-28 | 2018-11-16 | 北京车和家信息技术有限公司 | Method for generating test case and device based on vehicle control device |
CN109446076A (en) * | 2018-10-15 | 2019-03-08 | 广东省科技基础条件平台中心 | Software project testing method, system, storage medium and terminal device |
CN109800144A (en) * | 2018-12-12 | 2019-05-24 | 北京京东尚科信息技术有限公司 | Test method, system and the device of application program |
CN110888808A (en) * | 2019-11-16 | 2020-03-17 | 云南湾谷科技有限公司 | Web intelligent test method based on knowledge graph |
CN111045933A (en) * | 2019-11-27 | 2020-04-21 | 深圳云天励飞技术有限公司 | Regression strategy updating method and device, storage medium and terminal equipment |
CN111190406A (en) * | 2019-12-25 | 2020-05-22 | 中国航空工业集团公司西安飞机设计研究所 | Method for testing undercarriage control system software |
CN111427781A (en) * | 2020-03-19 | 2020-07-17 | 北京广利核系统工程有限公司 | Logic function testing method and platform compatible with simulation and entity |
US20200242015A1 (en) * | 2019-01-28 | 2020-07-30 | Salesforce.Com, Inc. | Automated test case management systems and methods |
CN111597121A (en) * | 2020-07-24 | 2020-08-28 | 四川新网银行股份有限公司 | Precise test method based on historical test case mining |
CN112148619A (en) * | 2020-10-10 | 2020-12-29 | 北京嘀嘀无限科技发展有限公司 | Test case suite optimization processing method and device, electronic equipment and storage medium |
CN112231219A (en) * | 2020-10-22 | 2021-01-15 | 中国平安人寿保险股份有限公司 | Automatic test monitoring method, device, equipment and storage medium |
CN112286823A (en) * | 2020-11-18 | 2021-01-29 | 山石网科通信技术股份有限公司 | Method and device for testing kernel of operating system |
CN112650685A (en) * | 2020-12-29 | 2021-04-13 | 北京字节跳动网络技术有限公司 | Automatic testing method and device, electronic equipment and computer storage medium |
CN113051180A (en) * | 2021-04-30 | 2021-06-29 | 中国平安人寿保险股份有限公司 | Test task monitoring method, device, equipment and storage medium |
-
2021
- 2021-07-02 CN CN202110752708.2A patent/CN113468053B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1536789A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Upgrading method by utilizing wave analysis of cuxiliary test example |
US20150169432A1 (en) * | 2013-12-12 | 2015-06-18 | Vertafore, Inc. | Integration testing method and system for web services |
CN105955882A (en) * | 2016-04-27 | 2016-09-21 | 南京大学 | Iterative learning model behavior similarity test case generation method and apparatus |
CN108287792A (en) * | 2018-01-26 | 2018-07-17 | 百度在线网络技术(北京)有限公司 | Method and apparatus for output information |
CN108829604A (en) * | 2018-06-28 | 2018-11-16 | 北京车和家信息技术有限公司 | Method for generating test case and device based on vehicle control device |
CN109446076A (en) * | 2018-10-15 | 2019-03-08 | 广东省科技基础条件平台中心 | Software project testing method, system, storage medium and terminal device |
CN109800144A (en) * | 2018-12-12 | 2019-05-24 | 北京京东尚科信息技术有限公司 | Test method, system and the device of application program |
US20200242015A1 (en) * | 2019-01-28 | 2020-07-30 | Salesforce.Com, Inc. | Automated test case management systems and methods |
CN110888808A (en) * | 2019-11-16 | 2020-03-17 | 云南湾谷科技有限公司 | Web intelligent test method based on knowledge graph |
CN111045933A (en) * | 2019-11-27 | 2020-04-21 | 深圳云天励飞技术有限公司 | Regression strategy updating method and device, storage medium and terminal equipment |
CN111190406A (en) * | 2019-12-25 | 2020-05-22 | 中国航空工业集团公司西安飞机设计研究所 | Method for testing undercarriage control system software |
CN111427781A (en) * | 2020-03-19 | 2020-07-17 | 北京广利核系统工程有限公司 | Logic function testing method and platform compatible with simulation and entity |
CN111597121A (en) * | 2020-07-24 | 2020-08-28 | 四川新网银行股份有限公司 | Precise test method based on historical test case mining |
CN112148619A (en) * | 2020-10-10 | 2020-12-29 | 北京嘀嘀无限科技发展有限公司 | Test case suite optimization processing method and device, electronic equipment and storage medium |
CN112231219A (en) * | 2020-10-22 | 2021-01-15 | 中国平安人寿保险股份有限公司 | Automatic test monitoring method, device, equipment and storage medium |
CN112286823A (en) * | 2020-11-18 | 2021-01-29 | 山石网科通信技术股份有限公司 | Method and device for testing kernel of operating system |
CN112650685A (en) * | 2020-12-29 | 2021-04-13 | 北京字节跳动网络技术有限公司 | Automatic testing method and device, electronic equipment and computer storage medium |
CN113051180A (en) * | 2021-04-30 | 2021-06-29 | 中国平安人寿保险股份有限公司 | Test task monitoring method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
姜文等: "自动化测试用例测试失败类型分析", 《计算机技术与发展》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118069501A (en) * | 2024-01-22 | 2024-05-24 | 南京数睿数据科技有限公司 | Program testing method and device based on test case and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113468053B (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108011949B (en) | Method and apparatus for acquiring data | |
CN107644075B (en) | Method and device for collecting page information | |
CN113760924B (en) | Distributed transaction processing method and device | |
CN113010405A (en) | Application program testing method and device | |
CN107347093B (en) | Configuration method and device for distributed server system | |
CN110795328A (en) | Interface testing method and device | |
CN113468053B (en) | Application system testing method and device | |
CN111414154A (en) | Method and device for front-end development, electronic equipment and storage medium | |
CN110688295A (en) | Data testing method and device | |
CN112241357A (en) | Method, device, equipment and computer readable medium for gray scale test | |
CN112817562A (en) | Service processing method and device | |
CN111026629A (en) | Method and device for automatically generating test script | |
CN113743842B (en) | Multi-source data difference alarm method and device | |
CN114049065A (en) | Data processing method, device and system | |
CN112463616A (en) | Chaos testing method and device for Kubernetes container platform | |
CN113778847A (en) | Test report generation method and device | |
CN113448602A (en) | Version updating method and device | |
CN113362097A (en) | User determination method and device | |
CN112882741A (en) | Application management system and method | |
CN116319322B (en) | Power equipment node communication connection method, device, equipment and computer medium | |
CN110262756B (en) | Method and device for caching data | |
CN117742875A (en) | Container scheduling method, device, electronic equipment and computer readable medium | |
CN115098444A (en) | Directory data processing method and device, electronic equipment and storage medium | |
CN114925305A (en) | Page loading method and device | |
CN117076302A (en) | Automatic test method and device, electronic 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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220923 Address after: 25 Financial Street, Xicheng District, Beijing 100033 Applicant after: CHINA CONSTRUCTION BANK Corp. Address before: 12 / F, 15 / F, 99 Yincheng Road, Pudong New Area pilot Free Trade Zone, Shanghai, 200120 Applicant before: Jianxin Financial Science and Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |