Method and system for automatic testing of telecommunication tariffs

By designing standardized testing processes and unified test scenario templates, test cases are automatically generated, solving the automation problem of telecommunications tariff testing and achieving efficient and widespread automated testing of telecommunications tariff services.

CN116257425BActive Publication Date: 2026-06-19CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE INFORMATION TECHNOLOGY CO LTD
Filing Date
2021-12-10
Publication Date
2026-06-19

Smart Images

  • Figure CN116257425B_ABST
    Figure CN116257425B_ABST
Patent Text Reader

Abstract

This invention provides an automated testing method and system for telecommunications tariff services. The method includes: determining a standardized testing process for each tariff service based on its testing procedures; determining a test scenario template for the tariff service based on the standardized testing process; determining various test scenarios for the tariff service based on the test scenario template; determining test cases based on the tariff service to be tested and the various test scenarios; and performing automated testing on the tariff service to be tested based on the test cases. This invention is applied to the field of communication technology. By streamlining the testing processes for different types of tariff services, a standardized testing process is designed. Based on this standardized testing process, a unified test scenario template for tariff service testing is designed. Then, based on the test scenario template, different test scenarios supporting the tariff service are generated. Finally, test cases are automatically generated based on the tariff service to be tested and the various test scenarios, thus achieving automated testing of the tariff service to be tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to an automated testing method and system for telecommunications tariffs. Background Technology

[0002] Telecommunications tariffs are the basis for telecommunications operators to charge users. Due to users' sensitivity to costs, the accuracy of user billing is paramount in the construction of telecommunications service support systems. To retain existing users and attract new ones, operators introduce various new tariffs and preferential policies based on different user needs. This places higher demands on telecommunications service support systems, requiring extensive testing and verification before new tariffs and preferential policies go live to ensure the accuracy of user billing.

[0003] Currently, testing of telecommunications tariffs primarily relies on manual testing, supplemented by some automated testing capabilities. Manual testing is inefficient, and automated testing has limited coverage. Overall, the industry lacks universally applicable automated testing technologies for telecommunications tariffs. However, the automated testing technologies implemented in recent years for certain service functions mainly include the following:

[0004] One approach involves obtaining user information for the communication service based on the service to be tested and its pricing information; designing test case scripts based on the user's user type and package type, and pre-calculating pricing data as comparison data; executing the test case scripts to obtain pricing data from the test environment or production environment for comparison to confirm the correctness of the pricing; and statistically displaying the test pass rate and regression completion time after executing all test case scripts.

[0005] Another approach is to generate a test process for test cases based on the billing process of the business. The test process includes all execution steps of the billing process; match the corresponding billing scenario according to the billing process; retrieve call detail records (CDRs) from the detailed call detail record database of the billing system according to the billing scenario; and obtain the first billing data before pricing and the second billing data after pricing based on the CDRs; use the first billing data as the input of the test process and the second billing data as the output of the test process to generate test cases.

[0006] Telecommunications service tariffs are quite complex, characterized by their intricate pricing, diverse types, wide scope, and high billing accuracy. Existing automated testing methods mainly target the single function of batch pricing. In addition to batch pricing, there are also fixed fees, reminders, credit control, discounts, promotions, etc. Currently, there is no universal automated method that can support the testing of all telecommunications service tariffs. Summary of the Invention

[0007] The automated testing method and system for telecommunications tariffs provided by this invention are used to solve at least one of the above-mentioned problems in the prior art. By sorting out the testing process of different types of tariff services, a standardized testing process is designed, and a unified test scenario template for tariff service testing is designed based on this standardized testing process. Then, according to the test scenario template, different test scenarios supporting tariff services are generated, and test cases are automatically generated according to the tariff service to be tested and each test scenario, thereby realizing automated testing of the tariff service to be tested.

[0008] This invention provides an automated testing method for telecommunications tariffs, comprising:

[0009] Based on the testing procedures for each tariff service, a standardized testing procedure for the tariff service is determined.

[0010] Based on the standardized testing process, determine the test scenario template for the tariff service;

[0011] Based on the test scenario template, determine each test scenario for the tariff service;

[0012] Based on the tariff service to be tested and the various test scenarios, determine the test cases;

[0013] Based on the test cases, the tariff service to be tested is subjected to automated testing.

[0014] According to the automated testing method for telecommunications tariffs provided by the present invention, the step of determining the test scenario template for the tariff service based on the standardized testing process includes:

[0015] The various test steps in the standardized test process are parameterized to determine the test scenario template for the tariff service;

[0016] The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling.

[0017] According to the automated testing method for telecommunications tariffs provided by the present invention, the step of determining each test scenario of the tariff service based on the test scenario template includes:

[0018] The test scenario template is instantiated to determine each test scenario.

[0019] According to the present invention, an automated testing method for telecommunications tariffs is provided, wherein instantiating the test scenario template to determine each test scenario includes:

[0020] The test scenario template is instantiated in the following manner to determine each test scenario:

[0021] Determine the first parameter corresponding to the input type that needs to be set in the test scenario template;

[0022] Determine the second parameter corresponding to the preconditions that the test scenario template needs to set, and configure the first operation script for the second parameter;

[0023] Determine the third parameter corresponding to the expected settings that the test scenario template needs to be set;

[0024] Determine the required settings for the test scenario template and obtain the corresponding second operation script;

[0025] Determine the start / stop scripts corresponding to the process scheduling that need to be set for the test scenario template;

[0026] The first operation script is used to update the second parameter during the automated testing of the tariff service to be tested.

[0027] The second operation script is used to obtain the automated test results of the tariff service to be tested;

[0028] The start / stop script is used to start or stop the automated testing process of the tariff service to be tested.

[0029] According to the present invention, an automated testing method for telecommunications tariffs is provided, wherein determining test cases based on the tariff service to be tested and the various test scenarios includes:

[0030] Based on the tariff type of the tariff service to be tested, select the target test scenario for automated testing from the various test scenarios;

[0031] Based on the target test scenario, the test cases are determined.

[0032] The present invention also provides an automated testing system for telecommunications tariffs, comprising: a standardization module, a first determination module, a second determination module, a third determination module, and a test execution module;

[0033] The standardization module is used to determine the standardized testing process for each tariff service based on the testing process for each tariff service.

[0034] The first determining module is used to determine the test scenario template for the tariff service according to the standardized testing process;

[0035] The second determining module is used to determine each test scenario of the tariff service based on the test scenario template;

[0036] The third determining module is used to determine test cases based on the tariff service to be tested and the various test scenarios;

[0037] The test execution module is used to perform automated testing on the tariff service to be tested according to the test cases.

[0038] According to the automated testing system for telecommunications tariffs provided by the present invention, the first determining module is further configured to:

[0039] The various test steps in the standardized test process are parameterized to determine the scenario template for the tariff service test;

[0040] The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling.

[0041] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the above-described automated testing methods for telecommunications tariffs.

[0042] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the automated testing method for telecommunications tariffs as described above.

[0043] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described automated testing methods for telecommunications tariffs.

[0044] The automated testing method and system for telecommunications tariffs provided by this invention streamlines the testing processes for different types of tariff services, designs a standardized testing process, and designs a unified test scenario template for tariff service testing based on this standardized testing process. Then, based on the test scenario template, different test scenarios supporting tariff services are generated, and test cases are automatically generated based on the tariff service to be tested and each test scenario, thereby realizing automated testing of the tariff service to be tested. Attached Figure Description

[0045] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0046] Figure 1 This is one of the flowcharts of the automated testing method for telecommunications tariffs provided by the present invention;

[0047] Figure 2This is a schematic diagram of the test case generation process provided by the present invention;

[0048] Figure 3 This is the second flowchart of the automated testing method for telecommunications tariffs provided by the present invention;

[0049] Figure 4 This is a schematic diagram of the structure of the automated testing system for telecommunications tariffs provided by the present invention;

[0050] Figure 5 This is a schematic diagram of the physical structure of the electronic device provided by the present invention. Detailed Implementation

[0051] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0052] Automated testing methods for existing tariff services (such as telecommunications tariffs) can automate the testing of the pricing module, but they have limitations in execution:

[0053] 1. Limited support for test scenarios: Due to the relatively simple and fixed test case templates, it only supports the batch pricing scenario and cannot meet the testing needs of other billing processes, such as monthly billing, credit control, reminders, promotions, discounts, fixed fees, etc.

[0054] 2. The test case design process is not fully automated: Existing automated testing methods for tariff services only support partial automation of execution functions, but have not yet achieved automation of test case design.

[0055] 3. Inability to support batch pricing testing of multiple product packages: In reality, real users subscribe to a variety of product packages with different prices. Existing automated testing methods for package pricing only support testing when users subscribe to a single product package, and do not support testing when users subscribe to multiple product packages.

[0056] 4. High coupling with specific systems: The existing automated testing methods for tariff services are basically designed based on specific billing systems. They are closely connected to the database tables and related business interfaces of specific systems, making them unsuitable for other billing systems and unable to be widely applied.

[0057] Based on this, the present invention provides an automated testing method for telecommunications tariffs, which mainly consists of five aspects: standardized design of tariff testing processes, scenario template design, scenario template instantiation, automated test case generation, and test execution. Specifically: First, by streamlining the testing processes for different tariff services (such as wholesale pricing, fixed-rate, reminder, credit control, promotional, and preferential telecommunications tariff services), the testing processes are standardized to form a standard test scenario template. By instantiating the test scenario template, test scenarios supporting different telecommunications tariff services are generated, and test cases are automatically generated based on the attributes of each tariff. In the test case execution phase, automated test execution is completed by automatically filling in call detail records / message / table data parameters, specifically as follows:

[0058] Figure 1 This is one of the flowcharts of the automated testing method for telecommunications tariffs provided by the present invention, such as... Figure 1 As shown, the method includes:

[0059] S1. Based on the testing procedures for each tariff service, determine the standardized testing procedures for the tariff services;

[0060] S2. Determine the test scenario template for tariff services based on the standardized testing process;

[0061] S3. Based on the test scenario template, determine the test scenarios for each tariff service;

[0062] S4. Determine test cases based on the tariff services to be tested and each test scenario;

[0063] S5. Based on the test cases, perform automated testing on the tariff services to be tested.

[0064] It should be noted that the above method can be implemented by computer equipment.

[0065] Optionally, this invention was implemented during the testing of telecommunications tariff services. One characteristic of the telecommunications tariff service processing flow is that it has no interface support and is an operation flow in the system backend. The testing method is different from the testing of the front-end page.

[0066] First, by sorting out the testing processes (such as the billing testing process) for different tariff services (e.g., wholesale pricing, fixed fees, reminders, credit control, promotions, discounts, etc.), the testing process is standardized and a set of standardized testing processes applicable to different telecommunications tariff services is formed.

[0067] Secondly, based on this standardized testing process, a unified test scenario template applicable to different telecommunications tariff services is designed. Through flexible configuration of this test scenario template (such as database tables, scripts, and paths), various test scenarios supporting different telecommunications tariff services can be generated.

[0068] Next, select the corresponding test scenario based on the type of tariff service to be tested and automatically generate test cases.

[0069] Finally, a billing system can be designed based on the above process. After the user creates an execution task on the billing system and adds the test cases to be executed, the task will be automatically added to the task scheduler, and the billing system will complete the automated execution of the test cases to achieve automated testing of the tariff services to be tested.

[0070] The automated testing method for telecommunications tariffs provided by this invention designs a standardized testing process by sorting out the testing procedures for different types of tariff services, and designs a unified test scenario template for tariff service testing based on this standardized testing process. Then, based on the test scenario template, different test scenarios supporting tariff services are generated, and test cases are automatically generated based on the tariff service to be tested and each test scenario, thereby realizing automated testing of the tariff service to be tested.

[0071] Furthermore, in one embodiment, step S2 may specifically include:

[0072] S21. Parameterize each test step in the standardized test process to determine the test scenario template for tariff services;

[0073] The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling.

[0074] Optionally, by streamlining the testing processes for different telecommunications tariff services, a standardized testing process can be designed to be formed, applicable to different telecommunications tariff services. Specifically:

[0075] By sorting out and analyzing the existing testing processes for various telecommunications tariff services, the testing process for telecommunications tariff services can be divided into five testing stages: input type, preconditions, expected calculation settings, result acquisition, and process scheduling. In fact, each stage involves reading and writing relevant data.

[0076] By parameterizing each test stage in this standardized testing process, a unified test scenario template applicable to different telecommunications tariff services is designed. Through flexible configuration of this test scenario template (such as database tables, scripts, and paths), various test scenarios supporting different telecommunications tariff services can be generated. Specifically:

[0077] Based on the role of each testing step in the standardized testing process within the automated testing process, each testing step is parameterized, ultimately forming a unified test scenario template for different telecommunications tariff services to adapt to the testing of different types of telecommunications tariff services. The parameterization process for each testing step is as follows:

[0078] 1. Input Type: This testing phase mainly selects the input types for the test scenario of telecommunications tariff services (such as call detail records, messages, and table data). Subsequently, during the automated generation of test cases, key field information such as mobile phone number and routing group (RG) will be automatically filled into the selected call detail record / message / table data template based on the pre-configured call detail record / message / table data, thereby automatically generating the test call detail record / message / table data corresponding to the test cases.

[0079] 2. Prerequisites: This mainly involves constructing test data that meets the requirements, such as clearing dirty test data and resetting billing data (including but not limited to the remaining amount of free resources, the accumulated amount outside the plan, and the deductions outside the plan).

[0080] 3. Expected settings: Consistent with the expected field values ​​in the final generated test cases, ensuring that the test case automation module automatically calculates the expected result data.

[0081] 4. Result Acquisition: Obtain the actual values ​​of the relevant parameters set as expected in the billing system.

[0082] 5. Process Scheduling: Configure the billing script of the billing system so that the remote script of the billing system can be automatically invoked to perform billing when the test cases are executed.

[0083] The automated testing method for telecommunications tariffs provided by this invention streamlines the testing processes for different types of tariff services, designs a standardized testing process including five testing stages: input type, preconditions, expected calculation settings, result acquisition, and process scheduling. Based on this standardized testing process, a unified test scenario template for tariff service testing is designed. Then, based on the test scenario template, different test scenarios supporting the tariff services are generated, and test cases are automatically generated according to the tariff service under test and each test scenario. This achieves automated testing of the tariff service under test, with low coupling to specific systems and strong adaptability.

[0084] Furthermore, in one embodiment, step S3 may specifically include:

[0085] S31. Instantiate the test scenario template to determine each test scenario.

[0086] Furthermore, in one embodiment, step S31 may specifically include:

[0087] S311. Instantiate the test scenario template as follows to determine each test scenario:

[0088] Determine the first parameter corresponding to the input type that needs to be set in the test scenario template;

[0089] Determine the second parameter corresponding to the preconditions that need to be set for the test scenario template, and configure the first operation script for the second parameter;

[0090] Determine the third parameter corresponding to the expected settings required for the test scenario template;

[0091] Determine the required settings for the test scenario template and obtain the corresponding second operation script;

[0092] Determine the start and stop scripts corresponding to the process scheduling required for the test scenario template;

[0093] The first operation script is used to update the second parameter during the automated testing of the tariff service to be tested.

[0094] The second operation script is used to obtain the automated test results of the tariff service to be tested;

[0095] Start-stop scripts are used to start or stop the automated testing process of the tariff service to be tested.

[0096] Optionally, based on test scenario templates, different test scenarios can be designed by configuring the parameters of the test scenario templates. In fact, it not only supports testing of telecommunications service tariffs, but is also applicable to testing of other non-telecommunications services. The specific implementation is as follows:

[0097] The unified test scenario template for different telecommunications tariff services obtained above is instantiated. Specifically, by inputting the corresponding parameters into the test scenario template, a specific test scenario is formed. The instantiation process of the test scenario template is illustrated using a single-user batch pricing scenario as an example:

[0098] Determine the first parameter corresponding to the input type that needs to be set for the test scenario template. Specifically, set the first parameter of the input type required for the batch pricing service test scenario template, such as selecting call detail records (CDRs) and changing the service node selected for the CDR template.

[0099] Determine the second parameter corresponding to the preconditions required for the test scenario template, and configure the first operation script for the second parameter. Specifically: set the second parameter that the batch pricing service test scenario template needs to preset, and configure the relevant operation process script (i.e., the first operation script) for this second parameter. For example, preset the free resource usage amount used_value. The preset statement content of the first operation script is as follows:

[0100] Update CAbmFreeRes set used_value=? Where primary_key=?

[0101] Here, primary_key is the user's mobile phone number, and used_value is the usage amount. After being associated in this test phase, the actual value of the second parameter can be automatically filled in during the automated test case generation process to update the preset second parameter.

[0102] Determine the third parameter corresponding to the expected settings required for the test scenario template. Specifically, based on the analysis of the test scenario, set the third parameter that needs to be considered in the automated testing process of the batch pricing service. The value of this third parameter will be automatically generated based on the pricing information. For example, the expected field is the free resource usage amount used_value.

[0103] The second operation script retrieves the results required by the test scenario template. Specifically, based on the expected third parameter settings, a related operation script (i.e., the second operation script) is configured for the third parameter. This second script will retrieve the test result information of the automated testing of the batch pricing service, such as retrieving the expected value of the `used_value` field. The preset statement content of the second operation script is as follows:

[0104] Select used_value from CAbmFreeRes where primary_key=?

[0105] The primary_key user's mobile phone number is used in this test.

[0106] Determine the start and stop scripts corresponding to the process scheduling required for the test scenario template. Specifically: for test scenarios that require starting or stopping the system during the automated testing of batch pricing services, configure the relevant start and stop scripts here so that the automated test process can be automatically started or stopped during test execution.

[0107] The automated testing method for telecommunications tariffs provided by this invention designs a standardized testing process by streamlining the testing procedures for different types of tariff services. Based on this standardized testing process, a unified test scenario template for tariff service testing is designed, which can support tariff testing for multiple combinations of telecommunications tariffs. The test scenarios are more in line with actual applications. After selecting multiple combinations of telecommunications tariffs, the testing of tariffs for multiple combinations can be carried out by configuring the relevant parameters of the test scenario template. Then, the test scenario template is instantiated to generate different test scenarios that support tariff services. The test scenario design is flexible and the test scope is wider.

[0108] Furthermore, in one embodiment, step S4 may specifically include:

[0109] S41. Based on the tariff type of the tariff service to be tested, select the target test scenario for automated testing from various test scenarios;

[0110] S42. Determine test cases based on the target test scenario.

[0111] Optionally, such as Figure 2 As shown, in the automated testing of the tariff service under test, the process of generating test cases is actually the process of selecting and mapping the tariff service under test to various test scenarios (generated by instantiating test scenario templates, such as test scenario 1, test scenario 2, test scenario 3, and test scenario 4). The scenario to be tested (i.e., the target test scenario) is selected according to the tariff type of the tariff service under test. The corresponding test cases are automatically generated according to the type of the target test scenario. Data is pre-set according to the relevant configuration content in the scenario template instance of the test scenario, the script is started, the expected value and call detail record (CDR) usage of each test case are calculated, and key field parameters such as CDR / message / table data are filled back. The corresponding CDR / message / table data is constructed, and finally, the automated generation of test cases is achieved.

[0112] For example, the tariff service to be tested is a tariff service composed of multiple combined products a, b, and c. The test scenarios specifically include test scenarios 1-4. When product a selects test scenario 1 and test scenario 2, test case 1a and test case 2a are generated respectively; when product b selects test scenario 2 and test scenario 3, test case 2b and test case 3b are generated respectively; when product c selects test scenario 4, test case 4c is generated.

[0113] like Figure 3 As shown, in practical applications, this invention first standardizes the testing process by streamlining the testing procedures for different telecommunications tariff services, forming a standard test scenario template. By instantiating this template, test scenarios supporting different telecommunications tariff services are generated. Test cases are automatically generated based on the configuration parameters of each tariff, automating test case design and execution in the tariff testing process and truly achieving IT-driven replacement of human labor in testing. This invention supports testing of multiple combined product tariff services. When associating the tariff of the product under test with the parameterized test scenario, testers can select multiple products to execute tests on multiple combined product tariffs.

[0114] By streamlining the testing processes for different types of tariff services, a standard testing process was designed. Based on this standard process, a unified test scenario template was developed. Then, through flexible configuration of the test scenario template (database tables, scripts, paths, etc.), it can be instantiated into test scenarios supporting different tariff service testing processes (such as...). Figure 3 Test scenarios 1-3), then select the test scenario based on the type of tariff service to be tested and automatically generate test cases (e.g., ...). Figure 3 The test cases include 1a, 1b, 1c, 2b, 2c, 3a, and 3b. It supports testing scenarios for tariffs such as batch pricing, monthly billing, reminders, fixed fees, and discounts. Furthermore, it supports testing scenarios related to tariff services for multiple product combinations (e.g., Product 1-Product 3).

[0115] Users create execution tasks on the billing system (such as Task 1 and Task 2 in Project 1, Project 2, and Task 1 and Task 2 in Project 3), add the test cases to be executed, and then automatically add them to the task scheduler. The billing system then completes the automated execution of the test cases to achieve automated testing of the tariff services to be tested.

[0116] The automated testing method for telecommunications tariffs provided by this invention automatically prepares input data and sets expected data based on the combination of tariff services to be tested and test scenarios, through mapping tariffs to instantiated scenarios and according to the relevant parameter information configured in the instantiated scenarios, and automatically generates test cases according to the characteristics of the test scenarios, thereby automating the test case design process.

[0117] The automated testing system for telecommunications tariffs provided by this invention is described below. The automated testing system for telecommunications tariffs described below can be referred to in correspondence with the automated testing method for telecommunications tariffs described above.

[0118] Figure 4 This is a schematic diagram of the structure of the automated testing system for telecommunications tariffs provided by the present invention, as shown below. Figure 4 As shown, it includes:

[0119] Standardization module 410, first determination module 411, second determination module 412, third determination module 413 and test execution module 414;

[0120] Standardization module 410 is used to determine the standardized testing process for each tariff service based on the testing process for each tariff service.

[0121] The first determination module 411 is used to determine the test scenario template for tariff services according to the standardized testing process;

[0122] The second determining module 412 is used to determine each test scenario of the tariff service based on the test scenario template;

[0123] The third determination module 413 is used to determine test cases based on the tariff service to be tested and each test scenario;

[0124] Test execution module 414 is used to perform automated testing of the tariff service to be tested based on test cases.

[0125] The automated testing system for telecommunications tariffs provided by this invention designs a standardized testing process by sorting out the testing procedures for different types of tariff services, and designs a unified test scenario template for tariff service testing based on this standardized testing process. Then, based on the test scenario template, different test scenarios supporting tariff services are generated, and test cases are automatically generated based on the tariff service to be tested and each test scenario, thereby realizing automated testing of the tariff service to be tested.

[0126] Furthermore, in one embodiment, the first determining module 411 may also be specifically used for:

[0127] Parameterize each test step in the standardized testing process to determine the scenario template for tariff service testing;

[0128] The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling.

