Network service test deployment method, device, equipment and readable storage medium

By obtaining network service description files and testing cases in the deployment system, generating archive files and sending to the test system, automated network service testing is realized, the existing test methods are complex and inefficient, and the test efficiency is improved.

CN114338486BActive Publication Date: 2025-01-24CHINA MOBILE COMM LTD RES INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011064396.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-30
Publication Date
2025-01-24
Estimated Expiration
2040-09-30

AI Technical Summary

Technical Problem

The testing methods of existing network services are complex and require manual participation, resulting in inefficient testing.

Method used

By obtaining network service description files and testing cases in the deployment system, generating network service description archive files, and sending them to the test system, automatic extraction and loading test cases, triggering test execution.

Benefits of technology

Testing can be completed without manual participation, which improves testing efficiency and simplifies the deployment and testing process of network services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338486B_ABST
    Figure CN114338486B_ABST
Patent Text Reader

Abstract

The present invention discloses a network service test deployment method, device, equipment and readable storage medium, which relates to the field of communication technology, in order to improve test efficiency. The method comprises: obtaining a network service description file and a test case corresponding to the network service; obtaining a network service description archive file using the network service description file and the test case; sending the network service description archive file to a test system, so that the test system extracts and loads the test case, and triggering a test of the test case according to the network service description archive file. The embodiment of the present invention can improve test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a test deployment method, device, equipment and readable storage medium for network services. Background Art

[0002] In NFV (Network Functions Virtualization) networks, network device functions are implemented through software, which enables flexible sharing of infrastructure resources. After the introduction of virtual network functions (VNFs), network services (NS) can be composed of physical network functions (PNFs), virtual network functions (VNFs), and virtual links (VLs). After the network service is normally deployed in the virtual resource environment, it is also necessary to test the functions and performance of the deployed network service.

[0003] The existing network service testing method is generally to test the network service by a dedicated test system after the network service is deployed. Before the test is executed, the test system needs to preload the test case for the network service (including test scripts, test case description files, test configuration files, etc.), and collect and analyze the test results after the execution is completed. After the test result indicates success, it means that the network service function is normal, and the network service can provide services normally.

[0004] In existing implementations, the network service deployment system and the network service test system are usually two separate systems, and the network service design deployment and test case loading and execution are performed separately. After the network service design deployment is completed, testers need to intervene to manually confirm and extract the service instance information deployed by the network service deployment system, and then select the test case corresponding to the service in the test system to initiate the test.

[0005] It can be seen from this that the existing implementation process is complicated and the testing efficiency is low due to the need for human participation. Summary of the invention

[0006] The embodiments of the present invention provide a network service test deployment method, device, equipment and readable storage medium to improve test efficiency.

[0007] In a first aspect, an embodiment of the present invention provides a network service test deployment method, which is applied to a deployment system, including:

[0008] Obtain the network service description file and the test cases corresponding to the network service;

[0009] Obtaining a network service description archive file using the network service description file and the test case;

[0010] The network service description archive file is sent to a test system, so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file.

[0011] Wherein, the obtaining of a network service description archive file by using the network service description file and the test case comprises:

[0012] Archive the network service and the test case into Tests to obtain the network service description archive file.

[0013] The step of sending the network service description archive file to the test system includes:

[0014] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0015] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the network service description archive file is sent to the test system.

[0016] The triggering of the test case test according to the network service description archive file includes:

[0017] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0018] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, a test of the test case is triggered.

[0019] Wherein, triggering the test of the test case includes:

[0020] deploying the network service;

[0021] determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service;

[0022] In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system;

[0023] The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

[0024] Wherein, the method further comprises:

[0025] In a case where the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, the network service is deployed.

[0026] Wherein, the method further comprises:

[0027] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, adding a first identifier, wherein the first identifier is used to indicate a test mode;

[0028] In the case that the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, a second identifier is added, where the second identifier is used to indicate a normal deployment mode.

[0029] In a second aspect, an embodiment of the present invention provides a network service test deployment method, which is applied to a test system, including:

[0030] Receiving a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases;

[0031] Extracting and loading test cases according to the network service description archive file;

[0032] According to the triggering of the deployment system, the test is executed using the test case.

[0033] The step of extracting and loading test cases according to the network service description archive file includes:

[0034] Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0035] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library;

[0036] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0037] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0038] In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

[0039] In a third aspect, an embodiment of the present invention provides a network service test deployment device, which is applied to a deployment system, including:

[0040] A first acquisition module is used to acquire a network service description file and a test case corresponding to the network service;

