CN111225402B - Charging middleware testing system and method - Google Patents

Charging middleware testing system and method Download PDF

Info

Publication number
CN111225402B
CN111225402B CN201811418444.1A CN201811418444A CN111225402B CN 111225402 B CN111225402 B CN 111225402B CN 201811418444 A CN201811418444 A CN 201811418444A CN 111225402 B CN111225402 B CN 111225402B
Authority
CN
China
Prior art keywords
order
charging
platform
short message
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811418444.1A
Other languages
Chinese (zh)
Other versions
CN111225402A (en
Inventor
单永杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aspire Technologies Shenzhen Ltd
Original Assignee
Aspire Technologies Shenzhen Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aspire Technologies Shenzhen Ltd filed Critical Aspire Technologies Shenzhen Ltd
Priority to CN201811418444.1A priority Critical patent/CN111225402B/en
Publication of CN111225402A publication Critical patent/CN111225402A/en
Application granted granted Critical
Publication of CN111225402B publication Critical patent/CN111225402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/35Services specially adapted for particular environments, situations or purposes for the management of goods or merchandise

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a charging middleware testing system and a method, which relate to the technical field of computers, and the system comprises a mobile phone, a short message gateway simulator, a charging platform and a service platform, wherein the mobile phone is connected with the short message gateway simulator, the short message gateway simulator is connected with the charging platform, the charging platform is connected with the service platform, the mobile phone sends a test short message to the short message gateway simulator, the short message gateway simulator sends an order request to the charging platform, the charging platform sends an order message to the service platform, and the service platform sends an order confirmation message to the charging platform. The invention uses a short message gateway simulator to receive order test short messages and sends order requests to a charging platform; testing whether the charging platform can correctly process the order request; whether the order success message sent by the service system can be received or not is tested, the technical problem that the prior art can only be carried out in an actual network is solved, and the safety risk of the system is reduced.

Description

Charging middleware testing system and method
Technical Field
The invention relates to the technical field of computers, in particular to a charging middleware testing system and a charging middleware testing method.
Background
The charging platform can provide charging service for a plurality of service systems, and the specific method is that the SDK plug-in of the charging platform is packaged into a service system client installation program, the client sends order short messages to the short message gateway by calling an API (application program interface) interface provided by the SDK installation package of the charging platform, and the short message gateway forwards the order short messages to the charging platform for further processing.
The existing test scheme can only carry out testing in an actual network, the test process is complex, the risk of a safety system is increased, the test cost is improved, and meanwhile, due to the fact that the development period of each service system is different, if the functional test is carried out after all the service systems are developed, the development and test efficiency of the charging platform are greatly influenced.
Disclosure of Invention
The present invention is directed to solving, at least in part, one of the technical problems in the related art. To this end, it is an object of the present invention to provide a billing middleware test system that reduces the risk of system security.
Therefore, the second purpose of the invention is to provide a charging middleware testing method which reduces the risk of system security.
The technical scheme adopted by the invention is as follows:
in a first aspect, the invention provides a charging middleware testing system, which is characterized by comprising a mobile phone, a short message gateway simulator, a charging platform and a service platform, wherein the mobile phone is connected with the short message gateway simulator, the short message gateway simulator is connected with the charging platform, the charging platform is connected with the service platform, the mobile phone sends a test short message to the short message gateway simulator, the short message gateway simulator sends an order request to the charging platform, the charging platform sends an order message to the service platform, and the service platform sends an order confirmation message to the charging platform.
In a second aspect, the present invention provides a method for testing a charging middleware, including the following steps:
using a short message gateway simulator to receive an order test short message and sending an order request to a charging platform;
testing whether the charging platform can process the ordering request;
and testing whether the order success message sent by the service system can be received.
Further, the subscription request is generated according to a preset encryption algorithm, and the subscription request includes: the method comprises the steps of presetting a charging instruction, presetting an encryption string and a periodic variation factor, wherein the periodic variation factor is related to ordering time.
Further, the testing whether the charging platform can correctly process the subscription request includes: and analyzing the order request, decrypting the order request and authenticating the order request.
Furthermore, the ordering test message comprises a game plaintext instruction ordering message, a game ciphertext instruction ordering message and a non-game key instruction ordering message.
Furthermore, the method also comprises the step of opening port numbers of charging points of a plurality of service systems on the charging platform.
Further, the method also comprises the step of sending an ordering request to a charging platform by using a performance testing tool, and testing whether the charging platform can process the ordering testing request.
Further, the ordering request comprises game plaintext instruction short message ordering, non-game key instruction short message ordering, game key instruction abnormal short message ordering and non-short message ordering.
Further, the method also comprises the step of testing data in a preset time period of the last day of each month, data in a preset time period of the first day of each month and data in a preset time period of the last day of leap years.
The invention also discloses a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the above method.
The invention has the beneficial effects that:
the invention adopts the short message gateway simulator to receive the ordering test short message and send the ordering request to the charging platform to test the charging function of the charging platform, thereby overcoming the technical problem that the prior art can only be carried out in an actual network and reducing the safety risk of the system.
Drawings
FIG. 1 is a flow chart of a charging principle of a charging platform;
fig. 2 is a flowchart of a charging middleware testing method according to an embodiment of the present invention;
fig. 3 is a flowchart of a charging middleware testing method according to another embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
As shown in fig. 1, fig. 1 is a flowchart of the work flow of the billing platform, which includes the following steps:
1. when a client side purchases charging points such as a gate card, a gold coin and a red diamond, an order short message is sent to a short message gateway through an API (application program interface) in the SDK, and the short message gateway sends an order request to a charging platform;
2. the charging platform analyzes, decrypts and comprehensively authenticates the order request;
3. the charging platform sends a secondary order confirmation short message to the client mobile phone through the short message gateway;
4. the user replies a secondary order confirmation short message;
5. the charging platform and the service platform synchronize order relationship through a real-time synchronization interface;
6. the service platform sends an order confirmation message to the charging platform;
7. the charging platform sends a short message issuing instruction to the short message gateway, and the short message gateway sends a short message notification to the user to inform the user that the user has ordered;
8. the short message gateway sends a short message ordering state notification to the charging platform;
9. the charging platform and the service platform synchronously order states as required;
10. the short message gateway generates a ticket;
11. the short message gateway transmits the call ticket to a service support system;
12. the short message gateway sends a short message notification of successful ordering to the user;
13. and the service platform generates a platform order record.
As shown in fig. 2, the present invention provides a charging middleware testing system, which includes a mobile phone, a short message gateway simulator, a charging platform and a service platform, wherein the mobile phone is connected to the short message gateway simulator, the short message gateway simulator is connected to the charging platform, the charging platform is connected to the service platform, the mobile phone sends a test short message to the short message gateway simulator, the short message gateway simulator sends an order request to the charging platform, the charging platform sends an order message to the service platform, and the service platform sends an order confirmation message to the charging platform.
The invention also provides a charging middleware testing method, which adopts a short message gateway simulator to simulate the function of a short message gateway and sends a test short message to the short message gateway through a mobile phone number, wherein the test short message comprises a game plaintext instruction ordering short message, a game ciphertext instruction ordering short message and a non-game key instruction ordering short message, the short message gateway simulator acquires the test short message and sends an ordering request to a charging platform, the ordering request is generated according to a preset encryption algorithm, and the ordering request comprises: the method comprises the steps of presetting a charging instruction, presetting an encryption string and a periodic variation factor, wherein the periodic variation factor is related to ordering time, and specifically comprises the splicing of the preset charging instruction, the fixed encryption string and a periodic variation factor (a month time string), and the periodic variation factor is English shorthand in which the last 2-digit number of a year is respectively shifted to the left by 1 bit and is added to the month.
The charging platform analyzes, decrypts and comprehensively authenticates the received order test short message, the order test short message is processed and then is synchronously ordered to a real-time interface of the service platform, the service platform confirms the order relation to the charging platform, and the service platform tests whether the charging platform can correctly process the order request or not by checking a system operation log and tests whether the order success message sent by the service system can be received or not.
In the system design, within the time range of last hours of the last day of each month, it may happen that the order success message is sent out only on the first day of the next month due to system or network delay, so that the data in the preset time period of the last day of each month, the data in the preset time period of the first day of each month, and the data in the preset time period of the last day of leap year are compatible with the double keys (preset encryption string and periodic change factor), that is, the key data of the first day of the next month are compatible in the preset time period of the last day of each month, and the key data in the preset time period of the last day of the last month are compatible in the preset time period of the first day of each month, and the leap year is the same.
In the embodiment, the functions of encrypting the SDK packet, decrypting the platform side and ordering the game of one charging point of a plurality of service platforms from 20 points at 6/month and 30 points in 2018 to 2 points at 7/month and 2 points in 2018 are selected.
As shown in fig. 3, the present invention further includes using a performance testing tool to send an order request to the billing platform, and testing whether the billing can process the order test request.
The ordering request comprises game plaintext instruction short message ordering, non-game key instruction short message ordering, game key instruction abnormal short message ordering and non-short message ordering.
In this embodiment, a preset time after 21 o' clock of 29 days 2 and 29 months 2020 is selected for testing, and the specific steps are as follows:
1. setting the system time of the charging platform to a certain time after 21 o' clock of 29.29.2.2020, modifying the database and the system time of the server where the application is located, restarting the service, removing the time synchronization function of the server, modifying the mobile phone number in the performance test tool script, and setting the parameters as the corresponding parameters in the test time period.
2. The simulated mobile phone number in the performance test tool is the section of 15000000001-15000202000.
3. The ordering request is selected from ordering requests with the time of 2020 year 2 month 29 day and 2020 year 3 month 1 day, the ordering requests are encrypted according to a preset algorithm, and the ordering requests are sent to the charging platform through the performance testing tool within the time range from the system time of the charging platform to the time range from 2020 year 2 month 29 day 21 to 2020 year 3 month 1 morning 2.
4. Whether the subscription request of the 29 th 2 th 2020 and the 3 rd 1 st 2020 year is compatible in the system log of the charging platform is checked, for example, the data of 21 st 2 nd 29 th 2020 can be received in the period of 2 am of 3 rd 1 st am of 2020.
Because the charging platform supports the function of providing charging for a plurality of service systems at the same time, the port numbers of the charging points of the plurality of service systems are arranged on the charging platform during testing to communicate with the plurality of service systems, and the ordering request is processed.
The invention also includes the order request which is used for testing the order request and does not adopt the preset encryption algorithm and directly adopts the plaintext form, the function test for shielding the plaintext instruction in the order request, the performance test for removing the decryption function in the charging platform and the performance test for adopting the decryption function in the charging platform.
The short message gateway simulator receives the ordering test short message, sends the ordering request to the charging platform, tests the charging function of the charging platform, overcomes the technical problem that the prior art can only be carried out in an actual network, and reduces the safety risk of the system.
Meanwhile, the invention does not need to test the functions after all the service systems are developed, and only needs to test the SDK interface of the service client and the service platform interface, thereby shortening the test period and improving the development efficiency.
The invention also discloses a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the above method.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. The charging middleware testing system is characterized by comprising a mobile phone, a short message gateway simulator, a charging platform and a service platform, wherein the mobile phone is connected with the short message gateway simulator, the short message gateway simulator is connected with the charging platform, the charging platform is connected with the service platform, the mobile phone sends a test short message to the short message gateway simulator, the short message gateway simulator sends an ordering request to the charging platform, the ordering request is generated according to a preset encryption algorithm, and the ordering request comprises: presetting a charging instruction, a preset encryption string and a periodic variation factor, wherein the periodic variation factor is related to ordering time; the charging platform sends an order message to the service platform, analyzes the order request through the charging platform, decrypts the order request and authenticates the order request; synchronizing an order relationship to a real-time interface of a service platform through the charging platform, confirming the order relationship to the charging platform by the service platform, testing whether the charging platform can correctly process the order request or not by checking a system running log, and testing whether an order success message sent by the service system can be received or not;
wherein the system further comprises:
and testing the data in the preset time period of the last day of each month, the data in the preset time period of the first day of each month and the data in the preset time period of the last day of the leap year.
2. A charging middleware testing method applied to the charging middleware testing system of claim 1, comprising the steps of:
receiving an order test short message by using a short message gateway simulator, and sending an order request to a charging platform; the ordering request is generated according to a preset encryption algorithm, and the ordering request comprises: presetting a charging instruction, a preset encryption string and a periodic variation factor, wherein the periodic variation factor is related to ordering time;
analyzing the order request through the charging platform, decrypting the order request and authenticating the order request;
synchronizing an order relationship to a real-time interface of a service platform through the charging platform, confirming the order relationship to the charging platform by the service platform, testing whether the charging platform can correctly process the order request or not by checking a system running log, and testing whether an order success message sent by the service system can be received or not;
wherein the method further comprises:
and testing the data in the preset time period of the last day of each month, the data in the preset time period of the first day of each month and the data in the preset time period of the last day of the leap year.
3. The method as claimed in claim 2, wherein the order test message comprises a game plaintext instruction order message, a game ciphertext instruction order message and a non-game key instruction order message.
4. The method according to claim 2, further comprising opening port numbers of charging points of a plurality of service systems on the charging platform.
5. The method according to claim 2, further comprising using a performance testing tool to send an order request to a billing platform, and testing whether the billing platform can process the order test request.
6. The method as claimed in claim 5, wherein the order request includes game plaintext instruction SMS order, non-game key instruction SMS order, game key instruction abnormal SMS order and non-SMS order.
7. A computer-readable storage medium having computer-executable instructions stored thereon for causing a computer to perform the method of any one of claims 2 to 6.
CN201811418444.1A 2018-11-26 2018-11-26 Charging middleware testing system and method Active CN111225402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811418444.1A CN111225402B (en) 2018-11-26 2018-11-26 Charging middleware testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811418444.1A CN111225402B (en) 2018-11-26 2018-11-26 Charging middleware testing system and method

Publications (2)

Publication Number Publication Date
CN111225402A CN111225402A (en) 2020-06-02
CN111225402B true CN111225402B (en) 2022-11-11

Family

ID=70828728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811418444.1A Active CN111225402B (en) 2018-11-26 2018-11-26 Charging middleware testing system and method

Country Status (1)

Country Link
CN (1) CN111225402B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113839978A (en) * 2020-06-24 2021-12-24 中兴通讯股份有限公司 Charging method based on charging platform, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600185A (en) * 2009-07-14 2009-12-09 中国联合网络通信集团有限公司 Booking method, system and the Business Management Platform of across a network territory value-added service set meal
CN106302698A (en) * 2016-08-11 2017-01-04 尹子栋 The method and system of order business

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407836C (en) * 2003-05-26 2008-07-30 华为技术有限公司 Method and system for testing short message central function
CN101132290B (en) * 2006-08-23 2013-04-17 腾讯科技(深圳)有限公司 Charging method and system for implementing internet order by short message
CN101267456B (en) * 2008-03-31 2011-04-13 中国联合网络通信集团有限公司 Method and system for preventing CP subscription simulation
CN102136932B (en) * 2010-09-29 2013-06-26 华为软件技术有限公司 Method, device and system for realizing service application
CN102143523B (en) * 2010-11-18 2014-06-25 华为技术有限公司 Service delivery platform and application testing method based on service delivery platform
CN103037329B (en) * 2011-09-29 2015-12-16 北京神州泰岳软件股份有限公司 SMS test platform and SMS method of testing
CN102711070B (en) * 2011-12-20 2015-02-18 中国移动(深圳)有限公司 On-line charging simulation testing system and method
CN109874118B (en) * 2017-12-04 2020-08-18 中国移动通信集团公司 Online charging system testing method and virtual network element

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600185A (en) * 2009-07-14 2009-12-09 中国联合网络通信集团有限公司 Booking method, system and the Business Management Platform of across a network territory value-added service set meal
CN106302698A (en) * 2016-08-11 2017-01-04 尹子栋 The method and system of order business

Also Published As

Publication number Publication date
CN111225402A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN107294729B (en) Communication method and device between different nodes in block chain
CN106304074B (en) Auth method and system towards mobile subscriber
WO2020215909A1 (en) Method, client device and pos terminal for offline transaction
CN109558261B (en) Method and system for acquiring abnormal log of wearable device
CN102378171A (en) Automatic authentication method and system thereof, Portal server, and RADIUS server
CN105357191A (en) User data encryption method and device
CN102271035A (en) Password transmission method and device
CN102694780A (en) Digital signature authentication method, payment method containing the same and payment system
CN108959990B (en) Two-dimensional code verification method and device
CN102685727A (en) Method for transmitting and operating application program, system for operating application program, server and terminal
CN111339201A (en) Evaluation method and system based on block chain
CN112653556A (en) TOKEN-based micro-service security authentication method, device and storage medium
CN110248356B (en) Information acquisition method and device
CN111225402B (en) Charging middleware testing system and method
CN108846671B (en) Online secure transaction method and system based on block chain
CN110913380A (en) Method and device for communicating with Bluetooth device based on applet platform
CN114095277A (en) Power distribution network secure communication method, secure access device and readable storage medium
CN107911335B (en) Method, device and system for checking Uniform Resource Identifier (URI)
CN105471920A (en) Identifying code processing method and device
CN107154920A (en) Encryption method, decryption method and the reception device to receive security information of security information
CN112732676B (en) Block chain-based data migration method, device, equipment and storage medium
CN115567297A (en) Cross-site request data processing method and device
CN114692124A (en) Data reading and writing method and device and electronic equipment
EP3086583B1 (en) Wireless terminal network locking method and system
CN112702734B (en) Key distribution system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 w601, Shenzhen Hong Kong industry university research base, 015 Gaoxin South 7th Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: ASPIRE TECHNOLOGIES (SHENZHEN) LTD.

Address before: 518000 south wing, 6th floor, west block, Shenzhen Hong Kong industry university research base building, South District, high tech Industrial Park, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: ASPIRE TECHNOLOGIES (SHENZHEN) LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant