WO2023134312A1 - Content charging test method, management device, terminal device and storage medium - Google Patents

Content charging test method, management device, terminal device and storage medium Download PDF

Info

Publication number
WO2023134312A1
WO2023134312A1 PCT/CN2022/134370 CN2022134370W WO2023134312A1 WO 2023134312 A1 WO2023134312 A1 WO 2023134312A1 CN 2022134370 W CN2022134370 W CN 2022134370W WO 2023134312 A1 WO2023134312 A1 WO 2023134312A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
charging
address
content
rules
Prior art date
Application number
PCT/CN2022/134370
Other languages
French (fr)
Chinese (zh)
Inventor
居彦超
郑军
张学良
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023134312A1 publication Critical patent/WO2023134312A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present application relates to the technical field of communications, and in particular to a content charging test method, management equipment, terminal equipment and storage media.
  • Content billing means that the operator performs billing in combination with different information about user access services and rules configured by core network elements. Operators manage user access rights and charge fees according to the different services accessed by mobile phone users. If the billing rules are incorrectly configured, it is likely to cause errors in the operator's business, and even cause disputes with users. Therefore, the accuracy of content billing rule matching is of great significance. With the continuous development of mobile phone services and core network services, the content billing strategy is becoming more and more complex, and the number of services and rules is also increasing. It is often necessary to upgrade or adjust the billing strategy. Billing rules and policies are often manually configured by operation and maintenance personnel, which is difficult to maintain and may lead to configuration errors. Therefore, after upgrading and adjusting the billing policy, engineers need to conduct tests to ensure the normal operation of the business.
  • the embodiment of the present application provides a content charging test method.
  • the embodiment of the present application provides a content charging test method, which is applied to a content charging test management device, and the content charging test method includes: obtaining work order information, and the work order information includes charging rules and the first service code; generate a test case according to the charging rule; send the test case to the terminal device, so that the terminal device performs a charging test according to the test case; obtain the network element management system for the A test signaling generated by the terminal device during the charging test; generating a charging test result according to the test signaling and the first service code.
  • the embodiment of the present application also provides a content charging test method, which is applied to a terminal device.
  • the content charging test method includes: obtaining a test case from a content charging test management device, and the test case is determined by the The content charging test management device is generated according to the charging rules in the work order information; and the charging test is performed according to the test cases.
  • the embodiment of the present application also provides a content billing test management device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor executes the computer program.
  • the program implements the content charging test method as described in the first aspect above.
  • the embodiment of the present application also provides a terminal device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above when executing the computer program.
  • a terminal device including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above when executing the computer program.
  • the embodiment of the present application further provides a storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the content charging test method as described above.
  • Fig. 1 is a network architecture diagram for implementing a content charging test method provided by an embodiment of the present application
  • FIG. 2 is a software product architecture diagram for implementing a content charging test provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of functional modules of a content charging test management device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of functional modules of a terminal device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a test flow when no test proxy device is configured according to an embodiment of the present application
  • FIG. 6 is a schematic flowchart of a content charging test method applied to a content charging test management device provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of a signaling comparison analysis process provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a specific method of step S620 in FIG. 6 provided by an embodiment of the present application;
  • FIG. 9 is a schematic flow diagram of use case generation in the content charging test management device provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a test script generation rule provided by an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a content charging test method applied to a terminal device provided by an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a specific method of step S1120 in FIG. 11 provided by an embodiment of the present application;
  • FIG. 13 is a schematic diagram of the processing flow of the mobile phone execution test case provided by an embodiment of the present application.
  • Fig. 14 is the home scene interface of iTest-Cloud provided by an embodiment of the present application.
  • Fig. 15 is the sub-scene interface of iTest-Cloud provided by an embodiment of the present application.
  • Fig. 16 is the APP interface of the mobile terminal provided by an embodiment of the present application.
  • FIG. 17 is a content charging test management device provided by an embodiment of the present application.
  • FIG. 18 is a terminal device provided by an embodiment of the present application.
  • the present application provides a content charging test method, management equipment, terminal equipment, and storage media.
  • the content charging test management equipment is used to obtain work order information, wherein the work order information includes the first business code of the charging rule; according to The billing rules automatically generate test cases, and send the test cases to the terminal equipment, so that the terminal equipment performs billing test processing according to the test cases after receiving the test cases.
  • the content charging test management device obtains the test signaling generated during the tracking charging test process of the network element management system, generates the charging test result according to the test signaling and the first service code, and obtains the updated charging rule configuration.
  • This application is used to verify the correctness of the configuration of core network content charging rules, especially the configuration of the 5G core network.
  • the content charging test management device and terminal equipment Before the operator's core network goes online, or after major operations such as expansion, upgrade, and data configuration changes on the core network, use the content charging test management device and terminal equipment to cooperate with each other to configure the content charging rules of the core network Carry out automated testing to improve the accuracy and efficiency of testing for billing rules.
  • FIG. 1 is a network architecture diagram for implementing a content charging test method provided by an embodiment of the present application.
  • the network architecture diagram shown in Figure 1 includes five parts, namely the terminal device part, the content billing test management device part, the test proxy device part, the network element management system part and the 5G operator network part.
  • iTest-APP is deployed on the terminal equipment part.
  • iTest-APP is a mobile phone APP software used to test content charging rules and supports the Android system.
  • Part of the content billing test management equipment is deployed with iTest-Cloud, which is a cloud system for testing content billing rules and supports Linux and Windows operating systems.
  • iTest-Station is deployed in part of the test proxy equipment, and iTest-Station is a station-side system software for testing content charging rules.
  • the terminal equipment, the content billing test management equipment and the test proxy equipment are all connected to the Internet, can communicate and connect, can transmit and exchange receipts with each other, and cooperate with each other to complete the content billing test for the 5G core network.
  • the content billing test management device can be a server or a virtual machine
  • the test proxy device can be a notebook computer or a traditional desktop computer.
  • the terminal device can be a mobile phone or other electronic devices capable of running iTest-APP.
  • EMS Element Management System, Network Element Management System
  • EMS Network Element Management System
  • the test proxy device is connected to the EMS management plane network where the tested 5G core network is located.
  • the test proxy device deployed with iTest-Station can automatically obtain the signaling tracking data of the Internet service of the user terminal equipment from the EMS, and upload the signaling tracking data to the content charging test management device, so that the content charging test management
  • the device performs data comparison and analysis to obtain the configuration of charging rules.
  • the engineering personnel can manually download the signaling tracking data from the EMS and import it to the iTest-Cloud to complete the signaling comparison Analyze the charging rule configuration.
  • the 5G operator network includes but is not limited to: (wireless) access network ((radio) Access Network, (R) AN), user plane function (User Plane Function, UPF) network elements, access and mobility Management function (Access and Mobility Management Function, AMF) network element, session management function (Session Management Function, SMF) network element and charging function network element (Charging Function, HCF).
  • (wireless) access network ((radio) Access Network, (R) AN), user plane function (User Plane Function, UPF) network elements, access and mobility Management function (Access and Mobility Management Function, AMF) network element, session management function (Session Management Function, SMF) network element and charging function network element (Charging Function, HCF).
  • the part other than the (wireless) access network is called the 5G core network.
  • the 5G network structure used in this application uses a representation based on reference points to represent the interaction between network functions. There are reference points based on service interface and reference points based on traditional point-to-point communication.
  • interfaces such as N1 , N2 , N3 , N6 , N11 , and N40 are interfaces provided by the carrier network and have interface serial numbers.
  • the functions of these interfaces and the specific meanings of the serial numbers of the interfaces can refer to the definition and interpretation in the 3GPP standard protocol, and will not be repeated here.
  • some functional network elements involved in the network architecture of the present application are explained below.
  • the access network (Access Network, AN) is a sub-network of the operator's network and an implementation system between service nodes and terminal devices in the operator's network.
  • (Wireless) Access Network ((radio) Access Network, (R) AN) is a kind of AN equipment, which can provide wireless communication functions for terminal equipment.
  • (R) AN refers to all or part of fixed users accessing the switch in a wireless manner.
  • the radio access network is the ground infrastructure, and the access network equipment includes but not limited to: next-generation base stations (gNodeB, gNB), radio network controllers, base station controllers, and mobile switching centers in 5G, etc. wait.
  • gNodeB next-generation base stations
  • gNB next-generation base stations
  • radio network controllers base station controllers
  • base station controllers base station controllers
  • mobile switching centers in 5G, etc. wait.
  • the data network is a network outside the operator's network.
  • the operator's network can access multiple DNs, and various services can be deployed on the DNs, which can provide data and/or voice services for terminal devices.
  • the user plane function network element is a gateway provided by the operator. It is the gateway for communication between the operator network and the DN. It can implement packet routing and forwarding, policy implementation, service usage reporting, uplink packet detection, downlink data packet storage and other user plane related functions. .
  • the access and mobility management function network element is a control plane network element provided by the operator's network. It has access and mobility management functions and can complete the access and mobility management of terminal equipment accessing the operator's network. For example, it includes functions such as mobile status management, allocation of user temporary identities, access authentication and access authorization.
  • the session management function network element is responsible for managing the protocol data unit (Protocol Data Unit, PDU) session of the terminal equipment, that is, processing the user's business.
  • the SMF network element is responsible for establishing, maintaining and deleting PDU sessions, and can also manage sessions, such as session establishment, modification and release.
  • SMF network elements also have session-related functions such as selecting and controlling UPF network elements, and forwarding session information to an appropriate destination network.
  • the CHF network element has a charging function and supports online charging, offline charging and converged charging.
  • converged charging is a new charging mode in the 5G specification, which can integrate online charging and offline charging.
  • network elements transmit charging messages with CHF network elements through the Nchf service interface.
  • user terminal equipment accesses the core network through the base station (R)AN to perform various services.
  • Each network element in the 5G core network such as the SMF network element and the short message network element, reports the billing events involved in the user's Internet access to the CHF network element through the service interface Nchf.
  • the CHF network element is responsible for completing the billing and quota authorization, and generates The bill file is used for accounting processing in the accounting domain.
  • the network element management system tracks the signaling data of the terminal equipment's online service and transmits it to the test agent equipment.
  • the test proxy device automatically transmits the signaling trace data to the content charging test management device.
  • the content billing test management equipment conducts data comparison and analysis, obtains the configuration of billing rules, and completes the billing rule test for the 5G core network.
  • the software product architecture diagram includes the iTest-APP at the terminal device side, the iTest-Cloud at the billing test management side, the iTest-Station at the test proxy device side, and the network element management system.
  • iTest-APP, iTest-Cloud and iTest-Station are all connected to the Internet and can communicate with each other.
  • the LAN IP of the terminal device is 192.168.101.x
  • the LAN IP of the test proxy device is 192.168.51.x
  • the management plane IP is 192.168.2.x
  • the public network IP of the billing test management side is 58.213 .91.x.
  • the terminal device can access each other through the billing test management terminal and the test proxy device.
  • the agent test terminal and the network element management system access each other through the management plane to realize data transmission.
  • test proxy device is optional, and the software product may or may not be configured with a test proxy device.
  • the test proxy device automatically obtains the signaling tracking data from the core network when the mobile phone executes the test case, and then automatically uploads the data to the billing test management end, and the billing test management end Let the data be compared and analyzed.
  • the automated testing process effectively improves the efficiency of billing testing and reduces the workload of operation and maintenance personnel.
  • test proxy device When the test proxy device is not configured in the software product, or the test proxy device fails to work normally, you can manually download the signaling tracking data from the core network after the iTest-APP of the terminal device executes the test script and import it into iTest After -Cloud, perform data comparison and analysis, and the test result analysis report can be exported after iTest-Cloud analysis. Therefore, the present application does not impose specific restrictions on whether a test proxy device is configured in the software product.
  • FIG. 3 is a schematic diagram of functional modules of a content charging test management device provided by an embodiment of the present application.
  • the content billing test management device deploys iTest-Cloud.
  • the main functional modules of iTest-Cloud include:
  • the work order importing module is used to obtain the operator's content billing work order, process and analyze the content billing work order, and obtain work order information
  • the work order information includes: charging rules and first service codes.
  • the content billing work order of the operator is generally in Excel format, and the form filling of the content billing work order must meet the specified format.
  • the work order information includes main information such as the service name.
  • the use case processing module is used to obtain billing rules from the work order import module, and generate test cases according to the billing rules, and the test cases include test scripts and test rules.
  • the use case processing module includes an experience library module, a URL library module, a rule transformation module and a use case generation module.
  • the experience library module, the URL library module and the rule conversion module can all be used to obtain the billing rule and the first network address corresponding to the billing rule from the work order import module, and generate a matching available address according to the address type of the first network address. Accessed test address.
  • the experience library module is used to obtain the first network address corresponding to the billing rule from the work order import module, and determine the matching second network address as the test address according to the first network address, or to store the billing rule for the successful test
  • the first network address of . URL addresses that pass the billing rule test will be automatically stored in the experience database.
  • One charging rule corresponds to one network address, and this network address has been tested and accessed successfully.
  • the experience database can have a large number of network addresses with successful test access. When the content billing work order is imported, it will automatically match the data in the experience database to improve the test success rate and test efficiency.
  • the URL library module is configured to import the first network address corresponding to the billing rule from the work order, and determine a matching third network address as the test address according to the first network address.
  • the URL library can match billing rules to accessible URL addresses through the big data system and domain name crawler system and store them in the URL library. Billing rules can be matched from the URL library to precise URL addresses for testing, which also improves Test success rate and test efficiency.
  • the rule conversion module is used to obtain the first network address corresponding to the charging rule from the work order import module, and determine the fourth network address as the test address according to the test script generation rule and the first network address. In the actual test, there will be a test address that cannot be obtained from the experience library module and the URL library module that matches the first network address. At this time, the rule conversion module can be used to convert each rule in the content billing work order into Accessible test address. Effectively guarantee the normal progress and success rate of the billing test.
  • the use case generation module is used to obtain the test address from the experience library module or the URL library module or the rule conversion module, and generate a test case according to the test address, and the test case includes a test script and a test rule.
  • the scenario management module is used to obtain test cases from the use case generation module to create test scenarios.
  • the scenario management module can meet multiple testing requirements, and the operation and maintenance personnel can select the appropriate test scenario for testing, improving the credibility and accuracy of the test results.
  • the task management module is used to obtain test cases from the use case generation module, generate test tasks according to the test cases, and send the test tasks to the terminal devices, so that the terminal devices can perform billing tests according to the test scripts and test rules in the test tasks.
  • the task management module creates a test task, the task is synchronized to the mobile phone through the API interface of the docking mobile phone, and the tester can execute the task on the iTest-APP of the mobile phone.
  • the signaling analysis module is configured to obtain the first service code and the test signaling sent by the network element management system from the work order import module. During the charging test of the terminal equipment, the network element management system performs signaling tracking to generate test signaling. The signaling analysis module can generate a charging test result according to the test signaling and the first service code. The signaling analysis module can import test signaling or connect to the station-side API interface from the station side, that is, the test agent device side, to automatically obtain signaling, then perform signaling analysis, and compare the rate group (Rating Group, RG) or service code (Service id, SI) message is the same as the service code of the operator's work order, and judges whether each charging rule is configured correctly.
  • iTest-Cloud also has a report export module, which is used to obtain the charging test results from the signaling analysis module, and automatically generate a test report for the content charging test.
  • the export format of the test report is Excel format.
  • FIG. 4 is a schematic diagram of functional modules of a terminal device provided by an embodiment of the present application.
  • the terminal device deploys iTest-APP, and the main functional modules of iTest-APP include:
  • the API interface module is connected with the content billing test management device end, and is used for receiving the message from the content billing test management device end, and sending data to the content billing test management device end.
  • the task management module is used to synchronize the tasks of the content billing test management device side, so that engineers can perform test tasks on the terminal device, view task details, etc.; the use case management module is used to manage test cases under the test task, you can choose Or execute several use cases repeatedly, view the execution results of the use cases, etc.
  • iTest-APP also has a use case execution module, which adopts different use case execution methods according to the IP address or URL address in the test case, and is used for billing the test content.
  • a use case execution module which adopts different use case execution methods according to the IP address or URL address in the test case, and is used for billing the test content.
  • two modules of sending GET request and getting GET response are used.
  • the use case execution module can obtain the test task, and according to the test rules in the test task, adopt different corresponding use case execution methods to perform the test task; send the GET request module to communicate with the use case execution module for constructing Use case execution request information, and send the use case execution request information to the core network; obtain the GET response module, communicate with the use case execution module, and receive the use case execution response information returned by the core network, and the use case execution response information responds to the use case execution request The information is used to confirm that the core network has tested the network address corresponding to the charging rule.
  • the network architecture and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the network architecture The evolution of the technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
  • Network architecture shown in Figure 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine certain components, or different components layout.
  • test proxy device when the test proxy device is not configured in the software product, or the test proxy device fails to work normally, you can execute the test script after the iTest-APP (that is, the dial-up test APP) of the terminal device , engineers can manually download signaling trace data from the core network, import it into iTest-Cloud, and make iTest-Cloud perform data comparison and analysis to obtain test results.
  • iTest-APP that is, the dial-up test APP
  • FIG. 5 is a schematic diagram of a test flow provided by an embodiment of the present application when no test proxy device is configured.
  • the operator's work order processing end screens out valid URL addresses to generate a work order, and imports the work order to the content billing test management device side.
  • the content billing test management device receives the work order imported by the operator's work order processing end, it generates a test case for the billing test. It should be noted that there may be errors or deviations when generating the test case, so the generated The test case can be manually modified to make it more in line with the test requirements.
  • the content accounting test management device creates a scenario package according to the test case, and then creates a test task according to the scenario package.
  • the content charging test management device sends the test task to the mobile terminal. Both the content billing test management device and the mobile terminal can manage test tasks and view task details. After receiving the test task sent by the content charging test management device, the mobile terminal executes the test case in the test task. When the mobile terminal executes the test task, the EMS tracks the test process, and generates a signaling trace file according to the result of the test task performed by the mobile terminal. Engineers manually export the signaling file with the interface name N40, and import the signaling file to the cloud. After the content billing test management device receives the imported signaling file, it parses the signaling file, compares the SI information in the work order, and draws an analysis report on the configuration of billing rules, displaying the configuration results. So far, the charging test under the condition that the test proxy device is not configured or fails is completed.
  • the content charging test management device side creates a scenario package according to the test case, and creates a corresponding test task according to the scenario package.
  • the content billing test management device side can generate a test task carrying a test case when the scenario package is selected, and send the test task to the terminal device, so that the terminal device executes the test case in the test task; the content billing test management device
  • the terminal can also directly send the test case to the terminal device without creating a scenario package and a test task, so that the terminal device executes the test case to complete the billing test.
  • This application does not impose specific restrictions on the specific scenarios and methods in which the content charging test management device sends the test case to the terminal device, as long as the terminal device can execute the test case to complete the charging test.
  • Testing billing rules can improve network quality and customer satisfaction to a certain extent, and effectively reduce complaints about billing errors. This application can conveniently test the configuration state of the content charging rule or the situation of no configuration. Avoiding call charge disputes caused by incorrect billing rules can bring good economic and social benefits to operators and improve user experience.
  • FIG. 6 is a schematic flowchart of a content charging test method applied to a content charging test management device provided by an embodiment of the present application.
  • the content charging test method may include but not limited to step S610, step S620, step S630, step S640 and step S650.
  • Step S610 Obtain work order information, where the work order information includes charging rules and a first service code.
  • the work order information is obtained from the operator.
  • the work order information includes but is not limited to charging rules, business codes, and also includes main information such as business names and billing unit prices.
  • the work order information is in Excel format, and the main information in the work order is filled in the specified format.
  • Step S620 Generate a test case according to the charging rule.
  • the content charging test management device first obtains an accessible test address according to the charging rules, secondly obtains a test script according to the test address, and finally generates a test case according to the test script and preset test rules.
  • the preset test rule is a preset charging rule to be tested. Generated test cases have test scripts and test rules.
  • the content charging test management device generates a test case for each charging rule, and the test case includes a test script and a test rule. It can be understood that there are many billing rules to be tested, and after obtaining the test case for each billing rule, an automated test case set is automatically created.
  • Step S630 Send the test case to the terminal device, so that the terminal device performs a charging test according to the test case.
  • the content charging test management device sends the test case to the terminal device.
  • the terminal device After receiving the test case, the terminal device performs the charging test according to the test case.
  • the engineer can also select the corresponding test scenario package on the content charging test management device side according to the test scenario.
  • the content billing test management device selects the required test case according to the selected test scenario, creates a test task, and sends the test task to the terminal device for distribution to testers.
  • the terminal device starts to perform the billing test on the test script and test rules in the test task according to the tester's specific instructions.
  • the test scene is close to the real scene, which can improve the credibility and reliability of the test results. This application does not impose specific restrictions on whether to select a test scenario at the content charging test management device.
  • Step S640 Obtain the test signaling generated by the network element management system during the charging test for the terminal equipment.
  • the content charging test management device uses the EMS connected to the 5G core network, and enables signaling tracking for the test mobile phone through the EMS, so as to obtain the test generated by the network element management system during the charging test of the terminal device signaling.
  • Step S650 Generate a charging test result according to the test signaling and the first service code.
  • the content charging test management device obtains the charging session response information according to the test signaling, and obtains the second service code from the charging session response information. Comparing the second business code with the first business code, if the second business code is the same as the first business code, the billing test result indicates that the charging rule configuration is correct; if the second business code is different from the first business code In the case of , the accounting test result shows that the accounting rule configuration is incorrect.
  • FIG. 7 is a schematic flow chart of signaling comparison analysis provided by an embodiment of the present application.
  • the content charging test management device receives the EMS signaling file sent by the EMS during the execution of the use case, and first performs the signaling search process to obtain the detailed data of the signaling. Then, the field comparison process is performed according to the detailed data of the signaling, the test result is obtained, and the test report is finally generated.
  • the test management device screens out the signaling with the interface name N40 from the received EMS signaling, and then screens out the information name Nchf_ConvergedCharging_Release_Req from the signaling with the interface name N40 within the execution time of the use case (Release Charging Session Response Information) or Nchf_ConvergedCharging_Update_Req (Update Charging Session Response Information) signaling. Then extract the service code value from the two signaling messages, and the fields in the test signaling are rating group (ratingGroup, RG) and service code (serviceid, SI). The content charging test management device compares whether the service code in the test signaling is the same as the service code in the work order provided by the operator.
  • This application can greatly save labor costs, and can automatically compare the business code of the work order and the N40 port signaling file in the test signaling, replacing the manual test process of content billing.
  • Using the application can realize automatic testing, is easy to operate, effectively improves the efficiency of billing testing, has low requirements on users' technical capabilities, and is easier to popularize.
  • FIG. 8 is a schematic flowchart of a specific method of step S620 in FIG. Step S820.
  • Step S810 Obtain the first network address corresponding to the charging rule according to the charging rule.
  • the first network address may be an IP address or a URL address or a combined address of an IP address and a URL address. It should be noted that different address types in this application correspond to different methods of obtaining test addresses.
  • Step S820 Determine an accessible test address according to the address type of the first network address.
  • the first case is: if there is a second network address matching the first network address recorded in the experience database, then the second network address is determined as the test address in the test script, and the experience database stores the billing for successful testing.
  • the second situation is: when the second network address is not recorded in the experience database, the third network address matching the first network address is obtained from the URL database as the test address in the test script.
  • the third situation is: when the first network address cannot be obtained from the experience database and the URL database, the fourth network address is determined as the test address according to the preset test script generation rules and the first network address.
  • the first network address is an IP address, or when it is a combined address of an IP address and a URL address, then according to the first network address and a preset test script generation rule, determine the fifth network address corresponding to the first network address as an accessible test address.
  • FIG. 9 is a schematic flowchart of use case generation in the content charging test management device provided by an embodiment of the present application.
  • the content charging test management device includes, but is not limited to, the functional modules shown in FIG. 3 , and may also include a use case management module, which is used to manage test cases.
  • the use case management module first adds a deep packet inspection (Deep Packet Inspection, DPI) use case set. Judging whether the test address of the test case is a seven-layer rule, that is, judging whether the test address is a URL address.
  • DPI Deep Packet Inspection
  • test address is a URL address
  • test address cannot be matched in the experience library, then it will be matched in the URL library.
  • the data recorded in the URL library is a large number of accurate URLs found in advance through big data or crawler technology. Based on this, iTest-Cloud can search the URL database for an exact address that can be matched by a certain rule, and if there is a match, use the matched address as the test address for mobile phone access in the test script.
  • test script generation rules processing is performed to obtain the test address accessed by the mobile phone in the test script. After getting the test address, generate a mobile phone script, and finally generate a use case.
  • the rules corresponding to the network addresses recorded in the experience database are charging rules that have been successfully tested.
  • the use case management module manages the test cases
  • the scenario management module uses the test cases in the use case management module to create test scenarios
  • creates test tasks according to the test scenarios and sends the test tasks to the mobile phone APP.
  • the mobile APP executes the test task
  • iTest-Cloud receives the imported signaling and performs signaling analysis.
  • the access URL address executes the task successfully and the signaling analysis is successful, the URL address is automatically entered into the experience database.
  • the test method provided in this application can be self-learning, and provides training samples for the realization of the test robot.
  • For content billing rules that have been successfully tested they are stored in the experience database. As long as the rules in the operator work order are recorded in the experience database, the original rules can be replaced with the accessible domain names in the library to improve the test success rate.
  • iTest-Cloud can automatically convert the network address of the charging rule into an accessible test address in the rule conversion module for the network address of different charging rules.
  • FIG. 10 is a schematic diagram of test script generation rules provided by an embodiment of the present application. Taking a DPI work order as an example, the processing rules are as follows:
  • IP address For only the three-layer rule (IP address), if it is a specific address, the address is IPV4, such as 49.4.42.14, then direct access. If it is an IPV6 address, access after removing the 128 mask. If the network address only has an address range, for IPV4, remove the first and last available addresses as the accessible test address; for the IPV6 address, calculate the address range according to the mask, and take the first available address as the accessible test address . For the network address of the designated port and designated address, the test address is obtained by adding the designated port to the address. For the network address of the specified address and port range, take the smallest port in the port range and concatenate the specified address to obtain an accessible test address.
  • IPV4 IPV4, such as 49.4.42.14, then direct access. If it is an IPV6 address, access after removing the 128 mask. If the network address only has an address range, for IPV4, remove the first and last available addresses as the accessible test address; for the IPV6 address, calculate the address range according to the mask
  • the smallest port in the port range will be spliced to the available addresses in the address range to obtain an accessible test address; for IPV6, the smallest port in the port range will be used The port splicing of the masked address is removed to obtain an accessible test address. Then generate a mobile phone test script for charging rule testing.
  • the seven-layer rule (URL address)
  • the third layer rule and the seventh layer rule are also processed respectively according to the above rules.
  • FIG. 11 is a schematic flowchart of a content charging test method applied to a terminal device provided by an embodiment of the present application.
  • the content charging test method may include but not limited to step S1110 and step S1120.
  • Step S1110 the terminal device acquires a test case from the content charging test management device.
  • the terminal device obtains a test case from the content charging test management device, and the test case is generated by the content charging test management device according to the charging rules in the work order information.
  • the terminal device can directly obtain the test case from the content charging test management device, or obtain the test task from the content charging test management device, and then obtain the test case from the test task.
  • the terminal device can automatically synchronize the test task created by the content charging test management device. Testers can log in to the iTest-APP of the terminal device, view the synchronized test tasks, and then execute the test cases in the test tasks. Users can operate on the mobile phone, perform test tasks or view task details, etc.
  • Step S1120 Perform a billing test according to the test case.
  • the terminal device performs a charging test on the charging rule according to the test case.
  • FIG. 12 is a schematic flowchart of a specific method of step S1120 in FIG. 11 provided by an embodiment of the present application, and describes step S1120.
  • This step S1120 may include but not limited to steps S1210, Step S1220, step S1230 and step S1240.
  • Step S1210 the terminal device acquires test rules according to the test cases.
  • the terminal device obtains a test case from the content charging test management device, and the test case includes a test script and a test rule.
  • the test rule is a preset charging rule to be tested. Terminal devices can obtain test rules from test cases.
  • Step S1220 Obtain a test rule to determine a test address.
  • Step S1230 Determine the corresponding use case execution rule according to the address type of the test address.
  • the address type of the test address includes at least one of: IP address and URL address. It can be understood that the address type of the test address may be an IP address, a URL address, or a combined address of an IP address and a URL address. Different address types correspond to different use case execution rules to ensure that test cases can be executed smoothly and improve the success rate of billing tests.
  • Step S1240 Carry out a billing test according to the use case execution rules.
  • the terminal device sends the use case execution request information according to the use case execution rules, and then, after receiving the use case execution response information, executes the test script according to the use case execution rules to perform the charging test.
  • the terminal device ensures that all test cases can be successfully tested through the use case test processing flow.
  • FIG. 13 is a schematic diagram of a processing flow of a mobile phone executing a test case provided by an embodiment of the present application.
  • charging rules can be divided into three-tier rules, seven-tier rules and combined rules, where the combined rule value is a combination of three-tier rules and seven-tier rules.
  • the mobile terminal starts the test through keywords to determine whether the test rule is a combination rule.
  • the test rule is a combined rule, establish a TCP link and determine whether it is an HTTPS protocol.
  • the mobile phone constructs a GET message to send, and obtains the GET message to ensure that the network address corresponding to the rule has been tested.
  • the mobile phone When the TCP link is successfully established and the HTTPS protocol is used, the mobile phone sends a ClientHello message with a matching domain name. If the authentication is successful, it sends a GET request and receives a GET response to ensure that the network address corresponding to the rule has been tested. If If the authentication is unsuccessful, the test ends.
  • a ClientHello message is sent to complete the test.
  • the destination address in the message is the layer-3 address in the combination address, that is, the IP address, and servername is the domain name in the combination rule.
  • the destination address in the GET message is the three-layer rule in the combination rule, and the Host is the domain name in the combination rule.
  • test rule When the test rule is not a combination rule, but a three-layer rule (IP address), then establish a link according to the TCP specified port in the combination rule. If the link is established successfully, the billing rule will be triggered, and the mobile terminal will send a GET message to obtain a GET response to ensure that the test reaches the network address corresponding to the test rule, and the test is completed. If the link building fails, the test ends.
  • IP address IP address
  • test rule When the test rule is not a combination rule, but a seven-layer rule (URL address).
  • DNS resolution if the DNS resolution is successful and the link is established successfully, send a GET request directly for HTTP and get the GET response to complete the test; for HTTPS, send a ClientHello message with the matching domain name, and the authentication is successful Then send a GET request to complete the test, and end the test if the authentication is unsuccessful. If the DNS resolution is successful and the link building fails, for HTTP, a GET request is sent directly to complete the test.
  • the destination address in the GET request is the IP address of the link building, and the Host is the domain name of the seventh layer; for HTTPS, it is sent with the matching domain name ClientHello message, the test is completed, the destination address in the ClientHello message is the IP address of the link, and the servername is the domain name of the seventh layer.
  • the test address resolution fails or does not require DNS resolution, send a GET message directly for HTTP, and send a ClientHello message for HTTPS to complete the test.
  • the destination address of the GET message and the ClientHello message are the same, and the ClientHello message
  • the servername in it is the domain name of the seventh layer, and the Host in the GET message is the domain name of the seventh layer. If there is a port, the GET message also needs to carry the port.
  • the test address may not exist or may be virtual. Constructing and sending a GET message can ensure that the network address corresponding to the charging rule is tested, which improves the success rate of the charging test and saves test resources.
  • Fig. 14 is the home scene interface of iTest-Cloud provided by an embodiment of the present application. There is a test scene selection in the scene interface, and the user can select a scene package on the popular scene on the home page, and click follow.
  • FIG. 15 is the sub-scene interface of iTest-Cloud provided by an embodiment of the present application.
  • the user can select the concerned scene package creation task in the sub-scene interface as shown in FIG. 15 .
  • users pay attention to the scene package, they can create tasks according to the scene package.
  • both the mobile terminal and the iTest cloud will display the task, and the task status on both sides is the same.
  • the user can click to create a task, and then modify the task name in another sub-page. After creating a task, you can see the task you created on the "My Tasks" page.
  • FIG. 16 is an APP interface of a mobile terminal provided by an embodiment of the present application. After the task is created, the task will be displayed on both the mobile terminal and the iTest cloud, and the status of the tasks on both sides is the same.
  • the mobile APP page is shown in Figure 16. The user can select the DPI test task to be performed on the mobile APP page, click execute, download the use case, click continue, and wait for the mobile phone to complete the DPI test.
  • the user logs in to iTest-Cloud and checks the task. At this time, the task status will be updated from created to completed. Users can log in to the EMS management system to export signaling tracking files, enter the task page, find the tasks they have completed, and import the signaling files generated after the task execution to iTest-Cloud. After the signaling file is successfully imported, use the data analysis function of iTest-Cloud for data analysis. After the analysis is over, the user can click on the task to view the task details, the execution result of each use case, that is, whether each URL address test is successful, and click on the analysis result to view the log, that is, the RG number comparison result. If the mobile APP test URL address test is successful but the RG number does not exist, the analysis results also reflect that the log will show that the RG number does not exist.
  • the embodiment of the present application provides a content charging test management device and a terminal device to cooperate with each other to complete the charging test. It replaces the manual test process of content billing, automatically compares the service code of the work order with the N40 in the signaling, and obtains the test status of the billing rule.
  • Engineers can grasp the progress of test tasks through APP and iTest-Cloud, and can conveniently check and verify the test status of billing rules, saving labor costs and improving the work efficiency of engineers. Verifying the configuration of billing rules will help improve network quality and customer satisfaction, and effectively reduce similar complaints.
  • the present application can conveniently test the situation that the content charging rule is not configured. Avoid call charge disputes caused by incorrect billing rules, and bring good economic and social benefits to operators.
  • FIG. 17 is a content charging test management device 1700 provided by an embodiment of the present application. As shown in Figure 17, the content charging test management device 1700 includes but is not limited to:
  • the memory 1720 is used to store programs; the processor 1710 is used to execute the programs stored in the memory 1720. When the processor 1710 executes the programs stored in the memory 1720, the processor 1710 is used to execute the above-mentioned content charging test method.
  • the processor 1710 and the memory 1720 may be connected through a bus or in other ways.
  • FIG. 18 is a terminal device 1800 provided by an embodiment of the present application.
  • the terminal device 1800 includes but is not limited to: a memory 1820 for storing programs; a processor 1810 for executing the programs stored in the memory 1820, when the processor 1810 executes the programs stored in the memory 1820, the processor Step 1810 is used to execute the above content charging test method.
  • the processor 1810 and the memory 1820 may be connected through a bus or in other ways.
  • the memory 1720 and the memory 1820 can be used to store non-transitory software programs and non-transitory computer-executable programs, such as the content charging test method described in the embodiment of the present application.
  • the processor 1710 and the processor 1810 respectively execute the non-transitory software programs and instructions stored in the memory 1720 and the memory 1820 to implement the above-mentioned content charging test method.
  • the memory 1720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application program required by a function; the data storage area may store and execute the content charging test method described above.
  • the memory 1720 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory 1720 may optionally include memory located remotely from the processor 1710, and these remote memories may be connected to the processor 1710 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the non-transitory software programs and instructions required to realize the above-mentioned content billing test method are stored in the memory 1720, and when executed by one or more processors 1710, the above-mentioned content billing test method is executed, for example, as shown in FIG. Method steps S610 to S650 in 6 and method steps S810 to S820 in FIG. 8 .
  • the storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 1710, for example, by one of the processors 1710 in the above-mentioned content charging test management device 1700 , the above-mentioned one or more processors 1710 may be made to execute the above-mentioned content charging test method, for example, execute method steps S610 to S650 in FIG. 6 and method steps S810 to S820 in FIG. 8 .
  • the non-transitory software programs and instructions required to realize the above-mentioned content billing test method are stored in the memory 1820, and when executed by one or more processors 1810, the above-mentioned content billing test method is executed, for example, the implementation of FIG. 11
  • the method steps S1110 to S1120 in and the method steps S1210 to S1240 in FIG. 12 are stored in the memory 1820, and when executed by one or more processors 1810, the above-mentioned content billing test method is executed, for example, the implementation of FIG. 11
  • the method steps S1110 to S1120 in and the method steps S1210 to S1240 in FIG. 12 are stored in the memory 1820, and when executed by one or more processors 1810, the above-mentioned content billing test method is executed, for example, the implementation of FIG. 11
  • the method steps S1110 to S1120 in and the method steps S1210 to S1240 in FIG. 12 are stored in the memory 1820, and when executed by one or more processors
  • the storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 1810, for example, executed by one of the processors 1810 in the terminal device 1800, so that the above-mentioned One or more processors 1810 execute the above-mentioned content charging test method, for example, execute method steps S1110 to S1120 in FIG. 11 and method steps S1210 to S1240 in FIG. 12 .
  • the embodiment of the present application includes: when it is necessary to test the configuration of the updated content charging rule, the content charging test management device acquires work order information, wherein the work order information includes the charging rule and the first service code.
  • the content charging test management device generates a test case according to the charging rule, and sends the test case to the terminal device. After receiving the test case, the terminal device performs test processing according to the test case.
  • the network element management system tracks the charging test process to generate test signaling and sends it to the content charging test management device.
  • the content charging test management device generates a charging test result according to the test signaling and the first service code, and obtains the updated charging rule configuration.
  • the content billing test management device by using the content billing test management device to receive work order information, and using the content billing test management device to automatically generate test cases and analyze test signaling according to the work order information, the updated Configuration of content charging rules.
  • the solution of the embodiment of the present application can use the content charging test management device and the real terminal device to perform the test task when the content charging rule is updated and the configuration is unknown.
  • the two devices cooperate with each other to test the updated charging Whether the rules are configured correctly can effectively improve the accuracy and test efficiency of content billing tests, provide operation and maintenance engineers with more reliable configuration reference results, and improve the work efficiency of engineering personnel.
  • Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

Disclosed in the present application are a content charging test method, a management device, a terminal device and a storage medium, which are applied to a content charging test management device. The method comprises: acquiring work order information, the work order information comprising a charging rule and a first service code (S610); generating a test case according to the charging rule (S620); sending the test case to a terminal device, so that the terminal device performs a charging test according to the test case (S630); acquiring test signaling generated by a network element management system in the charging test process for the terminal device (S640); and generating a charging test result according to the test signaling and the first service code (S650).

Description

内容计费测试方法、管理设备、终端设备及存储介质Content billing test method, management equipment, terminal equipment and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202210042819.9、申请日为2022年1月14日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202210042819.9 and a filing date of January 14, 2022, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请涉及通信技术领域,特别地涉及一种内容计费测试方法、管理设备、终端设备及存储介质。The present application relates to the technical field of communications, and in particular to a content charging test method, management equipment, terminal equipment and storage media.
背景技术Background technique
内容计费是指运营商结合用户访问业务的不同信息和核心网网元配置的规则来进行计费。运营商根据手机用户访问的不同的业务来管理用户访问权限以及收取费用。如果计费规则配置错误,很可能会导致运营商的业务出现错误,甚至和用户产生费用纠纷,因此,内容计费规则匹配的准确性有着重要的意义。而随着手机业务和核心网业务的不断发展,内容计费的策略也愈加复杂,业务和规则的数量也不断递增,时常需要进行升级或调整计费策略。计费的规则和策略往往由运维人员手工配置,维护难度大,很有可能导致配置有误。因此,升级和调整计费策略后,工程人员需要进行测试以保证业务的正常进行。Content billing means that the operator performs billing in combination with different information about user access services and rules configured by core network elements. Operators manage user access rights and charge fees according to the different services accessed by mobile phone users. If the billing rules are incorrectly configured, it is likely to cause errors in the operator's business, and even cause disputes with users. Therefore, the accuracy of content billing rule matching is of great significance. With the continuous development of mobile phone services and core network services, the content billing strategy is becoming more and more complex, and the number of services and rules is also increasing. It is often necessary to upgrade or adjust the billing strategy. Billing rules and policies are often manually configured by operation and maintenance personnel, which is difficult to maintain and may lead to configuration errors. Therefore, after upgrading and adjusting the billing policy, engineers need to conduct tests to ensure the normal operation of the business.
相关技术中,依靠人工使用手机终端进行拨测,然后人工比对核心网产生的话单;或是使用软件仿真模拟接入核心网进行测试。人工测试方法所使用的测试时间较长,难以覆盖数量庞大的计费规则,工作效率较低;仿真模拟方法没有使用到真实业务流程,无法模拟用户使用真实手机访问数据业务时产生的内容计费,容易产生测试误差,且无法适配未使用的规则,使用灵活性较差,测试结果可靠程度低。因此,如何对内容计费进行更高效准确且可靠的测试是一个亟待解决的问题。In the related technology, rely on manual use of mobile phone terminals for dial testing, and then manually compare the bills generated by the core network; or use software simulation to simulate access to the core network for testing. The test time used by the manual test method is long, it is difficult to cover a large number of billing rules, and the work efficiency is low; the simulation method does not use the real business process, and cannot simulate the content billing generated when users use real mobile phones to access data services , it is easy to produce test errors, and cannot adapt to unused rules, the flexibility of use is poor, and the reliability of test results is low. Therefore, how to conduct a more efficient, accurate and reliable test for content billing is an urgent problem to be solved.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提供了一种内容计费测试方法。The embodiment of the present application provides a content charging test method.
第一方面,本申请实施例提供了一种内容计费测试方法,应用于内容计费测试管理设备,所述内容计费测试方法包括:获取工单信息,所述工单信息包括计费规则和第一业务编码;根据所述计费规则生成测试用例;将所述测试用例发送至终端设备,以使所述终端设备根据所述测试用例进行计费测试;获取网元管理系统对所述终端设备在计费测试过程中所生成的测试信令;根据所述测试信令和所述第一业务编码生成计费测试结果。In the first aspect, the embodiment of the present application provides a content charging test method, which is applied to a content charging test management device, and the content charging test method includes: obtaining work order information, and the work order information includes charging rules and the first service code; generate a test case according to the charging rule; send the test case to the terminal device, so that the terminal device performs a charging test according to the test case; obtain the network element management system for the A test signaling generated by the terminal device during the charging test; generating a charging test result according to the test signaling and the first service code.
第二方面,本申请实施例还提供了一种内容计费测试方法,应用于终端设备,所述内容计费测试方法包括:从内容计费测试管理设备获取测试用例,所述测试用例由所述 内容计费测试管理设备根据工单信息中的计费规则生成;根据所述测试用例进行计费测试。In the second aspect, the embodiment of the present application also provides a content charging test method, which is applied to a terminal device. The content charging test method includes: obtaining a test case from a content charging test management device, and the test case is determined by the The content charging test management device is generated according to the charging rules in the work order information; and the charging test is performed according to the test cases.
第三方面,本申请实施例还提供了一种内容计费测试管理设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上第一方面所述的内容计费测试方法。In the third aspect, the embodiment of the present application also provides a content billing test management device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor executes the computer program. The program implements the content charging test method as described in the first aspect above.
第四方面,本申请实施例还提供了一种终端设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上第二方面所述的内容计费测试方法。In the fourth aspect, the embodiment of the present application also provides a terminal device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above when executing the computer program. The content charging test method described in the second aspect.
第五方面,本申请实施例还提供一种存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的内容计费测试方法。In a fifth aspect, the embodiment of the present application further provides a storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the content charging test method as described above.
本申请技术方案的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请技术方案而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the technical solution of the present application will be set forth in the following description, and partly become obvious from the description, or can be understood by implementing the technical solution of the present application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the technical solution of the present application, and do not constitute a limitation to the technical solution of the present application.
图1为本申请一实施例提供的实现内容计费测试方法的网络架构图;Fig. 1 is a network architecture diagram for implementing a content charging test method provided by an embodiment of the present application;
图2为本申请一实施例提供的实现内容计费测试的软件产品架构图;FIG. 2 is a software product architecture diagram for implementing a content charging test provided by an embodiment of the present application;
图3为本申请一实施例提供的内容计费测试管理设备的功能模块示意图;FIG. 3 is a schematic diagram of functional modules of a content charging test management device provided by an embodiment of the present application;
图4为本申请一实施例提供的终端设备的功能模块示意图;FIG. 4 is a schematic diagram of functional modules of a terminal device provided by an embodiment of the present application;
图5为本申请一实施例提供的未配置测试代理设备时的测试流程示意图;FIG. 5 is a schematic diagram of a test flow when no test proxy device is configured according to an embodiment of the present application;
图6为本申请一实施例提供的应用于内容计费测试管理设备的内容计费测试方法的流程示意图;FIG. 6 is a schematic flowchart of a content charging test method applied to a content charging test management device provided by an embodiment of the present application;
图7为本申请一实施例提供的信令对比分析流程示意图;FIG. 7 is a schematic diagram of a signaling comparison analysis process provided by an embodiment of the present application;
图8为本申请一实施例提供的图6中步骤S620的具体方法的流程示意图;FIG. 8 is a schematic flowchart of a specific method of step S620 in FIG. 6 provided by an embodiment of the present application;
图9为本申请一实施例提供的内容计费测试管理设备内用例生成的流程示意图;FIG. 9 is a schematic flow diagram of use case generation in the content charging test management device provided by an embodiment of the present application;
图10为本申请一实施例提供的测试脚本生成规则的示意图;FIG. 10 is a schematic diagram of a test script generation rule provided by an embodiment of the present application;
图11为本申请一实施例提供的应用于终端设备的内容计费测试方法的流程示意图;FIG. 11 is a schematic flowchart of a content charging test method applied to a terminal device provided by an embodiment of the present application;
图12为本申请一实施例提供的图11中步骤S1120的具体方法的流程示意图;FIG. 12 is a schematic flowchart of a specific method of step S1120 in FIG. 11 provided by an embodiment of the present application;
图13为本申请一实施例提供的手机执行测试用例的处理流程示意图;13 is a schematic diagram of the processing flow of the mobile phone execution test case provided by an embodiment of the present application;
图14为本申请一实施例提供的iTest-Cloud的首页场景界面;Fig. 14 is the home scene interface of iTest-Cloud provided by an embodiment of the present application;
图15为本申请一实施例提供的iTest-Cloud的子场景界面;Fig. 15 is the sub-scene interface of iTest-Cloud provided by an embodiment of the present application;
图16为本申请一实施例提供的手机端APP界面;Fig. 16 is the APP interface of the mobile terminal provided by an embodiment of the present application;
图17为本申请一实施例提供的内容计费测试管理设备;FIG. 17 is a content charging test management device provided by an embodiment of the present application;
图18为本申请一实施例提供的终端设备。FIG. 18 is a terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请技术方案,并不用于限定本申请技术方案。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the technical solution of the present application, and are not intended to limit the technical solution of the present application.
需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than in the flowchart. The terms "first", "second" and the like in the specification and claims and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
需要说明的是,在本申请的描述中,若干的含义是一个或者多个,多个的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。It should be noted that in the description of this application, several means one or more, and multiple means two or more. Greater than, less than, exceeding, etc. are understood as excluding the original number, and above, below, within, etc. are understood as Include this number.
本申请提供了一种内容计费测试方法、管理设备、终端设备及存储介质,先利用内容计费测试管理设备获取工单信息,其中,工单信息包括计费规则的第一业务编码;根据计费规则自动生成测试用例,并将测试用例发送给终端设备,以使终端设备接收测试用例后,根据测试用例进行计费测试处理。内容计费测试管理设备获取网元管理系统跟踪计费测试过程中生成的测试信令,并根据测试信令和第一业务编码生成计费测试结果,获得更新后的计费规则的配置情况。The present application provides a content charging test method, management equipment, terminal equipment, and storage media. First, the content charging test management equipment is used to obtain work order information, wherein the work order information includes the first business code of the charging rule; according to The billing rules automatically generate test cases, and send the test cases to the terminal equipment, so that the terminal equipment performs billing test processing according to the test cases after receiving the test cases. The content charging test management device obtains the test signaling generated during the tracking charging test process of the network element management system, generates the charging test result according to the test signaling and the first service code, and obtains the updated charging rule configuration.
本申请用于验证核心网内容计费规则配置的正确性,尤其是5G核心网的配置。在运营商核心网上线运行前,或在对核心网进行扩容、升级、数据配置变更等重大操作后,使用内容计费测试管理设备和终端设备相互配合,对核心网的内容计费规则的配置进行自动化测试,以提高针对计费规则的测试的正确率和效率。This application is used to verify the correctness of the configuration of core network content charging rules, especially the configuration of the 5G core network. Before the operator's core network goes online, or after major operations such as expansion, upgrade, and data configuration changes on the core network, use the content charging test management device and terminal equipment to cooperate with each other to configure the content charging rules of the core network Carry out automated testing to improve the accuracy and efficiency of testing for billing rules.
下面结合附图,对本申请实施例进行阐述。Embodiments of the present application will be described below in conjunction with the accompanying drawings.
参照图1,图1为本申请一实施例提供的实现内容计费测试方法的网络架构图。图1所示的网络架构图包括五个部分,分别是终端设备部分、内容计费测试管理设备部分、测试代理设备部分、网元管理系统部分和5G运营商网络部分。Referring to FIG. 1 , FIG. 1 is a network architecture diagram for implementing a content charging test method provided by an embodiment of the present application. The network architecture diagram shown in Figure 1 includes five parts, namely the terminal device part, the content billing test management device part, the test proxy device part, the network element management system part and the 5G operator network part.
参照图1,终端设备部分部署有iTest-APP,iTest-APP是用于测试内容计费规则的手机APP软件,支持安卓系统。内容计费测试管理设备部分部署有iTest-Cloud,iTest-Cloud是用于测试内容计费规则的云端系统,且支持Linux和Windows操作系统。测试代理设备部分部署有iTest-Station,iTest-Station是测试内容计费规则的站端系统软件。终端设备、内容计费测试管理设备和测试代理设备三部分都接入互联网,能够通信连接,相互之间能够传输交换收据,相互配合共同完成针对5G核心网的内容计费测试。Referring to Figure 1, iTest-APP is deployed on the terminal equipment part. iTest-APP is a mobile phone APP software used to test content charging rules and supports the Android system. Part of the content billing test management equipment is deployed with iTest-Cloud, which is a cloud system for testing content billing rules and supports Linux and Windows operating systems. iTest-Station is deployed in part of the test proxy equipment, and iTest-Station is a station-side system software for testing content charging rules. The terminal equipment, the content billing test management equipment and the test proxy equipment are all connected to the Internet, can communicate and connect, can transmit and exchange receipts with each other, and cooperate with each other to complete the content billing test for the 5G core network.
需要说明的是,内容计费测试管理设备可以是服务器也可以是虚拟机,测试代理设备可以是笔记本电脑也可以是传统的台式电脑,本申请对计费测试过程中所使用的内容计费测试管理设备以及测试代理设备不做具体的限制,只要其能相互配合实现计费测试管理的功能即可。终端设备可以是手机,也可以是能够运行iTest-APP的其他电子设备。It should be noted that the content billing test management device can be a server or a virtual machine, and the test proxy device can be a notebook computer or a traditional desktop computer. There are no specific restrictions on the management device and the test proxy device, as long as they can cooperate with each other to realize the function of billing test management. The terminal device can be a mobile phone or other electronic devices capable of running iTest-APP.
EMS(Element Management System,网元管理系统)是管理特定类型的一个或多个电信NE(Network Element,网络单元)的系统。EMS是核心网的网管系统,具有计帐、拓扑管理以及系统监控等功能,可以跟踪用户终端设备上的上网业务的信令数据。测试代理设备与被测试的5G核心网所在的EMS管理平面网络连通。部署有iTest-Station 的测试代理设备可以自动从EMS处获取用户终端设备的上网业务的信令跟踪数据,并将该信令跟踪数据上传给内容计费测试管理设备,以使得内容计费测试管理设备进行数据对比分析,得到计费规则的配置情况。此外,工程人员也可以在终端设备的iTest-APP(即进行拨测的APP)执行完测试脚本后,手动从EMS上下载信令跟踪数据,导入到iTest-Cloud,使之完成信令的对比分析得出计费规则配置情况。EMS (Element Management System, Network Element Management System) is a system that manages one or more telecommunications NE (Network Element, Network Element) of a specific type. EMS is the network management system of the core network. It has functions such as accounting, topology management, and system monitoring, and can track the signaling data of Internet access services on user terminal equipment. The test proxy device is connected to the EMS management plane network where the tested 5G core network is located. The test proxy device deployed with iTest-Station can automatically obtain the signaling tracking data of the Internet service of the user terminal equipment from the EMS, and upload the signaling tracking data to the content charging test management device, so that the content charging test management The device performs data comparison and analysis to obtain the configuration of charging rules. In addition, after the iTest-APP of the terminal device (that is, the APP for dialing test) executes the test script, the engineering personnel can manually download the signaling tracking data from the EMS and import it to the iTest-Cloud to complete the signaling comparison Analyze the charging rule configuration.
参照图1,5G运营商网络包括但不限于:(无线)接入网((radio)Access Network,(R)AN)、用户面功能(User Plane Function,UPF)网元、接入与移动性管理功能(Access and Mobility Management Function,AMF)网元、会话管理功能(Session Management Function,SMF)网元以及计费功能网元(Charging Function,HCF)。上述5G运营商网络中,除(无线)接入网之外的部分,称为5G核心网络。Referring to Figure 1, the 5G operator network includes but is not limited to: (wireless) access network ((radio) Access Network, (R) AN), user plane function (User Plane Function, UPF) network elements, access and mobility Management function (Access and Mobility Management Function, AMF) network element, session management function (Session Management Function, SMF) network element and charging function network element (Charging Function, HCF). In the above-mentioned 5G operator network, the part other than the (wireless) access network is called the 5G core network.
本申请中所使用的5G网络结构中采用基于参考点的表示方式来表示网络功能之间的交互。参考点有基于服务化接口的参考点和基于传统点对点通信的参考点。The 5G network structure used in this application uses a representation based on reference points to represent the interaction between network functions. There are reference points based on service interface and reference points based on traditional point-to-point communication.
图1中,N1、N2、N3、N6、N11以及N40等接口为运营商网络提供的接口具有接口序列号。这些接口的功能以及接口序列号的具体含义可参见3GPP标准协议中的定义及释义,在此不再赘述。为便于理解本申请的内容,下面对本申请网络架构中涉及的一些功能网元进行解释说明。In FIG. 1 , interfaces such as N1 , N2 , N3 , N6 , N11 , and N40 are interfaces provided by the carrier network and have interface serial numbers. The functions of these interfaces and the specific meanings of the serial numbers of the interfaces can refer to the definition and interpretation in the 3GPP standard protocol, and will not be repeated here. In order to facilitate the understanding of the content of the present application, some functional network elements involved in the network architecture of the present application are explained below.
接入网络(Access Network,AN)是运营商网络的子网络,是运营商网络中业务节点与终端设备之间的实施系统。(无线)接入网((radio)Access Network,(R)AN)为AN设备的一种,能够为终端设备提供无线通信功能。(R)AN是指固定用户全部或部分以无线的方式接入到交换机。The access network (Access Network, AN) is a sub-network of the operator's network and an implementation system between service nodes and terminal devices in the operator's network. (Wireless) Access Network ((radio) Access Network, (R) AN) is a kind of AN equipment, which can provide wireless communication functions for terminal equipment. (R) AN refers to all or part of fixed users accessing the switch in a wireless manner.
需要说明的是,无线接入网是地面的基础设施,接入网设备包括但不限于:5G中的下一代基站(g NodeB,gNB)、无线网络控制器、基站控制器以及移动交换中心等等。It should be noted that the radio access network is the ground infrastructure, and the access network equipment includes but not limited to: next-generation base stations (gNodeB, gNB), radio network controllers, base station controllers, and mobile switching centers in 5G, etc. wait.
数据网络是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端设备提供数据和/或语音等服务。The data network is a network outside the operator's network. The operator's network can access multiple DNs, and various services can be deployed on the DNs, which can provide data and/or voice services for terminal devices.
用户面功能网元是由运营商提供的网关,是运营商网络与DN通信的网关,能够实现分组路由转发,策略实施、业务用量上报、上行包检测、下行数据包存储等用户面相关的功能。The user plane function network element is a gateway provided by the operator. It is the gateway for communication between the operator network and the DN. It can implement packet routing and forwarding, policy implementation, service usage reporting, uplink packet detection, downlink data packet storage and other user plane related functions. .
接入与移动性管理功能网元是由运营商网络提供的控制面网元,具有接入和移动性管理功能,能够完成终端设备接入运营商网络的接入和移动性管理。例如包括移动状态管理,分配用户临时身份标识,接入鉴权和接入授权等功能。The access and mobility management function network element is a control plane network element provided by the operator's network. It has access and mobility management functions and can complete the access and mobility management of terminal equipment accessing the operator's network. For example, it includes functions such as mobile status management, allocation of user temporary identities, access authentication and access authorization.
会话管理功能网元负责管理终端设备的协议数据单元(Protocol Data Unit,PDU)会话,即处理用户的业务。SMF网元负责建立、维护和删除PDU会话,还能够管理会话,例如会话建立、修改和释放。此外,SMF网元还具有选择和控制UPF网元的、将会话信息转发至合适的目的网络等与会话相关的功能。The session management function network element is responsible for managing the protocol data unit (Protocol Data Unit, PDU) session of the terminal equipment, that is, processing the user's business. The SMF network element is responsible for establishing, maintaining and deleting PDU sessions, and can also manage sessions, such as session establishment, modification and release. In addition, SMF network elements also have session-related functions such as selecting and controlling UPF network elements, and forwarding session information to an appropriate destination network.
CHF网元具有计费功能,支持在线计费、离线计费和融合计费。其中,融合计费是是5G规范中新增的一种计费模式,能够融合在线计费和离线计费这两种计费模式。在此模式下,在线和离线两种模式下,网元都通过Nchf服务化接口与CHF网元传递计费 消息。The CHF network element has a charging function and supports online charging, offline charging and converged charging. Among them, converged charging is a new charging mode in the 5G specification, which can integrate online charging and offline charging. In this mode, in both online and offline modes, network elements transmit charging messages with CHF network elements through the Nchf service interface.
在该网络架构中,用户终端设备通过基站(R)AN接入核心网,进行各项业务。5G核心网中的各网元,例如SMF网元和短信息网元,通过服务化接口Nchf向CHF网元报告用户上网涉及的计费事件,CHF网元负责完成计费和额度授权,并生成话单文件给账务域进行账务处理。网元管理系统跟踪终端设备上网业务的信令数据,并将之传输给测试代理设备。测试代理设备自动将信令跟踪数据传输给内容计费测试管理设备。内容计费测试管理设备进行数据对比分析,得到计费规则的配置情况,完成针对5G核心网的计费规则测试。In this network architecture, user terminal equipment accesses the core network through the base station (R)AN to perform various services. Each network element in the 5G core network, such as the SMF network element and the short message network element, reports the billing events involved in the user's Internet access to the CHF network element through the service interface Nchf. The CHF network element is responsible for completing the billing and quota authorization, and generates The bill file is used for accounting processing in the accounting domain. The network element management system tracks the signaling data of the terminal equipment's online service and transmits it to the test agent equipment. The test proxy device automatically transmits the signaling trace data to the content charging test management device. The content billing test management equipment conducts data comparison and analysis, obtains the configuration of billing rules, and completes the billing rule test for the 5G core network.
参照图2,为本申请一实施例提供的实现内容计费测试的软件产品架构图。在图2的示例中,该软件产品架构图包括终端设备端的iTest-APP、计费测试管理端的iTest-Cloud、测试代理设备端的iTest-Station和网元管理系统。iTest-APP、iTest-Cloud和iTest-Station都接入互联网,相互之间能够实现通信连接。在一个示例中,终端设备端的局域网IP为192.168.101.x,测试代理设备端的局域网IP为192.168.51.x,管理面IP为192.168.2.x,计费测试管理端的公网IP为58.213.91.x。终端设备端能通过计费测试管理端与测试代理设备端相互访问。代理测试端和网元管理系统通过管理面相互访问,实现数据传递。Referring to FIG. 2 , it is an architecture diagram of a software product for implementing a content charging test provided by an embodiment of the present application. In the example in Figure 2, the software product architecture diagram includes the iTest-APP at the terminal device side, the iTest-Cloud at the billing test management side, the iTest-Station at the test proxy device side, and the network element management system. iTest-APP, iTest-Cloud and iTest-Station are all connected to the Internet and can communicate with each other. In one example, the LAN IP of the terminal device is 192.168.101.x, the LAN IP of the test proxy device is 192.168.51.x, the management plane IP is 192.168.2.x, and the public network IP of the billing test management side is 58.213 .91.x. The terminal device can access each other through the billing test management terminal and the test proxy device. The agent test terminal and the network element management system access each other through the management plane to realize data transmission.
需要说明的是,其中测试代理设备端可选,该软件产品中可以配置有测试代理设备端,也可以不配置测试代理设备端。当软件产品中具有测试代理设备端时,测试代理设备端自动从核心网获取手机执行测试用例时的信令跟踪数据,然后自动把数据上传给计费测试管理端,计费测试管理端对信令数据进行比对分析。自动化的测试过程有效地提高了计费测试的效率,减小了运维人员的工作负荷。It should be noted that the test proxy device is optional, and the software product may or may not be configured with a test proxy device. When the software product has a test proxy device, the test proxy device automatically obtains the signaling tracking data from the core network when the mobile phone executes the test case, and then automatically uploads the data to the billing test management end, and the billing test management end Let the data be compared and analyzed. The automated testing process effectively improves the efficiency of billing testing and reduces the workload of operation and maintenance personnel.
当软件产品中未配置测试代理设备端时,或者测试代理设备端发生故障无法正常使用时,可以在终端设备的iTest-APP执行完测试脚本后,手动从核心网上下载信令跟踪数据,导入iTest-Cloud后,再进行数据比对分析,iTest-Cloud分析完可以导出测试结果分析报告。因此,本申请不对软件产品中是否配置有测试代理设备作具体的限制。When the test proxy device is not configured in the software product, or the test proxy device fails to work normally, you can manually download the signaling tracking data from the core network after the iTest-APP of the terminal device executes the test script and import it into iTest After -Cloud, perform data comparison and analysis, and the test result analysis report can be exported after iTest-Cloud analysis. Therefore, the present application does not impose specific restrictions on whether a test proxy device is configured in the software product.
参照图3,图3为本申请一实施例提供的内容计费测试管理设备的功能模块示意图。内容计费测试管理设备部署iTest-Cloud,iTest-Cloud主要的功能模块包括:Referring to FIG. 3 , FIG. 3 is a schematic diagram of functional modules of a content charging test management device provided by an embodiment of the present application. The content billing test management device deploys iTest-Cloud. The main functional modules of iTest-Cloud include:
工单导入模块,用于获取运营商的内容计费工单,处理分析内容计费工单,获取工单信息,该工单信息包括:计费规则和第一业务编码。运营商的内容计费工单一般为Excel格式,内容计费工单的表格填写需满足指定格式,工单信息中除了计费规则和第一业务编码还包括业务名称等主要信息。The work order importing module is used to obtain the operator's content billing work order, process and analyze the content billing work order, and obtain work order information, the work order information includes: charging rules and first service codes. The content billing work order of the operator is generally in Excel format, and the form filling of the content billing work order must meet the specified format. In addition to the billing rule and the first service code, the work order information includes main information such as the service name.
用例处理模块,用于从工单导入模块获取计费规则,根据计费规则生成测试用例,测试用例包括测试脚本和测试规则。在一些实施例中,用例处理模块包括经验库模块、URL库模块、规则转换模块和用例生成模块。其中,经验库模块、URL库模块和规则转换模块都能够用于从工单导入模块获取计费规则以及与计费规则对应的第一网络地址,根据第一网络地址的地址类型生成匹配的可访问的测试地址。The use case processing module is used to obtain billing rules from the work order import module, and generate test cases according to the billing rules, and the test cases include test scripts and test rules. In some embodiments, the use case processing module includes an experience library module, a URL library module, a rule transformation module and a use case generation module. Among them, the experience library module, the URL library module and the rule conversion module can all be used to obtain the billing rule and the first network address corresponding to the billing rule from the work order import module, and generate a matching available address according to the address type of the first network address. Accessed test address.
经验库模块,用于从工单导入模块获取与计费规则对应的第一网络地址,根据第一 网络地址确定匹配的第二网络地址作为测试地址,或者,用于存储测试成功的计费规则的第一网络地址。计费规则测试成功的URL地址会自动入库到经验库。一个计费规则对应一个网络地址,且这个网络地址是经过测试且访问成功的。经验库经过学习可以具有数量较多且测试访问成功的网络地址,内容计费工单导入时会自动匹配经验库中的数据,提高测试成功率和测试的效率。The experience library module is used to obtain the first network address corresponding to the billing rule from the work order import module, and determine the matching second network address as the test address according to the first network address, or to store the billing rule for the successful test The first network address of . URL addresses that pass the billing rule test will be automatically stored in the experience database. One charging rule corresponds to one network address, and this network address has been tested and accessed successfully. After learning, the experience database can have a large number of network addresses with successful test access. When the content billing work order is imported, it will automatically match the data in the experience database to improve the test success rate and test efficiency.
URL库模块,用于从工单导入模块与计费规则对应的第一网络地址,根据所述第一网络地址确定匹配的第三网络地址作为测试地址。URL库可以把计费规则通过大数据系统和域名爬虫系统匹配到可访问的URL地址并将之存入URL库,计费规则可以从URL库匹配到精确URL地址进行测试,同样地也提高了测试成功率和测试的效率。The URL library module is configured to import the first network address corresponding to the billing rule from the work order, and determine a matching third network address as the test address according to the first network address. The URL library can match billing rules to accessible URL addresses through the big data system and domain name crawler system and store them in the URL library. Billing rules can be matched from the URL library to precise URL addresses for testing, which also improves Test success rate and test efficiency.
规则转换模块,用于从工单导入模块获取与计费规则对应的第一网络地址,根据测试脚本生成规则和第一网络地址确定第四网络地址作为测试地址。实际的测试中,会存在从经验库模块和URL库模块中都无法获得与第一网络地址匹配的测试地址,这时,可以利用规则转换模块将内容计费工单中的每一条规则转换成可访问的测试地址。有效地保障了计费测试的正常进行以及成功率。The rule conversion module is used to obtain the first network address corresponding to the charging rule from the work order import module, and determine the fourth network address as the test address according to the test script generation rule and the first network address. In the actual test, there will be a test address that cannot be obtained from the experience library module and the URL library module that matches the first network address. At this time, the rule conversion module can be used to convert each rule in the content billing work order into Accessible test address. Effectively guarantee the normal progress and success rate of the billing test.
用例生成模块,用于从经验库模块或者URL库模块或者规则转换模块获取测试地址,根据测试地址生成测试用例,该测试用例包括测试脚本和测试规则。The use case generation module is used to obtain the test address from the experience library module or the URL library module or the rule conversion module, and generate a test case according to the test address, and the test case includes a test script and a test rule.
场景管理模块,用于从用例生成模块获取测试用例创建测试场景。场景管理模块能够满足多元的测试需求,运维人员可以选择合适的测试场景进行测试,提高测试结果的可信度以及准确度。The scenario management module is used to obtain test cases from the use case generation module to create test scenarios. The scenario management module can meet multiple testing requirements, and the operation and maintenance personnel can select the appropriate test scenario for testing, improving the credibility and accuracy of the test results.
任务管理模块,用于从用例生成模块获取测试用例,根据测试用例生成测试任务,将测试任务发送至终端设备,以使终端设备根据测试任务中的测试脚本和测试规则进行计费测试。任务管理模块创建测试任务后,通过对接手机的API接口把任务同步到手机上,测试人员可以在手机的iTest-APP上执行任务。The task management module is used to obtain test cases from the use case generation module, generate test tasks according to the test cases, and send the test tasks to the terminal devices, so that the terminal devices can perform billing tests according to the test scripts and test rules in the test tasks. After the task management module creates a test task, the task is synchronized to the mobile phone through the API interface of the docking mobile phone, and the tester can execute the task on the iTest-APP of the mobile phone.
信令分析模块,用于从工单导入模块获取第一业务编码,和网元管理系统发送的测试信令。终端设备在进行计费测试的过程中,网元管理系统进行信令跟踪生成测试信令。信令分析模块能够根据测试信令和第一业务编码生成计费测试结果。信令分析模块,可以导入测试信令或者对接站端API接口从站端,即测试代理设备端,自动获取信令,然后进行信令分析,比对信令中的费率组(Rating Group,RG)或业务编码(Service id,SI)消息和运营商工单的业务编码是否相同,判断每条计费规则是否配置正确。The signaling analysis module is configured to obtain the first service code and the test signaling sent by the network element management system from the work order import module. During the charging test of the terminal equipment, the network element management system performs signaling tracking to generate test signaling. The signaling analysis module can generate a charging test result according to the test signaling and the first service code. The signaling analysis module can import test signaling or connect to the station-side API interface from the station side, that is, the test agent device side, to automatically obtain signaling, then perform signaling analysis, and compare the rate group (Rating Group, RG) or service code (Service id, SI) message is the same as the service code of the operator's work order, and judges whether each charging rule is configured correctly.
此外,iTest-Cloud还具有报告导出模块,用于从信令分析模块获取计费测试结果,自动生成内容计费测试的测试报告,该测试报告导出格式为Excel格式。In addition, iTest-Cloud also has a report export module, which is used to obtain the charging test results from the signaling analysis module, and automatically generate a test report for the content charging test. The export format of the test report is Excel format.
参照图4,图4为本申请一实施例提供的终端设备的功能模块示意图。终端设备部署iTest-APP,iTest-APP主要的功能模块包括:Referring to FIG. 4 , FIG. 4 is a schematic diagram of functional modules of a terminal device provided by an embodiment of the present application. The terminal device deploys iTest-APP, and the main functional modules of iTest-APP include:
API接口模块,与内容计费测试管理设备端连接,用于接收内容计费测试管理设备端的消息,并发送数据给内容计费测试管理设备端。任务管理模块,用于同步内容计费测试管理设备端的任务,使得工程人员可以在终端设备上执行测试任务,查看任务详细信息等;用例管理模块,用于管理测试任务下的测试用例,可以选择或重复执行某几条 用例,查看用例执行结果等。The API interface module is connected with the content billing test management device end, and is used for receiving the message from the content billing test management device end, and sending data to the content billing test management device end. The task management module is used to synchronize the tasks of the content billing test management device side, so that engineers can perform test tasks on the terminal device, view task details, etc.; the use case management module is used to manage test cases under the test task, you can choose Or execute several use cases repeatedly, view the execution results of the use cases, etc.
iTest-APP中还具有用例执行模块,根据测试用例中的IP地址或URL地址,采用不同的用例执行方法,用于测试内容计费。在一些实施例的用例执行中,使用发送GET请求和获取GET响应两个模块。在一些实施例中,用例执行模块能获取测试任务,根据测试任务中的测试规则,采用对应的不同的用例执行方法,进行测试任务;发送GET请求模块,与用例执行模块通信连接,用于构造用例执行请求信息,并向核心网发送所述用例执行请求信息;获取GET响应模块,与用例执行模块通信连接,用于接收核心网返回的用例执行响应信息,用例执行响应信息响应于用例执行请求信息,用于确认核心网测试到了计费规则所对应的网络地址。iTest-APP also has a use case execution module, which adopts different use case execution methods according to the IP address or URL address in the test case, and is used for billing the test content. In the use case execution of some embodiments, two modules of sending GET request and getting GET response are used. In some embodiments, the use case execution module can obtain the test task, and according to the test rules in the test task, adopt different corresponding use case execution methods to perform the test task; send the GET request module to communicate with the use case execution module for constructing Use case execution request information, and send the use case execution request information to the core network; obtain the GET response module, communicate with the use case execution module, and receive the use case execution response information returned by the core network, and the use case execution response information responds to the use case execution request The information is used to confirm that the core network has tested the network address corresponding to the charging rule.
本申请实施例描述的网络架构以及应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着网络架构的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the network architecture The evolution of the technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
本领域技术人员可以理解的是,图1中示出的网络架构并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the network architecture shown in Figure 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine certain components, or different components layout.
基于上述图1至图4的架构以及功能模块,下面提出本申请的内容计费测试方法的各个实施例。Based on the architectures and functional modules in FIGS. 1 to 4 above, various embodiments of the content charging testing method of the present application are proposed below.
例如,在如下示例中,当软件产品中未配置测试代理设备端时,或者测试代理设备端发生故障无法正常使用时,可以在终端设备的iTest-APP(即拨测APP)执行完测试脚本后,工程人员可以手动从核心网上下载信令跟踪数据,导入iTest-Cloud,使iTest-Cloud进行数据比对分析得出测试结果。For example, in the following example, when the test proxy device is not configured in the software product, or the test proxy device fails to work normally, you can execute the test script after the iTest-APP (that is, the dial-up test APP) of the terminal device , engineers can manually download signaling trace data from the core network, import it into iTest-Cloud, and make iTest-Cloud perform data comparison and analysis to obtain test results.
参照图5,图5为本申请一实施例提供的未配置有测试代理设备时的测试流程示意图。运营商的工单处理端筛选出有效的URL地址生成工单,并将该工单导入内容计费测试管理设备端。内容计费测试管理设备端接收到运营商的工单处理端导入的工单后,生成用于计费测试的测试用例,需要说明的是,生成测试用例时可能存在错误或偏差,因此生成的测试用例是可以人工修改的,使之更符合测试的要求。生成测试用例后,内容计费测试管理设备端根据测试用例创建场景包,然后根据场景包创建测试任务。在创建测试任务后,内容计费测试管理设备端将测试任务发送给手机终端。内容计费测试管理设备端和手机终端都能够管理测试任务,查看任务详细信息。手机终端在接收到内容计费测试管理设备端发送的测试任务后,执行测试任务中的测试用例。在手机终端执行测试任务的过程中,EMS跟踪测试过程,并根据手机终端执行测试任务的结果生成信令跟踪文件。工程人员手动导出接口名称为N40的信令文件,并将该信令文件导入云端。内容计费测试管理设备端接收到导入的信令文件后,解析信令文件,对比工单中的SI信息,得出关于计费规则配置情况的分析报告,显示配置情况结果。至此,在测试代理设备未配置或发生故障的情况下的计费测试完成。Referring to FIG. 5 , FIG. 5 is a schematic diagram of a test flow provided by an embodiment of the present application when no test proxy device is configured. The operator's work order processing end screens out valid URL addresses to generate a work order, and imports the work order to the content billing test management device side. After the content billing test management device receives the work order imported by the operator's work order processing end, it generates a test case for the billing test. It should be noted that there may be errors or deviations when generating the test case, so the generated The test case can be manually modified to make it more in line with the test requirements. After the test case is generated, the content accounting test management device creates a scenario package according to the test case, and then creates a test task according to the scenario package. After the test task is created, the content charging test management device sends the test task to the mobile terminal. Both the content billing test management device and the mobile terminal can manage test tasks and view task details. After receiving the test task sent by the content charging test management device, the mobile terminal executes the test case in the test task. When the mobile terminal executes the test task, the EMS tracks the test process, and generates a signaling trace file according to the result of the test task performed by the mobile terminal. Engineers manually export the signaling file with the interface name N40, and import the signaling file to the cloud. After the content billing test management device receives the imported signaling file, it parses the signaling file, compares the SI information in the work order, and draws an analysis report on the configuration of billing rules, displaying the configuration results. So far, the charging test under the condition that the test proxy device is not configured or fails is completed.
需要说明的是,内容计费测试管理设备端根据测试用例创建场景包,根据场景包创建相应的测试任务。内容计费测试管理设备端可以在选择场景包的情况下,生成携带测 试用例的测试任务,并将测试任务发送给终端设备,使得终端设备执行测试任务中的测试用例;内容计费测试管理设备端也可以在不创建场景包和测试任务的情况下,将测试用例直接发送给终端设备,使终端设备执行测试用例完成计费测试。本申请对内容计费测试管理设备端将测试用例发送给终端设备的具体场景和方式不做具体的限制,只要终端设备能执行测试用例完成计费测试即可。It should be noted that the content charging test management device side creates a scenario package according to the test case, and creates a corresponding test task according to the scenario package. The content billing test management device side can generate a test task carrying a test case when the scenario package is selected, and send the test task to the terminal device, so that the terminal device executes the test case in the test task; the content billing test management device The terminal can also directly send the test case to the terminal device without creating a scenario package and a test task, so that the terminal device executes the test case to complete the billing test. This application does not impose specific restrictions on the specific scenarios and methods in which the content charging test management device sends the test case to the terminal device, as long as the terminal device can execute the test case to complete the charging test.
对计费规则进行测试,能在一定程度上提高网络质量和客户满意度,有效减少类似计费失误的投诉。本申请可以便捷测试出内容计费规则的配置状态或是没有配置的情况。避免因计费规则错误产生的话费纠纷,能给运营商带来良好的经济效益和社会效益,也使得用户的使用体验提高。Testing billing rules can improve network quality and customer satisfaction to a certain extent, and effectively reduce complaints about billing errors. This application can conveniently test the configuration state of the content charging rule or the situation of no configuration. Avoiding call charge disputes caused by incorrect billing rules can bring good economic and social benefits to operators and improve user experience.
参照图6,图6为本申请一实施例提供的应用于内容计费测试管理设备的内容计费测试方法的流程示意图。该内容计费测试方法可以包括但不限于有步骤S610、步骤S620、步骤S630、步骤S640和步骤S650。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of a content charging test method applied to a content charging test management device provided by an embodiment of the present application. The content charging test method may include but not limited to step S610, step S620, step S630, step S640 and step S650.
步骤S610:获取工单信息,工单信息包括计费规则和第一业务编码。Step S610: Obtain work order information, where the work order information includes charging rules and a first service code.
本步骤中,工单信息从运营商处获取。可以理解的是,工单信息包括但不限于计费规则、业务编码,还包括业务名称、计费单价等主要信息。为了方便处理,工单信息采用Excel格式,工单中的主要信息的填写满足指定的格式。In this step, the work order information is obtained from the operator. It can be understood that the work order information includes but is not limited to charging rules, business codes, and also includes main information such as business names and billing unit prices. In order to facilitate processing, the work order information is in Excel format, and the main information in the work order is filled in the specified format.
步骤S620:根据计费规则生成测试用例。Step S620: Generate a test case according to the charging rule.
在一些实施例中,本步骤首先是内容计费测试管理设备根据计费规则获取可访问的测试地址,其次是根据测试地址获取测试脚本,最后根据测试脚本和预设的测试规则生成测试用例。预设的测试规则为预设的待测试的计费规则。生成的测试用例具有测试脚本和测试规则。In some embodiments, in this step, the content charging test management device first obtains an accessible test address according to the charging rules, secondly obtains a test script according to the test address, and finally generates a test case according to the test script and preset test rules. The preset test rule is a preset charging rule to be tested. Generated test cases have test scripts and test rules.
需要说明的是,内容计费测试管理设备针对每条计费规则生成一条测试用例,测试用例包括测试脚本和测试规则。可以理解的是,待测试的计费规则数量较多,得到针对每条计费规则的测试用例后,自动创建自动化测试用例集。It should be noted that the content charging test management device generates a test case for each charging rule, and the test case includes a test script and a test rule. It can be understood that there are many billing rules to be tested, and after obtaining the test case for each billing rule, an automated test case set is automatically created.
步骤S630:将测试用例发送至终端设备,以使终端设备根据测试用例进行计费测试。Step S630: Send the test case to the terminal device, so that the terminal device performs a charging test according to the test case.
本步骤中,内容计费测试管理设备将测试用例发送至终端设备。终端设备接收到测试用例后,根据测试用例进行计费测试。需要说明的是,在将测试用例发送至终端设备之前,工程人员还可以根据测试场景,在内容计费测试管理设备端选定相应的测试场景包。内容计费测试管理设备根据选定的测试场景,选择需要的测试用例,创建测试任务,将测试任务发送至终端设备分配给测试人员。终端设备根据测试人员的具体指令开始对测试任务中的测试脚本和测试规则进行计费测试。测试场景贴近真实场景,可以提高测试结果的可信度和可靠度。本申请对内容计费测试管理设备端是否进行测试场景选择不做具体的限制。In this step, the content charging test management device sends the test case to the terminal device. After receiving the test case, the terminal device performs the charging test according to the test case. It should be noted that, before sending the test case to the terminal device, the engineer can also select the corresponding test scenario package on the content charging test management device side according to the test scenario. The content billing test management device selects the required test case according to the selected test scenario, creates a test task, and sends the test task to the terminal device for distribution to testers. The terminal device starts to perform the billing test on the test script and test rules in the test task according to the tester's specific instructions. The test scene is close to the real scene, which can improve the credibility and reliability of the test results. This application does not impose specific restrictions on whether to select a test scenario at the content charging test management device.
步骤S640:获取网元管理系统对终端设备在计费测试过程中所生成的测试信令。Step S640: Obtain the test signaling generated by the network element management system during the charging test for the terminal equipment.
本步骤中,内容计费测试管理设备使用接入5G核心网的EMS,通过EMS开启针对测试手机的信令跟踪,从而获取网元管理系统在终端设备进行计费测试的过程中所生成 的测试信令。In this step, the content charging test management device uses the EMS connected to the 5G core network, and enables signaling tracking for the test mobile phone through the EMS, so as to obtain the test generated by the network element management system during the charging test of the terminal device signaling.
步骤S650:根据测试信令和第一业务编码生成计费测试结果。Step S650: Generate a charging test result according to the test signaling and the first service code.
本步骤中,内容计费测试管理设备根据测试信令获取计费会话响应信息,在从计费会话响应信息中得到第二业务编码。将第二业务编码与第一业务编码对比,在第二业务编码与第一业务编码相同的情况下,计费测试结果为计费规则配置正确;在第二业务编码与第一业务编码不相同的情况下,计费测试结果为计费规则配置错误。In this step, the content charging test management device obtains the charging session response information according to the test signaling, and obtains the second service code from the charging session response information. Comparing the second business code with the first business code, if the second business code is the same as the first business code, the billing test result indicates that the charging rule configuration is correct; if the second business code is different from the first business code In the case of , the accounting test result shows that the accounting rule configuration is incorrect.
参照图7,图7为本申请一实施例提供的信令对比分析流程示意图。内容计费测试管理设备接收EMS发送的用例执行期间的EMS信令文件,首先进行信令查找流程,得到信令的详细数据。而后根据信令的详细数据进行字段比较流程,得到测试结果,最后生成测试报告。在信令查找流程中,测试管理设备从接收到的EMS信令中筛选出接口名称为N40的信令,再在用例执行时间内,从接口名称为N40的信令中筛选出信息名称为Nchf_ConvergedCharging_Release_Req(释放计费会话响应信息)或Nchf_ConvergedCharging_Update_Req(更新计费会话响应信息)的信令。然后从这两个信令信息中提取业务编码的值,在测试信令中的字段是费率组(ratingGroup,RG)和业务编码(serviceid,SI)。内容计费测试管理设备比对测试信令中的业务编码与运营商提供的工单中的业务编码是否相同,当测试信令中的RG和SI有至少任意一个的值和工单中的业务编码相等时,则表示测试信令分析成功,表示内容计费规则配置正确,反之则表示内容计费规则配置有错误。Referring to FIG. 7 , FIG. 7 is a schematic flow chart of signaling comparison analysis provided by an embodiment of the present application. The content charging test management device receives the EMS signaling file sent by the EMS during the execution of the use case, and first performs the signaling search process to obtain the detailed data of the signaling. Then, the field comparison process is performed according to the detailed data of the signaling, the test result is obtained, and the test report is finally generated. In the signaling search process, the test management device screens out the signaling with the interface name N40 from the received EMS signaling, and then screens out the information name Nchf_ConvergedCharging_Release_Req from the signaling with the interface name N40 within the execution time of the use case (Release Charging Session Response Information) or Nchf_ConvergedCharging_Update_Req (Update Charging Session Response Information) signaling. Then extract the service code value from the two signaling messages, and the fields in the test signaling are rating group (ratingGroup, RG) and service code (serviceid, SI). The content charging test management device compares whether the service code in the test signaling is the same as the service code in the work order provided by the operator. When the RG and SI in the test signaling have at least any value and the service in the work order When the codes are equal, it means that the test signaling analysis is successful, indicating that the content charging rules are configured correctly; otherwise, it means that the content charging rules are configured incorrectly.
各运营商都在大力重视运维数字化,包括测试自动化。本申请可以大大节约人力成本,能够自动比对工单的业务编码和测试信令中的N40口信令文件,替代了内容计费的手工测试流程。使用本申请能够实现自动测试,操作简单,有效地提高了计费测试的效率,且对使用者技术能力要求低,更容易推广。All operators are paying great attention to the digitization of operation and maintenance, including test automation. This application can greatly save labor costs, and can automatically compare the business code of the work order and the N40 port signaling file in the test signaling, replacing the manual test process of content billing. Using the application can realize automatic testing, is easy to operate, effectively improves the efficiency of billing testing, has low requirements on users' technical capabilities, and is easier to popularize.
在一实施例中,参照图8,图8为本申请一实施例提供的图6中步骤S620的具体方法的流程示意图,对步骤S620进行说明,该步骤S620可以包括但不限于有步骤S810和步骤S820。In one embodiment, referring to FIG. 8, FIG. 8 is a schematic flowchart of a specific method of step S620 in FIG. Step S820.
步骤S810:根据计费规则获取与计费规则对应的第一网络地址。Step S810: Obtain the first network address corresponding to the charging rule according to the charging rule.
本步骤中,第一网络地址可以是IP地址或是URL地址或者IP地址和URL地址的组合地址。需要说明的是,本申请中不同的地址类型对应的获得测试地址的方式不同。In this step, the first network address may be an IP address or a URL address or a combined address of an IP address and a URL address. It should be noted that different address types in this application correspond to different methods of obtaining test addresses.
步骤S820:根据第一网络地址的地址类型,确定可访问的测试地址。Step S820: Determine an accessible test address according to the address type of the first network address.
本步骤中,当第一网络地址为URL地址,根据第一网络地址的地址类型,确定可访问的测试地址,包括至少以下三种情况:In this step, when the first network address is a URL address, determine the accessible test address according to the address type of the first network address, including at least the following three situations:
第一种情况是:在经验库中记录有与第一网络地址匹配的第二网络地址的情况下,则将第二网络地址确定为测试脚本中的测试地址,经验库存储测试成功的计费规则以及计费规则对应的网络地址。第二种情况是:在经验库中没有记录第二网络地址的情况下,从URL库中获取与第一网络地址匹配的第三网络地址作为测试脚本中的测试地址。第三种情况是:在从经验库和URL库中都无法获取第一网络地址的情况下,根据预设的测试脚本生成规则与第一网络地址确定第四网络地址作为测试地址。The first case is: if there is a second network address matching the first network address recorded in the experience database, then the second network address is determined as the test address in the test script, and the experience database stores the billing for successful testing. The network address corresponding to the rule and the charging rule. The second situation is: when the second network address is not recorded in the experience database, the third network address matching the first network address is obtained from the URL database as the test address in the test script. The third situation is: when the first network address cannot be obtained from the experience database and the URL database, the fourth network address is determined as the test address according to the preset test script generation rules and the first network address.
而当第一网络地址为IP地址,或者为IP地址和URL地址的组合地址时,则根据第一网络地址和预设的测试脚本生成规则,确定与第一网络地址相对应的第五网络地址作为可访问的测试地址。And when the first network address is an IP address, or when it is a combined address of an IP address and a URL address, then according to the first network address and a preset test script generation rule, determine the fifth network address corresponding to the first network address as an accessible test address.
参照图9,图9为本申请一实施例提供的内容计费测试管理设备内用例生成的流程示意图。Referring to FIG. 9 , FIG. 9 is a schematic flowchart of use case generation in the content charging test management device provided by an embodiment of the present application.
需要说明的是,内容计费测试管理设备包括但不限于图3中所示的功能模块,还可以包括用例管理模块,用例管理模块用于管理测试用例。如图9所示,用例管理模块首先添加深度数据包检测(Deep Packet Inspection,DPI)用例集。判断测试用例的测试地址是否为七层规则,即判断测试地址是否为URL地址。It should be noted that the content charging test management device includes, but is not limited to, the functional modules shown in FIG. 3 , and may also include a use case management module, which is used to manage test cases. As shown in Figure 9, the use case management module first adds a deep packet inspection (Deep Packet Inspection, DPI) use case set. Judging whether the test address of the test case is a seven-layer rule, that is, judging whether the test address is a URL address.
当测试地址是URL地址时,则先去经验库中查找是否有匹配的测试地址。如果经验库里有该计费规则的记录,则使用经验库里记录的规则所对应的网络地址,作为测试脚本里手机访问的测试地址。When the test address is a URL address, first check whether there is a matching test address in the experience database. If there is a record of the billing rule in the experience library, use the network address corresponding to the rule recorded in the experience library as the test address for mobile phone access in the test script.
如果在经验库中匹配不到测试地址,接下来则到URL库中匹配。URL库里记录的数据是通过大数据或爬虫技术事先找出的海量精确URL。基于此,iTest-Cloud可以在URL库中查找某条规则能匹配上的精确地址,如果有匹配,就把匹配的地址作为测试脚本里手机访问的测试地址。If the test address cannot be matched in the experience library, then it will be matched in the URL library. The data recorded in the URL library is a large number of accurate URLs found in advance through big data or crawler technology. Based on this, iTest-Cloud can search the URL database for an exact address that can be matched by a certain rule, and if there is a match, use the matched address as the test address for mobile phone access in the test script.
如果该测试用例在在经验库和URL库中都找不到匹配的记录的URL地址,或者是IP地址。则就按照相应的规则,即测试脚本生成规则,进行处理得到测试脚本里手机访问的测试地址。得到测试地址后生成手机脚本,最后生成用例。If the test case cannot find a matching recorded URL address or IP address in both the experience library and the URL library. Then, according to the corresponding rules, that is, the test script generation rules, processing is performed to obtain the test address accessed by the mobile phone in the test script. After getting the test address, generate a mobile phone script, and finally generate a use case.
需要说明的是,经验库中记录的网络地址对应的规则,是已经测试成功的计费规则。在一些实施例中,用例管理模块管理测试用例,场景管理模块使用用例管理模块中的测试用例创建测试场景,根据测试场景创建测试任务,并将测试任务发送给手机APP。手机APP执行测试任务,iTest-Cloud接收导入的信令,进行信令分析。当访问URL地址执行任务成功且信令分析成功,则将该URL地址自动录入经验库。本申请提供的测试方法可以自学习,为测试机器人的实现提供训练样本。对于测试成功的内容计费规则,将之存入经验库,运营商工单中的规则只要经验库中有记录,即可使用库里的可访问域名替换原始规则,提高测试成功率。It should be noted that the rules corresponding to the network addresses recorded in the experience database are charging rules that have been successfully tested. In some embodiments, the use case management module manages the test cases, the scenario management module uses the test cases in the use case management module to create test scenarios, creates test tasks according to the test scenarios, and sends the test tasks to the mobile phone APP. The mobile APP executes the test task, and iTest-Cloud receives the imported signaling and performs signaling analysis. When the access URL address executes the task successfully and the signaling analysis is successful, the URL address is automatically entered into the experience database. The test method provided in this application can be self-learning, and provides training samples for the realization of the test robot. For content billing rules that have been successfully tested, they are stored in the experience database. As long as the rules in the operator work order are recorded in the experience database, the original rules can be replaced with the accessible domain names in the library to improve the test success rate.
iTest-Cloud可以自动针对不同的计费规则的网络地址,在规则转换模块中将计费规则的网络地址转换成可访问的测试地址。在一些实施例中,参照图10,图10为本申请一实施例提供的测试脚本生成规则的示意图。以某个DPI工单为例,处理规则如下:iTest-Cloud can automatically convert the network address of the charging rule into an accessible test address in the rule conversion module for the network address of different charging rules. In some embodiments, refer to FIG. 10 , which is a schematic diagram of test script generation rules provided by an embodiment of the present application. Taking a DPI work order as an example, the processing rules are as follows:
对仅三层规则(IP地址),如果是具体地址,该地址为IPV4,如49.4.42.14,则直接访问。若是IPV6地址,则去除128掩码后访问。如果该网络地址仅有地址范围的,对于IPV4,去除首尾取可用地址作为可访问的测试地址;对于IPV6地址,则根据掩码计算出地址范围,取第一个可用地址作为可访问的测试地址。对于指定端口和指定地址的网络地址,则将地址加上指定端口后得到测试地址。对于指定地址和端口范围的网络地址,取端口范围内的一个最小的端口拼接在指定地址之后得到可访问的测试地址。当网络地址具有地址范围和端口范围,对于IPV4,将取端口范围内的一个最小的端口拼 接在地址范围中的可用地址之后得到可访问的测试地址;对于IPV6,将取端口范围内的一个最小的端口拼接在去除掩码的地址之后得到可访问的测试地址。然后生成手机测试脚本进行计费规则测试。For only the three-layer rule (IP address), if it is a specific address, the address is IPV4, such as 49.4.42.14, then direct access. If it is an IPV6 address, access after removing the 128 mask. If the network address only has an address range, for IPV4, remove the first and last available addresses as the accessible test address; for the IPV6 address, calculate the address range according to the mask, and take the first available address as the accessible test address . For the network address of the designated port and designated address, the test address is obtained by adding the designated port to the address. For the network address of the specified address and port range, take the smallest port in the port range and concatenate the specified address to obtain an accessible test address. When the network address has an address range and a port range, for IPV4, the smallest port in the port range will be spliced to the available addresses in the address range to obtain an accessible test address; for IPV6, the smallest port in the port range will be used The port splicing of the masked address is removed to obtain an accessible test address. Then generate a mobile phone test script for charging rule testing.
对于七层规则(URL地址),如果无通配符,则根据精确地址直接访问。如果有通配符,对于端口的通配符替换为8080实际端口,其它的去掉。然后生成手机测试脚本进行计费规则测试。对于三层和七层的组合规则,也是按照上述的规则对三层规则和七层规则分别进行处理。For the seven-layer rule (URL address), if there is no wildcard, it will be directly accessed according to the precise address. If there is a wildcard, replace the wildcard of the port with the actual port of 8080, and remove the others. Then generate a mobile phone test script for charging rule testing. For the combined rules of the third layer and the seventh layer, the third layer rule and the seventh layer rule are also processed respectively according to the above rules.
参照图11,图11为本申请一实施例提供的应用于终端设备的内容计费测试方法的流程示意图。该内容计费测试方法可以包括但不限于有步骤S1110和步骤S1120。Referring to FIG. 11 , FIG. 11 is a schematic flowchart of a content charging test method applied to a terminal device provided by an embodiment of the present application. The content charging test method may include but not limited to step S1110 and step S1120.
步骤S1110:终端设备从内容计费测试管理设备获取测试用例。Step S1110: the terminal device acquires a test case from the content charging test management device.
本步骤中,终端设备从内容计费测试管理设备获取测试用例,该测试用例由内容计费测试管理设备根据工单信息中的计费规则生成。终端设备可以从内容计费测试管理设备直接获取测试用例,或者从内容计费测试管理设备获取测试任务,再从测试任务中获取测试用例。当终端设备从内容计费测试管理设备获取到的是测试任务时,终端设备可以自动同步内容计费测试管理设备端创建的测试任务。测试人员可以登录终端设备的iTest-APP,查看同步好的测试任务,而后执行测试任务中的测试用例。用户可以在手机上操作,执行测试任务或是查看任务详细信息等等。In this step, the terminal device obtains a test case from the content charging test management device, and the test case is generated by the content charging test management device according to the charging rules in the work order information. The terminal device can directly obtain the test case from the content charging test management device, or obtain the test task from the content charging test management device, and then obtain the test case from the test task. When the terminal device acquires a test task from the content charging test management device, the terminal device can automatically synchronize the test task created by the content charging test management device. Testers can log in to the iTest-APP of the terminal device, view the synchronized test tasks, and then execute the test cases in the test tasks. Users can operate on the mobile phone, perform test tasks or view task details, etc.
步骤S1120:根据测试用例进行计费测试。Step S1120: Perform a billing test according to the test case.
本步骤中,终端设备根据测试用例对计费规则进行计费测试。In this step, the terminal device performs a charging test on the charging rule according to the test case.
在一实施例中,参照图12,图12为本申请一实施例提供的图11中步骤S1120的具体方法的流程示意图,对步骤S1120进行说明,该步骤S1120可以包括但不限于有步骤S1210、步骤S1220、步骤S1230和步骤S1240。In one embodiment, referring to FIG. 12, FIG. 12 is a schematic flowchart of a specific method of step S1120 in FIG. 11 provided by an embodiment of the present application, and describes step S1120. This step S1120 may include but not limited to steps S1210, Step S1220, step S1230 and step S1240.
步骤S1210:终端设备根据测试用例获取测试规则。Step S1210: the terminal device acquires test rules according to the test cases.
本步骤中,终端设备从内容计费测试管理设备获得测试用例,该测试用例包括测试脚本和测试规则。其中,测试规则为预设的待测试的计费规则。终端设备可以从测试用例中获取测试规则。In this step, the terminal device obtains a test case from the content charging test management device, and the test case includes a test script and a test rule. Wherein, the test rule is a preset charging rule to be tested. Terminal devices can obtain test rules from test cases.
步骤S1220:获取测试规则确定测试地址。Step S1220: Obtain a test rule to determine a test address.
步骤S1230:根据测试地址的地址类型确定对应的用例执行规则。Step S1230: Determine the corresponding use case execution rule according to the address type of the test address.
本步骤中,测试地址的地址类型至少包括其中之一:IP地址,URL地址。可以理解的是,测试地址的地址类型可以是IP地址,可以是URL地址,也可以是IP地址和URL地址的组合地址。不同的地址类型对应不同的用例执行规则,以确保测试用例能顺利被执行,提高计费测试的成功率。In this step, the address type of the test address includes at least one of: IP address and URL address. It can be understood that the address type of the test address may be an IP address, a URL address, or a combined address of an IP address and a URL address. Different address types correspond to different use case execution rules to ensure that test cases can be executed smoothly and improve the success rate of billing tests.
步骤S1240:根据用例执行规则进行计费测试。Step S1240: Carry out a billing test according to the use case execution rules.
本步骤中,还包括:终端设备根据用例执行规则发送用例执行请求信息,而后在接收到用例执行响应信息的情况下,根据用例执行规则执行测试脚本,以进行计费测试。终端设备通过用例测试处理流程保证测试用例都能够成功测试。In this step, it also includes: the terminal device sends the use case execution request information according to the use case execution rules, and then, after receiving the use case execution response information, executes the test script according to the use case execution rules to perform the charging test. The terminal device ensures that all test cases can be successfully tested through the use case test processing flow.
参照图13,图13位本申请一实施例提供的手机执行测试用例的处理流程示意图。 在一些实施例中,计费规则可以分为三层规则、七层规则和组合规则,其中组合规则值得是三层规则和七层规则的组合。手机端通过关键字开始测试,判断测试规则是否是组合规则。当测试规则是组合规则的情况下,进行TCP建链,并判断是否是HTTPS协议。在TCP建链成功且不为HTTPS协议的情况下,手机端则构造GET报文发送,通过获取GET报文确保测试到了规则所对应的网络地址。在TCP建链成功且为HTTPS协议的情况下,手机端发送携带有匹配的域名的ClientHello报文,鉴权成功则发送GET请求,接收到GET响应以保证测试到了规则所对应的网络地址,若鉴权不成功,则结束测试。在TCP建链失败且为HTTPS协议的情况下,构造发送ClientHello报文完成测试,该报文中的目的地址为组合地址中的三层地址,即IP地址,servername为组合规则中的域名。在TCP建链失败且不为HTTPS协议的情况下,构造发送GET报文完成测试,该GET报文中目的地址为组合规则中的三层规则,Host为组合规则中的域名。Referring to FIG. 13 , FIG. 13 is a schematic diagram of a processing flow of a mobile phone executing a test case provided by an embodiment of the present application. In some embodiments, charging rules can be divided into three-tier rules, seven-tier rules and combined rules, where the combined rule value is a combination of three-tier rules and seven-tier rules. The mobile terminal starts the test through keywords to determine whether the test rule is a combination rule. When the test rule is a combined rule, establish a TCP link and determine whether it is an HTTPS protocol. When the TCP link is successfully established and the protocol is not HTTPS, the mobile phone constructs a GET message to send, and obtains the GET message to ensure that the network address corresponding to the rule has been tested. When the TCP link is successfully established and the HTTPS protocol is used, the mobile phone sends a ClientHello message with a matching domain name. If the authentication is successful, it sends a GET request and receives a GET response to ensure that the network address corresponding to the rule has been tested. If If the authentication is unsuccessful, the test ends. When the TCP link establishment fails and the HTTPS protocol is used, a ClientHello message is sent to complete the test. The destination address in the message is the layer-3 address in the combination address, that is, the IP address, and servername is the domain name in the combination rule. In the case that the TCP link establishment fails and the protocol is not HTTPS, construct and send a GET message to complete the test. The destination address in the GET message is the three-layer rule in the combination rule, and the Host is the domain name in the combination rule.
当测试规则不是组合规则,且是三层规则(IP地址)时,则按照组合规则中的TCP指定端口建链。若建链成功,则触发计费规则,手机端发送GET报文,获取GET响应,确保测试到了测试规则所对应的网络地址,完成测试。若建链失败,则结束测试。When the test rule is not a combination rule, but a three-layer rule (IP address), then establish a link according to the TCP specified port in the combination rule. If the link is established successfully, the billing rule will be triggered, and the mobile terminal will send a GET message to obtain a GET response to ensure that the test reaches the network address corresponding to the test rule, and the test is completed. If the link building fails, the test ends.
当测试规则不是组合规则,且是七层规则(URL地址)时。对于需要进行DNS域名解析的测试规则,如果DNS解析成功且建链成功的情况下,对于HTTP直接发送GET请求,获取GET响应完成测试;对于HTTPS则携带匹配的域名发送ClientHello报文,鉴权成功则发送GET请求,完成测试,鉴权不成功则结束测试。在DNS解析成功且建链失败的情况下,对于HTTP则直接发送GET请求,完成测试,GET请求中目的地址为建链的IP地址,Host为七层的域名;对于HTTPS则携带匹配的域名发送ClientHello报文,完成测试,ClientHello报文中目的地址为建链的IP地址,且servername为七层的域名。若测试地址解析失败或不需要DNS解析的,对于HTTP直接发送GET报文,对于HTTPS则构造发送ClientHello报文,以完成测试,此时GET报文和ClientHello报文的目的地址相同,ClientHello报文中servername为七层的域名,GET报文中Host为七层的域名,如果有端口GET报文还需携带端口。When the test rule is not a combination rule, but a seven-layer rule (URL address). For the test rules that require DNS domain name resolution, if the DNS resolution is successful and the link is established successfully, send a GET request directly for HTTP and get the GET response to complete the test; for HTTPS, send a ClientHello message with the matching domain name, and the authentication is successful Then send a GET request to complete the test, and end the test if the authentication is unsuccessful. If the DNS resolution is successful and the link building fails, for HTTP, a GET request is sent directly to complete the test. The destination address in the GET request is the IP address of the link building, and the Host is the domain name of the seventh layer; for HTTPS, it is sent with the matching domain name ClientHello message, the test is completed, the destination address in the ClientHello message is the IP address of the link, and the servername is the domain name of the seventh layer. If the test address resolution fails or does not require DNS resolution, send a GET message directly for HTTP, and send a ClientHello message for HTTPS to complete the test. At this time, the destination address of the GET message and the ClientHello message are the same, and the ClientHello message The servername in it is the domain name of the seventh layer, and the Host in the GET message is the domain name of the seventh layer. If there is a port, the GET message also needs to carry the port.
测试地址可能不存在也可能是虚拟的,构造并发送GET报文可以确保测试到了计费规则所对应的网络地址,提高了计费测试的成功率,节省了测试资源。The test address may not exist or may be virtual. Constructing and sending a GET message can ensure that the network address corresponding to the charging rule is tested, which improves the success rate of the charging test and saves test resources.
参照图14,图14为本申请一实施例提供的iTest-Cloud的首页场景界面。场景界面中具有测试场景选择,用户可以再在首页热门场景选择场景包,点击关注。Referring to Fig. 14, Fig. 14 is the home scene interface of iTest-Cloud provided by an embodiment of the present application. There is a test scene selection in the scene interface, and the user can select a scene package on the popular scene on the home page, and click Follow.
用户关注后的场景包会显示在“我的场景包”这一子页面中,参照图15,图15即为本申请一实施例提供的iTest-Cloud的子场景界面。用户可以在如图15所示的子场景界面中选择关注的场景包创建任务。用户关注场景包后,可以根据场景包来创建任务。任务创建完成后,手机终端和iTest云端都会显示该任务,两边的任务状态一致。在如图15所示的子场景界面中,用户可以再点击创建任务后,可以在另一个子页面中修改任务名。创建好任务,在“我的任务”页面就能看到自己创建的任务。The scene package that the user pays attention to will be displayed in the sub-page of "My scene package". Refer to Figure 15, which is the sub-scene interface of iTest-Cloud provided by an embodiment of the present application. The user can select the concerned scene package creation task in the sub-scene interface as shown in FIG. 15 . After users pay attention to the scene package, they can create tasks according to the scene package. After the task is created, both the mobile terminal and the iTest cloud will display the task, and the task status on both sides is the same. In the sub-scene interface shown in Figure 15, the user can click to create a task, and then modify the task name in another sub-page. After creating a task, you can see the task you created on the "My Tasks" page.
参照图16,图16为本申请一实施例提供的手机端APP界面。任务创建完成后,手机端和iTest云端都会显示该任务,两侧的任务状态一致。手机APP页面如图16所示。 用户可以在手机APP页面中选择需要执行的DPI测试任务,点击执行,下载用例,点击继续,等待手机完成DPI测试即可。Referring to FIG. 16 , FIG. 16 is an APP interface of a mobile terminal provided by an embodiment of the present application. After the task is created, the task will be displayed on both the mobile terminal and the iTest cloud, and the status of the tasks on both sides is the same. The mobile APP page is shown in Figure 16. The user can select the DPI test task to be performed on the mobile APP page, click execute, download the use case, click continue, and wait for the mobile phone to complete the DPI test.
手机完成测试之后,用户登录iTest-Cloud,查看任务,这时任务状态会从已创建更新为已完成。用户可以登录EMS管理系统导出信令跟踪文件,进入任务页面,找到自己执行完的任务,把该任务执行后产生的信令文件导入iTest-Cloud。导入信令文件成功后利用iTest-Cloud的数据分析功能进行数据分析。分析结束之后,用户可以点击任务查看任务详情,可查看每条用例执行结果即每条URL地址测试是否成功,点击分析结果可查看日志即RG号比对结果。如果手机APP测试URL地址测试成功但是RG号不存在,分析结果也有体现,日志里会显示RG号不存在。After the mobile phone is tested, the user logs in to iTest-Cloud and checks the task. At this time, the task status will be updated from created to completed. Users can log in to the EMS management system to export signaling tracking files, enter the task page, find the tasks they have completed, and import the signaling files generated after the task execution to iTest-Cloud. After the signaling file is successfully imported, use the data analysis function of iTest-Cloud for data analysis. After the analysis is over, the user can click on the task to view the task details, the execution result of each use case, that is, whether each URL address test is successful, and click on the analysis result to view the log, that is, the RG number comparison result. If the mobile APP test URL address test is successful but the RG number does not exist, the analysis results also reflect that the log will show that the RG number does not exist.
本申请实施例提供了内容计费测试管理设备和终端设备来来相互配合完成计费测试。替代了内容计费的手工测试流程,自动比对工单的业务编码和信令中的N40,得出计费规则的测试情况。工程人员可以通过APP和iTest-Cloud掌握测试任务的进度,并能便捷地对计费规则的测试情况进行检查核实,节约人力成本的同时,也提高了工程人员的工作效率。验证计费规则的配置情况,有利于提高网络质量和客户满意度,有效减少类似的投诉。此外,本申请还可以地便捷测试出内容计费规则没有配置的情况。避免计费规则错误产生的话费纠纷,给运营商带来良好的经济效益和社会效益。The embodiment of the present application provides a content charging test management device and a terminal device to cooperate with each other to complete the charging test. It replaces the manual test process of content billing, automatically compares the service code of the work order with the N40 in the signaling, and obtains the test status of the billing rule. Engineers can grasp the progress of test tasks through APP and iTest-Cloud, and can conveniently check and verify the test status of billing rules, saving labor costs and improving the work efficiency of engineers. Verifying the configuration of billing rules will help improve network quality and customer satisfaction, and effectively reduce similar complaints. In addition, the present application can conveniently test the situation that the content charging rule is not configured. Avoid call charge disputes caused by incorrect billing rules, and bring good economic and social benefits to operators.
图17为本申请一实施例提供的内容计费测试管理设备1700。如图17所示,该内容计费测试管理设备1700包括但不限于:FIG. 17 is a content charging test management device 1700 provided by an embodiment of the present application. As shown in Figure 17, the content charging test management device 1700 includes but is not limited to:
存储器1720,用于存储程序;处理器1710,用于执行存储器1720存储的程序,当处理器1710执行存储器1720存储的程序时,处理器1710用于执行上述的内容计费测试方法。处理器1710和存储器1720可以通过总线或者其他方式连接。The memory 1720 is used to store programs; the processor 1710 is used to execute the programs stored in the memory 1720. When the processor 1710 executes the programs stored in the memory 1720, the processor 1710 is used to execute the above-mentioned content charging test method. The processor 1710 and the memory 1720 may be connected through a bus or in other ways.
图18为本申请一实施例提供的终端设备1800。如图18所示,该终端设备1800包括但不限于:存储器1820,用于存储程序;处理器1810,用于执行存储器1820存储的程序,当处理器1810执行存储器1820存储的程序时,处理器1810用于执行上述的内容计费测试方法。处理器1810和存储器1820可以通过总线或者其他方式连接。FIG. 18 is a terminal device 1800 provided by an embodiment of the present application. As shown in Figure 18, the terminal device 1800 includes but is not limited to: a memory 1820 for storing programs; a processor 1810 for executing the programs stored in the memory 1820, when the processor 1810 executes the programs stored in the memory 1820, the processor Step 1810 is used to execute the above content charging test method. The processor 1810 and the memory 1820 may be connected through a bus or in other ways.
存储器1720和存储器1820作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序,如本申请实施例描述的内容计费测试方法。处理器1710和处理器1810分别通过运行存储在存储器1720和存储器1820中的非暂态软件程序以及指令,从而实现上述的内容计费测试方法。The memory 1720 and the memory 1820, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs, such as the content charging test method described in the embodiment of the present application. The processor 1710 and the processor 1810 respectively execute the non-transitory software programs and instructions stored in the memory 1720 and the memory 1820 to implement the above-mentioned content charging test method.
存储器1720可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储执行上述的内容计费测试方法。此外,存储器1720可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器1720可选包括相对于处理器1710远程设置的存储器,这些远程存储器可以通过网络连接至该处理器1710。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1720 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application program required by a function; the data storage area may store and execute the content charging test method described above. In addition, the memory 1720 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some implementations, the memory 1720 may optionally include memory located remotely from the processor 1710, and these remote memories may be connected to the processor 1710 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
实现上述的内容计费测试方法所需的非暂态软件程序以及指令存储在存储器1720 中,当被一个或者多个处理器1710执行时,执行上述的内容计费测试方法,例如,执行如图6中的方法步骤S610至S650和图8中的方法步骤S810至S820。The non-transitory software programs and instructions required to realize the above-mentioned content billing test method are stored in the memory 1720, and when executed by one or more processors 1710, the above-mentioned content billing test method is executed, for example, as shown in FIG. Method steps S610 to S650 in 6 and method steps S810 to S820 in FIG. 8 .
在一实施例中,该存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器1710执行,例如,被上述内容计费测试管理设备1700中的一个处理器1710执行,可使得上述一个或多个处理器1710执行上述的内容计费测试方法,例如,执行如图6中的方法步骤S610至S650和图8中的方法步骤S810至S820。In one embodiment, the storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 1710, for example, by one of the processors 1710 in the above-mentioned content charging test management device 1700 , the above-mentioned one or more processors 1710 may be made to execute the above-mentioned content charging test method, for example, execute method steps S610 to S650 in FIG. 6 and method steps S810 to S820 in FIG. 8 .
实现上述的内容计费测试方法所需的非暂态软件程序以及指令存储在存储器1820中,当被一个或者多个处理器1810执行时,执行上述的内容计费测试方法,例如,执行图11中的方法步骤S1110至S1120和图12中的方法步骤S1210至S1240。The non-transitory software programs and instructions required to realize the above-mentioned content billing test method are stored in the memory 1820, and when executed by one or more processors 1810, the above-mentioned content billing test method is executed, for example, the implementation of FIG. 11 The method steps S1110 to S1120 in and the method steps S1210 to S1240 in FIG. 12 .
在一实施例中,该存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器1810执行,例如,被上述终端设备1800中的一个处理器1810执行,可使得上述一个或多个处理器1810执行上述的内容计费测试方法,例如,执行如图11中的方法步骤S1110至S1120和图12中的方法步骤S1210至S1240。In one embodiment, the storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processors 1810, for example, executed by one of the processors 1810 in the terminal device 1800, so that the above-mentioned One or more processors 1810 execute the above-mentioned content charging test method, for example, execute method steps S1110 to S1120 in FIG. 11 and method steps S1210 to S1240 in FIG. 12 .
本申请实施例包括:在需要对更新后的内容计费规则的配置情况进行测试时,内容计费测试管理设备获取工单信息,其中,工单信息包括计费规则和第一业务编码。内容计费测试管理设备根据计费规则生成测试用例,并将测试用例发送给终端设备。终端设备接收到测试用例后,根据测试用例进行测试处理。在终端设备进行计费测试过程中,网元管理系统跟踪计费测试过程生成测试信令,并发送给内容计费测试管理设备。内容计费测试管理设备则根据测试信令和第一业务编码生成计费测试结果,获得更新后的计费规则的配置情况。根据本申请实施例的方案,通过利用内容计费测试管理设备接收工单信息,并且利用内容计费测试管理设备根据工单信息进行自动化生成测试用例、分析测试信令等处理,获得更新后的内容计费规则的配置情况。本申请实施例的方案能够在内容计费规则发生更新、配置情况未知的情况下,使用内容计费测试管理设备和真实的终端设备进行测试任务,两个设备相互配合,测试更新后的计费规则是否配置正确,有效地提高了内容计费测试的准确率和测试效率,为运维工程师提供较为可靠的配置参考结果,提高工程人员的工作效率。The embodiment of the present application includes: when it is necessary to test the configuration of the updated content charging rule, the content charging test management device acquires work order information, wherein the work order information includes the charging rule and the first service code. The content charging test management device generates a test case according to the charging rule, and sends the test case to the terminal device. After receiving the test case, the terminal device performs test processing according to the test case. During the charging test process of the terminal equipment, the network element management system tracks the charging test process to generate test signaling and sends it to the content charging test management device. The content charging test management device generates a charging test result according to the test signaling and the first service code, and obtains the updated charging rule configuration. According to the solution of the embodiment of the present application, by using the content billing test management device to receive work order information, and using the content billing test management device to automatically generate test cases and analyze test signaling according to the work order information, the updated Configuration of content charging rules. The solution of the embodiment of the present application can use the content charging test management device and the real terminal device to perform the test task when the content charging rule is updated and the configuration is unknown. The two devices cooperate with each other to test the updated charging Whether the rules are configured correctly can effectively improve the accuracy and test efficiency of content billing tests, provide operation and maintenance engineers with more reliable configuration reference results, and improve the work efficiency of engineering personnel.
以上所描述的实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、 闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Claims (13)

  1. 一种内容计费测试方法,应用于内容计费测试管理设备,包括:A content charging test method applied to a content charging test management device, comprising:
    获取工单信息,所述工单信息包括计费规则和第一业务编码;Obtain work order information, where the work order information includes charging rules and a first business code;
    根据所述计费规则生成测试用例;Generate test cases according to the billing rules;
    将所述测试用例发送至终端设备,以使所述终端设备根据所述测试用例进行计费测试;Sending the test case to the terminal device, so that the terminal device performs a charging test according to the test case;
    获取网元管理系统对所述终端设备在计费测试过程中所生成的测试信令;Obtaining test signaling generated by the network element management system for the terminal device during the charging test;
    根据所述测试信令和所述第一业务编码生成计费测试结果。Generate a charging test result according to the test signaling and the first service code.
  2. 根据权利要求1所述的内容计费测试方法,其中,所述根据所述计费规则生成测试用例,包括:The content charging test method according to claim 1, wherein said generating test cases according to said charging rules comprises:
    根据所述计费规则获取可访问的测试地址;Obtain an accessible test address according to the billing rules;
    根据所述测试地址获取测试脚本;Obtain a test script according to the test address;
    根据所述测试脚本和预设的测试规则生成所述测试用例。The test case is generated according to the test script and preset test rules.
  3. 根据权利要求2所述的内容计费测试方法,其中,所述根据所述计费规则获取可访问的测试地址包括:The content charging test method according to claim 2, wherein said obtaining an accessible test address according to said charging rule comprises:
    根据所述计费规则获取与所述计费规则对应的第一网络地址;Acquire a first network address corresponding to the charging rule according to the charging rule;
    根据所述第一网络地址的地址类型,确定可访问的所述测试地址。The accessible test address is determined according to the address type of the first network address.
  4. 根据权利要求3所述的内容计费测试方法,其中,所述第一网络地址为URL地址,所述根据所述第一网络地址的地址类型,确定可访问的所述测试地址,包括:The content charging test method according to claim 3, wherein the first network address is a URL address, and determining the accessible test address according to the address type of the first network address includes:
    在经验库中记录有与所述第一网络地址匹配的第二网络地址的情况下,则将所述第二网络地址确定为所述测试脚本中的所述测试地址,所述经验库存储测试成功的计费规则以及所述计费规则对应的网络地址;In the case that a second network address matching the first network address is recorded in the experience library, the second network address is determined as the test address in the test script, and the experience library stores the test A successful charging rule and a network address corresponding to the charging rule;
    或者,or,
    在所述经验库中没有记录所述第二网络地址的情况下,从URL库中获取与所述第一网络地址匹配的第三网络地址作为所述测试脚本中的所述测试地址;In the case where the second network address is not recorded in the experience database, a third network address matching the first network address is obtained from the URL library as the test address in the test script;
    或者,or,
    在从所述经验库和所述URL库中都无法获取所述第一网络地址的情况下,根据预设的测试脚本生成规则与所述第一网络地址确定第四网络地址作为所述测试地址。In the case that the first network address cannot be obtained from the experience library and the URL library, a fourth network address is determined as the test address according to a preset test script generation rule and the first network address .
  5. 根据权利要求3所述的内容计费测试方法,其中,所述第一网络地址为IP地址,或者为IP地址和URL地址的组合地址,所述根据所述第一网络地址的地址类型,确定可访问的所述测试地址,包括:The content billing test method according to claim 3, wherein the first network address is an IP address, or a combined address of an IP address and a URL address, and according to the address type of the first network address, determine Accessible test addresses include:
    根据所述第一网络地址和预设的测试脚本生成规则,确定与所述第一网络地址相对应的第五网络地址作为可访问的所述测试地址。A fifth network address corresponding to the first network address is determined as the accessible test address according to the first network address and a preset test script generation rule.
  6. 根据权利要求1所述的内容计费测试方法,其中所述根据所述测试信令和所述第一业务编码生成计费测试结果,包括:The content charging test method according to claim 1, wherein said generating a charging test result according to said test signaling and said first service code comprises:
    根据所述测试信令获取计费会话响应信息;Acquiring charging session response information according to the test signaling;
    根据所述计费会话响应信息得到第二业务编码;obtaining a second service code according to the charging session response information;
    在所述第二业务编码与所述第一业务编码相同的情况下,计费测试结果为所述计费规则配置正确,In the case where the second service code is the same as the first service code, the charging test result indicates that the charging rule configuration is correct,
    或者,or,
    在所述第二业务编码与所述第一业务编码不相同的情况下,计费测试结果为所述计费规则配置错误。In a case where the second service code is different from the first service code, the result of the charging test is that the charging rule is configured incorrectly.
  7. 一种内容计费测试方法,应用于终端设备,包括:A content charging test method applied to a terminal device, comprising:
    从内容计费测试管理设备获取测试用例,所述测试用例由所述内容计费测试管理设备根据工单信息中的计费规则生成;Obtaining a test case from the content charging test management device, the test case is generated by the content charging test management device according to the charging rules in the work order information;
    根据所述测试用例进行计费测试。Carry out billing test according to the test case.
  8. 根据权利要求7所述的内容计费测试方法,其中,所述根据所述测试用例进行计费测试,包括:The content charging test method according to claim 7, wherein said performing the charging test according to the test case includes:
    根据所述测试用例获取测试规则;Obtain test rules according to the test case;
    根据所述测试规则确定测试地址;Determine the test address according to the test rules;
    根据所述测试地址的地址类型确定对应的用例执行规则;determining a corresponding use case execution rule according to the address type of the test address;
    根据所述用例执行规则进行计费测试。Carry out billing test according to the use case execution rules.
  9. 根据权利要求8所述的内容计费测试方法,其中,所述根据所述用例执行规则进行计费测试,包括:The content charging test method according to claim 8, wherein, performing the charging test according to the use case execution rules includes:
    根据所述用例执行规则发送用例执行请求信息;sending use case execution request information according to the use case execution rules;
    在接收用例执行响应信息的情况下,根据所述用例执行规则执行计费测试。In the case of receiving the use case execution response information, perform the charging test according to the use case execution rules.
  10. 根据权利要求8所述的内容计费测试方法,其中所述测试地址的地址类型至少包括其中之一:IP地址;URL地址。The content charging test method according to claim 8, wherein the address type of the test address includes at least one of: IP address; URL address.
  11. 一种内容计费测试管理设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至6中任意一项所述的内容计费测试方法。A content billing test management device, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, it implements claims 1 to 6 The content billing test method described in any one.
  12. 一种终端设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求7至10中任意一项所述的内容计费测试方法。A terminal device, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, any one of claims 7 to 10 is implemented The content billing test method described above.
  13. 一种存储介质,其中,存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至6中任意一项所述的内容计费测试方法,或者权利要求7至10中任意一项所述的内容计费测试方法。A storage medium, wherein computer-executable instructions are stored, and the computer-executable instructions are used to execute the content charging test method according to any one of claims 1 to 6, or any one of claims 7 to 10 A content billing test method as described.