[0041] A second acquisition module, used to obtain a network service description archive file using the network service description file and the test case;

[0042] The first processing module is used to send the network service description archive file to the test system, so that the test system extracts and loads the test case, and triggers the test of the test case according to the network service description archive file.

[0043] The second acquisition module is used to archive the network service description file and the test case file Tests to obtain the network service description archive file.

[0044] Wherein, the first processing module includes:

[0045] A first determination submodule, used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0046] The first sending submodule is used to send the network service description archive file to the test system when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files.

[0047] Wherein, the first processing module includes:

[0048] A second determination submodule is used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0049] The first trigger submodule is used to trigger the test of the test case when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files.

[0050] Wherein, the first trigger submodule includes:

[0051] A first deployment unit, configured to deploy the network service;

[0052] A first determining unit, configured to determine whether the test system includes a first target test case, wherein an identifier of a network service corresponding to the first target test case is an identifier of the network service;

[0053] A first acquisition unit, configured to acquire a test case list of the network service from the test system when the test system includes the first target test case;

[0054] The first trigger unit is used to trigger the test system to execute the test cases in the test case list to obtain the test case execution results.

[0055] Wherein, the first trigger submodule further includes:

[0056] The second deployment unit is configured to deploy the network service when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files.

[0057] The device further comprises: an adding module, which is used to:

[0058] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, adding a first identifier, wherein the first identifier is used to indicate a test mode;

[0059] In the case that the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, a second identifier is added, where the second identifier is used to indicate a normal deployment mode.

[0060] In a fourth aspect, an embodiment of the present invention provides a network service test deployment device, which is applied to a test system, including:

[0061] A first receiving module is used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases;

[0062] A first processing module, configured to extract and load test cases according to the network service description archive file;

[0063] The first test module is used to execute the test using the test case according to the trigger of the deployment system.

[0064] Wherein, the first processing module includes:

[0065] A first determination submodule, used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0066] A second determination submodule is used to determine whether there is a test case corresponding to the identifier of the network service in the test case library when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files;

[0067] The first processing submodule is configured to, when a test case corresponding to the identifier of the network service exists in the test case library:

[0068] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0069] The second processing submodule is used to parse the test case description file in the Tests directory and load the test cases in the Tests directory into the test case library when there is no test case corresponding to the identifier of the network service in the test case library.

[0070] In a fifth aspect, an embodiment of the present invention provides a network service test deployment device, which is applied to a deployment system and includes a processor and a transceiver:

[0071] The processor is used to obtain a network service description file and a test case corresponding to the network service; obtain a network service description archive file using the network service description file and the test case; send the network service description archive file to a test system so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file.

[0072] The processor is further used to archive the network service description file and the test case file Tests to obtain the network service description archive file.

[0073] The processor is also used to determine whether the network service description archive file includes the Tests directory of the network service and whether the Tests directory includes test-related files; if the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, the network service description archive file is sent to the test system.

[0074] Wherein, the processor is further used for:

[0075] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0076] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, a test of the test case is triggered.

[0077] Wherein, the processor is further used for:

[0078] deploying the network service;

[0079] determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service;

[0080] In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system;

[0081] The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

[0082] The processor is further configured to: deploy the network service when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files.

[0083] In which, the processor is also used to: add a first identifier when the network service description archive file includes a Tests directory for the network service and the Tests directory includes test-related files, and the first identifier is used to indicate a test mode; and add a second identifier when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, and the second identifier is used to indicate a normal deployment mode.

[0084] In a sixth aspect, an embodiment of the present invention further provides a network service test deployment device, which is applied to a test system and includes a processor and a transceiver:

[0085] The transceiver is used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases;

[0086] The processor is used to extract and load test cases according to the network service description archive file; and execute tests using the test cases according to the triggering of the deployment system.

[0087] Wherein, the processor is further used for:

[0088] Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0089] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library;

[0090] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0091] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0092] In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

[0093] In the seventh aspect, an embodiment of the present invention further provides a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the method described in any one of the above aspects are implemented.

[0094] In an eighth aspect, an embodiment of the present invention further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the method described in any of the above aspects are implemented.

[0095] In the embodiment of the present invention, the deployment system packages the network service and the test case corresponding to the network service to obtain a network service description archive file, sends the network service description archive file to the test system, and triggers the test of the test case according to the network service description archive file. Therefore, using the solution of the embodiment of the present invention, the test can be completed without human participation, thereby improving the efficiency of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 This is one of the flow charts of the network service test deployment method provided by an embodiment of the present invention;

