CN115481033A - Software testing method and device, electronic equipment and readable medium - Google Patents

Software testing method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN115481033A
CN115481033A CN202211160945.0A CN202211160945A CN115481033A CN 115481033 A CN115481033 A CN 115481033A CN 202211160945 A CN202211160945 A CN 202211160945A CN 115481033 A CN115481033 A CN 115481033A
Authority
CN
China
Prior art keywords
tested
test
test case
case set
software
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
CN202211160945.0A
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211160945.0A priority Critical patent/CN115481033A/en
Publication of CN115481033A publication Critical patent/CN115481033A/en
Pending legal-status Critical Current

Links

Images

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/3672Test management
    • G06F11/3692Test management for test results analysis

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)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure provides a software testing method, an apparatus, an electronic device and a readable medium, wherein the software testing method comprises: determining a function to be tested of the software to be tested, an object to be tested corresponding to the function to be tested and a test case set; triggering the object to be tested to execute the corresponding test case set; and determining a test result of the function to be tested according to the execution result of the test case set. By the embodiment of the disclosure, the accuracy and reliability of software testing are improved.

Description

Software testing method and device, electronic equipment and readable medium
Technical Field
The present disclosure relates to the field of software technologies, and in particular, to a software testing method, an apparatus, an electronic device, and a readable medium.
Background
Currently, an important process in software development is software testing, i.e., a process that uses manual or automatic means to run or test a system in order to verify that it meets specified requirements or to discern between expected and actual results.
In the related art, a manually written test case set is usually used to perform functional test on software.
However, when a tester writes a test case, the tester often writes the test case only according to own experience, which may cause missing boundary values of the written test case, and affect the reliability and accuracy of a software test result.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a software testing method, apparatus, electronic device and readable medium for overcoming, at least to some extent, the problem of poor reliability of software testing due to the limitations and disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a software testing method, including: determining a function to be tested of the software to be tested, a to-be-tested object corresponding to the function to be tested and a test case set; triggering the object to be tested to execute the corresponding test case set; and determining the test result of the function to be tested according to the execution result of the test case set.
In an exemplary embodiment of the present disclosure, determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested, and the test case set includes: determining a function to be tested and a minimum object to be tested corresponding to the function to be tested according to the user requirement document of the software to be tested; determining test parameter information according to the development document to be tested; and constructing a test case set corresponding to the minimum object to be tested according to the test parameter information.
In an exemplary embodiment of the present disclosure, constructing the test case set corresponding to the minimum object to be tested according to the test parameter information includes: determining a minimum parameter and a maximum parameter suitable for the minimum object to be tested according to the test parameter information; constructing a minimum test set according to the minimum parameter and the maximum parameter; and constructing the test case set according to the minimum test set and the random disturbance.
In an exemplary embodiment of the present disclosure, further comprising: reconstructing the test case set according to the execution result of the test case set; and triggering the software to be tested to execute the reconstructed test case set in the next round of test.
In an exemplary embodiment of the present disclosure, reconstructing the test case set according to the execution result of the test case set includes: and screening the test case set corresponding to the abnormal result according to the execution result of the test case set.
In an exemplary embodiment of the present disclosure, reconstructing the test case set according to the execution result of the test case set further includes: and adjusting the step length of the test case set corresponding to the abnormal result.
In an exemplary embodiment of the present disclosure, reconstructing the test case set according to the execution result of the test case set further includes: randomly expanding the test case set corresponding to the abnormal result; and reconstructing the test case set corresponding to the abnormal result according to the adjusted step length and the result of the random expansion.
According to a second aspect of the embodiments of the present disclosure, there is provided a software testing apparatus including: the determining module is used for determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested and the test case set; the test module is set to trigger the object to be tested to execute the corresponding test case set; and the determining module is set to determine the test result of the function to be tested according to the execution result of the test case set.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method of any of the above based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium, having stored thereon a program which, when executed by a processor, implements a software testing method as described in any of the above.
According to the embodiment of the invention, the function to be tested of the software to be tested, the object to be tested and the test case set corresponding to the function to be tested are determined, and the object to be tested is triggered to execute the corresponding test case set, namely, the corresponding test case set is generated for the test object in a targeted manner, so that not only can the loss of the boundary value of the test case set be reduced, but also the test result of the function to be tested is determined according to the execution result of the test case set, and the reliability and accuracy of the software test are comprehensively improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It should be apparent that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived by those of ordinary skill in the art without inventive effort.
FIG. 1 is a flow chart of a method of testing software in an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 7 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 8 is a flow chart of another method of testing software in an exemplary embodiment of the present disclosure;
FIG. 9 is a flow chart of another method of testing software in exemplary embodiments of the present disclosure;
FIG. 10 is a block diagram of a software testing device in an exemplary embodiment of the present disclosure;
fig. 11 is a block diagram of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Further, the drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
FIG. 1 shows a schematic diagram of an exemplary system architecture to which a software testing scheme of an embodiment of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
In some embodiments, the software testing method provided by the embodiment of the present invention is generally executed by the terminal 105, and accordingly, the software testing apparatus is generally disposed in the terminal device 103 (which may also be the terminal device 101 or 102). In other embodiments, some servers may have similar functionality as the terminal device to perform the method. Therefore, the software testing method provided by the embodiment of the invention is not limited to be executed by the terminal equipment.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
FIG. 2 is a flow chart of a software testing method in an exemplary embodiment of the present disclosure.
Referring to fig. 2, the software testing method may include:
step S202, determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested and a test case set.
And step S204, triggering the object to be tested to execute the corresponding test case set.
And S206, determining the test result of the function to be tested according to the execution result of the test case set.
According to the embodiment of the disclosure, the function to be tested of the software to be tested, the object to be tested and the test case set corresponding to the function to be tested are determined, and the object to be tested is triggered to execute the corresponding test case set, that is, the corresponding test case set is generated for the test object in a targeted manner, so that not only can the loss of the boundary value of the test case set be reduced, but also the test result of the function to be tested is determined according to the execution result of the test case set, and the reliability and the accuracy of the software test are comprehensively improved.
The steps of the software testing method will be described in detail below.
In an exemplary embodiment of the present disclosure, as shown in fig. 3, determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested, and the test case set includes:
step S302, determining a function to be tested and a minimum object to be tested corresponding to the function to be tested according to the user requirement document of the software to be tested.
Step S304, determining the test parameter information according to the development document to be tested.
Step S306, a test case set corresponding to the minimum object to be tested is constructed according to the test parameter information.
In an exemplary embodiment of the present disclosure, the user requirement document refers to investigation and analysis of user requirements before system design and in the design and development processes, and is a basis for system design, system perfection and system maintenance, and then modeling analysis is performed on more complex user requirements to help software developers to better understand the requirements.
In an exemplary embodiment of the present disclosure, the development documents generally include, but are not limited to, functional requirements, bid schemes, demand analysis, technical analysis, system analysis, database documents, functional function documents, interface documents, compilation manuals, QA documents, and item summaries.
In an exemplary embodiment of the present disclosure, as shown in fig. 4, constructing the test case set corresponding to the minimum object to be tested according to the test parameter information includes:
step S402, determining the minimum parameter and the maximum parameter suitable for the minimum object to be tested according to the test parameter information.
And S404, constructing a minimum test set according to the minimum parameter and the maximum parameter.
And S406, constructing the test case set according to the minimum test set and the random disturbance.
In an exemplary embodiment of the disclosure, a minimum test set is constructed by determining a maximum value boundary (Max (Argi) and a minimum value boundary Min (Argi) of each parameter of each measured object at a functional point of software to be tested, including a measured object method, a method parameter, a parameter type, a parameter return type, a sample and the like, but not limited thereto.
In an exemplary embodiment of the present disclosure, test case initialization includes the following three phases:
1. determining the change step length lambda i of the test case: typically, each test object sample set is 20, λ i = (Max (Argi) -Min (Argi))/18, where i is the number of parameters of the test object.
2. Generating random disturbance: μ i = random (0,2).
3. The calculation mode for constructing the test case set Si is as follows:
S0=Min(Argi))-Min(Argi))×λi×μi;
S1=Min(Argi));
si = Min (Argi)) + Min (Argi)) × i × μ i × N, where N is an integer between 2 and 19.
In an exemplary embodiment of the present disclosure, as shown in fig. 5, further includes:
step S502, reconstructing the test case set according to the execution result of the test case set.
And step S504, triggering the software to be tested to execute the reconstructed test case set in the next round of test.
In one exemplary embodiment of the present disclosure, use case reconstruction includes the following stages:
1. and selecting the test case set with abnormal test feedback according to the test feedback condition, and taking each parameter of an abnormal case set.
2. And (3) adjusting the reconstruction step length: for example, but not limited to, the step size of the parameter is reduced by 5 times, 10 times, 15 times, etc. during initialization.
3. Reconstructing a test case: and repeating the test case initialization process according to the new step length, and dynamically expanding 20 new randomly distributed test cases for the next test by taking the abnormal case as a reference.
In an exemplary embodiment of the present disclosure, as shown in fig. 6, reconstructing the test case set according to the execution result of the test case set includes:
step S602, screening the test case set corresponding to the abnormal result according to the execution result of the test case set.
In an exemplary embodiment of the present disclosure, as shown in fig. 7, reconstructing the test case set according to the execution result of the test case set further includes:
and step S702, adjusting the step length of the test case set corresponding to the abnormal result.
In one embodiment of the disclosure, the step length corresponding to the abnormal result can be shortened or enlarged to be integral multiple of the initialized step length, and the coverage and reliability of the constructed test case are improved by introducing the step length and the random disturbance factor.
In an exemplary embodiment of the present disclosure, as shown in fig. 8, reconstructing the test case set according to the execution result of the test case set further includes:
step S802, randomly expanding the test case set corresponding to the abnormal result.
And step S804, reconstructing the test case set corresponding to the abnormal result according to the adjusted step length and the result of the random expansion.
In an exemplary embodiment of the disclosure, according to a parameter boundary value of a minimum measured object, a test case sample set is initialized by using a random disturbance parameter, and a test case set corresponding to an abnormal result is reconstructed by combining an adjusted step length and a result of random expansion, that is, an extended test case is performed near a target value and is reserved for a next round of test, so that an implementation threshold is reduced, and the yield efficiency and reliability of the test case set are improved.
In an exemplary embodiment of the present disclosure, as shown in fig. 9, the software testing scheme further includes the steps of:
step S902, determining a system test function point and a minimum tested object under the function point according to a user requirement specification;
step S904, determining the maximum and minimum value boundaries of each parameter of each tested object under the function point by using the development document, and constructing a minimum test set;
step S906, determining the change step length lambda i of the test case;
step S908, generating random disturbance;
step S910, determining whether the reference value is the minimum value, if so, performing step S912, and if not, performing step S922;
step S912, the reference value is changed to the maximum once according to the step length;
step S914, constructing a test case set;
step S916, determining whether the test case set is constructed, if yes, performing step S918, otherwise, performing step S908;
step S918, running a test case set;
step S920, determining whether the operation result generates an abnormal result, if yes, performing step S926, and if not, ending;
step S922, reserving a test case with the minimum parameter value;
step S924, constructing a test case smaller than the minimum value;
step S926, a test case set corresponding to the abnormal result is obtained;
and step S928, reconstructing the test case set by taking the abnormal parameters in the test case set corresponding to the abnormal result as a reference.
Corresponding to the method embodiment, the present disclosure also provides a software testing apparatus, which may be used to execute the method embodiment.
FIG. 10 is a block diagram of a software testing device in an exemplary embodiment of the present disclosure.
Referring to fig. 10, the software testing apparatus 1000 may include:
the determining module 1002 is configured to determine a function to be tested of the software to be tested, an object to be tested corresponding to the function to be tested, and a test case set.
The test module 1004 is configured to trigger the object to be tested to execute the corresponding test case set.
The determining module 1002 is configured to determine a test result of the function to be tested according to an execution result of the test case set.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: determining a function to be tested and a minimum object to be tested corresponding to the function to be tested according to the user requirement document of the software to be tested; determining test parameter information according to the development document to be tested; and constructing a test case set corresponding to the minimum object to be tested according to the test parameter information.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: determining a minimum parameter and a maximum parameter suitable for the minimum object to be tested according to the test parameter information; constructing a minimum test set according to the minimum parameter and the maximum parameter; and constructing the test case set according to the minimum test set and the random disturbance.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: reconstructing the test case set according to the execution result of the test case set; and triggering the software to be tested to execute the reconstructed test case set in the next round of test.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: and screening the test case set corresponding to the abnormal result according to the execution result of the test case set.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: and adjusting the step length of the test case set corresponding to the abnormal result.
In an exemplary embodiment of the disclosure, the determining module 1002 is further configured to: randomly expanding the test case set corresponding to the abnormal result; and reconstructing the test case set corresponding to the abnormal result according to the adjusted step length and the result of the random expansion.
Since the functions of the software testing apparatus 1000 have been described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1100 according to this embodiment of the invention is described below with reference to fig. 11. The electronic device 1100 shown in fig. 11 is only an example and should not bring any limitations to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 11, electronic device 1100 is embodied in the form of a general purpose computing device. The components of the electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, and a bus 1130 that couples various system components including the memory unit 1120 and the processing unit 1110.
Wherein the storage unit stores program code that is executable by the processing unit 1110 to cause the processing unit 1110 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification. For example, the processing unit 1110 may perform the methods as shown in the embodiments of the present disclosure.
The storage unit 1120 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) 11201 and/or a cache memory unit 11202, and may further include a read only memory unit (ROM) 11203.
Storage unit 1120 may also include a program/utility 11204 having a set (at least one) of program modules 11205, such program modules 11205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment.
Bus 1130 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 1100 can also communicate with one or more external devices 1140 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 1150. Also, the electronic device 1100 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1160. As shown, the network adapter 1160 communicates with the other modules of the electronic device 1100 over the bus 1130. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, and may also be implemented by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary method" of this description, when said program product is run on said terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
A computer readable signal medium may include a propagated data signal with 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 readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A software testing method, comprising:
determining a function to be tested of the software to be tested, a to-be-tested object corresponding to the function to be tested and a test case set;
triggering the object to be tested to execute the corresponding test case set;
and determining the test result of the function to be tested according to the execution result of the test case set.
2. The software testing method of claim 1, wherein determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested, and the test case set comprises:
determining a function to be tested and a minimum object to be tested corresponding to the function to be tested according to the user requirement document of the software to be tested;
determining test parameter information according to the development document to be tested;
and constructing a test case set corresponding to the minimum object to be tested according to the test parameter information.
3. The software testing method according to claim 1, wherein constructing the test case set corresponding to the minimum object to be tested according to the test parameter information comprises:
determining a minimum parameter and a maximum parameter suitable for the minimum object to be tested according to the test parameter information;
constructing a minimum test set according to the minimum parameter and the maximum parameter;
and constructing the test case set according to the minimum test set and the random disturbance.
4. The software testing method of any one of claims 1-3, further comprising:
reconstructing the test case set according to the execution result of the test case set;
and triggering the software to be tested to execute the reconstructed test case set in the next round of test.
5. The software testing method of claim 4, wherein reconstructing the set of test cases according to the execution results of the set of test cases comprises:
and screening the test case set corresponding to the abnormal result according to the execution result of the test case set.
6. The software testing method of claim 5, wherein reconstructing the set of test cases according to the execution results of the set of test cases further comprises:
and adjusting the step length of the test case set corresponding to the abnormal result.
7. The software testing method of claim 6, wherein reconstructing the set of test cases according to the execution results of the set of test cases further comprises:
randomly expanding the test case set corresponding to the abnormal result;
and reconstructing the test case set corresponding to the abnormal result according to the adjusted step length and the result of the random expansion.
8. A software testing apparatus, comprising:
the determining module is used for determining the function to be tested of the software to be tested, the object to be tested corresponding to the function to be tested and the test case set;
the test module is set to trigger the object to be tested to execute the corresponding test case set;
and the determining module is set to determine the test result of the function to be tested according to the execution result of the test case set.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the software testing method of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium, on which a program is stored which, when being executed by a processor, carries out the software testing method according to any one of claims 1 to 7.
CN202211160945.0A 2022-09-22 2022-09-22 Software testing method and device, electronic equipment and readable medium Pending CN115481033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211160945.0A CN115481033A (en) 2022-09-22 2022-09-22 Software testing method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211160945.0A CN115481033A (en) 2022-09-22 2022-09-22 Software testing method and device, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN115481033A true CN115481033A (en) 2022-12-16

Family

ID=84394682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211160945.0A Pending CN115481033A (en) 2022-09-22 2022-09-22 Software testing method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN115481033A (en)

Similar Documents

Publication Publication Date Title
CN111625473B (en) Interface test case generation method and device, storage medium and electronic equipment
CN109684188B (en) Test method and device
US20080178047A1 (en) Software Test System, Method, And Computer Readable Recording Medium Having Program Stored Thereon For Executing the Method
US20140337821A1 (en) Generating test scripts through application integration
CN110674047B (en) Software testing method and device and electronic equipment
CN111209202A (en) Terminal application testing method and device
CN112685029A (en) Visual template generation method, device, equipment and storage medium
CN110806970A (en) Client test method and device based on simulation server response and electronic equipment
CN111881054B (en) User interface automatic test method, system, equipment and storage medium
CN113760729A (en) Code detection method and device
JP2019101581A (en) Software quality determination device, software quality determination method, and software quality determination program
CN112527382A (en) Method for deploying pipeline engine system, method and device for continuous integration
US10031745B2 (en) System and method for automatic API candidate generation
US20090164974A1 (en) Quality measure tool for a composite application
CN112988578A (en) Automatic testing method and device
US9037916B2 (en) Dynamic concolic execution of an application
CN109977005B (en) End-to-end test method, medium, device and computing equipment
CN115481033A (en) Software testing method and device, electronic equipment and readable medium
CN110609786A (en) Software testing method and device, computer equipment and storage medium
CN111367791B (en) Method, device, medium and electronic equipment for generating test case
CN110795338A (en) Automatic testing method and device based on front-end and back-end interaction and electronic equipment
CN111176718A (en) Script online method and device, storage medium and electronic equipment
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN116467178B (en) Database detection method, apparatus, electronic device and computer readable 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