PCT/CN2022/134370 2022-01-14 2022-11-25 Content charging test method, management device, terminal device and storage medium WO2023134312A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210042819.9A CN114071391B (en) 2022-01-14 2022-01-14 Content charging test method, management device, terminal device and storage medium
CN202210042819.9 2022-01-14

Publications (1)

Publication Number Publication Date
WO2023134312A1 true WO2023134312A1 (en) 2023-07-20

Family

ID=80231118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134370 WO2023134312A1 (en) 2022-01-14 2022-11-25 Content charging test method, management device, terminal device and storage medium

Country Status (2)

Country Link
CN (1) CN114071391B (en)
WO (1) WO2023134312A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071391B (en) * 2022-01-14 2022-05-17 中兴通讯股份有限公司 Content charging test method, management device, terminal device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014596A1 (en) * 2011-03-01 2016-01-14 Tracfone Wireless, Inc. System, Method and Apparatus for Pairing SIM or UICC Cards with Authorized Wireless Devices
CN106559244A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 A kind of session service test and management method and system and management end, test lead
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN114071391A (en) * 2022-01-14 2022-02-18 中兴通讯股份有限公司 Content charging test method, management device, terminal device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9231774B2 (en) * 2012-09-27 2016-01-05 Alcatel Lucent Congestion control for radio access networks (RAN)
CN105245396A (en) * 2014-07-11 2016-01-13 华为软件技术有限公司 Fee verification method and fee verification system
CN110972091B (en) * 2018-09-30 2021-06-08 中国移动通信集团重庆有限公司 Communication charging method, device, equipment, medium and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014596A1 (en) * 2011-03-01 2016-01-14 Tracfone Wireless, Inc. System, Method and Apparatus for Pairing SIM or UICC Cards with Authorized Wireless Devices
CN106559244A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 A kind of session service test and management method and system and management end, test lead
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN112799951A (en) * 2021-02-04 2021-05-14 上海云轴信息科技有限公司 Method and equipment for generating automatic test case for charging system
CN114071391A (en) * 2022-01-14 2022-02-18 中兴通讯股份有限公司 Content charging test method, management device, terminal device and storage medium

Also Published As

Publication number Publication date
CN114071391A (en) 2022-02-18
CN114071391B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
US20060229054A1 (en) Help desk connect
CN102136938B (en) Method and device for providing user information for carried grade network address translation (CGN) equipment
CN109587275A (en) A kind of method for building up and proxy server of communication connection
CN110677383B (en) Firewall wall opening method and device, storage medium and computer equipment
WO2013181918A1 (en) Method and system for internet of things capability integration
CN107547213B (en) Method and device for identifying business rules
CN107690149B (en) Method for triggering network policy update, management function entity and core network equipment
CN107800603A (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
WO2023134312A1 (en) Content charging test method, management device, terminal device and storage medium
US11973668B2 (en) Correlating network data with instant app feedback for ML-based customer experience management
CN105634849A (en) Dial measuring method and apparatus for data traffic unified payment services
CN108207012A (en) A kind of flow control methods, device, terminal and system
WO2015089732A1 (en) Service testing method, device and system, network node and quality processing node
CN110087321A (en) Method, apparatus, computer equipment and the storage medium of triggering terminal session
CN108566446A (en) LAN domain name analytic method, device and system
CN106817392B (en) A kind of data processing method and system
CN104394151A (en) Method, device and system for accessing campus network into operator network
CN114885365B (en) Business rule detection method and device, electronic equipment and storage medium
CN109446086A (en) A kind of method of App inside packet capturing
CN115022074A (en) User authentication and authorization method, device, medium and equipment
CN103297966B (en) Realize the access authentication method and device of WLAN
CN114363846B (en) Method, system, device and medium for testing and checking 5G-SA charging and dialing of Internet of things
CN111355761A (en) Directional flow resource acquisition system, method, device, electronic equipment and medium
CN116669134B (en) Method, device, equipment and medium for adapting SMF network element and UPF network element
CN115103423B (en) Service information determining method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22919945

Country of ref document: EP

Kind code of ref document: A1