Communication network testing method and device

By obtaining and executing dial-test scripts in the test server and operating the test application, the problem that the simulator cannot fully simulate the real terminal is solved, and the matching verification of the test business system and the real terminal is realized, which improves the security and comprehensiveness of the test.

CN114257518BActive Publication Date: 2025-05-02ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010956375.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-11
Publication Date
2025-05-02
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

In the prior art, using simulator terminals for testing cannot fully simulate real terminals, resulting in the inability to fully verify business functions, the inability to verify different types of terminals, and the security of the test process is not robust enough.

Method used

By obtaining the dialing script corresponding to the terminal information of the test terminal from the test server, executing the dialing script to operate the test application, initiating a service request to the test system, and sending the execution result to the test server to determine the dialing result of the test system.

Benefits of technology

It realizes the maximum verification of the matching between the service system under test and the real terminal, solves the problem that the simulator cannot fully simulate the real terminal, and improves the security and comprehensiveness of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114257518B_ABST
    Figure CN114257518B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a communication network testing method and device, wherein the method comprises: obtaining a dialing test script corresponding to the terminal information of the tested terminal from a test server; operating the tested application by executing the dialing test script, wherein the tested application is used to initiate a service request to the tested system; and sending the execution result of the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the tested system. The problem in the related art that the simulator terminal cannot fully simulate the real terminal for testing can be solved. The real application is used to perform non-invasive automatic service dialing on the tested system, which can verify the matching between the tested service system and the real terminal to the greatest extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a communication network testing method and device. Background Art

[0002] As communication technology has evolved to the 5G era, communication terminals and communication systems have become increasingly diverse in their functions, which brings richer user experiences but also more difficulties to testing. In testing, not only the various business functions of the communication system need to be verified, but also the compatibility test of different communication terminals is required. How to design an automatic testing method has become a major problem.

[0003] The automatic testing system in the related technology usually uses a dedicated simulator. By developing software similar to the real application, it is connected to the system under test for functional testing. The test results are obtained by analyzing the execution of the dedicated simulator.

[0004] Business functions cannot be fully verified: The simulator cannot fully simulate the behavior of the real terminal, and the test results are biased. For example, in mobile phone applications, it involves using a USIM card for authentication, and a dedicated simulator cannot simulate this process.

[0005] Unable to verify different types of terminals: The simulator is generally tested according to standard business processes and cannot verify the processes of different types of terminals; when the terminal software version is upgraded, it is also impossible to verify the functions of the new version.

[0006] The security of the testing process is not robust enough: the numbers, passwords and other information used by the simulator are written into the simulator through configuration, which poses a security risk. The relevant test numbers may be leaked, resulting in business loopholes. Summary of the invention

[0007] The embodiment of the present invention provides a communication network testing method and device, so as to at least solve the problem in the related art that the simulator terminal used for testing cannot fully simulate the real terminal.

[0008] According to an embodiment of the present invention, a communication network testing method is provided, comprising:

[0009] Obtain the dialing test script corresponding to the terminal information of the terminal under test from the test server;

[0010] The application under test is operated by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test;

[0011] The execution result of the dialing test script is sent to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test.

[0012] In one embodiment, the method further comprises:

[0013] Acquire and store domain name system (DNS) information of the system under test from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0014] Initiate a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses.

[0015] In one embodiment, initiating a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses includes:

[0016] Obtain a target domain name for accessing the system under test;

[0017] Determine the target IP address corresponding to the target domain name according to the correspondence between the one or more domain names and the IP addresses;

[0018] The service request is initiated to the system under test according to the target IP address.

[0019] In one embodiment, initiating the service request to the system under test according to the target IP address includes:

[0020] Obtaining business content through the application under test;

[0021] According to the target IP address, the application program under test is called to send the service request including the service content to the system under test.

[0022] In one embodiment, sending the execution result of the dial test script to the test server includes:

[0023] After a first predetermined time, opening the sent service content in the application under test through the dialing test script;

[0024] The execution result including the business content is sent to the test server.

[0025] In another embodiment, the method further comprises:

[0026] Receive a message instruction for viewing business content;

[0027] The service content is checked by executing the dialing script according to the received message instruction.

[0028] In another embodiment, sending the execution result of the dial test script to the test server includes:

[0029] After a second predetermined time, opening the received service content in the application under test through the dialing test script;

[0030] The execution result including the business content is sent to the test server.

[0031] In another embodiment, the method further comprises:

[0032] Repeat the following steps until the traversal of the IP address of the system under test is completed:

[0033] Sending a DNS information change request to the test server;

[0034] Receiving a change response sent by the test server after changing the DNS information;

