CN116257425A - Automatic testing method and system for telecom tariffs - Google Patents

Automatic testing method and system for telecom tariffs Download PDF

Info

Publication number
CN116257425A
CN116257425A CN202111508699.9A CN202111508699A CN116257425A CN 116257425 A CN116257425 A CN 116257425A CN 202111508699 A CN202111508699 A CN 202111508699A CN 116257425 A CN116257425 A CN 116257425A
Authority
CN
China
Prior art keywords
test
tariff
determining
service
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111508699.9A
Other languages
Chinese (zh)
Inventor
王雷
夏嘉
牛素丽
杨睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111508699.9A priority Critical patent/CN116257425A/en
Publication of CN116257425A publication Critical patent/CN116257425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a telecommunication tariff automatic test method and a system, wherein the method comprises the following steps: determining a standardized test flow of the tariff service according to the test flow of each tariff service; determining a test scene template of the tariff service according to the standardized test flow; determining each test scene of the tariff service according to the test scene template; determining a test case according to the to-be-tested tariff service and each test scene; and automatically testing the tariff service to be tested according to the test case. The invention is applied to the technical field of communication, a set of standardized test flow is designed by combing the test flows of different types of tariff services, a set of test scene templates for testing unified tariff services are designed according to the standardized test flow, then different test scenes for supporting the tariff services are generated according to the test scene templates, and test cases are automatically generated according to the tariff services to be tested and each test scene, so that the automatic test of the tariff services to be tested is realized.

Description

Automatic testing method and system for telecom tariffs
Technical Field
The invention relates to the technical field of communication, in particular to a telecommunication tariff automatic test method and a telecommunication tariff automatic test system.
Background
Telecommunication tariffs are the basis for telecommunication operators to charge users, and due to the sensitivity of users to fees, the accuracy of charging users is a serious issue in the construction of telecommunication service support systems. In order to save old users and expand new users, operators can push out various new tariffs and tariff preferential policies according to different user demands, so that higher requirements are provided for a telecommunication service support system, and a large amount of test and verification work is needed before the new tariffs and preferential policies are on line so as to ensure the accuracy of charging the users.
The current test of telecommunication charge is mainly performed by manual test and is aided by partial automatic test capability. The manual test has lower test efficiency, limited coverage range of an automatic test scene, and the industry lacks a universal automatic test technology for testing telecommunication service charge. In recent years, the automatic test technology implemented for part of service function points is mainly as follows:
one is to obtain the information of the communication service user according to the service to be tested and the charge information; designing a test case script according to the user type and package type of the user, and pre-calculating tariff data as comparison data; executing the test case script, acquiring and comparing the tariff data in the test environment or the production environment, and confirming the correctness of the tariff; after all test case scripts are executed, the test passing rate and the regression completion time are statistically displayed.
The other is a test flow for generating a test case according to the charging flow of the service, wherein the test flow comprises all execution steps of the charging flow; matching corresponding charging scenes according to the charging flow, fishing out a ticket from a detail library of a charging system according to the charging scenes, and obtaining first charging data before rating and second charging data after rating according to the ticket; and taking the first charging data as the input of the test flow, and taking the second charging data as the output of the test flow, so as to generate a test case.
The telecommunication service charge is complex, the variety is various, the involved area is wide, the charging accuracy is high, the existing automatic test method mainly aims at the single function point of price approval, and besides price approval, the method has the advantages of fixed charge, reminding, information control, preferential promotion and the like, and at present, no universal automatic method can support the test of all telecommunication service charges.
Disclosure of Invention
The telecommunication tariff automatic test method and system provided by the invention are used for solving at least one problem in the prior art, a set of standardized test flow is designed by carding test flows of different types of tariff services, a set of test scene templates for unified tariff service test are designed according to the standardized test flow, then different test scenes for supporting the tariff service are generated according to the test scene templates, and test cases are automatically generated according to the tariff service to be tested and each test scene, so that the automatic test of the tariff service to be tested is realized.
The invention provides a telecommunication tariff automatic test method, which comprises the following steps:
determining a standardized test flow of the tariff service according to the test flow of each tariff service;
determining a test scene template of the tariff service according to the standardized test flow;
determining each test scene of the tariff service according to the test scene template;
determining a test case according to the to-be-tested tariff service and the test scenes;
and automatically testing the to-be-tested tariff service according to the test case.
According to the automatic testing method for telecommunication tariffs provided by the invention, the testing scene template of the tariff service is determined according to the standardized testing flow, and the method comprises the following steps:
parameterizing each test link in the standardized test flow to determine a test scene template of the tariff service;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
According to the automatic testing method for telecommunication tariffs provided by the invention, each testing scene of the tariff service is determined according to the testing scene template, and the method comprises the following steps:
instantiating the test scene templates to determine the test scenes.
According to the automatic testing method for telecommunication tariffs provided by the invention, the test scene template is instantiated to determine each test scene, and the method comprises the following steps:
instantiating the test scenario templates to determine the test scenarios according to the following manner:
determining a first parameter corresponding to the input type required to be set by the test scene template;
determining a second parameter corresponding to the pre-condition required to be set by the test scene template, and configuring a first operation script for the second parameter;
determining a third parameter corresponding to the expected setting required to be set by the test scene template;
determining the result required to be set by the test scene template to obtain a corresponding second operation script;
determining a start-stop script corresponding to the process scheduling which is required to be set by the test scene template;
the first operation script is used for updating the second parameter in the automatic testing process of the tariff service to be tested;
the second operation script is used for acquiring an automatic test result of the to-be-tested tariff service;
and the start-stop script is used for starting or stopping an automatic test process of the tariff service to be tested.
According to the telecommunication tariff automatic test method provided by the invention, the test case is determined according to the tariff service to be tested and the test scenes, and the method comprises the following steps:
selecting a target test scene for automatic test from the test scenes according to the tariff type of the tariff service to be tested;
and determining the test case according to the target test scene.
The invention also provides a telecommunication tariff automatic test system, which comprises: the device comprises a standardization module, a first determination module, a second determination module, a third determination module and a test execution module;
the standardized module is used for determining the standardized test flow of the tariff business according to the test flow of each tariff business;
the first determining module is used for determining a test scene template of the tariff service according to the standardized test flow;
the second determining module is used for determining each test scene of the tariff service according to the test scene template;
the third determining module is used for determining a test case according to the to-be-tested tariff service and the test scenes;
and the test execution module is used for automatically testing the tariff service to be tested according to the test case.
According to the automatic test system for telecommunication tariffs provided by the invention, the first determining module is further used for:
parameterizing each test link in the standardized test flow to determine a scene template of the tariff service test;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the telecommunication tariff automation test methods described above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a telecommunications tariff automation test method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements the steps of a telecommunications tariff automation test method as described in any one of the above.
According to the telecommunication tariff automatic test method and system, a set of standardized test flow is designed through carding the test flows of different types of tariff services, a set of test scene templates for unified tariff service test are designed according to the standardized test flow, then different test scenes for supporting the tariff service are generated according to the test scene templates, and test cases are automatically generated according to the tariff service to be tested and each test scene, so that automatic test of the tariff service to be tested is realized.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an automated testing method for telecom tariffs according to the present invention;
FIG. 2 is a schematic flow chart of test case generation provided by the invention;
FIG. 3 is a second flow chart of the telecommunication tariff automatic test method according to the present invention;
FIG. 4 is a schematic diagram of a telecommunication tariff automation test system provided by the present invention;
fig. 5 is a schematic diagram of the physical structure of the electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The automatic test method for the existing tariff service (such as telecom tariffs) can realize the automatic test of the rating module, but has limitations in the execution process:
1. the support test scene is limited: because the use case template is single and fixed, only one scene of rating is supported, and the test of other charging flows, such as month, credit control, reminding, promotion, preferential, fixed fee and the like, cannot be satisfied.
2. The use case design process does not fully automate: the automatic testing method of the tariff service in the prior art only supports partial execution function automation, but the automation of use case design is not realized yet.
3. The cost and price testing of the multi-component product cannot be supported: in reality, the real user orders various product tariffs, and the automatic testing method of the tariff service in the prior art only supports the testing of single product tariffs ordered by the user, and does not support the testing under the condition of multi-product tariffs ordered by the user.
4. The coupling degree with a specific system is high: the automatic testing method of the tariff service in the prior art is basically designed based on the implementation of a specific charging system, is tightly connected with a database table of the specific system and related service interfaces, cannot adapt to other charging systems, and cannot be popularized and applied.
Based on the above, the invention provides a telecommunication tariff automatic test method, which mainly comprises five aspects, namely tariff test flow standardization design, scene template instantiation, use case automatic generation and test execution, and specifically: firstly, combing test flows of different charge services (such as price approval, fixed charge, reminding, credit control, promotion, preferential and the like) to perform standardized design on the test flows to form a standard test scene template, and generating test scenes supporting different charge of the telecommunication services by instantiating the test scene template to automatically generate test cases according to the attribute of each charge; in the test case execution stage, automatic test execution operation is completed through automatic backfilling of ticket/message/table data parameters, and the method is specifically realized as follows:
fig. 1 is a schematic flow chart of a telecommunication tariff automatic test method provided by the present invention, as shown in fig. 1, the method includes:
s1, determining a standardized testing flow of the tariff service according to the testing flow of each tariff service;
s2, determining a test scene template of the tariff service according to the standardized test flow;
s3, determining each test scene of the tariff service according to the test scene template;
s4, determining a test case according to the to-be-tested tariff service and each test scene;
s5, automatically testing the tariff service to be tested according to the test case.
It should be noted that, the execution subject of the above method may be a computer device.
Optionally, the invention is realized in the process of developing the telecom tariff service test, one characteristic of the telecom tariff service processing flow is that the telecom tariff service processing flow has no interface support, is an operation flow of a system background, and the test method is different from the test of a foreground page.
Firstly, test flows (such as charging test flows) of different tariffs (such as rating, fixed fee, reminding, credit control, sales promotion, preferential and the like) are carded, and standardized design is carried out on the test flows to form a set of standardized test flows applicable to different telecom tariffs.
And secondly, designing a set of unified test scene templates suitable for different telecom tariffs according to the standardized test flow, and generating each test scene supporting the different telecom tariffs through flexible configuration (such as database tables, scripts and paths) of the test scene templates.
And selecting a corresponding test scene according to the type of the to-be-tested tariff service and automatically generating a test case.
Finally, a set of charging system can be designed according to the process, an execution task is created on the charging system by a user, after the test case needing to be executed is added, the task is automatically added into task scheduling, and the automatic execution of the test case is completed by the charging system, so that the automatic test of the charge service to be tested is realized.
According to the telecommunication tariff automatic test method provided by the invention, a set of standardized test flow is designed by combing the test flows of different types of tariff services, a set of test scene templates for unified tariff service test are designed according to the standardized test flow, then different test scenes for supporting the tariff service are generated according to the test scene templates, and test cases are automatically generated according to the tariff service to be tested and each test scene, so that the automatic test of the tariff service to be tested is realized.
Further, in one embodiment, step S2 may specifically include:
s21, parameterizing each test link in the standardized test flow to determine a test scene template of the tariff service;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
Optionally, by carding the test flows of different telecom tariffs, a set of standardized test flows applicable to different telecom tariffs is formed by performing standardized design on the test flows, and specifically:
the telecommunication tariff service test flow can be divided into 5 test links by combing and analyzing the existing telecommunication tariff service test flow: the method comprises five test links of input type, precondition, expected calculation setting, result acquisition and process scheduling, and actually, each link is read-write operation of related data.
Parameterizing each test link in the standardized test flow, designing a set of unified test scene templates suitable for different telecom tariffs, and generating each test scene supporting different telecom tariffs by flexibly configuring the test scene templates (such as database tables, scripts and paths), specifically:
based on the function of each test link in the standardized test flow in the automatic test process, each test link is parameterized to finally form a unified test scene template of different telecommunication tariffs so as to adapt to the test of different types of telecommunication tariffs, and the parameterization process of each test link is as follows:
1. input type: the test link mainly selects the input types (such as ticket, message and list data) of the test scene of the telecom tariff service, and then automatically fills key field information such as mobile phone number, routing Group (RG) and the like into the selected ticket/message/list data template according to the preconfigured ticket/message/list data in the automatic generation process of the test case, thereby automatically generating the test ticket/message/list data corresponding to the test case.
2. The pre-condition is as follows: it is mainly to construct test data information meeting the conditions, such as clearing test dirty data and resetting charging data (including but not limited to free resource remaining amount, accumulated amount outside the sleeve, deduction outside the sleeve and the like).
3. The expected settings are: and the expected field value in the finally generated test case is consistent with the expected field value, so that the case automation module is ensured to automatically calculate the expected result data.
4. And (3) obtaining a result: the actual value of the relevant parameter of the expected setting in the charging system is obtained.
5. And (3) process scheduling: and configuring a charging script of the charging system, and automatically mobilizing a remote script of the charging system to charge when the test case is executed.
According to the telecommunication tariff automatic test method provided by the invention, through carding test flows of different types of tariff services, a standardized test flow comprising five test links of input types, preconditions, expected calculation setting, result acquisition and process scheduling is designed, a set of test scene templates for unified tariff service test is designed according to the standardized test flow, then different test scenes for supporting the tariff service are generated according to the test scene templates, and test cases are automatically generated according to the tariff service to be tested and each test scene, so that the automatic test of the tariff service to be tested is realized, the coupling degree with a specific system is low, and the suitability is strong.
Further, in one embodiment, step S3 may specifically include:
s31, instantiating the test scene templates to determine each test scene.
Further, in one embodiment, step S31 may specifically include:
s311, instantiating the test scene templates according to the following mode to determine each test scene:
determining a first parameter corresponding to an input type required to be set by the test scene template;
determining a second parameter corresponding to a pre-condition required to be set by the test scene template, and configuring a first operation script for the second parameter;
determining a third parameter corresponding to expected settings required to be set by the test scene template;
determining a result required to be set by the test scene template to obtain a corresponding second operation script;
determining a start-stop script corresponding to process scheduling which is required to be set by a test scene template;
the first operation script is used for updating the second parameter in the automatic test process of the tariff service to be tested;
the second operation script is used for acquiring an automatic test result of the tariff service to be tested;
the start-stop script is used for starting or stopping an automatic test process of the tariff service to be tested.
Optionally, based on test scene templating, design work of different test scenes can be realized through configuration of test scene template parameters, in fact, not only supporting test of telecom service tariffs, but also testing of other non-telecom services is applicable, and the method is specifically realized as follows:
instantiating the obtained unified test scene templates of different telecom tariffs, specifically, inputting corresponding parameters into the test scene templates to form specific test scenes, and describing the instantiation process of the test scene templates by taking a single-user rating scene as an example:
determining a first parameter corresponding to an input type required to be set by the test scene template, specifically: setting a first parameter of an input type required by the rating and tariff service test scene template, such as a selected ticket and a ticket template selected service node change.
Determining a second parameter corresponding to a precondition required to be set by the test scene template, and configuring a first operation script for the second parameter, specifically: setting a second parameter to be preset in the rating charge service test scene template, and configuring a related operation process script (namely a first operation script) for the second parameter, wherein if the free resource usage amount used_value is preset, the statement content of the first operation script is preset as follows:
Update CAbmFreeRes set used_value=?Where primary_key=?
the primary_key is the mobile phone number of the user, the used_value is used, and after the test link is associated, the actual value of the second parameter can be automatically backfilled in the automatic test case generation process so as to update the preset second parameter.
Determining a third parameter corresponding to expected settings required to be set by the test scene template, specifically: and setting a third parameter which needs to be concerned in the automatic testing process of the rating and tariff service according to the analysis of the testing scene, wherein the value of the third parameter is automatically generated according to tariff information. If the expected field is the free resource usage used_value.
Determining a result acquisition corresponding to a second operation script result acquisition required to be set by the test scene template, and specifically: and according to the expected third parameter, configuring a related operation process script (namely a second operation script) for the third parameter, wherein the second script can be used for acquiring test result information of the automatic test of the price and tariff service, such as acquiring a value of an expected field used_value. The statement content of the second operation script is preset as follows:
Select used_value from CAbmFreeRes where primary_key=?
and in the test link, the mobile phone number of the primary_key user.
Determining a start-stop script corresponding to process scheduling required to be set by a test scene template, and specifically: for the test scene that the system needs to be started or stopped in the automatic test process of the rating and charging business, relevant start-stop scripts are configured at the test scene so as to automatically start or stop the automatic test process when the test is executed.
According to the telecommunication tariff automatic test method provided by the invention, a set of standardized test flow is designed by combing test flows of different types of tariff services, a set of test scene templates for unified tariff service test is designed according to the standardized test flow, the tariff test of telecommunication tariffs and multi-combination products can be supported, the test scene is more suitable for practical application, after a plurality of telecommunication tariffs and multi-combination products are selected, the test work of the tariffs of the multi-combination products can be carried out by configuring relevant parameters of the test scene templates, then the test scene templates are instantiated, different test scenes for supporting the tariff services are generated, the test scene design is flexible, and the test range coverage is wider.
Further, in one embodiment, step S4 may specifically include:
s41, selecting a target test scene for automatic test from all test scenes according to the tariff type of the tariff service to be tested;
s42, determining a test case according to the target test scene.
Optionally, as shown in fig. 2, in the process of automatic testing of the service to be tested, the process of generating test cases actually is a process of selecting and mapping the service to be tested and each test scene (by instantiating the test scene templates to generate each test scene, such as test scene 1, test scene 2, test scene 3 and test scene 4), selecting a scene to be tested (i.e. a target test scene) according to the tariff type of the service to be tested, automatically generating a corresponding test case according to the type of the target test scene, presetting data according to relevant configuration content in the scene template instance of the test scene, starting a script, calculating expected value and ticket usage amount of each test case, backfilling key field parameters such as ticket/message/table data, and constructing corresponding ticket/message/table data, thereby finally realizing automatic generation of the test cases.
For example, the to-be-tested tariff service is a tariff service formed by multiple groups of products a, b and c, the test scenes specifically comprise test scenes 1-4, and when the product a selects the test scene 1 and the test scene 2, test case 1a and test case 2a are respectively generated; when the product b selects the test scene 2 and the test scene 3, respectively generating a test case 2b and a test case 3b; and generating a test case 4c when the product c selects the test scene 4.
In practical application, as shown in fig. 3, the present invention firstly performs standardized design on test flows by carding different telecom tariff service test flows to form a standard test scene template, and generates test scenes supporting different telecom tariff services by instantiating the test scene template, and automatically generates test cases according to configuration parameters of each tariff, thereby realizing automation of case design and case execution in the tariff test flows, and truly realizing IT change of test work. The invention supports the testing of multi-combination product tariff service, and a tester selects a plurality of products when correlating the product tariffs to be tested and parameterized testing scenes, so that the testing execution operation of the plurality of combination product tariffs can be realized.
A set of standard test flows are designed through carding the test flows of different types of tariff services, a set of unified test scene templates are designed according to the standard test flows, then the test scenes (such as test scenes 1-3 in fig. 3) supporting the test flows of the different tariff services can be instantiated through flexible configuration (database tables, scripts, paths and the like) of the test scene templates, then the test scenes are selected according to the types of the tariff services to be tested, and test cases (such as test case 1a, test case 1b, test case 1c, test case 2b, test case 2c, test case 3a and test case 3 b) are automatically generated. The system can support tariff test scenes such as rating, month, reminding, fixed fee, preferential and the like, and also support related tariff test scenes of tariff business of multiple combined products (such as products 1-3).
The user creates executing tasks (such as task one and task two in project 1, project 2 and project 3) on the charging system, and after adding the test cases to be executed, the tasks are automatically added into the task scheduling, and the automatic execution of the test cases is completed by the charging system, so as to realize the automatic test of the charge service to be tested.
According to the telecommunication tariff automatic test method provided by the invention, according to the combination of the tariff service to be tested and the test scene, the preparation of input data and the setting of expected data are automatically completed according to the related parameter information configured in the instantiation scene by mapping the tariff and the instantiation scene, and the test case is automatically generated according to the characteristics of the test scene, so that the automation of the test case design process is realized.
The following describes the automatic test system for telecom tariffs provided by the present invention, and the automatic test system for telecom tariffs described below and the automatic test method for telecom tariffs described above can be referred to correspondingly.
Fig. 4 is a schematic structural diagram of an automatic telecommunication tariff testing system according to the present invention, as shown in fig. 4, including:
a normalization module 410, a first determination module 411, a second determination module 412, a third determination module 413, and a test execution module 414;
a standardization module 410, configured to determine a standardized testing procedure of the tariff service according to the testing procedures of the tariff services;
a first determining module 411, configured to determine a test scenario template of the tariff service according to a standardized test procedure;
a second determining module 412, configured to determine each test scenario of the tariff service according to the test scenario template;
a third determining module 413, configured to determine a test case according to the tariff service to be tested and each test scenario;
the test execution module 414 is configured to automatically test the tariff service to be tested according to the test case.
According to the telecommunication tariff automatic test system provided by the invention, a set of standardized test flow is designed by combing the test flows of different types of tariff services, a set of test scene templates for unified tariff service test are designed according to the standardized test flow, then different test scenes for supporting the tariff service are generated according to the test scene templates, and test cases are automatically generated according to the tariff service to be tested and each test scene, so that the automatic test of the tariff service to be tested is realized.
Further, in one embodiment, the first determining module 411 may be further specifically configured to:
parameterizing each test link in the standardized test flow to determine a scene template of the tariff service test;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
The telecommunication tariff automatic test system provided by the invention designs a standardized test flow comprising five test links of input types, preconditions, expected calculation setting, result acquisition and process scheduling through carding the test flows of different types of tariff services, designs a set of test scene templates for unified tariff service test according to the standardized test flow, then generates different test scenes for supporting the tariff service according to the test scene templates, and automatically generates test cases according to the tariff service to be tested and each test scene, thereby realizing the automatic test of the tariff service to be tested, and having low coupling degree with a specific system and strong suitability.
Further, in one embodiment, the second determining module 412 may be further specifically configured to:
the test scene templates are instantiated to determine the test scenes.
Further, in one embodiment, the second determining module 412 may be further specifically configured to:
the test scenario templates are instantiated to determine the test scenarios according to the following manner:
determining a first parameter corresponding to an input type required to be set by the test scene template;
determining a second parameter corresponding to a pre-condition required to be set by the test scene template, and configuring a first operation script for the second parameter;
determining a third parameter corresponding to expected settings required to be set by the test scene template;
determining a result required to be set by the test scene template to obtain a corresponding second operation script;
determining a start-stop script corresponding to process scheduling which is required to be set by a test scene template;
the first operation script is used for updating the second parameter in the automatic test process of the tariff service to be tested;
the second operation script is used for acquiring an automatic test result of the tariff service to be tested;
the start-stop script is used for starting or stopping an automatic test process of the tariff service to be tested.
According to the telecommunication tariff automatic test system provided by the invention, a set of standardized test flow is designed by combing test flows of different types of tariff services, a set of test scene templates for unified tariff service test is designed according to the standardized test flow, the test scene can support the tariff test of telecommunication tariffs in multiple combination products, the test scene is more suitable for practical application, after a plurality of telecommunication tariffs in multiple combination products are selected, the test work of the tariffs of the multiple combination products can be carried out by configuring relevant parameters of the test scene templates, then the test scene templates are instantiated, different test scenes for supporting the tariff services are generated, the test scene design is flexible, and the test range coverage is wider.
Further, in one embodiment, the third determining module 413 may be further specifically configured to:
selecting a target test scene for automatic test from all test scenes according to the tariff type of the tariff service to be tested;
and determining the test case according to the target test scene.
According to the telecommunication tariff automatic test system provided by the invention, according to the combination of the tariff service to be tested and the test scene, the preparation of input data and the setting of expected data are automatically completed according to the related parameter information configured in the instantiation scene by mapping the tariff and the instantiation scene, and the test case is automatically generated according to the characteristics of the test scene, so that the automation of the test case design process is realized.
Fig. 5 is a schematic physical structure of an electronic device according to the present invention, as shown in fig. 5, the electronic device may include: a processor (processor) 510, a communication interface (communication interface) 511, a memory (memory) 512 and a bus (bus) 513, wherein the processor 510, the communication interface 511 and the memory 512 communicate with each other via the bus 513. Processor 510 may invoke logic instructions in memory 512 to perform the following method:
determining a standardized test flow of the tariff service according to the test flow of each tariff service;
determining a test scene template of the tariff service according to the standardized test flow;
determining each test scene of the tariff service according to the test scene template;
determining a test case according to the to-be-tested tariff service and each test scene;
and automatically testing the tariff service to be tested according to the test case.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer power supply screen (which may be a personal computer, a server, or a network power supply screen, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Further, the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the telecommunication tariff automation test method provided by the above method embodiments, for example comprising:
determining a standardized test flow of the tariff service according to the test flow of each tariff service;
determining a test scene template of the tariff service according to the standardized test flow;
determining each test scene of the tariff service according to the test scene template;
determining a test case according to the to-be-tested tariff service and each test scene;
and automatically testing the tariff service to be tested according to the test case.
In another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the telecommunication tariff automation test method provided in the above embodiments, for example, including:
determining a standardized test flow of the tariff service according to the test flow of each tariff service;
determining a test scene template of the tariff service according to the standardized test flow;
determining each test scene of the tariff service according to the test scene template;
determining a test case according to the to-be-tested tariff service and each test scene;
and automatically testing the tariff service to be tested according to the test case.
The system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer power screen (which may be a personal computer, a server, or a network power screen, etc.) to perform the method described in the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for automated testing of telecommunications tariffs, comprising:
determining a standardized test flow of the tariff service according to the test flow of each tariff service;
determining a test scene template of the tariff service according to the standardized test flow;
determining each test scene of the tariff service according to the test scene template;
determining a test case according to the to-be-tested tariff service and the test scenes;
and automatically testing the to-be-tested tariff service according to the test case.
2. The automated testing method of telecommunications tariffs of claim 1 wherein the determining a test scenario template for the tariff service according to the standardized testing procedure includes:
parameterizing each test link in the standardized test flow to determine a test scene template of the tariff service;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
3. The automated testing method of telecommunications tariffs of claim 1 wherein said determining each test scenario of the tariff service based on the test scenario template includes:
instantiating the test scene templates to determine the test scenes.
4. A telecommunications tariff automation test method in accordance with claim 3, wherein said instantiating the test scenario templates to determine the test scenarios comprises:
instantiating the test scenario templates to determine the test scenarios according to the following manner:
determining a first parameter corresponding to the input type required to be set by the test scene template;
determining a second parameter corresponding to the pre-condition required to be set by the test scene template, and configuring a first operation script for the second parameter;
determining a third parameter corresponding to the expected setting required to be set by the test scene template;
determining the result required to be set by the test scene template to obtain a corresponding second operation script;
determining a start-stop script corresponding to the process scheduling which is required to be set by the test scene template;
the first operation script is used for updating the second parameter in the automatic testing process of the tariff service to be tested;
the second operation script is used for acquiring an automatic test result of the to-be-tested tariff service;
and the start-stop script is used for starting or stopping an automatic test process of the tariff service to be tested.
5. The automated telecommunication tariff testing method of claim 1 wherein the determining a test case based on the tariff service to be tested and the test scenarios includes:
selecting a target test scene for automatic test from the test scenes according to the tariff type of the tariff service to be tested;
and determining the test case according to the target test scene.
6. A telecommunications tariff automated test system, comprising: the device comprises a standardization module, a first determination module, a second determination module, a third determination module and a test execution module;
the standardized module is used for determining the standardized test flow of the tariff business according to the test flow of each tariff business;
the first determining module is used for determining a test scene template of the tariff service according to the standardized test flow;
the second determining module is used for determining each test scene of the tariff service according to the test scene template;
the third determining module is used for determining a test case according to the to-be-tested tariff service and the test scenes;
and the test execution module is used for automatically testing the tariff service to be tested according to the test case.
7. The telecommunications tariff automation test system of claim 6, wherein the first determination module is further configured to:
parameterizing each test link in the standardized test flow to determine a scene template of the tariff service test;
the standardized test flow comprises the following test links: input type, preconditions, expected settings, result retrieval, and process scheduling.
8. An electronic device comprising a processor and a memory storing a computer program, characterized in that the processor implements the steps of the telecommunication tariff automation test method of any one of claims 1 to 5 when the computer program is executed.
9. 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 telecommunication tariff automation test method according to any one of claims 1 to 5.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the telecommunication tariff automation test method according to any one of claims 1 to 5.
CN202111508699.9A 2021-12-10 2021-12-10 Automatic testing method and system for telecom tariffs Pending CN116257425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111508699.9A CN116257425A (en) 2021-12-10 2021-12-10 Automatic testing method and system for telecom tariffs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111508699.9A CN116257425A (en) 2021-12-10 2021-12-10 Automatic testing method and system for telecom tariffs

Publications (1)

Publication Number Publication Date
CN116257425A true CN116257425A (en) 2023-06-13

Family

ID=86681346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111508699.9A Pending CN116257425A (en) 2021-12-10 2021-12-10 Automatic testing method and system for telecom tariffs

Country Status (1)

Country Link
CN (1) CN116257425A (en)

Similar Documents

Publication Publication Date Title
Apfelbaum et al. Model based testing
CN109871309B (en) Method and system for generating test case of charging system
CN108509344B (en) Daily cutting batch test method, equipment and readable storage medium
CN107506303A (en) Method, apparatus and system for automatic test
US9342277B2 (en) Method of searching data associated with nodes of a graphical program
CA2677534C (en) Tariff management test automation
CN106648556A (en) Front end and back end integrated development testing method and device
US20150120479A1 (en) Catalog driven order management for rule definition
CN107908548A (en) A kind of method and apparatus for generating test case
CN111240983A (en) Method and device for realizing automatic test of telecommunication charging service
CN114003451B (en) Interface testing method, device, system and medium
CN114064112A (en) Business process configuration method, device, equipment and storage medium
CN115964272A (en) Transaction data automatic testing method, device, equipment and readable storage medium
CN112732237B (en) Method and system for constructing code-free development technology model
CN108363775B (en) High-expansibility online environment previewing method based on rule engine
CN111190817B (en) Method and device for processing software defects
CN111651345A (en) System testing method and device and electronic equipment
CN116257425A (en) Automatic testing method and system for telecom tariffs
US20160180262A1 (en) System and method for testing enterprise transactions
Staron et al. Using models to develop measurement systems: a method and its industrial use
WO2013054296A2 (en) Enterprise resource planning system
CN115113909A (en) Project automation operation and maintenance method, system, electronic equipment and storage medium
CN114564213A (en) Pre-installed software deployment method, system, terminal and storage medium
JP2003140895A (en) Test system having recombinable software
Zhang Research on software development and test environment automation based on android platform

Legal Events

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