[0097] Figure 2 is a schematic diagram of a system provided by an embodiment of the present invention;

[0098] Figure 3 is a schematic diagram of a directory of a network service description archive file provided by an embodiment of the present invention;

[0099] Figure 4 This is the second flowchart of the test deployment method of the network service provided by the embodiment of the present invention;

[0100] Figure 5 This is a third flowchart of the test deployment method for network services provided by an embodiment of the present invention;

[0101] Figure 6 This is one of the structural diagrams of the network service test deployment device provided by an embodiment of the present invention;

[0102] Figure 7 This is a second structural diagram of the network service test deployment device provided by an embodiment of the present invention;

[0103] Figure 8 This is a third structural diagram of the network service test deployment device provided by an embodiment of the present invention;

[0104] Fig. 9 This is a fourth structural diagram of the network service test deployment device provided by an embodiment of the present invention;

[0105] Fig.10 It is a structural diagram of a communication device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0106] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0107] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0108] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0109] See also Figure 1 , Figure 1 is a flow chart of a network service test deployment method provided by an embodiment of the present invention, which is applied to a deployment system such as Figure 1 As shown, the following steps are included:

[0110] Step 101: Obtain a network service description file and a test case corresponding to the network service.

[0111] like Figure 2 As shown, it is a schematic diagram of the system of an embodiment of the present invention. The deployment system includes: a designer, an orchestrator, and a cloud infrastructure. In an embodiment of the present invention, a service packaging function can be added to the deployment system. The service packaging function can be independently set in the system or in the designer. Figure 2 , it is shown that the service packaging function is independently set. The role of the service packaging function is to archive the network service description file and the test case to obtain the network service description archive file, wherein the test case is archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

[0112] In actual application, the network service can be designed by a designer. The test case corresponding to the network service includes: a test case description file, a test script, a test configuration file, etc. The test case description file, the test script and the test configuration file can be developed in advance by a test developer.

[0113] Step 102: Obtain a network service description archive file using the network service description file and the test case.

[0114] Specifically, in this step, the service packaging function archives the network service description file and the test case to obtain the network service description archive file, wherein the test case is archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

[0115] In actual applications, after importing the test case files corresponding to the network service and the network service designed by the designer, the service packaging function archives all test case files to the Tests directory of the network service, and packages and outputs the network service description archive file. After packaging, the service packaging function distributes the network service description archive file to all downstream components that subscribe to the network service description archive file. The downstream components include the test system and the orchestrator. The meaning of distribution is to load the corresponding network service description archive file into the local storage of the downstream component.

[0116] Step 103: Send the network service description archive file to the test system, so that the test system extracts and loads the test case, and triggers the test of the test case according to the network service description archive file.

[0117] Specifically, in the process of sending the network service description archive file to the test system, the service packaging function determines whether the network service description archive file includes the Tests directory of the network service and determines whether the Tests directory includes test-related files (including test case description files, test scripts, test configuration files, etc.). In the case where the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, the service packaging function sends the network service description archive file to the test system. If not included, there is no need to send the network service description archive file to the test system. In this way, the load on the test system can be reduced.

[0118] Of course, in actual applications, the service packaging function can also directly send the network service description archive file to the test system. Then, correspondingly, the test system can make a judgment on the network service description archive file.

[0119] The directory of the network service description archive file can be as follows Figure 3 As shown. The Tests directory contains all test case related content, where conf is the test case configuration directory, data is the test case test data directory, scripts is the test case script directory, and schema is the test case description file directory. The test case files in each directory are associated with the test case related information through the unique test case identifier UUID (Universally Unique Identifier). Figure 3 The rest of the file is called a network service description file.

[0120] like Figure 2 As shown, in an embodiment of the present invention, a workflow function can be added to the deployment system. The workflow function can be independently set in the system or in the orchestrator. Figure 2 , a situation where the workflow function is independently set is shown. The workflow function is used to trigger the test of the test case, the deployment of the network service, etc.

[0121] In an embodiment of the present invention, in the process of triggering the test of the test case by the workflow function, the workflow function determines whether the network service description archive file includes a Tests directory of the network service and determines whether the Tests directory includes test-related files. In the case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the workflow function triggers the test of the test case.

[0122] In addition, the workflow triggering function may also add a first identifier when the network service description archive file includes a Tests directory for the network service and the Tests directory includes test-related files, and the first identifier is used to indicate the test mode (TESTING); and add a second identifier when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, and the second identifier is used to indicate the normal deployment mode (NORMAL).

[0123] In the process of triggering the test of the test case by the workflow function, the network service is first deployed to the orchestrator. After that, the workflow trigger function parses the network service description archive file to obtain the identifier of the network service, such as the name, etc. After that, it is determined whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service. Then, in the case where the test system includes the first target test case, a test case list of the network service is obtained from the test system, and the test system is triggered to execute the test cases in the test case list to obtain the test case execution results. In the case where the test system does not include the first target test case, the process can be terminated.

[0124] In the case where the network service description archive file does not include the Tests directory of the network service and the Tests directory includes test-related files, the workflow function can directly deploy the network service to the orchestrator. This process is the same as the deployment process in the prior art.

[0125] In the embodiment of the present invention, the deployment system packages the network service and the test case corresponding to the network service to obtain a network service description archive file, sends the network service description archive file to the test system, and triggers the test of the test case according to the network service description archive file. Therefore, using the solution of the embodiment of the present invention, the test can be completed without human participation, thereby improving the efficiency of the test.

[0126] See also Figure 4 , Figure 4 is a flow chart of a network service test deployment method provided by an embodiment of the present invention, which is applied to a test system, such as Figure 4 As shown, the following steps are included:

[0127] Step 401: Receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases.

[0128] See again Figure 2 The test system includes a loader, an executor, and a test case library. In an embodiment of the present invention, a parsing function may be added to the test system. The parsing function may be independently set in the system or may be located in the loader. Figure 2 In FIG. 1 , a situation where the parsing function is independently set is shown. The parsing function is used to parse the test case and load it into the test case library. Therefore, in this step, the parsing function may receive the network service description archive file sent by the deployment system.

[0129] Step 402: Extract and load test cases according to the network service description archive file.

[0130] If the deployment system has already determined whether the distributed network service description archive file includes the Tests directory of the network service and whether the Tests directory includes test-related files, that is, the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, then the parsing function can directly perform subsequent processing. Otherwise, the parsing function can first determine whether the network service description archive file includes the Tests directory of the network service and whether the Tests directory includes test-related files.

[0131] In the case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the parsing function can determine whether a test case corresponding to the identifier of the network service exists in the test case library.

[0132] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0133] (1) If the Tests directory contains a test case with the same identifier as a test case in the test case library, the parsing function may parse the test case description file in the Tests directory and use the test case in the Tests directory to update the test case in the test case library;

[0134] (2) If the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the parsing function can parse the test case description file in the Tests directory and load the test case in the Tests directory into the test case library.

[0135] In the case that there is no test case corresponding to the identifier of the network service in the test case library, the parsing function can parse the test case description file in the Tests directory and load the test case in the Tests directory into the test case library.

[0136] Step 403: Execute the test using the test case according to the trigger of the deployment system.

[0137] In the embodiment of the present invention, the deployment system packages the network service and the test case corresponding to the network service to obtain a network service description archive file, sends the network service description archive file to the test system, and triggers the test of the test case according to the network service description archive file. Therefore, using the solution of the embodiment of the present invention, the test can be completed without human participation, thereby improving the efficiency of the test.

[0138] In an embodiment of the present invention, test cases and network service components VNF / PNF, etc. are used as unified inputs of the deployment system. After the designer completes the design of the network service, it is repackaged through the service packaging function to complete the association between the corresponding network service and the test case, and the packaged output network service description archive file is distributed to the workflow function newly added to the service deployment system and the parsing function of the test system respectively. The deployment of the service and the triggering execution of the test are completed through the unified arrangement of the workflow function, thereby simplifying the deployment and testing process of the network service and improving the testing efficiency.

[0139] See also Figure 5 , Figure 5 1 is a flow chart of a method for testing and deploying a network service provided by an embodiment of the present invention. Figure 5 As shown, the following steps are included:

[0140] Step 501: The designer designs the network service and imports the test case.

[0141] Specifically, network service components such as VNF and PNF are imported into the designer to complete the design of the network service.

[0142] Step 502: The service packaging function packages the network service and the test case into a network service description archive file.

[0143] Specifically, the test cases corresponding to the network service include: test case description files, test scripts, test configuration files, etc. Among them, the test case description files, test scripts and test configuration files can be developed in advance by test developers. The service packaging function archives the network service description file and the test cases to obtain the network service description archive file, wherein the test cases are archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

[0144] Step 503: The service packaging function distributes the network service description archive file to the parsing function and the workflow function.

[0145] The service packaging function determines whether the network service description archive file includes the Tests directory of the network service and whether the Tests directory includes test-related files. If it does, the network service description archive file is distributed to the parsing function, otherwise, the process can be terminated.

[0146] Step 504: The parsing function parses the network service description archive file and processes it.

[0147] The parsing function may first determine whether the network service description archive file includes a Tests directory for the network service and determine whether the Tests directory includes test-related files.

[0148] In the case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the parsing function can determine whether a test case corresponding to the identifier of the network service exists in the test case library.

[0149] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0150] (1) If the Tests directory contains a test case with the same identifier as a test case in the test case library, the parsing function may parse the test case description file in the Tests directory and use the test case in the Tests directory to update the test case in the test case library;

[0151] (2) If the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the parsing function can parse the test case description file in the Tests directory and load the test case in the Tests directory into the test case library.

[0152] In the case that there is no test case corresponding to the identifier of the network service in the test case library, the parsing function can parse the test case description file in the Tests directory and load the test case in the Tests directory into the test case library.

[0153] Step 505: The workflow function determines a processing method according to the network service description archive file.

[0154] In the process of triggering the test case test by the workflow function, first determine whether the network service description archive file includes the Tests directory of the network service and determine whether the Tests directory includes test-related files. If the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, it is marked as TESTING test mode, otherwise it is marked as NORMAL normal deployment mode.

[0155] In the NORMAL deployment mode, the workflow function only needs to interact with the orchestrator to complete the network service deployment, and does not need to interact with the test system.

[0156] In the TESTING test mode, after the workflow function interacts with the orchestrator to complete the network service deployment, it also includes: parsing the network service description archive file to obtain the identifier of the network service, such as an identifier, etc. Afterwards, determine whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service. Then, if the test system includes the first target test case, obtain a test case list for the network service from the test system, and trigger the test system to execute the test cases in the test case list to obtain the test case execution results. If the test system does not include the first target test case, the process can be terminated.

[0157] For example, the workflow function obtains the nsdName of the network service by parsing the distributed network service description archive file, and queries whether the test system contains test cases for the network service name nsdName. If there are corresponding test cases and the test cases are loaded, the list of test cases corresponding to the network service is obtained, and the test cases are called in sequence for execution, and the execution results of all test cases are recorded. If the test system does not contain the test case corresponding to the network service with the same nsdName, it indicates that the network service test verification is not required, the workflow ends, and the default service is available.

[0158] It can be seen from the above description that, by using the solution of the embodiment of the present invention, the test case can be effectively associated with the network service in the design state, and the processing entry can be unified. Through the concept and judgment method of the normal deployment mode and the test deployment mode of the network service, the existing process can be compatible with the original independent deployment and testing method, and the automatic series connection and execution of the network service deployment and test process can be realized.

[0159] By using the solution of the embodiment of the present invention, it is possible to complete the effective association between network services and test cases in the design state, and simultaneously complete the automatic connection of the processes of the two separate systems, the service deployment system and the test system, which can reduce human participation and human errors, simplify the steps of network service deployment testing, and also make the entire test process more flexible and automated. At the same time, the solution of the embodiment of the present invention is for the same network service upgrade, and iterative test scenarios are performed. Test cases can be reused, and test cases can be flexibly iterated to increase, reducing unnecessary test system loader workload and improving test efficiency.

[0160] The embodiment of the present invention also provides a network service test deployment device, which is applied to the deployment system. Figure 6 , Figure 6 The structure diagram of the network service test deployment device provided by the embodiment of the present invention is as follows. Since the principle of solving the problem by the network service test deployment device is similar to the network service test deployment method in the embodiment of the present invention, the implementation of the network service test deployment device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0161] like Figure 6 As shown, the test deployment device 600 for network services includes: a first acquisition module 601, used to acquire a network service description file and a test case corresponding to the network service; a second acquisition module 602, used to obtain a network service description archive file using the network service description file and the test case; a first processing module 603, used to send the network service description archive file to a test system, so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file.

[0162] The second acquisition module is used to archive the network service description file and the test case to obtain the network service description archive file.

[0163] Wherein, the first processing module includes:

[0164] A first determination submodule, used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0165] The first sending submodule is used to send the network service description archive file to the test system when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files.

[0166] Wherein, the first processing module includes:

[0167] A second determination submodule is used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0168] The first trigger submodule is used to trigger the test of the test case when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files.

[0169] Wherein, the first trigger submodule includes:

[0170] A first deployment unit, configured to parse the network service description archive file to obtain an identifier of the network service;