[0035] Obtaining from the test server the changed correspondence between one or more domain names and IP addresses of the system under test;

[0036] A service request is initiated to the system under test according to the changed correspondence between one or more domain names and IP addresses of the system under test.

[0037] According to another embodiment of the present invention, a communication network testing method is also provided, including:

[0038] Send the dial test script corresponding to the terminal information to the terminal under test;

[0039] Receiving an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test;

[0040] The dialing test result of the system under test is determined according to the execution result.

[0041] In one embodiment, determining the dialing test result of the tested system according to the execution result includes:

[0042] Obtaining a business execution log from the system under test;

[0043] The dialing test result of the tested system is determined according to the execution result and the service execution log.

[0044] In one embodiment, before sending the dialing test script corresponding to the terminal information to the terminal under test, the method further includes:

[0045] Receiving a request sent by the tested terminal to obtain a dialing test script configured for the terminal information;

[0046] Sending a dialing test script configured with the terminal information to the terminal under test.

[0047] In one embodiment, the method further comprises:

[0048] Receiving DNS information of the system under test sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0049] Sending DNS information of the system under test to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

[0050] According to another embodiment of the present invention, there is also provided a communication network testing device, comprising:

[0051] The acquisition module is used to obtain the dialing test script corresponding to the terminal information of the tested terminal from the test server;

[0052] An execution module, used to operate the application under test by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test;

[0053] The first sending module is used to send the execution result of the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test.

[0054] In one embodiment, the device further comprises:

[0055] A storage module, used to obtain and store the domain name system DNS information of the system under test from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0056] An initiating module is used to initiate a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses.

[0057] In one embodiment, the initiating module includes:

[0058] A first acquisition submodule is used to acquire a target domain name for accessing the system under test;

[0059] A first determination submodule, configured to determine a target IP address corresponding to the target domain name according to a correspondence between the one or more domain names and the IP addresses;

[0060] An initiating submodule is used to initiate the service request to the system under test according to the target IP address.

[0061] In one embodiment, the initiator module includes:

[0062] An acquisition unit, used for acquiring business content through the application under test;

[0063] A sending unit is used to call the application under test to send the service request including the service content to the system under test according to the target IP address.

[0064] In one embodiment, the first sending module includes:

[0065] A first opening submodule is used to open the sent service content in the tested application through the dialing test script after a first predetermined time;

[0066] The first sending submodule is used to send the execution result including the business content to the test server.

[0067] In one embodiment, the device further comprises:

[0068] A receiving module, used to receive a message receiving instruction for viewing business content;

[0069] A viewing module is used to view the service content by executing the dialing script according to the received message instruction.

[0070] In one embodiment, the first sending module includes:

[0071] A second opening submodule is used to open the received service content in the tested application through the dialing test script after a second predetermined time;

[0072] The second sending submodule is used to send the execution result including the business content to the test server.

[0073] In another embodiment, the apparatus further comprises:

[0074] The execution module is used to repeatedly execute the following steps until the traversal of the IP address of the system under test is completed:

[0075] Sending a DNS information change request to the test server;

[0076] Receiving a change response sent by the test server after changing the DNS information;

[0077] Obtaining from the test server the changed correspondence between one or more domain names and IP addresses of the system under test;

[0078] A service request is initiated to the system under test according to the changed correspondence between one or more domain names and IP addresses of the system under test.

[0079] According to another embodiment of the present invention, there is also provided a communication network testing device, comprising:

[0080] The second sending module is used to send a dialing test script corresponding to the terminal information to the terminal under test;

[0081] A first receiving module is used to receive an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test;

[0082] A determination module is used to determine the dialing test result of the system under test according to the execution result.

[0083] In one embodiment, the determining module includes:

[0084] A second acquisition submodule is used to obtain the business execution log from the system under test;

[0085] The second determining submodule is used to determine the dialing test result of the tested system according to the execution result and the business execution log.

[0086] In one embodiment, the device further comprises:

[0087] A second receiving module is used to receive a request sent by the tested terminal to obtain a dialing test script configured for the terminal information;

[0088] The third sending module is used to send the dialing test script configured with the terminal information to the terminal under test.

[0089] In another embodiment, the apparatus further comprises:

[0090] A third receiving module is used to receive the DNS information of the system under test sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0091] The fourth sending module is used to send the DNS information of the system under test to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

[0092] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0093] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0094] Through the present invention, a dialing test script corresponding to the terminal information of the terminal under test is obtained from the test server; the application under test is operated by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test; the execution result of the dialing test script is sent to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test. This can solve the problem in the related art that the simulator terminal cannot fully simulate the real terminal for testing. The real application is used to perform non-invasive automatic service dialing on the system under test, which can verify the matching between the service system under test and the real terminal to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 is a hardware structure block diagram of a mobile terminal of a communication network testing method according to an embodiment of the present invention;

[0096] Figure 2 The process of the communication network testing method according to the embodiment of the present invention is as follows Figure 1 ;

[0097] Figure 3 The process of the communication network testing method according to the embodiment of the present invention is as follows Figure 2 ;

[0098] Figure 4 is a structural diagram of a communication network automatic test system according to this embodiment;

[0099] Figure 5 This is the process of performing a traversal test on the tested system of the Pool network according to this embodiment. Figure 1 ;

[0100] Figure 6 This is the process of performing a traversal test on the tested system of the Pool network according to this embodiment. Figure 2 ;

[0101] Figure 7 is a flow chart of sending a text message using an automatic dialing terminal according to the present embodiment;

[0102] Figure 8 is a flow chart of receiving a text message using an automatic dialing terminal according to the present embodiment;

[0103] Fig. 9 is a flow chart of a test data processing process of the automatic dialing test system according to this embodiment;

[0104] Fig.10 The structure frame of the communication network test device according to the embodiment of the present invention is Figure 1 ;

[0105] Fig.11 The structure frame of the communication network test device according to the embodiment of the present invention is Figure 2 . DETAILED DESCRIPTION

[0106] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0107] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0108] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of a communication network testing method according to an embodiment of the present invention, such as Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0109] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the communication network testing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0110] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0111] In this embodiment, a communication network testing method running on the above mobile terminal or network architecture is provided. Figure 2 The process of the communication network testing method according to the embodiment of the present invention is as follows Figure 1 ,like Figure 2 As shown, the process includes the following steps:

[0112] Step S202, obtaining a dialing test script corresponding to the terminal information of the terminal under test from the test server;

[0113] Step S204, operating the application under test by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test;

[0114] Step S206: Sending the execution result of the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test.

[0115] Through the above steps S202 to S206, a dialing test script corresponding to the terminal information of the terminal under test is obtained from the test server; the application under test is operated by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test; the execution result of the dialing test script is sent to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test, which can solve the problem in the related technology that the simulator terminal cannot fully simulate the real terminal for testing, and the real application is used to perform non-invasive automatic service dialing on the system under test, which can verify the matching between the service system under test and the real terminal to the greatest extent.

[0116] In one embodiment, domain name system DNS information of the system under test is obtained and stored from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; a service request is initiated to the system under test according to the correspondence between the one or more domain names and IP addresses, and further, a target domain name for accessing the system under test is obtained; a target IP address corresponding to the target domain name is determined according to the correspondence between the one or more domain names and IP addresses; the service request is initiated to the system under test according to the target IP address, and correspondingly, in one embodiment, initiating the service request to the system under test according to the target IP address may further include: obtaining service content through the application under test; calling the application under test according to the target IP address to send the service request including the service content to the system under test, if the service content is a text message, specifically obtaining a receiving number entered in a destination number column in the application under test; obtaining text content entered in a content column of the application under test, wherein the receiving number and the text content are set in the dialing script; calling the application under test according to the target IP address to send a text message including the text content to the system under test.

[0117] In one embodiment, the above-mentioned step S206 may specifically include: after a first predetermined time, opening the sent business content in the tested application through the dialing script; sending the execution result including the business content to the test server, and if the business content is a text message, the execution result may also include a receiving number, etc.

[0118] In this embodiment, the business content can also be viewed. Specifically, after a first predetermined time, the business content sent is opened in the tested application through the dialing script; the execution result including the business content is sent to the test server, and if the business content is a text message, a receive message instruction for viewing the text message is received, and the text message is viewed by executing the dialing script according to the receive message instruction.

[0119] In another embodiment, the above step S206 may further specifically include: after a second predetermined time, opening the received text message in the application under test by using the dialing test script; and sending the execution result including the sending number and the text content to the test server.

[0120] In one embodiment, the following steps are repeatedly performed until the traversal of the IP address of the system under test is completed: a DNS information change request is sent to the test server, a change response is received after the test server changes the DNS information, and the correspondence between one or more domain names and IP addresses of the system under test after the change is obtained from the test server; and a service request is initiated to the system under test according to the correspondence between one or more domain names and IP addresses of the system under test after the change.

[0121] In this embodiment, a communication network testing method running on the above mobile terminal or network architecture is provided. Figure 3 The process of the communication network testing method according to the embodiment of the present invention is as follows Figure 2 ,like Figure 3 As shown, the process includes the following steps:

[0122] Step S302, sending a dialing test script corresponding to the terminal information to the terminal under test;

[0123] Step S304, receiving an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test;

[0124] Step S306: determining a dialing test result of the system under test according to the execution result.

[0125] Through the above steps S302 to S306, the problem in the related art that the simulator terminal cannot fully simulate the real terminal for testing can be solved. By using the real application to perform non-intrusive automatic business dialing testing on the system under test, the matching between the business system under test and the real terminal can be verified to the greatest extent.

[0126] In one embodiment, the above step S306 may specifically include: obtaining a service execution log from the system under test, and determining a dialing test result of the system under test according to the execution result and the service execution log.

[0127] In one embodiment, before sending a dialing test script corresponding to terminal information to a terminal under test, a request for obtaining a dialing test script configured for the terminal information is received from the terminal under test; and the dialing test script configured for the terminal information is sent to the terminal under test.

[0128] In another embodiment, DNS information of the system under test is received and sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; and the DNS information of the system under test is sent to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

[0129] This embodiment performs traversal testing on multiple systems in the Pool networking mode to meet the needs of business network availability verification and simplify the operation and maintenance process. A dedicated Domain Name System (DNS) service is provided in the automatic business test server to store various types of DNS information during the automatic dialing test, including but not limited to: the correspondence between domain names, IP addresses and ports; the automatic business test agent accesses the DNS service in the automatic business test server, obtains DNS information and caches it in the real terminal, so that the application under test can initiate a business request to the specified IP address and port; the automatic business test agent starts the application under test, simulates the user's behavior to operate the application under test, and obtains specified data from the returned data as the test result. Optionally, the automatic business test server obtains the business execution log from the system under test, compares it with the result information returned by the automatic business test agent, and determines the result of the automatic dialing test.

[0130] The automatic service test system proposed in this embodiment includes an automatic service test server and a terminal under test, wherein:

[0131] The main functions of the automatic business test server (referred to as the test server) include but are not limited to the following:

[0132] Configuration of dial test scripts: allows users to configure different service dial test scripts for different test terminals and test numbers to achieve flexible automatic dial test functions;

[0133] Test process control: By interacting with the test agent, the business process can be verified on the terminal, and multiple test agents can be linked. In addition, by interacting with the system under test, relevant data can be collected to analyze the test results.

[0134] DNS service: Provides query of the correspondence between host name and IP for the test agent. By dynamically adjusting data during the automatic dialing process, for example, by specifying the same IP address for multiple host names, multiple systems under test can be traversed in the Pool networking mode.

[0135] Configuration delivery service: When receiving an access request from a test agent, the corresponding automatic business test script can be delivered according to the information of the test agent's terminal (terminal type, test number, etc.).

[0136] Test data collection: collect the test agent's dialing information, as well as the log records or call records of the system under test, and save them to provide a basis for subsequent test data analysis;

[0137] Test data analysis: Analyze the data of the test agent and the system under test, and output the test results.

[0138] The main functions of the automatic business testing agent (abbreviated as: testing agent) include but are not limited to the following:

[0139] Obtain the dial test script and obtain the corresponding dial test script by communicating with the automatic business test server.

[0140] The DNS query function initiates a DNS query to the automatic business test server to obtain the IP address, port and other information of the system under test, and caches it in the test terminal, so as to achieve the purpose of the real application initiating a business request to the specified system under test.

[0141] Execute the automatic dialing script to operate the real terminal, including but not limited to: opening the wireless network, starting the specified application, pressing keys or entering specific information at the specified location of the specified application, copying information from the specified location of the interface, etc.

[0142] Report the execution result information of the automatic dialing script, including but not limited to: the time of executing the operation, obtaining information from the specified application, etc.

[0143] This embodiment realizes the non-intrusive automatic service dialing test of the tested service system using a real application program, which can verify the matching between the tested service system and the real terminal to the greatest extent, solving the problem that the existing dedicated simulator method cannot fully simulate the real terminal; on the other hand, the method proposed by the present invention can realize the traversal verification of multiple service systems in the Pool network, solving the problem that the real terminal cannot specify the service system for verification. It is also possible to analyze the end-to-end results of the dialing test results by collecting the dialing test result information on the terminal side and the log information of the tested system.

[0144] Figure 4 is a structural diagram of the communication network automatic test system according to this embodiment, such as Figure 4 As shown, including:

[0145] The test service main control module 41 is responsible for interacting with the test agent, performing business tests on the test server, and coordinating between multiple test agents; when receiving an access request from the test agent, it is responsible for dialing the test script for the test agent; when issuing the dialing script, the corresponding automatic business test script can be issued according to the information of the terminal where the test agent is located (terminal type, test number, etc.).

[0146] The DNS service module 42 provides the test agent with a query of the correspondence between the host name (domain name) and the IP address. By dynamically adjusting the data during the automatic dialing process, for example, by specifying the same IP address for multiple host names, the traversal of multiple systems under test in the Pool networking mode can be achieved;

[0147] The dialing test script configuration module 43 allows the user to configure different service dialing test scripts for different test terminals and test numbers to achieve flexible automatic dialing test functions;

[0148] The test data collection module 44 is responsible for collecting the dialing test information of the test agent, as well as the log records or call records of the system under test, and other information to provide a data basis for the dialing test data analysis;

[0149] The test data analysis module 45 is responsible for analyzing the data of the test agent and the system under test and outputting the test results;

[0150] The test agent main control module 46 is responsible for obtaining the dial test script, and obtaining the corresponding dial test script by communicating with the automatic business test server; and is responsible for controlling other modules of the test agent to perform related functions;

[0151] The DNS query function module 47 is responsible for initiating a DNS query process for the domain name of the system under test to the automatic business test server, obtaining the IP address, port and other information of the system under test, and caching them in the test terminal, so as to achieve the purpose of the real application initiating a business request to the specified system under test;

[0152] The dialing script execution module 48 is responsible for executing the automatic dialing script and performing operations on the real terminal, including but not limited to: opening the wireless network, starting the specified application, pressing a key or inputting specific information at a specified location of the specified application, copying information from a specified location on the interface, etc.;

[0153] The test data reporting module 49 is responsible for reporting the execution result information of the automatic dialing test script, including but not limited to: the time of executing the operation, the information obtained from the specified application, etc.;

[0154] The application program under test 410 is responsible for interacting with the system under test to implement relevant business functions. In the present invention, the automatic business test agent controls the application program under test to perform business testing by simulating user operations.

[0155] The system under test 411 is responsible for interacting with the application under test and providing business functions to the application under test; in the present invention, it can optionally provide information such as logs or call records to the automatic business test service for analysis of business test results.

[0156] The above modules can be deployed on different devices or on the same device, which are all within the protection scope of this embodiment.

[0157] Figure 5 This is the process of performing a traversal test on the tested system of the Pool network according to this embodiment. Figure 1 ,like Figure 5 As shown, the system under test has one domain name and multiple IP addresses, including:

[0158] S501, the test agent main control module interacts with the test server main control module to obtain a dialing test script;

[0159] S502, the test agent main control module calls the dial test script execution module to start executing the dial test script;

[0160] S503, the dialing script execution module needs to set the data in the DNS service module according to the content of the dialing script and send a request to the test agent main control module; since the system under test has multiple IP addresses, in order to realize the traversal operation, the dialing script requires the data in the DNS service module to be set before each service request is initiated to ensure that the system under test can be traversed.

[0161] S504, the test agent main control module forwards the DNS data setting request to the test service main control module;

[0162] S505, the test service main control module sets the data in the DNS service module and changes the corresponding domain name to the specified IP address information;

[0163] S506, the test service main control module returns a data setting success response to the test agent main control module;

[0164] S507, the test agent main control module forwards a data setting success response to the dial test script execution module;

[0165] S508, the dialing script execution module of the test agent calls the DNS query function module to initiate a DNS query to the DNS service module of the test server to obtain the domain name and IP address correspondence of the system under test;

[0166] S509, the dialing test script execution module of the test agent simulates the user operation and starts the application under test on the terminal;

[0167] S510, the application under test checks whether there is a DNS cache of the domain name of the system under test locally. Since the test agent has previously performed a DNS query on the domain name of the system under test, a DNS cache of the domain name of the system under test will be left on the terminal. Therefore, the application under test does not need to initiate a DNS query again, thereby ensuring the purpose of initiating a service request to the specified system under test;

[0168] S511, the application under test initiates a service request to the specified system under test;

[0169] S515, the dial test script execution module of the test agent operates the application under test according to the script requirements to complete a dial test operation;

[0170] S513, the dial test script execution module of the test agent sends a request to the main control module of the test agent according to the dial test script setting, requesting to modify the data in the DNS service module to modify the domain name and IP address of the system under test to another IP address;

[0171] S514, the test agent main control module forwards the DNS data setting request to the test service main control module;

[0172] S515, repeat steps S505 to S515 until the entire dial test script is executed.

[0173] Through the above script execution process, the purpose of controlling the application under test to perform business tests on different IP addresses of the system under test one by one can be achieved.

[0174] Figure 6 This is the process of performing a traversal test on the tested system of the Pool network according to this embodiment. Figure 2 ,like Figure 6 As shown in the figure, the system under test has multiple domain names and multiple IP addresses. The real application will use one of the domain names from the system under test, including:

[0175] S601, the test agent main control module interacts with the test server main control module to obtain a dialing test script;

[0176] S602, the test agent main control module calls the dial test script execution module to start executing the dial test script;

[0177] S603, the dial test script execution module needs to set the data in the DNS service module according to the content of the dial test script, and sends a request to the test agent main control module to request setting the data in the DNS service module, and uniformly sets the IPs corresponding to multiple domain names of the system under test to one IP, so that no matter which domain name the application under test on the terminal obtains from the system under test, it can connect to the specified system under test for verification;

[0178] S604, the test agent main control module forwards the DNS data setting request to the test service main control module;

[0179] S605, the test service main control module sets the data in the DNS service module and changes the corresponding domain name to the specified IP address information;

[0180] S606, the test service main control module returns a data setting success response to the test agent main control module;

[0181] S607, the test agent main control module forwards a data setting success response to the dial test script execution module;

[0182] S608, the dialing test script execution module of the test agent calls the DNS query function module to initiate a DNS query to the DNS service module of the test server to obtain the domain name and IP address correspondence of the system under test;

[0183] S609, the dialing test script execution module of the test agent simulates the user operation and starts the application under test on the terminal;

[0184] S610, the application under test checks whether there is a DNS cache of the domain name of the system under test locally. Since the test agent has previously performed a DNS query on the domain name of the system under test, a DNS cache of the domain name of the system under test will be left on the terminal. Therefore, the application under test does not need to initiate a DNS query again, thereby ensuring the purpose of initiating a service request to the specified system under test;

[0185] S611, the application under test initiates a service request to the specified system under test;

[0186] S612, the dial test script execution module of the test agent operates the application under test according to the script requirements to complete a dial test operation;

[0187] S616, the dial test script execution module of the test agent sends a request to the main control module of the test agent according to the dial test script setting, requesting to modify the data in the DNS service module to modify the domain name and IP address of the system under test to another IP address;

[0188] S614, the test agent main control module forwards the DNS data setting request to the test service main control module;

[0189] S615, repeat steps S605 to S612 until the entire dialing script is executed.

[0190] Through the above script execution process, the purpose of business testing can be achieved by controlling the IP addresses of the tested system one by one even if the tested application only uses one domain name.

[0191] Figure 7FIG. 1 is a flowchart of using an automatic dialing terminal to send a text message according to this embodiment. Figure 7 As shown, including:

[0192] S701, the test agent main control module interacts with the test server main control module to obtain a dialing test script;

[0193] S702, the test agent main control module instructs the dial test script execution module to execute the dial test process;

[0194] S703, the dialing test script execution module of the test agent simulates the user operation and starts the application under test on the terminal;

[0195] S704, the dialing script execution module of the test agent simulates the user operation, enters the destination user number in the destination number column of the tested application, the number is set in the dialing script; enters the text content in the content column of the tested application, the text content is set in the dialing script;

[0196] S705, the dialing test script execution module of the test agent simulates the user operation and clicks the send button in the application under test to complete the sending;

[0197] S706, after a certain period of time, the dialing script execution module of the test agent simulates the user operation, opens the sent message in the application under test, opens the most recent message, copies the destination number and text content from it, and stores it in the execution result data;

[0198] S707, after executing the dial test, the dial test script execution module of the test agent sends the test result to the test service main control module.

[0199] Through the above script execution process, the process of the application under test sending a specific message to the system under test is realized.

[0200] Figure 8 FIG. 1 is a flow chart of using an automatic dialing terminal to receive a text message according to this embodiment. Figure 8 As shown, including:

[0201] S801, the main control module of the receiver test agent interacts with the main control module of the test server to obtain the dialing test script;

[0202] S802, the receiving party test agent main control module instructs the dial test script execution module to execute the dial test process;

[0203] S803, the receiving test agent waits for the test service main control module to send an operation instruction according to the dialing test script;

[0204] S804, the system under test sends a text message to the application under test;

[0205] S805, after receiving the notification that the test agent on the calling side has sent the text message, the test service main control module sends a check text reception message instruction to the test agent on the receiving side;

[0206] S806, the main control module of the receiver test agent forwards the message viewing request to the dial test script execution module;

[0207] S807, simulating user operation to start the application under test on the terminal;

[0208] S808, the dialing test script execution module of the receiver test agent simulates the user operation, opens the inbox in the tested application, opens the most recent message, copies the destination number and text content, and stores it in the execution result data;

[0209] S809, the dialing test script execution module of the receiver test agent reports the test data to the collection module of the test service;

[0210] S810, the dialing test script execution module of the receiving test agent sends a test completion request to the test agent main control module;

[0211] S811, the test agent main control module forwards the test completion request to the test service main control module.

[0212] Through the above script execution process, the process of the tested application receiving specific messages from the tested system and reporting results is realized.

[0213] Fig. 9 FIG. 1 is a flow chart of the test data processing process of the automatic dialing test system according to this embodiment. Fig. 9 As shown, including:

[0214] S901, the data collection module of the test server extracts data from the test report results of the sender test agent and the receiver test agent, such as the time when the message was sent, the sender's number, the receiver's number, the content sent, the time when the message was received, etc.;

[0215] S902, the test agent main control module sends a dial test completion notification to the test server main control module;

[0216] S903, the test server main control module sends a request to the data collection module of the test server to obtain the data of the system under test;

[0217] S904, the data collection module of the test server obtains data from the log or call bill system of the system under test, such as the time when the message was sent, the number of the sender, the number of the receiver, the content sent, the time when the message was received, etc.;

[0218] S905, the data collection module of the test server processes the above data and writes it into the database;

[0219] S906, the data collection module of the test server notifies the main control module of the test server that the data collection operation is completed;

[0220] S907, the test service main control module calls the data analysis module to analyze the above data and obtain the test conclusion.

[0221] Through this embodiment, end-to-end business behavior analysis of the tested application program and the tested application system can be realized. Among them, the data collection module and the data analysis module can be flexibly customized according to different test tasks.

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

[0223] In this embodiment, a communication network testing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0224] Fig.10 The structure frame of the communication network test device according to the embodiment of the present invention is Figure 1 ,like Fig.10 As shown, including:

[0225] The acquisition module 102 is used to acquire the dialing test script corresponding to the terminal information of the tested terminal from the test server;

[0226] An execution module 104, configured to operate the application under test by executing the dialing test script, wherein the application under test is configured to initiate a service request to the system under test;

[0227] The first sending module 106 is used to send the execution result of the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test.

[0228] In one embodiment, the device further comprises:

[0229] A storage module, used to obtain and store the domain name system DNS information of the system under test from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0230] An initiating module is used to initiate a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses.

[0231] In one embodiment, the initiating module includes:

[0232] A first acquisition submodule is used to acquire a target domain name for accessing the system under test;

[0233] A first determination submodule, configured to determine a target IP address corresponding to the target domain name according to a correspondence between the one or more domain names and the IP addresses;

[0234] An initiating submodule is used to initiate the service request to the system under test according to the target IP address.

[0235] In one embodiment, the initiator module includes:

[0236] An acquisition unit, used for acquiring business content through the application under test;

[0237] A sending unit is used to call the application under test to send the service request including the service content to the system under test according to the target IP address.

[0238] In one embodiment, the first sending module includes:

[0239] A first opening submodule is used to open the sent service content in the tested application through the dialing test script after a first predetermined time;

[0240] The first sending submodule is used to send the execution result including the business content to the test server.

[0241] In one embodiment, the device further comprises:

[0242] A receiving module, used to receive a message receiving instruction for viewing business content;

[0243] A viewing module is used to view the service content by executing the dialing script according to the received message instruction.

[0244] In one embodiment, the first sending module includes:

[0245] A second opening submodule is used to open the received service content in the tested application through the dialing test script after a second predetermined time;

[0246] The second sending submodule is used to send the execution result including the business content to the test server.

[0247] In another embodiment, the apparatus further comprises:

[0248] The execution module is used to repeatedly execute the following steps until the traversal of the IP address of the system under test is completed:

[0249] Sending a DNS information change request to the test server;

[0250] Receiving a change response sent by the test server after changing the DNS information;

[0251] Obtaining from the test server the changed correspondence between one or more domain names and IP addresses of the system under test;

[0252] A service request is initiated to the system under test according to the changed correspondence between one or more domain names and IP addresses of the system under test.

[0253] In this embodiment, a communication network testing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0254] Fig.11 The structure frame of the communication network test device according to the embodiment of the present invention is Figure 2 ,like Fig.11 As shown, including:

[0255] The second sending module 112 is used to send a dialing test script corresponding to the terminal information to the terminal under test;

[0256] A first receiving module 114 is used to receive an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test;

[0257] The determination module 116 is used to determine the dialing test result of the system under test according to the execution result.

[0258] In one embodiment, the determining module 116 includes:

[0259] A second acquisition submodule is used to obtain the business execution log from the system under test;

[0260] The second determining submodule is used to determine the dialing test result of the tested system according to the execution result and the business execution log.

[0261] In one embodiment, the device further comprises:

[0262] A second receiving module is used to receive a request sent by the tested terminal to obtain a dialing test script configured for the terminal information;

[0263] The third sending module is used to send the dialing test script configured with the terminal information to the terminal under test.

[0264] In another embodiment, the apparatus further comprises:

[0265] A third receiving module is used to receive the DNS information of the system under test sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses;

[0266] The fourth sending module is used to send the DNS information of the system under test to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

[0267] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0268] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0269] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0270] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0271] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0272] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0273] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0274] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A communication network testing method, characterized in that: include: Obtain the dialing test script corresponding to the terminal information of the terminal under test from the test server; The application under test is operated by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test; Sending the execution result of the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test; Wherein, the method further comprises: Acquire and store domain name system (DNS) information of the system under test from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; The service request is initiated to the system under test according to the correspondence between the one or more domain names and the IP addresses.

2. The method according to claim 1, characterized in that Initiating a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses includes: Obtain a target domain name for accessing the system under test; Determine the target IP address corresponding to the target domain name according to the correspondence between the one or more domain names and the IP addresses; The service request is initiated to the system under test according to the target IP address.

3. The method according to claim 2, characterized in that Initiating the service request to the system under test according to the target IP address includes: Obtaining business content through the application under test; According to the target IP address, the application program under test is called to send the service request including the service content to the system under test.

4. The method according to claim 3, characterized in that Sending the execution result of the dial test script to the test server includes: After a first predetermined time, opening the sent service content in the application under test through the dialing test script; The execution result including the business content is sent to the test server.

5. The method according to claim 2, characterized in that: The method further comprises: Receive a message instruction for viewing business content; The service content is checked by executing the dialing script according to the received message instruction.

6. The method according to claim 5, characterized in that Sending the execution result of the dial test script to the test server includes: After a second predetermined time, opening the received service content in the application under test through the dialing test script; The execution result including the business content is sent to the test server.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Repeat the following steps until the traversal of the IP address of the system under test is completed: Sending a DNS information change request to the test server; Receiving a change response sent by the test server after changing the DNS information; Obtaining from the test server the changed correspondence between one or more domain names and IP addresses of the system under test; A service request is initiated to the system under test according to the changed correspondence between one or more domain names and IP addresses of the system under test.

8. A communication network testing method, characterized in that: Applicable to test servers, including: Send the dial test script corresponding to the terminal information to the terminal under test; Receiving an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test; Determine the dialing test result of the system under test according to the execution result; Wherein, the method further comprises: Receiving DNS information of the system under test sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; Sending DNS information of the system under test to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

9. The method according to claim 8, characterized in that Determining the dialing test result of the tested system according to the execution result includes: Obtaining a business execution log from the system under test; The dialing test result of the tested system is determined according to the execution result and the service execution log.

10. The method according to claim 8, characterized in that Before sending the dialing test script corresponding to the terminal information to the tested terminal, the method further includes: Receiving a request sent by the tested terminal to obtain a dialing test script configured for the terminal information; Sending a dialing test script configured with the terminal information to the terminal under test.

11. A communication network testing device, characterized in that: include: The acquisition module is used to obtain the dialing test script corresponding to the terminal information of the tested terminal from the test server; An execution module, used to operate the application under test by executing the dialing test script, wherein the application under test is used to initiate a service request to the system under test; A first sending module, used for sending the execution result of executing the dialing test script to the test server, wherein the execution result is used to instruct the test server to determine the dialing test result of the system under test; Wherein, the device further comprises: A storage module, used to obtain and store the domain name system DNS information of the system under test from the test server, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; An initiating module is used to initiate a service request to the system under test according to the correspondence between the one or more domain names and the IP addresses.

12. A communication network testing device, characterized in that: include: The second sending module is used to send a dialing test script corresponding to the terminal information to the terminal under test; A first receiving module is used to receive an execution result of executing the dial test script sent by the terminal under test, wherein the execution result is obtained after the terminal under test operates the application under test by executing the dial test script, and the application under test is used to initiate a service request to the system under test; A determination module, used to determine the dialing test result of the system under test according to the execution result; Wherein, the device further comprises: A third receiving module is used to receive the DNS information of the system under test sent by the terminal under test, wherein the DNS information includes a correspondence between one or more domain names and IP addresses; The fourth sending module is used to send the DNS information of the system under test to the terminal under test, wherein the DNS information is used by the terminal under test to initiate a service request to the system under test.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 7 and 8 to 10 when executed.

14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method described in any one of claims 1 to 7 and 8 to 10.

Citation Information

Patent Citations

  • Method, server and system for carrying out auto-dial testing on application running quality

    CN105025518A