A software testing method and system

By deploying the test environment module in the software development system and managing each version of the code, the problem of inconsistent code versions is solved and the efficiency and quality of software development testing are improved.

CN112148583BActive Publication Date: 2024-10-15BEIJING CHJ AUTOMOTIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910568195.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-06-27
Publication Date
2024-10-15
Estimated Expiration
2039-06-27

AI Technical Summary

Technical Problem

During the software development process, due to the inconsistent code versions of various development devices, code versions in software testing are confused, affecting testing efficiency and quality.

Method used

Deploy test environment modules in various software development-related systems, store each version of the code separately, and determine the code of the same version in the target test environment module to execute testing to achieve separation and version management of multiple test environments.

Benefits of technology

Through the separation of multiple test environment modules, version code conflicts are reduced, the efficiency and quality of software development testing are improved, and the stability of code versions during the testing process is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112148583B_ABST
    Figure CN112148583B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure discloses a software testing method and system, which relates to the field of software development technology, and the main purpose is to avoid code version confusion during software development and testing. The main technical scheme of the embodiment of the present disclosure includes: deploying at least one test environment module in each system related to software development; each of the test environment modules stores the codes of various versions developed by the corresponding system; different types of test environment modules perform different tests; when any target test environment module in the test environment modules deployed by any of the systems needs to perform a test, determine the target system involved in the current test in each system; and perform the test corresponding to the target test environment module based on the same version of the code for the current test in the test environment module corresponding to the target test environment module in each target system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the technical field of software development, and in particular, to a software testing method and system. Background Art

[0002] With the development of computer technology, more and more business processes need to be implemented through computer software. In order to ensure the quality and stability of computer software in implementing business, software-related codes need to be tested during software development.

[0003] At present, when implementing software development for business, the participation of a large number of development devices is required, and the developers corresponding to each development device develop at least part of the software-related code in the development device. When testing the code, the codes in the relevant development devices need to be combined to complete the test. However, when testing, due to the different development progress of each development device, the codes in different development devices may not be at the same version, resulting in code version conflicts, leading to code version confusion during software testing. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure propose a software testing method and system, the main purpose of which is to avoid code version confusion during software development and testing. The embodiments of the present disclosure mainly provide the following technical solutions:

[0005] In a first aspect, an embodiment of the present disclosure provides a software testing method, the method being used in a system related to software development to test software, the method comprising:

[0006] Deploy at least one test environment module in each system related to software development; each of the test environment modules stores the codes of each version developed by the corresponding system; different types of test environment modules perform different tests;

[0007] When any target test environment module in the test environment modules deployed by any of the systems needs to execute a test, determining a target system involved in the current test in each system;

[0008] The test corresponding to the target test environment module is executed by relying on the same version code for the current test in the test environment module corresponding to the target test environment module in each target system.

[0009] In a second aspect, an embodiment of the present disclosure provides a software testing system, the system comprising:

[0010] N systems related to software development; at least one test environment module is deployed in each system related to software development; each of the test environment modules stores the codes of various versions developed by the corresponding system; different types of test environment modules perform different tests;

[0011] Each of the systems is used to determine the target system involved in the current test in each system when any target test environment module in the test environment modules deployed by itself needs to execute a test; and rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module.

[0012] In a third aspect, an embodiment of the present disclosure provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the software testing method described in the first aspect.

[0013] In a fourth aspect, an embodiment of the present disclosure provides a human-computer interaction device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the software testing method described in the first aspect is executed.

[0014] By means of the above technical scheme, the software testing method and system provided by the embodiments of the present disclosure respectively deploy corresponding test environment modules in each system related to software development, and each test environment module stores the codes of each version developed by the corresponding system. When any target test environment module in any system needs to perform a test, the target system involved in the current test is determined in each system. Depending on the code of the same version for the current test in the test environment module corresponding to the target test environment module in each target system, the test corresponding to the target test environment module is executed. It can be seen that the embodiments of the present disclosure realize the effective management of each version of code on the basis of using multiple test environment modules to realize the separation of multiple test environments, reduce the conflict of each version of code when developing and testing the software, and thus improve the efficiency of software development and testing.

[0015] The above description is only an overview of the technical solutions of the embodiments of the present disclosure. In order to more clearly understand the technical means of the embodiments of the present disclosure, which can be implemented in accordance with the contents of the specification, and to make the above and other purposes, features and advantages of the embodiments of the present disclosure more obvious and easy to understand, the specific implementation methods of the embodiments of the present disclosure are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the embodiments of the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0017] Figure 1 A flowchart of a software testing method provided by an embodiment of the present disclosure is shown;

[0018] Figure 2 A flowchart of another software testing method provided by an embodiment of the present disclosure is shown;

[0019] Figure 3 A schematic diagram of a software testing process provided by an embodiment of the present disclosure is shown;

[0020] Figure 4 A block diagram of a software testing system provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0021] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0022] In a first aspect, an embodiment of the present disclosure provides a software testing method, which is used in a system related to software development to test software, such as Figure 1 As shown, the method mainly includes:

[0023] 101. Deploy at least one test environment module in each system related to software development; each of the test environment modules stores codes of various versions developed by the corresponding system; different types of test environment modules perform different tests;

[0024] Specifically, the systems described here are systems related to software development, that is, there will be codes involved in the software development process in these systems, and in order to ensure the quality of software development, these codes need to participate in the testing of the software development process. It should be noted that the systems described here may include but are not limited to local systems and extraterritorial systems. The local system refers to the development machine used by software developers (for example, a desktop or laptop computer for personal development) and / or a server within the enterprise. Local systems can communicate based on intranets such as Intranet, dedicated lines, VPNs (Virtual Private Networks, virtual private networks). Extraterritorial systems refer to systems outside the enterprise intranet, which can be a business platform that provides codes related to software development for local systems, or a platform that provides software with official release services to the Internet.

[0025] Specifically, at least one test environment module is deployed in each system. Different systems can deploy the same type of test environment modules or different types of test environment modules, which is not specifically limited here. It should be noted that in order to ensure that each test environment module can execute the test smoothly and ensure the correctness of the test, when two or more test environment modules are deployed in a system, there is a specific test execution order between the various test environment modules. In other words, for the same version of the code, the test environment module that is in the previous position in the test execution order executes the corresponding test on the code, and when the test passes, the test environment module that is in the next position can execute the corresponding test on the code.

[0026] Specifically, during testing, in order to ensure the stability of the code required for the test, the code stored in each test environment module is the code stored when the test environment module executes its own corresponding test and passes the test.

[0027] Specifically, the at least one test environment module may include but is not limited to at least one of a development environment module, a test environment module, a multi-terminal test environment module, a simulation environment module, a performance test environment module, a pre-release environment module, and a production environment module. Among them, the development environment module, the test environment module, the multi-terminal test environment module, and the simulation environment module are all test environment modules related to independent software development. The performance test environment module, the pre-release environment module, and the production environment module are all test environment modules related to collaborative software development.

[0028] It should be noted that in order to meet different testing requirements, different test environment modules perform different tests. Specifically, the development environment module is used for software developers to use other people's associated code and the code on their local system for integration testing during the software development phase. The test environment module is used to perform full-function testing of the software. The code stored in it is the code released to the test environment after the development environment module test is successfully completed. The multi-terminal test environment module is used for testing each terminal in the scenario of multi-terminal parallel testing. The simulation environment module is deployed with a production environment that is replicated at a reduced scale offline, which is used to provide reliable dependencies for offline development and testing. Every time a new production environment module is launched, the simulation environment needs to be updated synchronously. This simulation environment module is not deployed separately and needs to be deployed at the same time as the production environment module. The performance test environment module is deployed with a production environment that is replicated at a reduced scale offline, which is used for online performance testing. Considering that performance testing is not performed normally, the image can be exported and backed up during non-use, thereby releasing resources in the system. The pre-release environment is deployed with a production environment that is replicated at a reduced scale offline, which is used for release verification before the software is officially released. If the pre-release environment module is successfully released, it means that the release test has passed and it can be officially released to the production environment. The production environment is used to provide formal production services facing the Internet and external parties.

[0029] 102. When any target test environment module in the test environment modules deployed by any of the systems needs to execute a test, a target system involved in the current test is determined in each system.

[0030] In actual applications, each system can initiate test requirements and execute tests in the test environment module deployed therein that meets the test requirements, and the module that executes the test is the target test environment module.

[0031] Specifically, when any target test environment module in the test environment modules deployed by any system needs to execute a test, in order to ensure the executableness and integrity of the test, according to the dependency relationship between the systems, the systems that have a dependency relationship with the system are determined in each system, and the determined systems are all determined as the target systems involved in the current test.

[0032] 103. Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, execute the test corresponding to the target test environment module.

[0033] Specifically, it depends on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and the process of executing the test corresponding to the target test environment module is: extract the same version of code that meets the test requirements from the test environment module corresponding to the target test environment module in each target system, and execute the test corresponding to the target test environment module based on the extracted same version of code and the same version of code in the target test environment module.

[0034] It should be noted that each test environment module stores the codes of various versions developed by the corresponding system, and the stored codes are the codes stored when the test environment module executes the corresponding test and passes the test. That is to say, the codes stored in the test environment module are all codes in a stable version state. Therefore, even if the target system is developing a new version of the code, in the process of executing the test corresponding to the target test environment, the test can be completed by relying on the codes in the stable version state of each target system, thereby ensuring that the probability of version confusion in the code involved in the test during the test process is low.

[0035] The software testing method provided by the embodiments of the present disclosure deploys corresponding test environment modules in each system related to software development, and each test environment module stores the codes of each version developed by the corresponding system. When any target test environment module in any system needs to perform a test, the target system involved in the current test is determined in each system. The test corresponding to the target test environment module is performed by relying on the code of the same version for the current test in the test environment module corresponding to the target test environment module in each target system. It can be seen that the embodiments of the present disclosure realize the effective management of each version of code on the basis of using multiple test environment modules to realize the separation of multiple test environments, reduce the conflict of each version of code when developing and testing the software, and thus improve the efficiency of software development and testing.

[0036] In a second aspect, according to the method described in the first aspect, another embodiment of the present disclosure further provides a software testing method, such as Figure 2 As shown, the method mainly includes:

[0037] 201. Deploy at least one test environment module in each system related to software development; each of the test environment modules stores codes of various versions developed by the corresponding system; different types of test environment modules execute different tests.

[0038] Specifically, the system exists in the following two forms: the first is that the system is only a local system. The second is that the system includes a local system and an external system. It should be noted that the number of systems is not specifically limited. For example, a personal development machine and a development server within an enterprise can both be used as a local system.

[0039] Specifically, at least one test environment module is deployed in each system. Different systems can deploy the same type of test environment modules or different types of test environment modules, which is not specifically limited here. Each test environment module performs tests at different stages of software development. It should be noted that in order to clearly distinguish the functions of each test environment module, the local system includes online subsystems and offline subsystems. The test environment modules related to independent software development are deployed in the online subsystem, while the test environment modules related to collaborative software development are deployed in the offline subsystem.

[0040] For example, Figure 3 As shown, the local system 30 is deployed with the development environment module, test environment module and simulation environment module deployed in the offline subsystem, and the performance test environment module, pre-release environment module and production environment module deployed in the online subsystem. The local system 31 is deployed with the development environment module, test environment module, multi-terminal test environment module and simulation environment module deployed in the offline subsystem, and the performance test environment module, pre-release environment module and production environment module deployed in the online subsystem. The local system 32 is deployed with the simulation environment module deployed in the offline subsystem, and the performance test environment module, pre-release environment module and production environment module deployed in the online subsystem. The test environment module and production environment module are deployed in the out-of-domain system 33. The development environment module, test environment module, multi-terminal test environment module, simulation environment module, performance test environment module, pre-release environment module and production environment module are deployed in the out-of-domain system 34.

[0041] 202. When any target test environment module in the test environment modules deployed by any of the systems needs to execute a test, a target system involved in the current test is determined in each system.

[0042] Specifically, since each system can initiate a test requirement and execute the test in the test environment module deployed therein that meets the test requirement, the target test environment module has at least the following forms:

[0043] The first one is that the target test environment module is any test environment module in the local system that is related to independent software development.

[0044] The second type is that the target test environment module is any test environment module in the local system that is related to software collaborative development.

[0045] The third type is that the target test environment module is any test environment module in the out-of-domain system that is related to software collaborative development.

[0046] Specifically, after the target test environment module is determined, in order to ensure the executability and integrity of the test, based on the dependencies between the systems, the systems that have dependencies on the system where the target test environment module is located are determined among the systems, and the determined systems are all determined as the target systems involved in the current test.

[0047] 203. Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, execute the test corresponding to the target test environment module. If there is a problem in executing the test corresponding to the target test environment, execute step 204; if the test corresponding to the target test environment passes, execute step 205.

[0048] Specifically, according to the difference between the target system and the target test environment module, and depending on the target code in the test environment module corresponding to the target test environment module in each target system, there are at least the following types of tests corresponding to the target test environment:

[0049] The first one is that when the target test environment is a test environment module related to independent software development, and the target systems are all local systems, then the execution of the test corresponding to the target test environment module may include the following steps, depending on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system: executing the test related to independent software development corresponding to the target test environment module, depending on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system. In this way, during the software development process, each development machine can cooperate with other development machines to complete the test, so that software developers can flexibly arrange the test based on their own development progress.

[0050] Specifically, the test environment module related to independent software development described here includes: a development environment module, a test environment module and a simulation environment module, and the target test environment module is any one of these modules. It should be noted that the simulation environment module stores codes that have passed the test and are in a stable version state, that is, the code in the new version development is decoupled from the code in the stable version state and does not affect each other. Therefore, regardless of whether the software development is in the new version of the software development state, the code in the stable version state stored in the simulation environment module will not be affected. Therefore, when the target test environment is a development environment module or a test environment module or a simulation test environment module, it depends on the same version code for the current test in the simulation environment module corresponding to the target test environment module in each target system to execute the test related to independent software development corresponding to the target test environment module.

[0051] For example, Figure 3 As shown, when the target test environment module is a module related to independent software development in an offline subsystem in the local system 30 (any one of the development environment module, the test environment module and the simulation environment module), the determined target system is the local system 31 (the local system 31 is dependent on the local system 30). It can be seen from trajectory A that the test related to independent software development corresponding to the target test environment module is executed by relying on the same version of the code for the current test in the simulation environment module corresponding to the target test environment module in the local system 31.

[0052] For example, Figure 3 As shown, when the target test environment module is a module related to independent software development in an offline subsystem in the local system 31 (any one of the development environment module, the test environment module, the multi-terminal test module and the simulation environment module), the determined target system is the local system 32 (the local system 31 is dependent on the local system 30). It can be seen from trajectory B that the test related to independent software development corresponding to the target test environment module is executed by relying on the same version of the code for the current test in the simulation environment module corresponding to the target test environment module in the local system 32.

[0053] The second type, when the target test environment is a test environment module related to software collaborative development, and the target systems are all local systems, it relies on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and executing the test corresponding to the target test environment module may include the following steps: relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, executing the test related to local collaborative development of software corresponding to the target test environment module.

[0054] The third type, when the target test environment is a test environment module related to independent software development, and the target system includes a local system and an out-of-domain system, it depends on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and executing the test corresponding to the target test environment module may include the following steps: relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the out-of-domain system of each target system, to execute the test related to independent software development corresponding to the target test environment module.

[0055] The fourth type, when the target test environment is a test environment module related to independent software development, and the target system includes an out-of-domain system, it depends on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and executing the test corresponding to the target test environment module may include the following steps: relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the out-of-domain system in each target system, executing the test related to independent software development corresponding to the target test environment module. It should be noted that this method can detect errors in the software development process in a timely manner by testing based on the relevant code provided by the out-of-domain system during the independent software development stage, thereby improving the convenience and efficiency of software development.

[0056] For example, Figure 3 As shown, when the target test environment module is a module related to independent software development in an offline subsystem in the local system 31 (any one of the development environment module, test environment module, multi-terminal test module and simulation environment module), the determined target system is an out-of-domain system 33 (the local system 31 depends on the out-of-domain system 33). It can be seen from trajectory C that the test related to independent software development corresponding to the target test environment module is executed by relying on the same version of the code for the current test in the test environment module corresponding to the target test environment module in the out-of-domain system 33.

[0057] For example, Figure 3As shown, when the target test environment module is a module related to software collaborative development in the offline subsystem of the local system 31 (any one of the performance test environment module, pre-release environment module and production environment module), the determined target system is the out-of-domain system 33 (the local system 31 is dependent on the out-of-domain system 33). From the track D, it can be seen that the same version of the code for the current test in the production environment module corresponding to the target test environment module in the out-of-domain system 33 is relied on to execute the test related to software independent development corresponding to the target test environment module. In this case, no matter what kind of module related to software collaborative development the target test environment module is, it depends on the production environment in the out-of-domain system, so this test can improve the quality and reliability of software development.

[0058] The fifth type, when the target test environment is a test environment module related to software collaborative development, and the target system includes an out-of-domain system, it relies on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and executing the test corresponding to the target test environment module may include the following steps: relying on the same version of code for the current test in the test environment module corresponding to the target test environment in the out-of-domain system in each target system, executing the test related to software collaborative development corresponding to the target test environment module.

[0059] The sixth type, when the target test environment is a test environment module related to software collaborative development in an out-of-domain system, and the target system includes a local system, then the reliance on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, and executing the test corresponding to the target test environment module may include the following steps: relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and executing the test related to software out-of-domain collaborative development corresponding to the target test environment module.

[0060] Specifically, the test environment modules related to software collaborative development include: performance test environment module, pre-release environment module and production environment module; the production environment module stores code in a releasable version state. Since the production environment module completely simulates the environment for product release, the quality and reliability of the code after the production environment module executes the test are relatively high and can be released for use. When the target test environment is an environmental test environment module related to software collaborative development in an out-of-domain system, it relies on the same version of code for the current test in the production environment module corresponding to the target test environment module in each target system to execute the test related to out-of-domain collaborative development of software corresponding to the target test environment module.

[0061] For example, Figure 3As shown, when the target test environment module is the line production environment module in the out-of-domain system 34, the determined target system is the local system 31 (the local system 31 is dependent on the out-of-domain system 34). From the track E, it can be seen that the same version of the code for the current test in the production environment module corresponding to the target test environment module "production environment module" in the local system 31 is relied on to execute the test related to the independent development of software corresponding to the target test environment module "production environment module". In this case, no matter what kind of module related to software collaborative development the target test environment module is, it depends on the production environment in the local system, so this test can improve the quality and reliability of software development.

[0062] In addition, it should be noted that no matter what system the target system is and what module the target test environment module is, when the same version code for the current test in the test environment module corresponding to the target test environment in each target system is relied on, and the test corresponding to the target test environment module is executed, the following steps must be performed to ensure the order of the test: determine whether the same version code for the current test exists in the test environment module corresponding to the target test environment in each target system; if so, it means that there are codes of the same version in each target system and in a stable state in the version, and these same version codes for the current test can complete the test corresponding to the target test environment, then extract the same version code for the current test from the test environment module corresponding to the target test environment in each target system, and use the extracted same version code for the current test to execute the test corresponding to the target test environment. If the same version code for the current test does not exist in the test environment module corresponding to the target test environment module in some target systems, it means that the code required for the test is incomplete and the test cannot be completed, and a prompt message that the test cannot be executed is issued, so that software developers can supplement the code according to the prompt message to complete the test in time. The prompt information carries an identification of a test environment module for a non-existent target code and an identification of a target system where a test environment module for the same version of code as the current test does not exist.

[0063] 204. Generate a test report; the test report includes information about code lines with errors.

[0064] Specifically, when there are problems in executing the test corresponding to the target test environment, it means that there are errors in the same version of the code for the current test. In order to ensure the quality and stability of the software, these errors need to be eliminated in a timely manner, and a test report is generated. The test report includes information about the lines of code with errors, and software developers can perform troubleshooting in a timely manner based on these lines of code information.

[0065] 205. Send the code corresponding to the current test in the target test environment module to the next test environment module in the test execution sequence, so that the next test environment module executes the corresponding test.

[0066] Specifically, when the test corresponding to the target test environment passes, it means that there are no errors in the same version of the code for the current test, and the quality and stability of the software are high. In order to promptly advance the software development process, the code corresponding to the current test needs to be sent to the next test environment module in the test execution order, so that the next test environment module can perform the corresponding test. In addition, it should be noted that when pushing to the next test environment module, in order to let the software developer know the test progress in a timely manner, a test progress reminder can be issued to the software developer.

[0067] Thirdly, based on Figure 1 or Figure 2 Another embodiment of the present disclosure also provides a software testing system, such as Figure 4 As shown, the system mainly includes:

[0068] N systems 40 related to software development; at least one test environment module is deployed in each system 40 related to software development; each of the test environment modules stores the codes of various versions developed by the corresponding system 40; different types of test environment modules perform different tests; N≥1

[0069] Each of the systems 40 is used to determine the target system involved in the current test in each system when any target test environment module in the test environment modules deployed by itself needs to execute a test; and rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module.

[0070] The software testing system provided by the embodiments of the present disclosure deploys corresponding test environment modules in each system related to software development, and each test environment module stores the codes of each version developed by the corresponding system. When any target test environment module in any system needs to perform a test, the target system involved in the current test is determined in each system. The test corresponding to the target test environment module is executed by relying on the code of the same version for the current test in the test environment module corresponding to the target test environment module in each target system. It can be seen that the embodiments of the present disclosure realize the effective management of each version of code on the basis of using multiple test environment modules to realize the separation of multiple test environments, reduce the conflict of each version of code when developing and testing the software, and thus improve the efficiency of software development and testing.

[0071] In some embodiments, the system 40 includes a local system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development;

[0072] The local system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test related to the independent development of software corresponding to the target test environment module;

[0073] Alternatively, the local system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute tests related to local collaborative development of software corresponding to the target test environment.

[0074] In some embodiments, the test environment module related to independent software development includes: a development environment module, a test environment module and a simulation environment module; the simulation environment module stores codes that have passed the test and are in a stable version state;

[0075] The local system is used to rely on the same version of code for the current test in the simulation environment module corresponding to the target test environment module in each target system, and execute the test related to the independent development of software corresponding to the target test environment module.

[0076] In some embodiments, the local system includes: a first local system, a second local system, and a third local system dependent on the second local system;

[0077] The first local system and the second local system are respectively used to rely on the same version of code for the current test in the simulation environment module corresponding to the target test environment module in the third local system, and execute tests related to independent software development corresponding to the target test environment module.

[0078] For example, Figure 3 As shown, local system 32 is the third local system, and local system 31 is the second local system. Local system 32 depends on local system 31. When the target test environment module is a module related to independent software development in the offline subsystem of local system 31 (any one of the development environment module, test environment module, multi-terminal test module and simulation environment module), the determined target system is local system 32 (local system 31 depends on local system 30), then it can be seen from track B that the same version of the code for the current test in the simulation environment module corresponding to the target test environment module in the local system 32 is relied on to execute the test related to independent software development corresponding to the target test environment module.

[0079] In some embodiments, the system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development;

[0080] The out-of-domain system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the first out-of-domain system of each target system, to execute tests related to independent software development corresponding to the target test environment module.

[0081] In some embodiments, the system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development;

[0082] The out-of-domain system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and execute tests related to out-of-domain collaborative development of software corresponding to the target test environment module.

[0083] In some embodiments, the local system includes an online subsystem and an offline subsystem; a test environment module related to independent software development is deployed in the online subsystem; and a test environment module related to collaborative software development is deployed in the offline subsystem.

[0084] In some embodiments, the N systems related to software development are all systems involved in the vehicle system development process.

[0085] In some embodiments, each of the systems is also used to determine whether the same version of code for the current test exists in the test environment modules corresponding to the target test environment modules in each target system; if so, the same version of code for the current test is extracted from the test environment modules corresponding to the target test environment in each target system, and the test corresponding to the target test environment module is executed using the extracted same version of code for the current test; otherwise, a prompt message indicating that the test cannot be executed is issued; the prompt message carries an identification that there is no test environment module with the same version of code for the current test and an identification of the target system where the test environment module with the same version of code for the current test is located.

[0086] In some embodiments, each of the systems is further configured to generate a test report when there is a problem in executing the test corresponding to the target test environment module; the test report includes information about the code lines where errors occur.

[0087] In some embodiments, each of the systems, when the test corresponding to the target test environment module is executed and passes, sends the code corresponding to the current test in the target test environment module to the next test environment module in the test execution order, so that the next test environment module can execute the corresponding test.

[0088] The software testing system provided in the embodiment of the third aspect can be used to execute the software testing method provided in the embodiment of the first aspect or the second aspect. The relevant meaning and specific implementation methods can be found in the relevant descriptions in the embodiments of the first aspect or the second aspect and will not be described in detail here.

[0089] In a fourth aspect, an embodiment of the present disclosure provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the software testing method described in the first aspect or the second aspect.

[0090] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0091] In a fifth aspect, an embodiment of the present disclosure provides a human-computer interaction device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the software testing method described in the first aspect or the second aspect is executed.

[0092] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0093] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0094] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0097] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0098] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0099] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0100] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0101] It should be understood by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0102] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A software testing method, characterized in that: A system used for software development to test software, the method comprising: Deploy at least one test environment module in each system related to software development; each of the test environment modules stores the codes of each version developed by the corresponding system; different types of test environment modules perform different tests; When any target test environment module in the test environment modules deployed by any of the systems needs to execute a test, determining a target system involved in the current test in each system; The target test environment module includes at least one of a development environment module, a test environment module, a multi-terminal test environment module, a simulation environment module, a performance test environment module, a pre-release environment module and a production environment module, and the target system includes only a local system or only an out-of-domain system or both a local system and an out-of-domain system. The test corresponding to the target test environment module is executed depending on the same version of the code for the current test in the test environment module corresponding to the target test environment module in each target system.

2. The method according to claim 1, characterized in that At least one test environment module deployed in the system includes a set test execution order; The test execution order is: for the same version of code, the test environment module located in the previous position in the test execution order executes the corresponding test on the code, and when the test passes, the test environment module located in the next position executes the corresponding test on the code.

3. The method according to claim 2, characterized in that The codes stored in each of the test environment modules are codes stored when the test environment module executes its own corresponding test and the test passes.

4. The method according to claim 1, characterized in that: The system includes a local system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; When the target test environment module is a test environment module related to independent software development, the step of relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module includes: Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, the test related to the independent development of the software corresponding to the target test environment module is executed.

5. The method according to claim 4, characterized in that The test environment module related to independent software development includes: a development environment module, a test environment module and a simulation environment module; the simulation environment module stores codes that have passed the test and are in a stable version state; When the target test environment module is a development environment module, a test environment module, or a simulation environment module, the test related to the independent development of software corresponding to the target test environment module is executed by relying on the same version code for the current test in the test environment module corresponding to the target test environment module in each target system, including: Relying on the same version of code for the current test in the simulation environment module corresponding to the target test environment module in each target system, the test related to the independent development of the software corresponding to the target test environment module is executed.

6. The method according to claim 1, characterized in that The system includes a local system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; When the target test environment module is a test environment module related to software collaborative development, the step of relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module includes: Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system, the test related to the local collaborative development of software corresponding to the target test environment is executed.

7. The method according to claim 1, characterized in that The system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development; When the target test environment module is a test environment module related to independent software development, and the target system includes a local system and an external system, the method of relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module includes: Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the out-of-domain system of each target system, execute the tests related to independent software development corresponding to the target test environment module.

8. The method according to claim 1, characterized in that The system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development; When the target test environment module is a test environment module related to software collaborative development in an out-of-domain system, and the target system includes a local system, the method of relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module includes: Relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, the test related to the collaborative development outside the software domain corresponding to the target test environment module is executed.

9. The method according to claim 8, characterized in that The test environment module related to software collaborative development includes: at least one of a performance test environment module, a pre-release environment module and a production environment module; the production environment module stores code in a releasable version state; When the target test environment module is an environment test environment module related to software collaborative development in an out-of-domain system, the test related to software out-of-domain collaborative development corresponding to the target test environment module is executed by relying on the same version code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, including: Relying on the same version of code for the current test in the production environment module corresponding to the target test environment module in each target system, the test related to the collaborative development outside the software domain corresponding to the target test environment module is executed.

10. The method according to any one of claims 4, 6, 7 and 8, characterized in that: The local system includes an online subsystem and an offline subsystem; a test environment module related to independent software development is deployed in the online subsystem; and a test environment module related to collaborative software development is deployed in the offline subsystem.

11. The method according to claim 1, characterized in that: The method of relying on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module includes: Determine whether the test environment modules corresponding to the target test environment modules in each target system all have the same version of code for the current test; If so, extracting the same version code for the current test from the test environment module corresponding to the target test environment in each target system, and executing the test corresponding to the target test environment module using the extracted same version code for the current test; Otherwise, a prompt message indicating that the test cannot be executed is issued; the prompt message carries an identification that there is no test environment module for the same version code as the current test and an identification of the target system where the test environment module for the same version code as the current test is located.

12. The method according to claim 1, characterized in that After executing the test corresponding to the target test environment module by relying on the same version code for the current test in the test environment module corresponding to the target test environment module in each target system, the method further comprises: When there is a problem in executing the test corresponding to the target test environment module, a test report is generated; the test report includes information about the code lines where the error occurs.

13. The method according to claim 1, characterized in that At least one test environment module deployed in the system has a specific test execution order; then the method further comprises: When the test corresponding to the target test environment module is executed successfully, the code corresponding to the current test in the target test environment module is sent to the next test environment module in the test execution order, so that the next test environment module can execute the corresponding test.

14. A software testing system, characterized in that: include: N systems related to software development; At least one test environment module is deployed in each system related to software development; each of the test environment modules stores the codes of various versions developed by the corresponding system; different types of test environment modules perform different tests; Each of the systems is used to determine the target system involved in the current test in each system when any target test environment module in the test environment modules deployed by itself needs to execute a test; the target test environment module includes at least one of a development environment module, a test environment module, a multi-terminal test environment module, a simulation environment module, a performance test environment module, a pre-release environment module and a production environment module, and the target system includes only a local system or only an external system or both a local system and an external system, and relies on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test corresponding to the target test environment module.

15. The software testing system according to claim 14, characterized in that: The system includes a local system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; The local system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute the test related to the independent development of software corresponding to the target test environment module; Alternatively, the local system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in each target system to execute tests related to local collaborative development of software corresponding to the target test environment.

16. The software testing system according to claim 15, characterized in that: The test environment module related to independent software development includes: a development environment module, a test environment module and a simulation environment module; the simulation environment module stores codes that have passed the test and are in a stable version state; The local system is used to rely on the same version of code for the current test in the simulation environment module corresponding to the target test environment module in each target system, and execute the test related to the independent development of software corresponding to the target test environment module.

17. The software testing system according to claim 16, characterized in that: The local system includes: a first local system, a second local system and a third local system dependent on the second local system; The first local system and the second local system are respectively used to rely on the same version of code for the current test in the simulation environment module corresponding to the target test environment module in the third local system, and execute tests related to independent software development corresponding to the target test environment module.

18. The software testing system according to claim 14, characterized in that: The system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development; The out-of-domain system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the first out-of-domain system of each target system, to execute tests related to independent software development corresponding to the target test environment module.

19. The software testing system according to claim 14, characterized in that: The system includes a local system and an out-of-domain system; the local system is deployed with a test environment module related to independent software development and a test environment module related to collaborative software development; the out-of-domain system is deployed with a test environment module related to collaborative software development; The out-of-domain system is used to rely on the same version of code for the current test in the test environment module corresponding to the target test environment module in the local system of each target system, and execute tests related to out-of-domain collaborative development of software corresponding to the target test environment module.

20. The software testing system according to any one of claims 15 to 19, characterized in that: The local system includes an online subsystem and an offline subsystem; a test environment module related to independent software development is deployed in the online subsystem; and a test environment module related to collaborative software development is deployed in the offline subsystem.

21. The software testing system according to any one of claims 14 to 19, characterized in that: The N systems related to software development are all systems involved in the development process of the vehicle system.

22. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the software testing method according to any one of claims 1 to 13.

23. A human-computer interaction device, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the software testing method described in any one of claims 1 to 13 is executed.