CN110162467B - Software testing method, device, computer equipment and readable storage medium - Google Patents

Software testing method, device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN110162467B
CN110162467B CN201910330137.6A CN201910330137A CN110162467B CN 110162467 B CN110162467 B CN 110162467B CN 201910330137 A CN201910330137 A CN 201910330137A CN 110162467 B CN110162467 B CN 110162467B
Authority
CN
China
Prior art keywords
characteristic information
function
operation parameter
operation parameters
function point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910330137.6A
Other languages
Chinese (zh)
Other versions
CN110162467A (en
Inventor
吴锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910330137.6A priority Critical patent/CN110162467B/en
Publication of CN110162467A publication Critical patent/CN110162467A/en
Priority to PCT/CN2019/118179 priority patent/WO2020215693A1/en
Application granted granted Critical
Publication of CN110162467B publication Critical patent/CN110162467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/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

Abstract

The invention relates to a software testing method, which comprises the following steps: acquiring measured function points and to-be-measured function points of to-be-measured software; searching a function point related to the function point to be detected from the detected function points to serve as a related function point; acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected; optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters; generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file. The software testing method provided by the invention can reduce the modification cost in the later testing period.

Description

Software testing method, device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a software testing method, a device, a computer apparatus, and a readable storage medium.
Background
With the continuous development of computer technology, the development of various software programs is increasing. In the development process of the software product, when the software develops a new function, the software needs to be tested before the new function is put into use so as to ensure that the function of the software is used normally.
At present, when testing and analyzing a certain functional point of software, a boundary value analysis method or an equivalent class division method is generally adopted; the boundary value analysis method adopts boundary value data of the functional points to be tested as test data, and the equivalent dividing method selects representative data in the functional points to be tested as test data. Both existing test methods only consider the functional points to be tested, and the influence on the associated functional points is not considered enough, so that the modification cost in the later period of the test is high.
Disclosure of Invention
The invention aims to provide a software testing method, a software testing device, computer equipment and a readable storage medium, which can reduce the post-test modification cost.
The aim of the invention is realized by the following technical scheme:
a method of software testing, the method comprising:
acquiring measured function points and to-be-measured function points of to-be-measured software;
searching a function point related to the function point to be detected from the detected function points to serve as a related function point;
acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
In one embodiment, the searching the function point associated with the function point to be measured from the measured function points as an associated function point includes:
acquiring first characteristic information of a tested functional point of software to be tested and second characteristic information of the functional point to be tested;
searching characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information;
and inquiring the related function points corresponding to the related characteristic information in the detected function points.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information includes:
splitting the second characteristic information to obtain a plurality of characteristic keywords;
acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
and when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information includes:
transmitting the first characteristic information and the second characteristic information to a user terminal;
receiving the association characteristic information returned by the user terminal; the associated characteristic information is obtained by screening the first characteristic information according to the second characteristic information.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information includes:
splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
when the correlation coefficient is larger than a preset threshold value, the corresponding second characteristic information is used as undetermined correlation characteristic information;
transmitting the undetermined associated characteristic information and the second characteristic information to a user terminal;
receiving the association characteristic information returned by the user terminal; and the association characteristic information is acquired from the undetermined association characteristic information according to the second characteristic information.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter to obtain an optimized operation parameter includes:
matching the first operation parameter with the second operation parameter;
inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters;
and when the candidate operation parameter and the first operation parameter are not matched, taking the candidate operation parameter as the optimized operation parameter.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter to obtain an optimized operation parameter includes:
transmitting the first operating parameter and the second operating parameter to a user terminal;
receiving the optimized operation parameters returned by the user terminal; wherein the optimized operation parameters are obtained according to the first operation parameters and the second operation parameters.
A software testing apparatus, the apparatus comprising:
the function point acquisition module is used for acquiring measured function points and to-be-measured function points of the to-be-measured software;
the associated function point acquisition module is used for searching the function point associated with the function point to be detected from the detected function points to serve as an associated function point;
the operation parameter acquisition module is used for acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
the optimizing module is used for optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
and the test module is used for generating a test configuration file according to the optimized operation parameters and testing the functional points to be tested according to the test configuration file.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring measured function points and to-be-measured function points of to-be-measured software;
searching a function point related to the function point to be detected from the detected function points to serve as a related function point;
acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring measured function points and to-be-measured function points of to-be-measured software;
searching a function point related to the function point to be detected from the detected function points to serve as a related function point;
acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
The software testing method, the device, the computer equipment and the readable storage medium are used for acquiring the tested function points and the tested function points of the software to be tested; searching a function point related to the function point to be tested from the tested function points, taking the function point as a related function point, optimizing a second operation parameter of the function point to be tested according to a first operation parameter of the related function point to obtain an optimized operation parameter, and testing according to the optimized operation parameter. The operation parameters of the function points to be tested can be optimized in advance according to the operation parameters of the related tested function points, and the later-period modification cost of the test is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a diagram of an application environment for a software testing method in one embodiment;
FIG. 2 is a flow chart of a software testing method in one embodiment;
FIG. 3 is a flow chart of a software testing method according to another embodiment;
FIG. 4 is a block diagram of a software testing device in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The software testing method provided by the application can be applied to an application environment shown in fig. 1. The server may be implemented by a computer device, and its internal structure may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to the software test. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a software testing method.
Specifically, a server acquires measured function points and to-be-measured function points of to-be-measured software; the server searches the function points related to the function points to be detected from the detected function points to serve as related function points; the server acquires a first operation parameter of the associated function point and a second operation parameter of the function point to be detected; the server optimizes the second operation parameters according to the first operation parameters to obtain optimized operation parameters; and the server generates a test configuration file according to the optimized operation parameters, and tests the functional points to be tested according to the test configuration file.
It will be appreciated by those skilled in the art that a "server" as used herein may be implemented as a stand-alone server or as a cluster of servers.
The software testing method in the embodiment of the invention is particularly suitable for the scene of software testing.
In one embodiment, as shown in fig. 2, fig. 2 is a flowchart of an image processing method in one embodiment, and may include the following steps:
step S101, obtaining tested function points and tested function points of the software to be tested.
In the development process of a software product, when the software develops a new function, the software needs to be tested before the new function is put into use, the tested function point of the software to be tested is the function point of the software which is put into normal use, and the function point to be tested is the new function point which is developed at present.
Step S102, searching the function points related to the function points to be detected from the detected function points to serve as related function points.
In this step, the first characteristic information associated with the second characteristic information of the functional point to be measured may be obtained by comparing the first characteristic information of the functional point to be measured with the second characteristic information of the functional point to be measured, so as to determine the functional point to be measured associated with the functional point to be measured.
Wherein the characteristic information includes running environment information of the function point, and the characteristic information of the function point of the communication software includes information such as an operating system, a display device, audio output, audio input and the like.
Taking communication software as an example, the communication software has communication functions of text information transmission and accessory information transmission, when the communication functions of voice transmission are newly added, whether the function points of text information transmission and accessory information transmission affect the function points of voice transmission needs to be considered, for example, whether a receiving end of voice information can be subjected to network environment or the configuration of running hardware equipment is insufficient or the like.
In one embodiment, as shown in fig. 3, for step S102, searching for a function point associated with the function point to be measured from the measured function points may include:
step S210, obtaining first characteristic information of tested function points of software to be tested and second characteristic information of the function points to be tested;
step S220, searching the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information;
and step S230, inquiring the associated function point corresponding to the associated characteristic information in the detected function point.
According to the software testing method, the first characteristic information of the tested functional point and the second characteristic information of the functional point to be tested are compared, and the characteristic information related to the second characteristic information of the functional point to be tested is searched in the first characteristic information of the tested functional point, so that the tested functional point related to the functional point to be tested is determined, the related functional point which possibly affects the functional point to be tested in the tested functional point is determined, and the modification cost of the later test can be reduced.
Step S103, acquiring a first operation parameter of the associated function point, and acquiring a second operation parameter of the function point to be tested.
In this step, taking the server in fig. 1 as an example, the server may store operation parameters of a plurality of function points in advance, and input the function point identifier to the server, that is, the operation parameters corresponding to the input function point identifier may be queried.
In another embodiment, the associated function point and the function point to be tested may be input to the terminal, and the terminal queries the received operation parameters of the associated function point and the function point to be tested and returns the queried parameters to the server.
Step S104, optimizing the second operation parameter according to the first operation parameter, to obtain an optimized operation parameter.
Because the first operation parameters of the associated function points possibly influence the second operation parameters of the function points to be tested, the second operation parameters need to be optimized according to the first operation parameters so as to avoid the influence of the associated function points on the function points to be tested, and therefore the modification cost of the later test is reduced.
For example, when the operation parameter is an operation interface, it needs to determine whether the operation interface of the associated function point conflicts with the operation interface of the function point to be tested, and if the operation interface between the two conflicts, it needs to adjust the operation interface of the function point to be tested.
In one embodiment, optimizing the second operation parameter according to the first operation parameter in step S104 to obtain an optimized operation parameter may include:
a1, matching the first operation parameter with the second operation parameter;
a2, inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters;
a3, when the candidate operation parameter and the first operation parameter are not matched, the candidate operation parameter is used as the optimized operation parameter.
In this embodiment, a plurality of candidate operation parameters of the function point to be tested are pre-stored in the server, when the first operation parameter is found to be matched with the second operation parameter, that is, when the first operation parameter of the related function point may affect the second operation parameter of the function point to be tested, one candidate operation parameter is selected as a new second operation parameter, the new second operation parameter is matched with the first operation parameter, when the new second operation parameter is matched with the first operation parameter, another candidate operation parameter is selected from the pre-stored plurality of candidate operation parameters again to be used as a new second operation parameter, and the matching with the first operation parameter is repeated until the selected candidate operation parameter is not matched with the first operation parameter, which indicates that the first operation parameter of the related function point at this time does not affect the function point to be tested, and the selected candidate operation parameter at this time is taken as the final second operation parameter.
In another embodiment, for step S104, optimizing the second operation parameter according to the first operation parameter to obtain an optimized operation parameter may further include:
b1, transmitting the first operation parameter and the second operation parameter to a user terminal;
b2, receiving the optimized operation parameters returned by the user terminal; wherein the optimized operation parameters are obtained according to the first operation parameters and the second operation parameters.
In this embodiment, taking the server shown in fig. 1 as an example, the server directly sends the first operation parameter and the second operation parameter to the user terminal, the debugging personnel judges and optimizes the first operation parameter and the second operation parameter, and the server receives the optimized operation parameter returned by the user terminal.
Step S105, generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
In the step, a test configuration file is generated according to the optimized operation parameters, a corresponding software test platform is constructed according to the test configuration file, and the constructed software test platform is utilized to test the functional points to be tested.
The software testing method, the device, the computer equipment and the readable storage medium are used for acquiring the tested function points and the tested function points of the software to be tested; searching a function point related to the function point to be detected from the detected function point through the second characteristic information of the function point to be detected and the first characteristic information of the detected function point, and taking the function point as a related function point; and optimizing the second operation parameters of the function points to be tested according to the first operation parameters of the related function points to obtain optimized operation parameters, and then testing according to the optimized operation parameters. The operation parameters of the function points to be tested can be optimized in advance according to the operation parameters of the related tested function points, and the later-period modification cost of the test is reduced.
In the above software testing method, for searching the characteristic information associated with the second characteristic information from the first characteristic information in step S230, as associated characteristic information, there may be various implementations, and the various implementations will be further described below.
In one embodiment, for step S230, searching for the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information may include:
a1, splitting the second characteristic information to obtain a plurality of characteristic keywords;
a2, acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
a3, when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information.
In this embodiment, a training sample is used to train a pre-stored learning model to obtain a preset model, a characteristic keyword and first characteristic information are input into the preset model to obtain a correlation coefficient between the characteristic keyword and the first characteristic information, and the correlation between the first characteristic information and the second characteristic information is judged according to the correlation coefficient, so that characteristic information associated with the second characteristic information is searched from the first characteristic information and used as associated characteristic information.
In another embodiment, for step S230, searching for the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information may include:
b1, the first characteristic information and the second characteristic information are sent to a user terminal;
b2, receiving the association characteristic information returned by the user terminal; the associated characteristic information is obtained by screening the first characteristic information according to the second characteristic information.
In this embodiment, the first characteristic information and the second characteristic information are sent to the user terminal, and the correlation between the first characteristic information and the second characteristic information is determined by the user, and then the associated characteristic information in the first characteristic information returned by the user terminal is received.
In still another embodiment, for step S230, searching for the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information may further include:
c1, splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
c2, when the correlation coefficient is larger than a preset threshold value, the corresponding second characteristic information is used as undetermined correlation characteristic information;
c3, the undetermined associated characteristic information and the second characteristic information are sent to a user terminal;
c4, receiving the association characteristic information returned by the user terminal; and the association characteristic information is acquired from the undetermined association characteristic information according to the second characteristic information.
In this embodiment, the characteristic keyword and the first characteristic information are input into a preset model to obtain a correlation coefficient between the characteristic keyword and the first characteristic information, and the correlation between the first characteristic information and the second characteristic information is judged according to the correlation coefficient, so that the undetermined correlated characteristic information associated with the second characteristic information is searched for from the first characteristic information, that is, the range of the first characteristic information is narrowed by the preset model; and then sending the undetermined association characteristic information and the second characteristic information to the user terminal, judging the correlation between the undetermined association characteristic information and the second characteristic information through a user, and then receiving association characteristic information in the undetermined association characteristic information returned by the user terminal.
It should be understood that, although the steps in the flowcharts of fig. 2-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
As shown in fig. 4, fig. 4 is a schematic structural diagram of a software testing device in an embodiment, and the embodiment provides a software testing device, which includes a function point obtaining module 401, an associated function point obtaining module 402, an operation parameter obtaining module 403, an optimizing module 404, and a testing module 405, wherein:
the function point obtaining module 401 is configured to obtain a measured function point and a function point to be measured of the software to be measured;
an associated function point obtaining module 402, configured to find a function point associated with the function point to be measured from the measured function points, as an associated function point;
an operation parameter obtaining module 403, configured to obtain a first operation parameter of the associated function point and obtain a second operation parameter of the function point to be tested;
an optimizing module 404, configured to optimize the second operation parameter according to the first operation parameter, so as to obtain an optimized operation parameter;
and the test module 405 is configured to generate a test configuration file according to the optimized operation parameter, and test the functional point to be tested according to the test configuration file.
For specific limitations of the software testing device, reference may be made to the above limitations of the software testing method, and no further description is given here. The respective modules in the above-described software testing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a server is provided, which may be implemented using a computer device, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to the software test. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a software testing method.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of: acquiring measured function points and to-be-measured function points of to-be-measured software; searching a function point related to the function point to be detected from the detected function points to serve as a related function point; acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected; optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters; generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
In one embodiment, the searching the function point associated with the function point to be measured from the measured function points when the processor executes the computer program, as the associated function point, includes: acquiring first characteristic information of a tested functional point of software to be tested and second characteristic information of the functional point to be tested; searching characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information; and inquiring the related function points corresponding to the related characteristic information in the detected function points.
In one embodiment, the processor, when executing the computer program, searches the characteristic information associated with the second characteristic information from the first characteristic information, as associated characteristic information, includes: splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model; and when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information.
In one embodiment, the processor, when executing the computer program, searches the characteristic information associated with the second characteristic information from the first characteristic information, as associated characteristic information, includes: transmitting the first characteristic information and the second characteristic information to a user terminal; receiving the association characteristic information returned by the user terminal; the associated characteristic information is obtained by screening the first characteristic information according to the second characteristic information.
In one embodiment, the processor, when executing the computer program, searches the characteristic information associated with the second characteristic information from the first characteristic information, as associated characteristic information, includes: splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model; when the correlation coefficient is larger than a preset threshold value, the corresponding second characteristic information is used as undetermined correlation characteristic information; transmitting the undetermined associated characteristic information and the second characteristic information to a user terminal; receiving the association characteristic information returned by the user terminal; and the association characteristic information is acquired from the undetermined association characteristic information according to the second characteristic information.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter when the processor executes the computer program, to obtain an optimized operation parameter includes: matching the first operation parameter with the second operation parameter; inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters; and when the candidate operation parameter and the first operation parameter are not matched, taking the candidate operation parameter as the optimized operation parameter.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter when the processor executes the computer program, to obtain an optimized operation parameter includes: transmitting the first operating parameter and the second operating parameter to a user terminal; receiving the optimized operation parameters returned by the user terminal; wherein the optimized operation parameters are obtained according to the first operation parameters and the second operation parameters.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring measured function points and to-be-measured function points of to-be-measured software; searching a function point related to the function point to be detected from the detected function points to serve as a related function point; acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected; optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters; generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file.
In one embodiment, the searching the function point associated with the function point to be tested from the tested function points when the computer program is executed by the processor, as the associated function point, includes: acquiring first characteristic information of a tested functional point of software to be tested and second characteristic information of the functional point to be tested; searching characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information; and inquiring the related function points corresponding to the related characteristic information in the detected function points.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information when the computer program is executed by the processor, as associated characteristic information, includes: splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model; and when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information when the computer program is executed by the processor, as associated characteristic information, includes: transmitting the first characteristic information and the second characteristic information to a user terminal; receiving the association characteristic information returned by the user terminal; the associated characteristic information is obtained by screening the first characteristic information according to the second characteristic information.
In one embodiment, the searching the characteristic information associated with the second characteristic information from the first characteristic information when the computer program is executed by the processor, as associated characteristic information, includes: splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model; when the correlation coefficient is larger than a preset threshold value, the corresponding second characteristic information is used as undetermined correlation characteristic information; transmitting the undetermined associated characteristic information and the second characteristic information to a user terminal; receiving the association characteristic information returned by the user terminal; and the association characteristic information is acquired from the undetermined association characteristic information according to the second characteristic information.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter when the computer program is executed by the processor, to obtain an optimized operation parameter includes: matching the first operation parameter with the second operation parameter; inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters; and when the candidate operation parameter and the first operation parameter are not matched, taking the candidate operation parameter as the optimized operation parameter.
In one embodiment, the optimizing the second operation parameter according to the first operation parameter when the computer program is executed by the processor, to obtain an optimized operation parameter includes: transmitting the first operating parameter and the second operating parameter to a user terminal; receiving the optimized operation parameters returned by the user terminal; wherein the optimized operation parameters are obtained according to the first operation parameters and the second operation parameters.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (7)

1. A method of software testing, the method comprising:
acquiring measured function points and to-be-measured function points of to-be-measured software;
searching a function point related to the function point to be detected from the detected function points to serve as a related function point;
acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
generating a test configuration file according to the optimized operation parameters, and testing the functional points to be tested according to the test configuration file;
the searching the function point related to the function point to be detected from the detected function points as the related function point specifically includes:
acquiring first characteristic information of a tested functional point of software to be tested and second characteristic information of the functional point to be tested;
searching characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information;
inquiring the related function points corresponding to the related characteristic information in the detected function points; wherein the characteristic information comprises operation environment information of the function point;
wherein, the searching the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information specifically includes:
splitting the second characteristic information to obtain a plurality of characteristic keywords;
acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information;
the optimizing the second operation parameter according to the first operation parameter to obtain an optimized operation parameter specifically includes:
matching the first operation parameter with the second operation parameter;
inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters;
and when the candidate operation parameter and the first operation parameter are not matched, taking the candidate operation parameter as the optimized operation parameter.
2. The method according to claim 1, wherein the searching for the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information includes:
transmitting the first characteristic information and the second characteristic information to a user terminal;
receiving the association characteristic information returned by the user terminal; the associated characteristic information is obtained by screening the first characteristic information according to the second characteristic information.
3. The method according to claim 1, wherein the searching for the characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information includes:
splitting the second characteristic information to obtain a plurality of characteristic keywords; acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
when the correlation coefficient is larger than a preset threshold value, the corresponding second characteristic information is used as undetermined correlation characteristic information;
transmitting the undetermined associated characteristic information and the second characteristic information to a user terminal;
receiving the association characteristic information returned by the user terminal; and the association characteristic information is acquired from the undetermined association characteristic information according to the second characteristic information.
4. The method of claim 1, wherein optimizing the second operating parameter based on the first operating parameter results in an optimized operating parameter, comprising:
transmitting the first operating parameter and the second operating parameter to a user terminal;
receiving the optimized operation parameters returned by the user terminal; wherein the optimized operation parameters are obtained according to the first operation parameters and the second operation parameters.
5. A software testing apparatus, the apparatus comprising:
the function point acquisition module is used for acquiring measured function points and to-be-measured function points of the to-be-measured software;
the associated function point acquisition module is used for searching the function point associated with the function point to be detected from the detected function points to serve as an associated function point;
the operation parameter acquisition module is used for acquiring a first operation parameter of the associated function point and acquiring a second operation parameter of the function point to be detected;
the optimizing module is used for optimizing the second operation parameters according to the first operation parameters to obtain optimized operation parameters;
the test module is used for generating a test configuration file according to the optimized operation parameters and testing the functional points to be tested according to the test configuration file;
the associated function point acquisition module is specifically configured to:
acquiring first characteristic information of a tested functional point of software to be tested and second characteristic information of the functional point to be tested;
searching characteristic information associated with the second characteristic information from the first characteristic information as associated characteristic information;
inquiring the related function points corresponding to the related characteristic information in the detected function points; wherein the characteristic information comprises operation environment information of the function point;
the associated function point obtaining module is further configured to:
splitting the second characteristic information to obtain a plurality of characteristic keywords;
acquiring a correlation coefficient between the characteristic keywords and the first characteristic information by adopting a preset model;
when the correlation coefficient is larger than a preset threshold value, the corresponding first characteristic information is used as the correlation characteristic information;
wherein, the optimization module is specifically used for:
matching the first operation parameter with the second operation parameter;
inquiring pre-stored candidate operation parameters corresponding to the function points to be tested when the first operation parameters are matched with the second operation parameters;
and when the candidate operation parameter and the first operation parameter are not matched, taking the candidate operation parameter as the optimized operation parameter.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN201910330137.6A 2019-04-23 2019-04-23 Software testing method, device, computer equipment and readable storage medium Active CN110162467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910330137.6A CN110162467B (en) 2019-04-23 2019-04-23 Software testing method, device, computer equipment and readable storage medium
PCT/CN2019/118179 WO2020215693A1 (en) 2019-04-23 2019-11-13 Software testing method and apparatus, computer device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910330137.6A CN110162467B (en) 2019-04-23 2019-04-23 Software testing method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110162467A CN110162467A (en) 2019-08-23
CN110162467B true CN110162467B (en) 2023-12-19

Family

ID=67638633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910330137.6A Active CN110162467B (en) 2019-04-23 2019-04-23 Software testing method, device, computer equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN110162467B (en)
WO (1) WO2020215693A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162467B (en) * 2019-04-23 2023-12-19 平安科技(深圳)有限公司 Software testing method, device, computer equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729227A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 Application testing range determining method, system, server and storage medium
CN107832062A (en) * 2017-09-08 2018-03-23 上海壹账通金融科技有限公司 A kind of method for updating program and terminal device
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
CN108415820A (en) * 2017-02-09 2018-08-17 腾讯科技(深圳)有限公司 The test method and device of application installation package
CN108549603A (en) * 2018-04-11 2018-09-18 平安普惠企业管理有限公司 Generating method of test project, device, computer equipment and storage medium
CN108733550A (en) * 2017-04-13 2018-11-02 北京京东尚科信息技术有限公司 A kind of Automation regression testing method, apparatus of function module
CN109032946A (en) * 2018-07-27 2018-12-18 厦门集微科技有限公司 A kind of test method and device, computer readable storage medium
CN109189668A (en) * 2018-08-03 2019-01-11 深圳市牛鼎丰科技有限公司 Interface test method, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI322350B (en) * 2006-12-15 2010-03-21 Inst Information Industry Test device, method, application program, and computer readable medium for deriving a qualified test case plan from a test case database
US9734036B2 (en) * 2014-08-13 2017-08-15 International Business Machines Corporation Optimizing a cloud-computing environment
CN108536576B (en) * 2017-03-02 2021-08-27 富士通株式会社 Method and device for optimizing test scripts of application program
CN109614311A (en) * 2018-10-23 2019-04-12 深圳壹账通智能科技有限公司 Applied program testing method and device, electronic equipment, storage medium
CN110162467B (en) * 2019-04-23 2023-12-19 平安科技(深圳)有限公司 Software testing method, device, computer equipment and readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415820A (en) * 2017-02-09 2018-08-17 腾讯科技(深圳)有限公司 The test method and device of application installation package
CN108733550A (en) * 2017-04-13 2018-11-02 北京京东尚科信息技术有限公司 A kind of Automation regression testing method, apparatus of function module
CN107729227A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 Application testing range determining method, system, server and storage medium
CN107832062A (en) * 2017-09-08 2018-03-23 上海壹账通金融科技有限公司 A kind of method for updating program and terminal device
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
CN108549603A (en) * 2018-04-11 2018-09-18 平安普惠企业管理有限公司 Generating method of test project, device, computer equipment and storage medium
CN109032946A (en) * 2018-07-27 2018-12-18 厦门集微科技有限公司 A kind of test method and device, computer readable storage medium
CN109189668A (en) * 2018-08-03 2019-01-11 深圳市牛鼎丰科技有限公司 Interface test method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110162467A (en) 2019-08-23
WO2020215693A1 (en) 2020-10-29

Similar Documents

Publication Publication Date Title
CN108763398B (en) Database configuration parameter processing method and device, computer equipment and storage medium
CN108683530B (en) Data analysis method and device for multi-dimensional data and storage medium
CN111143163B (en) Data monitoring method, device, computer equipment and storage medium
CN108829584B (en) Service logic interface mock test method and system
CN108459954B (en) Application program vulnerability detection method and device
CN109542712B (en) Server pressure testing method and device, computer equipment and storage medium
CN110287332B (en) Method and device for selecting simulation model in cloud environment
CN112559365A (en) Test case screening method and device, computer equipment and storage medium
CN110069739B (en) Page preloading method and device
CN108366012B (en) Social relationship establishing method and device and electronic equipment
US11809406B2 (en) Event records in a log file
CN110855477A (en) Link log monitoring method and device, computer equipment and storage medium
CN111831574B (en) Regression test planning method, regression test planning device, computer system and medium
CN110162467B (en) Software testing method, device, computer equipment and readable storage medium
CN112363937A (en) Method and device for testing differential coverage rate, computer equipment and storage medium
CN115809203A (en) Software test case dynamic nesting method, device and application thereof
CN111124898A (en) Question-answering system testing method and device, computer equipment and storage medium
CN114385485A (en) Interface test method, device, equipment and storage medium
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
CN111191792A (en) Data distribution method and device and computer equipment
CN112016297B (en) Intention recognition model testing method and device, computer equipment and storage medium
CN109284260B (en) Big data file reading method and device, computer equipment and storage medium
CN112153375A (en) Front-end performance testing method, device, equipment and medium based on video information
CN113742721B (en) Vulnerability scanning processing method, device, system, electronic device and storage medium
CN111340237B (en) Data processing and model running method, device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant