CN107992409B - Test case generation method and device, computer equipment and storage medium - Google Patents

Test case generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN107992409B
CN107992409B CN201711165854.5A CN201711165854A CN107992409B CN 107992409 B CN107992409 B CN 107992409B CN 201711165854 A CN201711165854 A CN 201711165854A CN 107992409 B CN107992409 B CN 107992409B
Authority
CN
China
Prior art keywords
configuration
function
file
test
configuration file
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
CN201711165854.5A
Other languages
Chinese (zh)
Other versions
CN107992409A (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 Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201711165854.5A priority Critical patent/CN107992409B/en
Publication of CN107992409A publication Critical patent/CN107992409A/en
Application granted granted Critical
Publication of CN107992409B publication Critical patent/CN107992409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention relates to a test case generation method, a test case generation device, a server and a storage medium. The test case generation method comprises the following steps: acquiring a current script corresponding to a test object, scanning the current script, and determining a plurality of function points corresponding to the test object; acquiring a historical script corresponding to a test object, and determining a code of a current script which is different from the historical script; the differentiated code includes a plurality of functions; acquiring a pre-stored first mapping file, determining function points influenced by function association according to the mapping relation between a plurality of function names and the function points recorded in the first mapping file, and taking the function points influenced by the association as function points to be tested; acquiring a pre-stored second mapping file, and acquiring a target parameter corresponding to the functional point to be detected in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework. The method can quickly and comprehensively determine the function points to be tested of the test object.

Description

Test case generation method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of test technologies, and in particular, to a test case generation method, apparatus, computer device, and storage medium.
Background
After the new version software is developed, the software needs to be tested in order to ensure the stability, accuracy and the like of the software. The new version software is used as a test object, when the test object is tested, a to-be-tested function point of the test object needs to be analyzed, a test case is designed according to the to-be-tested function point, and then the designed test case is adopted to test the test object. In a traditional mode, functional points to be tested of a test object are analyzed manually, so that the test efficiency is reduced, the phenomenon of missing test or multiple tests is easy to occur, and the quality of new version software which is finally on-line is poor.
Disclosure of Invention
In view of the above, it is necessary to provide a test case generation method, an apparatus, a computer device, and a storage medium, which can quickly and comprehensively determine a function point to be tested of a test object.
A test case generation method comprises the following steps:
acquiring a current script corresponding to a test object, scanning the current script, and determining a plurality of function points corresponding to the test object;
acquiring a historical script corresponding to a test object, and determining a code of the current script which is different from the historical script; the differencing code comprises a plurality of functions;
acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, determining the function points influenced by the function association according to the mapping relation, and taking the function points influenced by the association as the function points to be tested;
acquiring a pre-stored second mapping file, wherein the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and acquiring the target parameters corresponding to the functional points to be tested in the second mapping file;
and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
In one embodiment, before the step of obtaining the current script corresponding to the test object, the method further includes:
acquiring a first configuration file corresponding to the actual running environment of the test object and a second configuration file corresponding to the test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items;
comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with different configuration data;
acquiring an update link corresponding to the configuration item with the difference, generating a configuration change notification by using the update link, and sending the configuration change notification to a monitoring terminal corresponding to the test environment, so that the monitoring terminal generates an update instruction of the corresponding configuration item by selecting the update link;
when an updating instruction of the configuration items is received, the configuration data corresponding to the corresponding configuration items in the second configuration file is updated by using the configuration data in the first configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
In one embodiment, before the step of obtaining the current script corresponding to the test object, the method further includes:
receiving a first verification request, and displaying a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items;
acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group;
sending the second check request to a server, enabling the server to extract a first configuration file and a second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by using the configuration data corresponding to the configuration items with differences;
when the update instruction is received, the configuration data carried by the update instruction is used for updating the configuration data corresponding to the corresponding configuration items in the second configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
In one embodiment, the current script includes function names of a plurality of functions; the step of determining a plurality of function points corresponding to the test object includes:
obtaining the calling relations of a plurality of functions in the current script;
according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to the test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object;
converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
In one embodiment, the function points in the function relationship graph are system function points; after the step of determining a plurality of function points corresponding to the test object, the method further includes: acquiring historical test data corresponding to the test object, wherein the historical test data comprises a plurality of function points; the function points comprise system function points and unit function points;
reconstructing the functional relation graph according to historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points;
the step of determining function points affected by respective association of a plurality of functions according to the first mapping file includes: determining unit function points influenced by the association of a plurality of functions according to the first mapping file;
and acquiring the system function points connected with the unit function points affected by the association in the function relationship graph.
A test case generation apparatus, the apparatus comprising:
the difference analysis module is used for acquiring a current script corresponding to a test object, scanning the current script and determining a plurality of function points corresponding to the test object; acquiring a historical script corresponding to a test object, and determining a code of the current script which is different from the historical script; the differencing code comprises a plurality of functions;
the function point determining module is used for acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, determining function points influenced by function association according to the mapping relation, and taking the function points influenced by the association as the function points to be tested;
the test case generation module is used for acquiring a prestored second mapping file, the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and the target parameters corresponding to the functional points to be tested are acquired in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
In one embodiment, the current script includes function names of a plurality of functions; the difference analysis module is also used for acquiring the calling relations of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to the test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
In one embodiment, the apparatus further includes a test environment updating module, configured to receive a first verification request, and display a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract a first configuration file and a second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by using the configuration data corresponding to the configuration items with differences; when the update instruction is received, the configuration data carried by the update instruction is used for updating the configuration data corresponding to the corresponding configuration items in the second configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the test case generation method provided in one embodiment of the invention when executing the program.
A computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of the test case generation method provided in one embodiment of the present invention.
According to the test case generation method, the test case generation device, the computer equipment and the storage medium, a plurality of function points which can be realized by the test object can be determined by scanning the current script corresponding to the test object; comparing the current script and the historical script corresponding to the test object, and acquiring codes of the current script which are different from the historical script; according to the preset first mapping file, all function points affected by the association of the scripts with differences can be determined, so that the function points to be tested corresponding to the tested object can be rapidly and comprehensively determined; after the function point to be tested is determined, the corresponding target parameter can be obtained according to the preset second mapping file, the target parameter is input into the automatic test framework, the test case of the test object can be rapidly generated, and the test case generation efficiency can be improved.
Drawings
FIG. 1 is a diagram of an application environment of a test case generation method in one embodiment;
FIG. 2 is a flow diagram of a method for test case generation in one embodiment;
FIG. 3 is a functional diagram of a test case generation method in one embodiment;
FIG. 4 is a functional diagram of a test case generation method in one embodiment;
FIG. 5 is an interface diagram of a verification page in the test case generation method in an embodiment;
FIG. 6 is a schematic structural diagram of a test case generating apparatus according to an embodiment;
FIG. 7 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
The application provides a test case generation method which can be applied to the application environment shown in fig. 1. The test terminal 102 is connected to the server 104 via a network. The test terminal 102 may be at least one of a desktop computer, a laptop computer, a tablet computer, and a smart phone, but is not limited thereto. The server 104 may be an independent physical server or a server cluster including a plurality of physical servers. The test terminal 102 uses the new version software as a test object, and generates a test case corresponding to the test object in a corresponding test environment. Before generating the test case, the test terminal 102 may send a verification request to the server 104, so that the server 104 updates, according to the verification request, the second configuration file corresponding to the test environment corresponding to the test object by using the first configuration file corresponding to the actual operation environment of the test object, so as to ensure that the test object can operate normally in the test environment. The test terminal 102 obtains a current script and a historical script corresponding to the test object in the test environment, and can determine a plurality of functional points that can be realized by the test object by scanning the current script. The test terminal 102 compares the codes of the current script with differences relative to the historical script, and can determine the function points affected by the code association with differences according to the preset first mapping file, so that the function points to be tested corresponding to the test object can be quickly and comprehensively determined. After the function point to be tested is determined, the test terminal 102 obtains corresponding target parameters, such as input parameters, output parameters, expected output values, test steps and the like, according to the preset second mapping file, and inputs the target parameters into the automatic test framework to quickly generate a test case of the test object, so that the test case generation efficiency can be improved.
In an embodiment, as shown in fig. 2, a method for generating a test case is provided, which is described by taking an example that the method is applied to a test terminal, and specifically includes the following steps:
step 202, obtaining a current script corresponding to the test object, scanning the current script, and determining a plurality of function points corresponding to the test object.
Step 204, acquiring a historical script corresponding to the test object, and determining a code of the current script which is different from the historical script; the code where the difference exists includes a plurality of functions.
And step 206, acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, determining function points influenced by function association according to the mapping relation, and taking the function points influenced by association as the function points to be detected.
The new version of software needs to undergo system testing before coming online. The system test is a series of strict and effective tests on the computer system under the actual operating environment by taking the new version software as one part of the computer system and combining the new version software with other parts in the computer system. The system test mainly comprises a function test and a robustness test. The present embodiment takes a new version of software as a test object. In order to improve the testing efficiency when actually performing the function test on the test object, only the function points of the new version software which have differences with respect to the old version software may be tested, which requires analyzing the current script and the historical script corresponding to the test object.
The current script corresponding to the test object can be understood as the script of the new version software, and the historical script corresponding to the test object can be understood as the script of the old version software. When a test object needs to be tested, the test terminal scans the current script corresponding to the test object, and can determine a plurality of function points corresponding to the test object, wherein the function points refer to function names of a plurality of functions which can be realized by new-version software. For example, the plurality of function points corresponding to the new version of underwriting software may include acceptance, audit, underwriting, and the like.
In one embodiment, the current script includes function names of a plurality of functions; the step of determining a plurality of functional points corresponding to the test object comprises the following steps: obtaining the calling relations of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to a test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
The test terminal scans the current script to obtain the function names of a plurality of functions and the calling relation among the functions contained in the current script. According to the function names of the functions and the calling relations among the functions, the server identifies the function names through the nodes and identifies the calling relations among the functions through connecting lines among the nodes to construct a function relation graph corresponding to the test object. As shown in fig. 3, the functional relationship graph may be a multi-way tree. The multi-branch tree comprises a plurality of nodes, each node corresponds to a function name, and directed line segments among the nodes represent calling relations among the functions. For example, function 1 is a main function, and function 1 calls function 2 and function 3 when the current script is executed. It should be noted that there may be a plurality of callbacks between a plurality of functions, and if the function corresponding to the function 9 is accept, the function corresponding to the function 13 is audit, and if the execution result of the function 13 is that the audit does not pass, the function 9 is returned again.
The test terminal may obtain a code handover log corresponding to the new version software through an SVN (version management software tool). The code handover log records a plurality of pieces of annotation information of a current script corresponding to the test object. The current script corresponding to the test object can be obtained by modifying on the basis of the corresponding historical script. The annotation information comprises modification records and modification contents of the historical scripts corresponding to the test objects. The test terminal may analyze a current script and a code handover log corresponding to the test object by using SVNKIT (Java SVN, a Java-based SVN client library) to obtain a code in which the current script is different from the historical script. The code where the difference exists includes a plurality of functions. It is easy to understand that the test terminal may also use other tools to obtain the code of the current script different from the historical script, such as Beyond company (a code comparison tool) or Ultra company, and the like, which is not limited herein.
The test terminal prestores a first mapping file, and the first mapping file records the mapping relation between a plurality of function names and function points. The test terminal can convert the functional relation graph into a functional relation graph according to the first mapping file. It is readily understood that the functional relationship graph may also be a multi-way tree. As shown in fig. 4, the test terminal retains the connection relationship of the function relationship diagram corresponding to a plurality of nodes in the multi-branch tree, replaces each node with a corresponding function point by a function name, and adds a start node and an end node. Directed line segments among a plurality of nodes in the multi-branch tree corresponding to the function relation graph represent inheritance relations among functions. And the test terminal determines the function points with the different function association influences in the function relation graph according to the first mapping file, and marks the function points with the association influences as the function points to be tested.
And 208, acquiring a pre-stored second mapping file, wherein the second mapping file records a plurality of to-be-tested function points and corresponding target parameters, and acquiring the target parameters corresponding to the to-be-tested function points in the second mapping file.
The test terminal also prestores a second mapping file, and the second mapping file records a plurality of functional points to be tested and corresponding target parameters. The target parameters include input parameters, output parameters, desired output values, test steps, and the like. For example, when the test object is the new-version document generation software, the output format of the document is adjusted by the new-version document generation software relative to the old-version document generation software, and the test terminal determines that the function point to be tested comprises 'document output' according to the above manner. The input parameter corresponding to the functional point to be tested can be a plurality of document identifications. The testing steps may be: (1) extracting corresponding document data from a first database corresponding to the old version document generation software according to the document identification, wherein the document data comprises a plurality of field names and field values; (2) inputting the extracted document data serving as baseline data into a second database in the form of an Excel table; (3) generating a document by using new-version document generation software, acquiring document data corresponding to the document, and inputting the newly generated document data serving as the existing data into a second database; (4) comparing the plurality of field names and field values in the baseline data and the existing data to obtain the fields with differences. The output parameter may be a field where there is a difference in the baseline data and the existing data. The expected output value may be that the existing data is consistent with the baseline data.
And 210, inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
After the target parameters are determined, the test terminal inputs the target parameters into an automatic test framework. The automated testing framework is a framework applied to automated testing, and is a tool set composed of one or more automated testing basic modules, an automated testing management module, an automated testing statistical module and the like. And the automatic test framework generates a test case corresponding to the test object by using the target parameters. The test terminal can test the test object by using the test case, namely the test terminal inputs the input parameters into the test object according to the test steps in the test case, obtains the output parameters corresponding to the test object, and matches the output parameters with the expected output values. And when the test case is completely executed, the test terminal generates a test report. The test report records the test result of the test passing or the test failing corresponding to the test object. It will be readily appreciated that when the output parameter is consistent with the expected output value, indicating that the match was successful, the test object passes the functionality test.
In this embodiment, a plurality of function points that can be realized by the test object can be determined by scanning the current script corresponding to the test object; comparing the current script and the historical script corresponding to the test object, and acquiring codes of the current script which are different from the historical script; according to the preset first mapping file, all function points affected by the association of the scripts with differences can be determined, so that the function points to be tested corresponding to the tested object can be rapidly and comprehensively determined; after the function point to be tested is determined, the corresponding target parameter can be obtained according to the preset second mapping file, the target parameter is input into the automatic test framework, the test case of the test object can be rapidly generated, and the test case generation efficiency can be improved.
In one embodiment, the function points in the functional relationship graph are system function points; after the step of determining a plurality of function points corresponding to the test object, the method further comprises the following steps: acquiring historical test data corresponding to a test object, wherein the historical test data comprises a plurality of function points; the function points comprise system function points and unit function points; reconstructing the functional relation graph according to the historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points; the step of determining function points respectively related and influenced by a plurality of functions according to the first mapping file comprises the following steps: determining unit function points influenced by the association of the plurality of functions according to the first mapping file; and acquiring the system function point connected with the unit function point related to the influence in the function relationship graph.
In actual operation, the amount of code of the current script corresponding to the test object, which is different from the historical script, may be relatively small, or the content of the code, which is different from the historical script, is relatively small, for example, the code, which is different from the historical script, is only a loop statement in a function. The function points in the function relationship graph are all system function points. The system function point refers to a function that the new version of software can implement macroscopically, for example, as exemplified above, the system function point of the underwriting software includes acceptance, audit, underwriting, and the like. Fewer change codes may not affect the system function point. Therefore, for such a situation, the test terminal may not be able to directly determine the function point affected by the function association with the difference in the functional relationship diagram according to the first mapping file, thereby resulting in missing test of the part of difference codes.
In order to solve the problem of the missed test, the test terminal refines the functional relation graph by using the historical test data of the test object. Specifically, the test terminal obtains historical test data of a test object. The historical test data refers to the test data of the old version software, and comprises a plurality of system function points and corresponding unit function points. The unit function point refers to a name of a sub-function of the corresponding system function point, for example, in the above example, the "auditing" of the system function point of the underwriting software may include checking, counting, summarizing, and the like. It is easy to understand that a unit function point may also have a corresponding sub-unit function point, for example, the unit function point "checks" the corresponding sub-unit function point may include an integrity check, a validity check, and the like. And the test terminal reconstructs the functional relation graph according to the historical test data, so that the reconstructed functional relation graph not only comprises a plurality of system function points, but also comprises unit function points corresponding to the system function points.
And the test terminal can determine unit function points with different function association influences in the reconstructed function relation diagram according to the first mapping file. Before the new version software is on line, the new version software needs to be tested for many times, such as unit test, integration test, system test, acceptance test and the like, and different test cases exist in different test stages. According to the unit function points, only the test cases for unit test can be obtained, but the test cases for system test cannot be obtained. And the test terminal traces back the system function points connected with the unit function points affected by the association upwards in the reconstructed function relation graph according to the connection relation among the nodes, and marks the system function points as the function points to be tested.
In this embodiment, the functional relationship diagram is refined by using the historical test data of the test object, so that the small difference codes which do not affect the system functions can be obtained, and the system function points affected by the association of the first mapping file can be directly determined in the functional relationship diagram according to the first mapping file, thereby effectively solving the problem of test missing caused by the fact that the system function points affected by the association cannot be determined.
In one embodiment, before the step of obtaining the current script corresponding to the test object, the method further includes: acquiring a first configuration file corresponding to an actual operation environment of a test object and a second configuration file corresponding to a corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with different configuration data; acquiring an update link corresponding to the configuration item with difference, generating a configuration change notification by using the update link, and sending the configuration change notification to a monitoring terminal corresponding to the test environment, so that the monitoring terminal generates an update instruction corresponding to the configuration item by selecting the update link; when an update instruction of the configuration item is received, the configuration data corresponding to the corresponding configuration item in the second configuration file is updated by using the configuration data in the first configuration file, so that the second configuration file and the first configuration file have the same necessary configuration item.
The test environment is a generic term for computer hardware, software, network devices, and historical data necessary to perform software testing. In order to ensure the testing effect, the testing environment of the test object should be as close as possible to the actual operating environment of the test object. Only if the test environment has specific configuration data in the actual operating environment, the test object can be started normally in the test environment. In the actual testing process, a tester usually tests the new version software in the testing environment of the old version software. Because the test environment applied to the old version software may not be suitable for the new version software, the new version software cannot be normally started in the test environment, or some function is lost after the new version software is started.
In order to solve the problem that the test environment is not suitable, before the test environment is used for generating the test case, when the test terminal acquires the new version software, the first configuration file corresponding to the actual operation environment of the new version software is automatically used for updating the second configuration file corresponding to the test environment. Specifically, the test terminal obtains a first configuration file corresponding to an actual operating environment of the test object and a second configuration file corresponding to the test environment. The first configuration file and the second configuration file respectively comprise a plurality of configuration items. Wherein the configuration items comprise required configuration items. The necessary configuration items refer to configuration items essential for normal operation of the test environment. And the test terminal respectively reads the configuration data in the first configuration file and the second configuration file line by line and stores the configuration data in a MAP (a data type) set in a key value pair mode. The MAP set includes a plurality of key-value pairs, each key-value pair corresponding to a configuration item. The key value pair comprises a key name and a corresponding key value, the key name corresponds to the name of the configuration item, and the key value corresponds to the configuration parameter of the configuration item. And the test terminal compares the MAP set corresponding to the first configuration file with the MAP set corresponding to the second configuration file to obtain the configuration items with differences. It should be noted that the configuration items having differences include not only the configuration items that have been changed, that is, the configuration items having the same key name but different corresponding key values. The configuration items that are differentiated also include missing configuration items, i.e., configuration items for which the second configuration file is missing with respect to the first configuration file.
The test terminal generates a configuration change notification by using the configuration items with differences, and sends the configuration change notification to the monitoring terminal corresponding to the test environment in the form of short messages, mails or logs. The configuration change notification includes update links corresponding to the plurality of configuration items with differences. The related personnel of the test environment can judge the necessity of updating a plurality of configuration items with differences through the monitoring terminal, and can click the updating link corresponding to the corresponding configuration item when finding that a certain configuration item belongs to the necessary configuration item. And the monitoring terminal sends an updating request to the server according to the clicking operation, and the server extracts configuration data corresponding to the configuration items from the first configuration file according to the configuration item identifiers needing to be added or changed carried by the updating request. And the server generates an updating instruction by using the extracted configuration data and sends the updating instruction to the test terminal. And the test terminal performs incremental updating on the second configuration file corresponding to the test environment according to the configuration data carried by the updating instruction, so that the second configuration file has the same necessary configuration items as the first configuration file, and the test object can be ensured to be normally started in the test environment.
In the embodiment, when the new version software is obtained, the first configuration file corresponding to the actual operation environment of the new version software is automatically utilized to update the second configuration file corresponding to the test environment, so that the test environment can be as close to the actual operation environment of the test environment as possible, and the test effect is improved; configuration items lacking in the test environment relative to the actual operation environment of the new version software are supplemented in time, so that the same test environment can be adopted even if the software version is updated and the corresponding configuration data is changed.
In one embodiment, before the step of obtaining the current script corresponding to the test object, the method further includes: receiving a first verification request, and displaying a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract the first configuration file and the second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by utilizing the configuration data corresponding to the configuration items with differences; and when the updating instruction is received, updating the configuration data corresponding to the corresponding configuration items in the second configuration file by using the configuration data carried by the updating instruction, so that the second configuration file and the first configuration file have the same necessary configuration items.
In addition to updating the second configuration file corresponding to the test environment when the new version software is issued, the test terminal can also update the second configuration file corresponding to the test environment according to the first verification request initiated by the tester at any time. Specifically, the test terminal receives a first verification request and displays a verification page according to the first verification request. As shown in fig. 5, the verification page displays, in a pull-down menu manner, file identifiers of a first configuration file corresponding to actual operating environments of a plurality of test objects, and file identifiers of a second configuration file corresponding to a test environment corresponding to the test object. The file identification may be a file name, a file number, etc. The test terminal obtains the selection operation of a tester on the verification page for the file identification of the first configuration file and the file identification of the second configuration file, and the two selected file identifications form a verification group. According to different selections of the tester on the verification page, a plurality of verification groups can be formed. And the test terminal generates a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group, and sends the second check request to the server.
The server extracts the first configuration file and the second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file carried by the second check request, compares the configuration data in the first configuration file and the second configuration file line by line to obtain the configuration items with differences, generates an update instruction by using the configuration data corresponding to the configuration items with differences, and sends the update instruction to the test terminal. The test terminal carries out incremental updating on the configuration data corresponding to the corresponding configuration items by using the configuration data carried by the updating instruction, so that the second configuration file has the necessary configuration items which are the same as those of the first configuration file, and the test object can be ensured to be normally started in the test environment. In another embodiment, as shown in fig. 5, the server returns the comparison result of the configuration items to the test terminal, so that the tester can know the missing or changed condition of the configuration items in time.
In the embodiment, a tester can initiate a request for updating the test environment at any time, and freely selects the check group to be compared through the check page, so that the second configuration file corresponding to the test environment is updated more flexibly; the second configuration file corresponding to the test environment is updated by utilizing the first configuration file corresponding to the actual operation environment of the new version software, so that the test environment can be as close to the actual operation environment of the test environment as possible, and the test effect is improved; configuration items lacking in the test environment relative to the actual operation environment of the new version software are supplemented in time, so that the same test environment can be adopted even if the software version is updated and the corresponding configuration data is changed. In addition, the work of comparing the first configuration file with the second configuration file to find the changed configuration items is transferred to the server, and the resource occupation of the test terminal can be reduced.
In one embodiment, as shown in fig. 6, there is provided a test case generation apparatus, including: a difference analysis module 602, a function point determination module 604 and a test case generation module 606, wherein:
a difference analysis module 602, configured to obtain a current script corresponding to a test object, scan the current script, and determine a plurality of function points corresponding to the test object; acquiring a historical script corresponding to a test object, and determining a code of a current script which is different from the historical script; the code where the difference exists includes a plurality of functions.
The function point determining module 604 is configured to obtain a first mapping file stored in advance, where the first mapping file records mapping relationships between a plurality of function names and function points, determine a function point affected by function association according to the mapping relationships, and use the function point affected by the function association as a function point to be tested.
The test case generation module 606 is configured to obtain a pre-stored second mapping file, where the second mapping file records a plurality of function points to be tested and corresponding target parameters, and obtain the target parameters corresponding to the function points to be tested in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
In one embodiment, the current script includes function names of a plurality of functions; the difference analysis module 602 is further configured to obtain a calling relationship of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to a test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
In an embodiment, the test case generating apparatus further includes a test environment updating module 608, configured to receive the first verification request, and display a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract the first configuration file and the second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by utilizing the configuration data corresponding to the configuration items with differences; and when the updating instruction is received, updating the configuration data corresponding to the corresponding configuration items in the second configuration file by using the configuration data carried by the updating instruction, so that the second configuration file and the first configuration file have the same necessary configuration items.
The above-described chart generation apparatus may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 7.
In one embodiment, a computer device is provided, which may be a server or a mobile terminal. When the computer device is a terminal, its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a non-volatile storage medium, an internal memory, a network interface, a display screen, and an input device connected through a system bus. Wherein the processor of the computer device is used 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 of the computer device stores an operating system and a computer program, and the internal memory of the computer device provides an environment for the operating system and the computer program in the nonvolatile storage medium to run. The computer program is executed by a processor to implement a test case generation method. The network interface of the computer device is used for communicating with an external network interface. The display screen of the computer equipment can be a touch screen and the like, and the input device can be a touch layer covered on the display screen, and can also be a key, a track ball, a touch pad, an external keyboard, a touch pad or a mouse and the like arranged on the shell. The computer device may be a computer, a mobile phone, a tablet computer, etc. The processor, when executing the computer program, may perform the following steps: acquiring a current script corresponding to a test object, scanning the current script, and determining a plurality of function points corresponding to the test object; acquiring a historical script corresponding to a test object, and determining a code of a current script which is different from the historical script; the differentiated code includes a plurality of functions; acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, determining function points influenced by function association according to the mapping relation, and taking the function points influenced by the association as function points to be tested; acquiring a pre-stored second mapping file, wherein the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and acquiring the target parameters corresponding to the functional points to be tested in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a first configuration file corresponding to an actual operation environment of a test object and a second configuration file corresponding to a corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with different configuration data; acquiring an update link corresponding to the configuration item with difference, generating a configuration change notification by using the update link, and sending the configuration change notification to a monitoring terminal corresponding to the test environment, so that the monitoring terminal generates an update instruction corresponding to the configuration item by selecting the update link; when an update instruction of the configuration item is received, the configuration data corresponding to the corresponding configuration item in the second configuration file is updated by using the configuration data in the first configuration file, so that the second configuration file and the first configuration file have the same necessary configuration item.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a first verification request, and displaying a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract the first configuration file and the second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by utilizing the configuration data corresponding to the configuration items with differences; and when the updating instruction is received, updating the configuration data corresponding to the corresponding configuration items in the second configuration file by using the configuration data carried by the updating instruction, so that the second configuration file and the first configuration file have the same necessary configuration items.
In one embodiment, the current script includes function names of a plurality of functions; the processor, when executing the computer program, further performs the steps of: obtaining the calling relations of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to a test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
In one embodiment, the function points in the functional relationship graph are system function points; the processor, when executing the computer program, further performs the steps of: acquiring historical test data corresponding to a test object, wherein the historical test data comprises a plurality of function points; the function points comprise system function points and unit function points; reconstructing the functional relation graph according to the historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points; determining unit function points influenced by the association of the plurality of functions according to the first mapping file; and acquiring the system function point connected with the unit function point related to the influence in the function relationship graph.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the computer program to: acquiring a current script corresponding to a test object, scanning the current script, and determining a plurality of function points corresponding to the test object; acquiring a historical script corresponding to a test object, and determining a code of a current script which is different from the historical script; the differentiated code includes a plurality of functions; acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, determining function points influenced by function association according to the mapping relation, and taking the function points influenced by the association as function points to be tested; acquiring a pre-stored second mapping file, wherein the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and acquiring the target parameters corresponding to the functional points to be tested in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a first configuration file corresponding to an actual operation environment of a test object and a second configuration file corresponding to a corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with different configuration data; acquiring an update link corresponding to the configuration item with difference, generating a configuration change notification by using the update link, and sending the configuration change notification to a monitoring terminal corresponding to the test environment, so that the monitoring terminal generates an update instruction corresponding to the configuration item by selecting the update link; when an update instruction of the configuration item is received, the configuration data corresponding to the corresponding configuration item in the second configuration file is updated by using the configuration data in the first configuration file, so that the second configuration file and the first configuration file have the same necessary configuration item.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a first verification request, and displaying a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items include necessary configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract the first configuration file and the second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by utilizing the configuration data corresponding to the configuration items with differences; and when the updating instruction is received, updating the configuration data corresponding to the corresponding configuration items in the second configuration file by using the configuration data carried by the updating instruction, so that the second configuration file and the first configuration file have the same necessary configuration items.
In one embodiment, the current script includes function names of a plurality of functions; the computer program when executed by the processor further performs the steps of: obtaining the calling relations of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to a test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
In one embodiment, the function points in the functional relationship graph are system function points; the computer program when executed by the processor further performs the steps of: acquiring historical test data corresponding to a test object, wherein the historical test data comprises a plurality of function points; the function points comprise system function points and unit function points; reconstructing the functional relation graph according to the historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points; determining unit function points influenced by the association of the plurality of functions according to the first mapping file; and acquiring the system function point connected with the unit function point related to the influence in the function relationship graph.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A test case generation method comprises the following steps:
acquiring a current script corresponding to a test object, scanning the current script, and determining a plurality of function points corresponding to the test object;
acquiring a historical script and historical test data corresponding to a test object, and determining a code of the current script which is different from the historical script; the differencing code comprises a plurality of functions; the historical test data comprises a plurality of functional points; the function points comprise system function points and unit function points;
acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, and generating a function relation graph according to the mapping relation; the function points in the function relation graph are system function points;
reconstructing the functional relation graph according to historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points;
determining unit function points influenced by function association in the reconstructed function relation graph according to the first mapping file;
acquiring system function points connected with unit function points affected by association from the reconstructed function relationship diagram, and taking the system function points affected by association as function points to be tested;
acquiring a pre-stored second mapping file, wherein the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and acquiring the target parameters corresponding to the functional points to be tested in the second mapping file;
and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
2. The method according to claim 1, wherein before the step of obtaining the current script corresponding to the test object, the method further comprises:
acquiring a first configuration file corresponding to the actual running environment of the test object and a second configuration file corresponding to the test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items;
comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with different configuration data;
acquiring an update link corresponding to the configuration item with the difference, generating a configuration change notification by using the update link, and sending the configuration change notification to a monitoring terminal corresponding to the test environment, so that the monitoring terminal generates an update instruction of the corresponding configuration item by selecting the update link;
when an updating instruction of the configuration items is received, the configuration data corresponding to the corresponding configuration items in the second configuration file is updated by using the configuration data in the first configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
3. The method according to claim 1, wherein before the step of obtaining the current script corresponding to the test object, the method further comprises:
receiving a first verification request, and displaying a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items;
acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group;
sending the second check request to a server, enabling the server to extract a first configuration file and a second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by using the configuration data corresponding to the configuration items with differences;
when the update instruction is received, the configuration data carried by the update instruction is used for updating the configuration data corresponding to the corresponding configuration items in the second configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
4. The method of claim 1, wherein the current script comprises function names of a plurality of functions; the step of determining a plurality of function points corresponding to the test object includes:
obtaining the calling relations of a plurality of functions in the current script;
according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to the test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object;
converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
5. The method of claim 4, wherein the call relationships of the plurality of functions comprise callback relationships.
6. A test case generation apparatus comprising:
the difference analysis module is used for acquiring a current script corresponding to a test object, scanning the current script and determining a plurality of function points corresponding to the test object; acquiring a historical script and historical test data corresponding to a test object, and determining a code of the current script which is different from the historical script; the differencing code comprises a plurality of functions; the historical test data comprises a plurality of functional points; the function points comprise system function points and unit function points;
the function point determining module is used for acquiring a pre-stored first mapping file, wherein the first mapping file records the mapping relation between a plurality of function names and function points, and generates a function relation graph according to the mapping relation; the function points in the function relation graph are system function points; reconstructing the functional relation graph according to historical test data to enable the reconstructed functional relation graph to comprise a plurality of system function points and correspondingly connected unit function points; determining unit function points influenced by function association in the reconstructed function relation graph according to the first mapping file; acquiring system function points connected with unit function points affected by association from the reconstructed function relationship diagram, and taking the system function points affected by association as function points to be tested;
the test case generation module is used for acquiring a prestored second mapping file, the second mapping file records a plurality of functional points to be tested and corresponding target parameters, and the target parameters corresponding to the functional points to be tested are acquired in the second mapping file; and inputting the target parameters into an automatic test framework, and generating a test case by using the automatic test framework.
7. The apparatus of claim 6, wherein the current script comprises function names of a plurality of functions; the difference analysis module is also used for acquiring the calling relations of a plurality of functions in the current script; according to the calling relation among a plurality of functions, constructing a multi-branch tree corresponding to the test object by using the function names of the functions, and taking the multi-branch tree as a function relation graph of the test object; converting the function relation graph into a function relation graph according to a mapping relation between a pre-stored function name and a function point; the functional relationship graph includes a plurality of functional points.
8. The apparatus of claim 6, further comprising a test environment update module configured to receive a first verification request, and display a verification page according to the first verification request; the verification page comprises a plurality of verification groups, and each verification group comprises a file identifier of a first configuration file corresponding to the actual operation environment of the test object and a file identifier of a second configuration file corresponding to the corresponding test environment of the test object; the first configuration file and the second configuration file respectively comprise a plurality of configuration items; the configuration items comprise required configuration items; acquiring selected operation of one or more check groups, and generating a second check request by using the file identifier of the first configuration file and the file identifier of the second configuration file corresponding to the selected check group; sending the second check request to a server, enabling the server to extract a first configuration file and a second configuration file according to the file identification of the first configuration file and the file identification of the second configuration file, comparing the configuration data in the first configuration file and the second configuration file line by line to obtain configuration items with differences, and generating an update instruction by using the configuration data corresponding to the configuration items with differences; when the update instruction is received, the configuration data carried by the update instruction is used for updating the configuration data corresponding to the corresponding configuration items in the second configuration file, so that the second configuration file and the first configuration file have the same necessary configuration items.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201711165854.5A 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium Active CN107992409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711165854.5A CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711165854.5A CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107992409A CN107992409A (en) 2018-05-04
CN107992409B true CN107992409B (en) 2020-08-21

Family

ID=62031913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711165854.5A Active CN107992409B (en) 2017-11-21 2017-11-21 Test case generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107992409B (en)

Families Citing this family (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109726104B (en) * 2018-05-15 2024-02-27 深圳市兴海物联科技有限公司 Test packet generation method of mobile terminal, test terminal and storage medium
CN108804336A (en) * 2018-06-15 2018-11-13 深圳壹账通智能科技有限公司 Interactive system test method, device, computer equipment and storage medium
CN109446069A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Compatibility test method, device, computer equipment and medium
CN109376081A (en) * 2018-09-27 2019-02-22 深圳壹账通智能科技有限公司 The generation method and device of Test Strategy
CN110147317A (en) * 2019-04-19 2019-08-20 平安普惠企业管理有限公司 Code test method and device, electronic equipment and storage medium
CN110162467B (en) * 2019-04-23 2023-12-19 平安科技(深圳)有限公司 Software testing method, device, computer equipment and readable storage medium
CN110263305B (en) * 2019-05-22 2023-09-19 中国平安财产保险股份有限公司 Configuration file comparison method, device, equipment and storage medium
CN110389896A (en) * 2019-06-18 2019-10-29 中国平安人寿保险股份有限公司 Code automated analysis and test method, device and computer readable storage medium
CN110443321B (en) * 2019-08-14 2023-06-02 北京百度网讯科技有限公司 Model structure adjusting method and device
CN110908898B (en) * 2019-11-06 2023-07-21 贝壳找房(北京)科技有限公司 Method and system for generating test scheme
CN111078572B (en) * 2019-12-23 2023-08-11 北京同有飞骥科技股份有限公司 Automatic interaction testing method and system
CN111078473A (en) * 2020-01-03 2020-04-28 恩亿科(北京)数据科技有限公司 Test item copying method and device
CN111459796B (en) * 2020-02-27 2024-03-15 西安广和通无线软件有限公司 Automated testing method, apparatus, computer device and storage medium
CN111752843B (en) * 2020-06-29 2024-02-13 百度在线网络技术(北京)有限公司 Method, apparatus, electronic device and readable storage medium for determining influence surface
CN111880795B (en) * 2020-07-29 2024-03-12 中国银联股份有限公司 Front-end interface generation method and device
CN111858379B (en) * 2020-07-30 2024-03-29 中国工商银行股份有限公司 Application testing method and device
CN111881051A (en) * 2020-08-03 2020-11-03 Oppo广东移动通信有限公司 Test case generation method and device, terminal and storage medium
CN112152841B (en) * 2020-09-03 2023-06-20 锐捷网络股份有限公司 Verification method, verification device, switch, equipment and storage medium
CN112181849B (en) * 2020-10-23 2023-07-25 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112363929B (en) * 2020-11-10 2023-07-25 中国平安人寿保险股份有限公司 System online method and device, computer equipment and storage medium
CN112433941A (en) * 2020-11-23 2021-03-02 中国建设银行股份有限公司 Test analysis method, device, equipment and storage medium
CN113612654B (en) * 2021-07-12 2023-05-26 东风汽车集团股份有限公司 Vehicle-mounted gateway function test method based on database
CN113641578A (en) * 2021-08-10 2021-11-12 广域铭岛数字科技有限公司 Accurate test method, system, equipment and medium based on service level
CN113656318A (en) * 2021-08-23 2021-11-16 上海哔哩哔哩科技有限公司 Software version testing method and device and computer equipment
CN113656324B (en) * 2021-08-31 2023-08-22 中国平安人寿保险股份有限公司 Full-link test method, device, equipment and medium for disease input and decision
CN113672518A (en) * 2021-09-07 2021-11-19 京东科技控股股份有限公司 Test case construction method and related equipment
CN114138581B (en) * 2021-12-02 2022-08-05 深圳市高速达科技有限公司 Mainboard test method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198010B (en) * 2012-01-06 2017-07-21 腾讯科技(深圳)有限公司 Method for testing software, apparatus and system
US9081899B2 (en) * 2012-01-31 2015-07-14 Bank Of America Corporation System and method for processing web service test cases
CN103870384B (en) * 2012-12-11 2017-02-08 航天信息股份有限公司 Test case presumption method and system
CN104539487B (en) * 2015-01-20 2018-04-17 成都益联科创科技有限公司 A kind of system testing and reliability estimation method based on cloud platform
CN106528399A (en) * 2015-09-15 2017-03-22 腾讯科技(深圳)有限公司 Test case determination method and apparatus
CN107193739B (en) * 2017-05-23 2020-06-05 张泽祎 Black box regression testing method

Also Published As

Publication number Publication date
CN107992409A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN107992409B (en) Test case generation method and device, computer equipment and storage medium
CN107861870B (en) Interface test and test data generation method, device, terminal and storage medium
CN110941546A (en) Automatic test method, device, equipment and storage medium for WEB page case
CN108628748B (en) Automatic test management method and automatic test management system
CN111177005A (en) Service application testing method, device, server and storage medium
CN109684847B (en) Automatic repairing method, device, equipment and storage medium for script loopholes
CN110928770B (en) Software testing method, device, system, storage medium and electronic equipment
CN112395202B (en) Interface automation test method and device, computer equipment and storage medium
CN112269744A (en) System abnormity testing method and device, computer equipment and storage medium
CN114546738A (en) Server general test method, system, terminal and storage medium
CN115292163A (en) Application program detection method and device and computer readable storage medium
CN112732563A (en) Interface script test log extraction method and device, terminal and storage medium
CN110688305A (en) Test environment synchronization method, device, medium and electronic equipment
CN111651342A (en) HTTP interface automation testing framework based on Charles recording session
CN112612706A (en) Automated testing method, computer device and storage medium
CN111061637B (en) Interface testing method, interface testing device and storage medium
CN106557419B (en) Program testing method and device
CN116431522A (en) Automatic test method and system for low-code object storage gateway
CN115576831A (en) Test case recommendation method, device, equipment and storage medium
CN114154169A (en) Jenkins and JMeter-based automatic test method and device
CN112416781A (en) Cross-system interface determination method and device, computer equipment and storage medium
CN113220586A (en) Automatic interface pressure test execution method, device and system
CN112527606A (en) Data flow analysis method and device, computer equipment and storage medium
CN113300912B (en) Equipment testing method and device and electronic equipment
CN106547679B (en) Script management method and script management platform

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