[0129] The automated testing system for telecommunications tariffs provided by this invention streamlines the testing processes for different types of tariff services, designs a standardized testing process that includes five testing stages: input type, preconditions, expected calculation settings, result acquisition, and process scheduling. Based on this standardized testing process, a unified test scenario template for tariff service testing is designed. Then, based on the test scenario template, different test scenarios supporting tariff services are generated, and test cases are automatically generated according to the tariff service under test and each test scenario. This achieves automated testing of the tariff service under test, with low coupling to specific systems and strong adaptability.

[0130] Furthermore, in one embodiment, the second determining module 412 may also be specifically used for:

[0131] Instantiate the test scenario template to determine each test scenario.

[0132] Furthermore, in one embodiment, the second determining module 412 may also be specifically used for:

[0133] The test scenario templates are instantiated as follows to determine each test scenario:

[0134] Determine the first parameter corresponding to the input type that needs to be set in the test scenario template;

[0135] Determine the second parameter corresponding to the preconditions that need to be set for the test scenario template, and configure the first operation script for the second parameter;

[0136] Determine the third parameter corresponding to the expected settings required for the test scenario template;

[0137] Determine the required settings for the test scenario template and obtain the corresponding second operation script;

[0138] Determine the start and stop scripts corresponding to the process scheduling required for the test scenario template;

[0139] The first operation script is used to update the second parameter during the automated testing of the tariff service to be tested.

[0140] The second operation script is used to obtain the automated test results of the tariff service to be tested;

[0141] Start-stop scripts are used to start or stop the automated testing process of the tariff service to be tested.

[0142] The automated testing system for telecommunications tariffs provided by this invention designs a standardized testing process by streamlining the testing procedures for different types of tariff services. Based on this standardized testing process, a unified test scenario template for tariff service testing is designed, which can support tariff testing for multiple combinations of telecommunications tariff products. The test scenarios are more in line with actual applications. After selecting multiple combinations of telecommunications tariff products, the testing of tariffs for multiple combinations can be carried out by configuring the relevant parameters of the test scenario template. Then, the test scenario template is instantiated to generate different test scenarios that support tariff services. The test scenario design is flexible and the test scope is wider.

[0143] Furthermore, in one embodiment, the third determining module 413 may also be specifically used for:

[0144] Based on the tariff type of the tariff service to be tested, select the target test scenario for automated testing from various test scenarios;

[0145] Based on the target test scenario, determine the test cases.

[0146] The automated testing system for telecommunications tariffs provided by this invention automatically prepares input data and sets expected data based on the combination of tariff services to be tested and test scenarios, through mapping tariffs to instantiated scenarios and according to the relevant parameter information configured in the instantiated scenarios, and automatically generates test cases according to the characteristics of the test scenarios, thereby automating the test case design process.

[0147] Figure 5 This is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as... Figure 5As shown, the electronic device may include a processor 510, a communication interface 511, a memory 512, and a bus 513, wherein the processor 510, the communication interface 511, and the memory 512 communicate with each other via the bus 513. The processor 510 can call logical instructions in the memory 512 to execute the following methods:

[0148] Based on the testing procedures for each tariff service, a standardized testing procedure for the tariff service is determined.

[0149] Based on standardized testing procedures, determine test scenario templates for tariff services;

[0150] Based on the test scenario template, determine the test scenarios for each tariff service;

[0151] Based on the tariff services to be tested and the various test scenarios, determine the test cases;

[0152] Based on the test cases, perform automated testing on the tariff services to be tested.

[0153] Furthermore, the logical instructions in the aforementioned memory can be implemented as software functional units and sold or used as independent products, and can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer power supply (which may be a personal computer, server, or network power supply, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0154] Furthermore, this invention discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when these instructions are executed by a computer, the computer can execute the automated telecommunications tariff testing method provided in the above-described method embodiments, for example including:

[0155] Based on the testing procedures for each tariff service, a standardized testing procedure for the tariff service is determined.

[0156] Based on standardized testing procedures, determine test scenario templates for tariff services;

[0157] Based on the test scenario template, determine the test scenarios for each tariff service;

[0158] Based on the tariff services to be tested and the various test scenarios, determine the test cases;

[0159] Based on the test cases, perform automated testing on the tariff services to be tested.

[0160] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the automated testing method for telecommunications tariffs provided in the above embodiments, including, for example:

[0161] Based on the testing procedures for each tariff service, a standardized testing procedure for the tariff service is determined.

[0162] Based on standardized testing procedures, determine test scenario templates for tariff services;

[0163] Based on the test scenario template, determine the test scenarios for each tariff service;

[0164] Based on the tariff services to be tested and the various test scenarios, determine the test cases;

[0165] Based on the test cases, perform automated testing on the tariff services to be tested.

[0166] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer power supply (which may be a personal computer, server, or network power supply, etc.) to execute the methods described in various embodiments or some parts of the embodiments.

[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An automated testing method for telecommunications tariffs, characterized in that, include: The testing processes for each tariff service were reviewed and standardized, and the standardized testing processes for tariff services were determined. Based on the standardized testing process, determine the test scenario template for the tariff service; Based on the test scenario template, determine each test scenario for the tariff service; Based on the tariff service to be tested and the various test scenarios, determine the test cases; Based on the test cases, the tariff service to be tested is subjected to automated testing; The step of determining the test scenario template for the tariff service according to the standardized testing process includes: The various test steps in the standardized test process are parameterized to determine the test scenario template for the tariff service; The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling. The step of determining each test scenario for the tariff service based on the test scenario template includes: The test scenario template is instantiated to determine each test scenario.

2. The automated testing method for telecommunications tariffs according to claim 1, characterized in that, The instantiation of the test scenario template to determine each test scenario includes: The test scenario template is instantiated in the following manner to determine each test scenario: Determine the first parameter corresponding to the input type that needs to be set in the test scenario template; Determine the second parameter corresponding to the preconditions that the test scenario template needs to set, and configure the first operation script for the second parameter; Determine the third parameter corresponding to the expected settings that the test scenario template needs to be set; Determine the required settings for the test scenario template and obtain the corresponding second operation script; Determine the start / stop scripts corresponding to the process scheduling that need to be set for the test scenario template; The first operation script is used to update the second parameter during the automated testing of the tariff service to be tested. The second operation script is used to obtain the automated test results of the tariff service to be tested; The start / stop script is used to start or stop the automated testing process of the tariff service to be tested.

3. The automated testing method for telecommunications tariffs according to claim 1, characterized in that, The process of determining test cases based on the tariff service to be tested and the various test scenarios includes: Based on the tariff type of the tariff service to be tested, select the target test scenario for automated testing from the various test scenarios; Based on the target test scenario, the test cases are determined.

4. An automated testing system for telecommunications tariffs, characterized in that, include: The module consists of a standardization module, a first determination module, a second determination module, a third determination module, and a test execution module. The standardization module is used to determine the standardized testing process for each tariff service based on the testing process for each tariff service. The first determining module is used to determine the test scenario template for the tariff service according to the standardized testing process; The second determining module is used to determine each test scenario of the tariff service based on the test scenario template; The third determining module is used to determine test cases based on the tariff service to be tested and the various test scenarios; The test execution module is used to perform automated testing on the tariff service to be tested according to the test cases; The first determining module is specifically used for: The various test steps in the standardized test process are parameterized to determine the scenario template for the tariff service test; The standardized testing process includes the following testing steps: input type, preconditions, expected settings, result acquisition, and process scheduling. The second determining module is specifically used for: The test scenario template is instantiated to determine each test scenario.

5. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the automated testing method for telecommunications tariffs as described in any one of claims 1 to 3.

6. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program for causing the processor to perform the steps of the automated testing method for telecommunications tariffs as described in any one of claims 1 to 3.

7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the automated testing method for telecommunications tariffs as described in any one of claims 1 to 3.