CN115687162A - Software testing device, method, electronic device and computer program product - Google Patents

Software testing device, method, electronic device and computer program product Download PDF

Info

Publication number
CN115687162A
CN115687162A CN202310000634.6A CN202310000634A CN115687162A CN 115687162 A CN115687162 A CN 115687162A CN 202310000634 A CN202310000634 A CN 202310000634A CN 115687162 A CN115687162 A CN 115687162A
Authority
CN
China
Prior art keywords
target
test
configuration attribute
configuration
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310000634.6A
Other languages
Chinese (zh)
Other versions
CN115687162B (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.)
Beijing Jidu Technology Co Ltd
Original Assignee
Beijing Jidu Technology 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 Beijing Jidu Technology Co Ltd filed Critical Beijing Jidu Technology Co Ltd
Priority to CN202310000634.6A priority Critical patent/CN115687162B/en
Publication of CN115687162A publication Critical patent/CN115687162A/en
Application granted granted Critical
Publication of CN115687162B publication Critical patent/CN115687162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application provides a software testing device, a method, an electronic device and a computer program product, which relate to the technical field of software testing, wherein the software testing device comprises an analysis module and an execution module, wherein the analysis module is used for receiving an input user interface related to a configuration file of a testing scene, analyzing the configuration file, obtaining an operation corresponding to the testing scene, a step corresponding to the operation and a first configuration attribute of the step, and transmitting the operation, the step corresponding to the operation and the first configuration attribute of the step to the execution module; the execution module is used for receiving the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step, receiving an input user interface related to target test information, determining the target step corresponding to the target operation and the target operation, and executing software test according to the first configuration attribute of the step, the second configuration attribute of the pre-stored step and the execution function of the target step. The application improves the software testing efficiency.

Description

Software testing device, method, electronic device and computer program product
Technical Field
The present application relates to the field of software testing technologies, and in particular, to a software testing device, a software testing method, an electronic device, and a computer program product.
Background
At present, in the development or use process of a software middleware (hereinafter referred to as middleware), relevant tests such as a smoke test, a benchmark test, a load test, an interface test, a pressure test, a bottleneck test and the like need to be performed, but considering that the middleware needs to support a large number of complex scenes, a scene test is also needed in addition to the tests.
The scene test comprises a manual scene test and an automatic scene test, wherein the manual scene test is performed in a mode of manually inputting options at a terminal, and the problems of low test efficiency and large waste of manpower and material resources exist. The problem of limited test scenes exists in automatic scene test, and if a tester wants to increase the test scenes, the tester needs to rewrite codes, so that the coupling degree between a test interface and the test scenes is increased along with the increase of the test scenes, and the later maintenance cost is increased.
Disclosure of Invention
The application provides software testing equipment, a software testing method, electronic equipment and a computer program product, which are used for solving the problems that in the prior art, manual scene testing of middleware has low testing efficiency and automatic scene testing has high coupling degree between a testing interface and a testing scene.
According to a first aspect of the application, a software testing device is provided, which comprises an analysis module and an execution module, wherein the execution module is connected with the analysis module;
the analysis module is used for receiving an input user interface related to a configuration file of a test scene, analyzing the configuration file, obtaining an operation corresponding to the test scene, a step corresponding to the operation and a first configuration attribute of the step, and transmitting the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step to the execution module;
the execution module is configured to receive an operation corresponding to the test scenario, a step corresponding to the operation, and a first configuration attribute of the step, and further configured to receive an input user interface related to target test information, and further configured to determine a target operation and a target step corresponding to the target operation according to the operation corresponding to the test scenario, the step corresponding to the operation, and the target test information, and further configured to execute a software test according to the first configuration attribute of the step, a pre-stored second configuration attribute of the step, and an execution function of the target step.
According to a second aspect of the present application, there is provided a software testing method comprising:
receiving an input user interface related to a configuration file of a test scenario and an input user interface related to target test information;
analyzing the configuration file to obtain an operation corresponding to the test scene, a step corresponding to the operation and a first configuration attribute of the step;
determining a target operation and a target step corresponding to the target operation according to the operation corresponding to the test scene, the step corresponding to the operation and the target test information;
and executing software test according to the first configuration attribute of the step, the second configuration attribute of the step which is stored in advance and the execution function of the target step.
According to a third aspect of the present application, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the software testing method of the second aspect.
According to a fourth aspect of the present application, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the software testing method according to the second aspect.
In the embodiment of the application, the analysis module can analyze the configuration file of the constructed test scene to obtain the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step, and the execution module realizes automatic software test according to the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step, so that the test efficiency is improved, the debugging cost is reduced, and manpower and material resources are saved; and the configuration file of the test scene is input in the analysis module, so that the construction of rich test scenes is realized, codes do not need to be rewritten, the separation of the test interface and the test scene is realized, adaptation is not needed, the coupling degree between the test interface and the test scene is reduced, and the later maintenance cost is also reduced.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic structural diagram of a software testing device provided in an embodiment of the present application;
FIG. 2 is a second schematic structural diagram of a software testing apparatus according to an embodiment of the present application;
fig. 3 is a third schematic structural diagram of a software testing apparatus according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a software testing method according to an embodiment of the present disclosure;
fig. 5 is a second flowchart of a software testing method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Before the description of the specific embodiments of the present application, the following description is first made.
Test scenario (scene): a test scenario consists of one or more operations.
Operation (action): the method is used for representing specific operations required to be executed by a client and a server, and one operation is composed of one or more steps and is a basic unit for building a test scenario.
Step (step): the minimum execution unit used for representing the operation of the server or the client is a basic unit for constructing the operation, and generally, each step has some configuration attributes.
It should be noted that the following embodiments of the present application are applicable to scenario testing of middleware, and specific contents of related test scenarios, operations, and steps can be designed by those skilled in the art according to test requirements, which is not limited herein.
The middleware is general service software which is positioned between platforms such as hardware and an operating system and application programs, provides an environment for running and developing the application software on an upper layer, and can help a user to flexibly and efficiently develop and integrate the complex application software. A common middleware is Software Development Kit (SDK), which can be compiled with some application Software, so as to provide some functional interfaces to support the functional implementation of the application Software. For example, a software development kit is compiled into video software to support a video output function, and thus, the performance of the software development kit (i.e., middleware) directly affects the performance of application software, so in order to ensure the performance of the application software, the middleware needs to be tested.
The embodiment of the application provides software testing equipment.
As shown in fig. 1, the software testing apparatus includes: the analysis module 101 and the execution module 102, wherein the execution module 102 is connected with the analysis module 101;
the analysis module 101 is configured to receive an input user interface related to a configuration file of a test scenario, analyze the configuration file, obtain an operation corresponding to the test scenario, a step corresponding to the operation, and a first configuration attribute of the step, and transmit the operation corresponding to the test scenario, the step corresponding to the operation, and the first configuration attribute of the step to the execution module 102;
the execution module 102 is configured to receive an operation corresponding to a test scenario, a step corresponding to the operation, and a first configuration attribute of the step, further configured to receive an input user interface related to target test information, further configured to determine a target step corresponding to the target operation and the target operation according to the operation corresponding to the test scenario, the step corresponding to the operation, and the target test information, and further configured to execute a software test according to the first configuration attribute of the step, a second configuration attribute of the prestored step, and an execution function of the target step.
The configuration file of the test scene can be input by a tester at a user interface according to test requirements, so that when the test scenes are increased, the tester can modify the configuration file according to the test requirements, abundant test scenes are constructed, codes do not need to be rewritten, the test efficiency is greatly improved, and the debugging cost is reduced.
The target test information can be input by a tester on a user interface according to the test requirement of the software.
It should be noted that the user interface for the tester to input the configuration file of the test scenario and the user interface for inputting the target test information may be the same user interface, or may be different user interfaces. The user interface is configured to select an address of a configuration file of a test scenario, so that the configuration file of the test scenario can be loaded to the parsing module 101, and further configured to input specific information content of target test information at a corresponding option, so that the target test information can be loaded to the executing module 102.
The second configuration attribute of the step may be an initialization configuration attribute of the step pre-stored by the tester, and specifically may relate to the configuration attributes of the steps of the server and the client. Likewise, the first configuration attribute of the step may also relate to the configuration attributes of the steps of the server and the client.
The configuration attribute can be an input parameter of an actual test interface, and the input parameter is confirmed by the test interface; or configuration items which are also used for indicating how to test the actual test interface, such as the number of threads which call the actual test interface concurrently, the number of calls of the actual test interface, the interval between two calls of the test interface, and the like. The operation corresponding to the test scenario can be understood as the operation to be executed by the test scenario; and the steps corresponding to the operations can be understood as the steps required to be executed by the operations.
It should be further noted that the test scenario may correspond to one or more operations, and the operation may correspond to one or more steps, that is, the operation corresponding to the test scenario may be understood as an operation sequence corresponding to the test scenario, and the step corresponding to the operation may be understood as a step sequence corresponding to the operation.
The execution module 102 selects the first configuration attribute and the second configuration attribute corresponding to the target step from the first configuration attribute and the second configuration attribute of the step, so as to correspondingly execute the execution function of the target step according to the first configuration attribute and the second configuration attribute of the target step, thereby implementing software scenario test set by a tester.
In the related art, software needs to support scene testing, and the scene testing is divided into manual scene testing and automatic scene testing, wherein the manual scene testing has the problems of low testing efficiency, increased debugging cost and waste of manpower and material resources; the automatic scene test has the problem of high coupling degree between the test interface and the test scene along with the increase of the test scenes.
In view of this, an embodiment of the present application provides a software testing device, which includes an analysis module and an execution module, where the execution module can implement an automated software test according to an operation corresponding to a test scenario obtained by the analysis module, a step corresponding to the operation, and a first configuration attribute of the step, so as to improve testing efficiency, reduce debugging cost, and save manpower and material resources; and the configuration file of the test scene is input in the analysis module, so that the construction of rich test scenes is realized, codes do not need to be rewritten, the separation of the test interface and the test scene is realized, adaptation is not needed, the coupling degree between the test interface and the test scene is reduced, and the later maintenance cost is also reduced.
In some optional embodiments, the target test information comprises at least one of:
target test scenario identification (SceneID);
target domain identification (DomainID);
target process identification (ProcessName).
In the embodiment of the application, the target test scenario identifier may be a name of the target test scenario and is used to represent an identifier of the test scenario, and the target test scenario identifier determines test content of the test case and a participating domain controller process.
The target domain identifier may be a name of a target domain, and is used to indicate a domain controller on which the software test program runs, and it should be noted that the software test program may run on a domain controller of a vehicle, where the domain controller of the vehicle includes a gateway domain controller, an intelligent driving domain controller, an intelligent cockpit domain controller, and the like.
The target process identifier may be a target process name, and since the software test program has a test scenario formed by a plurality of processes in the same domain, the target process identifier is used to represent the process in which the software test program operates, so as to distinguish the process in which the software test program currently needs to operate.
In some optional embodiments, the test system further includes a test interface module, as shown in fig. 2, the test interface module 103 is connected to the parsing module 101 and the executing module 102 respectively;
the analysis module 101 is configured to transmit the first configuration attribute of the step to the test interface module 103;
the test interface module 103 is configured to receive the first configuration attribute of the step, pre-store the second configuration attribute of the step, and execute one of the following:
transmitting the first configuration attribute and the second configuration attribute of the step to the execution module 102;
the configuration attributes of the step are determined based on the first configuration attribute and the second configuration attribute of the step, and are transmitted to the execution module 102.
It should be noted that the parsing module 101 is configured to parse the configuration file of the test scenario, obtain the first configuration attribute of the step, and cache the first attribute of the step in the test interface module 103.
The first configuration attribute of the step may be a configuration attribute of a step that a tester wants to test. If the tester wants to add the test scenario of the software test, the software test can be realized by modifying the configuration file of the test scenario. That is to say, the tester can construct rich test scenes according to the requirements through the configuration files of the test scenes.
The second configuration attribute of a step may be understood to be the initialized configuration attribute of the step that the tester caches to the test interface module 103.
The test interface module 103 is configured to transmit the first configuration attribute and the second configuration attribute of the step to the execution module 102, and the execution module 102 is configured to update and configure the step according to the first configuration attribute of the step and the second configuration attribute of the step when executing the software test, and determine the configuration attribute of the step; or, the test interface module 103 is configured to update and configure the step according to the first configuration attribute and the second configuration attribute of the step, determine the configuration attribute of the step, and transmit the configuration attribute of the step to the execution module 102.
In some alternative embodiments, the execution module 102 is specifically configured to:
receiving an operation corresponding to a test scene, a step corresponding to the operation, a first configuration attribute of the step, an input user interface related to target test information, a second configuration attribute of the step, a first mapping relation between the test information and the operation, a second mapping relation between the step and the configuration attribute and a first interface related to an execution function of the step;
determining target operation according to the operation corresponding to the test scene, the target test information and the first mapping relation;
determining a target step corresponding to the target operation according to the step corresponding to the operation and the target operation;
determining a first configuration attribute and a second configuration attribute of the target step according to the first configuration attribute of the step, the second mapping relation and the target step;
determining an execution function of the target step according to the first interface and the target step;
and executing the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
It should be noted that the execution module 102 is configured to receive a first interface, which is an interface related to an execution function of the step or an interface providing the registration step. In addition, the execution module 102 is further configured to receive a second interface, where the second interface is an interface for providing a registration operation, or an interface for acquiring an operation-related interface, and may be used as a bridge between a test scenario and a step, and specifically, is configured to register a target operation according to the second interface, so as to determine a target step corresponding to the target operation.
As shown in fig. 3, in the embodiment of the present application, the parsing module 101 includes a test scenario parser (denoted by SceneParser); the execution module 102 comprises a test scene executor (represented by a SceneExecutor), an operation manager (represented by an ActionManager), and a step manager (represented by a StepManager), wherein the test scene executor is connected with the operation manager, the operation manager is respectively connected with the analysis module 101 and the step manager, and the step manager is connected with the test interface module 103; the test interface module 103 includes a configuration manager (denoted by ConfigManager), which stores configuration attributes of steps in advance, where the configuration attributes may include configuration attributes of steps that the server and the client need to execute, where the configuration attributes of the steps stored in advance are the second configuration attributes of the steps in the embodiment of the present application.
The test scenario parser is used for caching the operation corresponding to the test scenario executor, caching the step corresponding to the operation manager, and caching the first configuration attribute of the step to the configuration manager.
The test scene executor is used for receiving target test information input by a tester on the user interface and a first mapping relation between the test information and operation, and receiving operation corresponding to the test scene cached by the test scene parser; and determining target operation according to the target test information, the first mapping relation and the operation corresponding to the test scene, and transmitting the target operation to the operation manager.
The operation manager is used for receiving target operation transmitted by the test scene executor and a second interface registered by a tester; acquiring a target step corresponding to the target operation according to the steps corresponding to the operations cached by the second interface and the test scene analyzer; and transmits the target step to the step manager.
The step manager is used for acquiring a second mapping relation between the step input by the tester and the configuration attribute, acquiring a first interface registered by the tester and acquiring a target transmitted by the operation manager; according to the first interface and the second mapping relation, acquiring a first configuration attribute of a target step cached by a configuration manager, a second configuration attribute of the target step prestored by the configuration manager and an execution function of the target step; and executing the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
In some alternative embodiments, the data types of the configuration file and the target test information are both string types.
The data type of the configuration file is a character string, the operation corresponding to the test scenario obtained by analyzing the configuration file, the step corresponding to the operation and the data type of the first configuration attribute of the step are all character string types, and the data types of the second configuration attribute of the pre-stored step, the target test information, the first mapping relation between the test information and the operation and the second mapping relation between the step and the configuration attribute are all character string types. The type readability of the character strings is good, and the coupling degree between test scenes is greatly reduced through the adaptation mode of the character strings.
To sum up, the software test equipment of this application embodiment, based on the modularization, has the advantage of high cohesion, low coupling, can greatly avoid the problem that the degree of coupling that the test scenario increases and lead to becomes high, later maintenance cost increases. Specifically, a tester can construct a configuration file of a test scene according to test requirements, rich test scenes are realized, the test scenes are separated from a test interface, and no additional adaptive operation is needed; the data type of the configuration file is a character string type, so that the coupling degree between a test scene and a test interface is greatly reduced, and the debugging cost and the later maintenance cost are reduced; and the analysis module loads the configuration file of the test scene and analyzes the configuration file, so that the execution module can execute software test according to the operation corresponding to the test scene obtained by analysis of the analysis module, the step corresponding to the operation and the first configuration attribute of the step, the automatic test is realized, the method and the device are particularly suitable for the automatic test of the middleware, the test efficiency is improved, and the method and the device have higher flexibility compared with a hard coding mode.
The embodiment of the application also provides a software testing method.
As shown in fig. 4, the software testing method includes the following steps:
step 401, receiving an input user interface related to a configuration file of a test scenario and an input user interface related to target test information;
step 402, analyzing the configuration file to obtain an operation corresponding to the test scenario, a step corresponding to the operation, and a first configuration attribute of the step;
step 403, determining a target operation and a target step corresponding to the target operation according to the operation corresponding to the test scene, the step corresponding to the operation and the target test information;
step 404, executing a software test according to the first configuration attribute of the step, the second configuration attribute of the step stored in advance and the execution function of the target step.
The embodiment of the application provides a software testing method, which can analyze a configuration file of a testing scene to obtain an operation corresponding to the testing scene, a step corresponding to the operation and a first configuration attribute of the step, so that an automatic software test is realized according to the operation corresponding to the testing scene, the step corresponding to the operation and the first configuration attribute of the step, the testing efficiency is improved, the debugging cost is reduced, and manpower and material resources are saved; and through the configuration file of the test scene, the construction of the rich test scene is realized, the separation of the test interface and the test scene is realized, the adaptation is not needed, the coupling degree between the test interface and the test scene is reduced, and the later maintenance cost is also reduced.
In some optional embodiments, the target test information comprises at least one of:
identifying a target test scene;
a target domain identification;
and identifying the target process.
In some alternative embodiments, step 403 comprises:
receiving a first mapping relation between test information and operation;
determining the target operation according to the operation corresponding to the test scene, the target test information and the first mapping relation;
and determining a target step corresponding to the target operation according to the step corresponding to the operation and the target operation.
In some alternative embodiments, step 404 includes:
receiving a second mapping relation between the step and the configuration attribute and a first interface related to an execution function of the step;
determining a first configuration attribute and a second configuration attribute of the target step according to the first configuration attribute of the step, the second mapping relation and the target step;
determining an execution function of the target step according to the first interface and the target step;
and executing the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
In some optional embodiments, the data type of the configuration file and the target test information is a character string.
Next, an implementation flow of the software testing method according to the embodiment of the present application is described with reference to fig. 5.
Step 501, the step manager in the test interface module registers the first interface and loads the second configuration attribute of the step pre-stored by the configuration manager.
Step 502, a test scenario parser in the parsing module parses a configuration file of a test scenario, obtains an operation corresponding to the test scenario, a step corresponding to the operation, and a first configuration attribute of the step, caches the operation corresponding to the test scenario to a test scenario executor in the execution module, caches the step corresponding to the operation to an operation manager in the execution module, and caches the first configuration attribute of the step to a step manager in the execution module.
Step 503, the test scenario executor determines a target operation according to the target test information and the operation corresponding to the test scenario, and transmits the target operation to the operation manager.
Step 504, the operation manager registers the second interface, determines a target step corresponding to the target operation according to the second interface and the step corresponding to the operation, and transmits the target step to the step manager.
Step 505, the step manager executes the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
An embodiment of the present application further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the software testing methods described above.
Embodiments of the present application further provide a computer program product, which includes a computer program/instruction, and when the computer program/instruction is executed by a processor, the computer program/instruction implements the processes of the software testing method embodiments.
The methods in the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described herein are performed in whole or in part. The computer may be a general purpose computer, special purpose computer, network appliance, user equipment, core network appliance, OAM, or other programmable device.
The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; optical media such as digital video disks; but also semiconductor media such as solid state disks. The computer readable storage medium may be volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. The software testing equipment is characterized by comprising an analysis module and an execution module, wherein the execution module is connected with the analysis module;
the analysis module is used for receiving an input user interface related to a configuration file of a test scene, analyzing the configuration file, obtaining an operation corresponding to the test scene, a step corresponding to the operation and a first configuration attribute of the step, and transmitting the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step to the execution module;
the execution module is configured to receive an operation corresponding to the test scenario, a step corresponding to the operation, and a first configuration attribute of the step, and further configured to receive an input user interface related to target test information, and further configured to determine a target operation and a target step corresponding to the target operation according to the operation corresponding to the test scenario, the step corresponding to the operation, and the target test information, and further configured to execute a software test according to the first configuration attribute of the step, a pre-stored second configuration attribute of the step, and an execution function of the target step.
2. The software testing device of claim 1, wherein the target test information comprises at least one of:
identifying a target test scene;
a target domain identification;
and identifying the target process.
3. The software testing device of claim 1, further comprising a testing interface module, wherein the testing interface module is connected to the parsing module and the executing module respectively;
the analysis module is used for transmitting the first configuration attribute of the step to the test interface module;
the test interface module is configured to receive the first configuration attribute of the step, pre-store the second configuration attribute of the step, and execute one of the following:
transmitting the first configuration attribute and the second configuration attribute of the step to the execution module;
and determining the configuration attribute of the step according to the first configuration attribute and the second configuration attribute of the step, and transmitting the configuration attribute of the step to the execution module.
4. The software testing device of claim 1, wherein the execution module is specifically configured to:
receiving an operation corresponding to the test scenario, a step corresponding to the operation, a first configuration attribute of the step, an input user interface related to the target test information, a second configuration attribute of the step, a first mapping relation between the test information and the operation, a second mapping relation between the step and the configuration attribute, and a first interface related to an execution function of the step;
determining the target operation according to the operation corresponding to the test scene, the target test information and the first mapping relation;
determining a target step corresponding to the target operation according to the step corresponding to the operation and the target operation;
determining a first configuration attribute and a second configuration attribute of the target step according to the first configuration attribute of the step, the second mapping relation and the target step;
determining an execution function of the target step according to the first interface and the target step;
and executing the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
5. The software testing device of claim 1, wherein the data type of the configuration file and the target test information is a character string.
6. A software testing method, comprising:
receiving an input user interface related to a configuration file of a test scenario and an input user interface related to target test information;
analyzing the configuration file to obtain the operation corresponding to the test scene, the step corresponding to the operation and the first configuration attribute of the step;
determining a target operation and a target step corresponding to the target operation according to the operation corresponding to the test scene, the step corresponding to the operation and the target test information;
and executing software test according to the first configuration attribute of the step, the second configuration attribute of the step stored in advance and the execution function of the target step.
7. The software testing method of claim 6, wherein the step of determining a target operation and a target corresponding to the target operation according to the operation corresponding to the test scenario, the step corresponding to the operation, and the target test information comprises:
receiving a first mapping relation between test information and operation;
determining the target operation according to the operation corresponding to the test scene, the target test information and the first mapping relation;
and determining a target step corresponding to the target operation according to the step corresponding to the operation and the target operation.
8. The method for testing software according to claim 6, wherein executing middleware test according to the first configuration attribute of the step, the second configuration attribute of the step stored in advance and the execution function of the target step comprises:
receiving a second mapping relation between the step and the configuration attribute and a first interface related to an execution function of the step;
determining a first configuration attribute and a second configuration attribute of the target step according to the first configuration attribute of the step, the second mapping relation and the target step;
determining an execution function of the target step according to the first interface and the target step;
and executing the software test according to the first configuration attribute, the second configuration attribute and the execution function of the target step.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the software testing method of any one of claims 6 to 8.
10. A computer program product comprising computer programs/instructions for implementing the software testing method of any one of claims 6 to 8 when executed by a processor.
CN202310000634.6A 2023-01-03 2023-01-03 Software testing device and method and electronic device Active CN115687162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310000634.6A CN115687162B (en) 2023-01-03 2023-01-03 Software testing device and method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310000634.6A CN115687162B (en) 2023-01-03 2023-01-03 Software testing device and method and electronic device

Publications (2)

Publication Number Publication Date
CN115687162A true CN115687162A (en) 2023-02-03
CN115687162B CN115687162B (en) 2023-03-21

Family

ID=85057423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310000634.6A Active CN115687162B (en) 2023-01-03 2023-01-03 Software testing device and method and electronic device

Country Status (1)

Country Link
CN (1) CN115687162B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180013657A1 (en) * 2016-07-07 2018-01-11 Netscout Systems, Inc. Consolidation of network test automation tools
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
CN108614770A (en) * 2018-04-09 2018-10-02 中国工商银行股份有限公司 Automatic test asserts method, apparatus, storage medium and equipment
CN110704306A (en) * 2019-09-09 2020-01-17 平安普惠企业管理有限公司 Assertion processing method, device, equipment and storage medium in test
CN113986768A (en) * 2021-11-30 2022-01-28 中国平安人寿保险股份有限公司 Application stability testing method, device, equipment and medium
CN115470101A (en) * 2022-08-12 2022-12-13 西安万像电子科技有限公司 Data testing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180013657A1 (en) * 2016-07-07 2018-01-11 Netscout Systems, Inc. Consolidation of network test automation tools
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
CN108614770A (en) * 2018-04-09 2018-10-02 中国工商银行股份有限公司 Automatic test asserts method, apparatus, storage medium and equipment
CN110704306A (en) * 2019-09-09 2020-01-17 平安普惠企业管理有限公司 Assertion processing method, device, equipment and storage medium in test
CN113986768A (en) * 2021-11-30 2022-01-28 中国平安人寿保险股份有限公司 Application stability testing method, device, equipment and medium
CN115470101A (en) * 2022-08-12 2022-12-13 西安万像电子科技有限公司 Data testing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115687162B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN107979508B (en) Micro-service test method and device
CN109302522B (en) Test method, test device, computer system, and computer medium
US10223080B2 (en) Method and system for automated, static instrumentation for applications designed for execution in environments with restricted resources
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN111447227A (en) Protocol analysis method and device of Internet of things equipment
CN109144533A (en) A kind of method, system and the computer installation of update and the load of application program
US9189223B2 (en) Connecting method and apparatus for connecting a component included in an application with an external service
CN105740144B (en) A kind of automated testing method and system of Android mobile terminal
CN108021357B (en) Optimization method and device for program call
CN107045475B (en) Test method and device
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN110381101A (en) API gateway control system, control method, equipment and medium
CN107391362A (en) Application testing method, mobile terminal and storage medium
US11422917B2 (en) Deriving software application dependency trees for white-box testing
CN111324619B (en) Object updating method, device, equipment and storage medium in micro-service system
CN112835802A (en) Equipment testing method, device, equipment and storage medium
CN115687162B (en) Software testing device and method and electronic device
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
US20070294413A1 (en) System and method for enabling assisted visual development of incoming message handling operations for applications on a communication device
CN109656791B (en) gPC performance test method and device based on Jmeter
KR100930962B1 (en) Remote security testing device and method of RPC-based software
CN103019927B (en) A kind of performance test methods and system
CN115599683A (en) Automatic testing method, device, equipment and storage medium
CN113434405A (en) Method and device for determining test file, storage medium and electronic device
CN114968770A (en) Automatic testing method, device, equipment and storage medium

Legal Events

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