[0171] A first determining unit, configured to determine whether the test system includes a first target test case, wherein an identifier of a network service corresponding to the first target test case is an identifier of the network service;

[0172] A first acquisition unit, configured to acquire a test case list of the network service from the test system when the test system includes the first target test case;

[0173] The first trigger unit is used to trigger the test system to execute the test cases in the test case list to obtain the test case execution results.

[0174] Wherein, the first trigger submodule further includes:

[0175] The second deployment unit is configured to deploy the network service when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files.

[0176] The device further comprises: an adding module, which is used to:

[0177] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, adding a first identifier, wherein the first identifier is used to indicate a test mode;

[0178] In the case that the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, a second identifier is added, where the second identifier is used to indicate a normal deployment mode.

[0179] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0180] The embodiment of the present invention also provides a network service test deployment device, which is applied to a test system. Figure 7 , Figure 7 The structure diagram of the network service test deployment device provided by the embodiment of the present invention is as follows. Since the principle of solving the problem by the network service test deployment device is similar to the network service test deployment method in the embodiment of the present invention, the implementation of the network service test deployment device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0181] like Figure 7 As shown, the test deployment device 700 for network services includes: a first receiving module 701, used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases; a first processing module 702, used to extract and load test cases according to the network service description archive file; and a first testing module 703, used to execute tests using the test cases according to the triggering of the deployment system.

[0182] Wherein, the first processing module includes:

[0183] A first determination submodule, used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0184] A second determination submodule is used to determine whether there is a test case corresponding to the identifier of the network service in the test case library when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files;

[0185] The first processing submodule is configured to, when a test case corresponding to the identifier of the network service exists in the test case library:

[0186] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0187] The second processing submodule is used to parse the test case description file in the Tests directory and load the test cases in the Tests directory into the test case library when there is no test case corresponding to the identifier of the network service in the test case library.

[0188] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0189] The embodiment of the present invention also provides a network service test deployment device, which is applied to the deployment system. Figure 8 , Figure 8 The structure diagram of the network service test deployment device provided by the embodiment of the present invention is as follows. Since the principle of solving the problem by the network service test deployment device is similar to the network service test deployment method in the embodiment of the present invention, the implementation of the network service test deployment device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0190] like Figure 8 As shown, the network service test deployment device 800 includes: a processor 801 and a transceiver 802 .

[0191] The processor 801 is used to obtain a network service description file and a test case corresponding to the network service; obtain a network service description archive file using the network service description file and the test case; send the network service description archive file to a test system so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file.

[0192] The processor 801 is further used to archive the network service description file and the test case to obtain the network service description archive file, wherein the test case is archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

[0193] The processor is also used to determine whether the network service description archive file includes the Tests directory of the network service and whether the Tests directory includes test-related files; if the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, the network service description archive file is sent to the test system.

[0194] The processor 801 is further configured to:

[0195] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0196] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, a test of the test case is triggered.

[0197] The processor 801 is further configured to:

[0198] Parsing the network service description archive file to obtain the identifier of the network service;

[0199] determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service;

[0200] In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system;

[0201] The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

[0202] The processor 801 is further configured to: deploy the network service when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files.

[0203] In which, the processor 801 is also used to: when the network service description archive file includes the Tests directory of the network service and the Tests directory includes test-related files, add a first identifier, and the first identifier is used to indicate the test mode; when the network service description archive file does not include the Tests directory of the network service and the Tests directory includes test-related files, add a second identifier, and the second identifier is used to indicate the normal deployment mode.

[0204] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0205] The embodiment of the present invention also provides a network service test deployment device, which is applied to a test system. Fig. 9 , Fig. 9The structure diagram of the network service test deployment device provided by the embodiment of the present invention is as follows. Since the principle of solving the problem by the network service test deployment device is similar to the network service test deployment method in the embodiment of the present invention, the implementation of the network service test deployment device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0206] like Fig. 9 As shown, the network service test deployment device 900 includes: a processor 901 and a transceiver 902 .

[0207] The transceiver 902 is used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases;

[0208] The processor 901 is used to extract and load test cases according to the network service description archive file; and execute tests using the test cases according to the trigger of the deployment system.

[0209] The processor 901 is further configured to:

[0210] Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0211] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library;

[0212] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0213] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0214] In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

[0215] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0216] The embodiment of the present invention also provides a communication device. Fig.10 As shown, the communication device of the embodiment of the present invention includes: a processor 1000, which is used to read the program in the memory 1020 and execute the following process:

[0217] Obtain the network service description file and the test cases corresponding to the network service;

[0218] Obtaining a network service description archive file using the network service description file and the test case;

[0219] The network service description archive file is sent to a test system, so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file.

[0220] The transceiver 1010 is configured to receive and send data under the control of the processor 1000 .

[0221] Among them, Fig.10 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1000 and memory represented by memory 1020. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1010 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1000 when performing operations.

[0222] The processor 1010 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.

[0223] The processor 1000 is responsible for managing the bus architecture and general processing, and the memory 1020 can store data used by the processor 1000 when performing operations.

[0224] The processor 1000 is further configured to read the program and execute the following steps:

[0225] The network service description file and the test case are archived to obtain the network service description archive file, wherein the test case is archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

[0226] The processor 1000 is further configured to read the program and execute the following steps:

[0227] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0228] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the network service description archive file is sent to the test system.

[0229] The processor 1000 is further configured to read the program and execute the following steps:

[0230] Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files;

[0231] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, a test of the test case is triggered.

[0232] The processor 1000 is further configured to read the program and execute the following steps:

[0233] Parsing the network service description archive file to obtain the identifier of the network service;

[0234] determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service;

[0235] In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system;

[0236] The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

[0237] The processor 1000 is further configured to read the program and execute the following steps:

[0238] In a case where the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, the network service is deployed.

[0239] The processor 1000 is further configured to read the program and execute the following steps:

[0240] When the network service description archive file includes a Tests directory for the network service and the Tests directory includes test-related files, a first identifier is added, and the first identifier is used to indicate the test mode; when the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, a second identifier is added, and the second identifier is used to indicate the normal deployment mode.

[0241] in, Fig.10 The communication device shown may be used in a deployment system.

[0242] See again Fig.10 , Fig.10 The communication device shown can also be applied to a test system. The communication device of the embodiment of the present invention includes: a processor 1000, which is used to read a program in a memory 1020 and execute the following process:

[0243] Receiving a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using network services and test cases;

[0244] Extracting and loading test cases according to the network service description archive file;

[0245] According to the triggering of the deployment system, the test is executed using the test case.

[0246] The transceiver 1010 is configured to receive and send data under the control of the processor 1000 .

[0247] The processor 1000 is further configured to read the program and execute the following steps:

[0248] Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files;

[0249] In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library;

[0250] In the case where a test case corresponding to the identifier of the network service exists in the test case library:

[0251] If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library;

[0252] In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

[0253] The device provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0254] The embodiment of the present invention also provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, each process of the test deployment method embodiment of the network service is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)), etc.

[0255] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0256] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal (which can be a mobile phone, computer, server, air conditioner, or network equipment, etc.) to execute the methods described in each embodiment of the present invention.

[0257] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A network service test deployment method, applied to a deployment system, characterized in that: include: Obtaining a network service description file and a test case corresponding to the network service, wherein the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; Obtaining a network service description archive file using the network service description file and the test case; Sending the network service description archive file to a test system, so that the test system extracts and loads the test case, and triggers testing of the test case according to the network service description archive file; The triggering of the test case test according to the network service description archive file includes: Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files; In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, triggering a test of the test case; Wherein, triggering the test of the test case includes: deploying the network service; Parsing the network service description archive file to obtain the identifier of the network service; determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service; In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system; The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

2. The method according to claim 1, characterized in that: The method of obtaining a network service description archive file by using the network service description file and the test case includes: The network service description file and the test case are archived to obtain the network service description archive file, wherein the test case is archived to the Tests directory of the network service description archive file and placed in the root directory of the network service.

3. The method according to claim 1, characterized in that The sending the network service description archive file to the test system includes: Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files, wherein the test-related files include at least a test case description file, a test script, and a test configuration file; In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, the network service description archive file is sent to the test system.

4. The method according to claim 1, characterized in that The method further comprises: In a case where the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, the network service is deployed.

5. The method according to claim 1, characterized in that The method further comprises: In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, adding a first identifier, wherein the first identifier is used to indicate a test mode; In the case that the network service description archive file does not include a Tests directory for the network service and the Tests directory includes test-related files, a second identifier is added, where the second identifier is used to indicate a normal deployment mode.

6. A network service test deployment method, applied to a test system, characterized in that: include: Receiving a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using a network service description file and a test case, and the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; Extracting and loading test cases according to the network service description archive file; Execute the test using the test case according to the trigger of the deployment system; The step of extracting and loading test cases according to the network service description archive file includes: Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files, wherein the test-related files at least include a test case description file, a test script, and a test configuration file; In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library; In the case where a test case corresponding to the identifier of the network service exists in the test case library: If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library; In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

7. A network service test deployment device, applied to a deployment system, characterized in that: include: A first acquisition module is used to acquire a network service description file and a test case corresponding to the network service, wherein the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; A second acquisition module, used to obtain a network service description archive file using the network service description file and the test case; A first processing module, configured to send the network service description archive file to a test system, so that the test system extracts and loads the test case, and triggers a test of the test case according to the network service description archive file; Wherein, the first processing module includes: A second determination submodule is used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files; A first trigger submodule, configured to trigger testing of the test case when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files; Wherein, the first trigger submodule includes: A unit for deploying the network service; A first deployment unit, configured to parse the network service description archive file to obtain an identifier of the network service; A first determining unit, configured to determine whether the test system includes a first target test case, wherein an identifier of a network service corresponding to the first target test case is an identifier of the network service; A first acquisition unit, configured to acquire a test case list of the network service from the test system when the test system includes the first target test case; The first trigger unit is used to trigger the test system to execute the test cases in the test case list to obtain the test case execution results.

8. A network service test deployment device, applied to a test system, characterized in that: include: A first receiving module is used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using a network service description file and a test case, and the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; A first processing module, configured to extract and load test cases according to the network service description archive file; A first test module, configured to execute a test using the test case according to a trigger of the deployment system; Wherein, the first processing module includes: A first determination submodule is used to determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files, wherein the test-related files at least include a test case description file, a test script, and a test configuration file; A second determination submodule is used to determine whether there is a test case corresponding to the identifier of the network service in the test case library when the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files; The first processing submodule is configured to, when a test case corresponding to the identifier of the network service exists in the test case library: If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library; The second processing submodule is used to parse the test case description file in the Tests directory and load the test cases in the Tests directory into the test case library when there is no test case corresponding to the identifier of the network service in the test case library.

9. A network service test deployment device, applied to a deployment system, comprising a processor and a transceiver, characterized in that: The processor is used to obtain a network service description file and a test case corresponding to the network service, wherein the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; obtain a network service description archive file using the network service description file and the test case; send the network service description archive file to a test system so that the test system extracts and loads the test case, and triggers a test of the test case according to the network service description archive file; Wherein, the processor is further used for: Determine whether the network service description archive file includes a Tests directory of the network service and determine whether the Tests directory includes test-related files; In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, triggering a test of the test case; Wherein, the processor is further used for: deploying the network service; Parsing the network service description archive file to obtain the identifier of the network service; determining whether the test system includes a first target test case, wherein the identifier of the network service corresponding to the first target test case is the identifier of the network service; In a case where the test system includes the first target test case, obtaining a test case list of the network service from the test system; The test system is triggered to execute the test cases in the test case list to obtain the test case execution results.

10. A network service test deployment device, applied to a test system, comprising a processor and a transceiver, characterized in that: The transceiver is used to receive a network service description archive file sent by a deployment system, wherein the network service description archive file is obtained by the deployment system using a network service description file and a test case, and the network service description file is obtained by importing network service component elements into a designer to complete the design of the network service; The processor is used to extract and load test cases according to the network service description archive file; and execute tests using the test cases according to the trigger of the deployment system; The processor is further configured to: Determine whether the network service description archive file includes a Tests directory of the network service and whether the Tests directory includes test-related files, wherein the test-related files at least include a test case description file, a test script, and a test configuration file; In a case where the network service description archive file includes a Tests directory of the network service and the Tests directory includes test-related files, determining whether a test case corresponding to the identifier of the network service exists in a test case library; In the case where a test case corresponding to the identifier of the network service exists in the test case library: If the Tests directory contains a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the test case library is updated using the test case in the Tests directory; if the Tests directory does not contain a test case with the same identifier as the test case in the test case library, the test case description file in the Tests directory is parsed, and the test case in the Tests directory is loaded into the test case library; In the case that the test case corresponding to the identifier of the network service does not exist in the test case library, the test case description file in the Tests directory is parsed, and the test cases in the Tests directory are loaded into the test case library.

11. A communication device, comprising: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the test deployment method for a network service as described in any one of claims 1 to 5; or to implement the steps in the test deployment method for a network service as described in claim 6.

12. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the program implements the steps in the test deployment method for a network service as claimed in any one of claims 1 to 5; or implements the steps in the test deployment method for a network service as claimed in claim 6.

Citation Information

Patent Citations

  • Test method, device, equipment, system and medium for operating system

    CN109491916A