Dual-card terminal testing system, method and electronic device

By using the first script server and the second script server in the dual-card terminal test system to simulate business data testing on the first SIM card and the second SIM card respectively, and simulating thread resources through the system simulator, the problems in the existing technology are solved. The problem of large limitations in the test process makes it possible to facilitate parallel testing and parameter modification of two cards.

CN114339799BActive Publication Date: 2024-08-30DATANG LINKTESTER TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011033780.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-27
Publication Date
2024-08-30
Estimated Expiration
2040-09-27

AI Technical Summary

Technical Problem

The test process of the existing dual-SIM terminal test solution has great limitations. It cannot effectively test two SIM cards at the same time, and it is difficult to modify the test environment parameters when constructing a test environment on a real network.

Method used

Design a dual-card terminal test system, including a first script server, a second script server and a system simulator. The first SIM card and the second SIM card are tested respectively through simulated thread resources. The system simulator receives target simulated business data. And determine the target SIM card, send the data to the target script server through the target thread resource, and implement parallel testing of the two cards.

Benefits of technology

It realizes the testing of two SIM cards at the same time, improves the testing efficiency, simplifies the testing process and parameter modification, and avoids the problem of large testing limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339799B
    Figure CN114339799B
Patent Text Reader

Abstract

The embodiment of the present application provides a dual-card terminal test system, method and electronic device, the system includes: a first script server, a second script server, a system simulator and a test terminal; the first script server tests the simulated service data sent through the first SIM card, and the second script server tests the simulated service data sent through the second SIM card; the thread resources simulated by the system simulator include the first thread resources corresponding to the first SIM card and the second thread resources corresponding to the second SIM card; the system simulator determines the target SIM card corresponding to each target simulated service data, and the system simulator sends the target simulated service data to the target script server corresponding to the target SIM card through the target thread resources corresponding to the target SIM card. This embodiment realizes the ability to test two SIM cards at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a dual-card terminal testing system, method and electronic equipment. Background Art

[0002] Currently, dual-SIM is a must-have feature for most terminals. However, since the two Subscriber Identity Module (SIM) cards have independent processes in the communication process, they will inevitably interfere with each other in actual use. This process is not specified in the existing 3rd Generation Partnership Project (3GPP) protocol. Therefore, it is very necessary to design a test system for dual-SIM terminals to verify whether the terminal signaling process is reasonable and the statistical data performance.

[0003] The existing test solution for dual-SIM terminals is a test solution in which the two-SIM card tests share the same thread, resulting in only one SIM card being able to interact at the same time, and the test process is very limited. In addition, when a real network is used to construct a test environment, the workload of constructing the test environment is large, which makes it difficult to modify relevant test environment parameters and makes testing more difficult. Summary of the invention

[0004] The embodiments of the present application provide a dual-SIM terminal testing system, method and electronic device to solve the problem of large limitations in the testing process of the existing dual-SIM terminal testing solution.

[0005] The present application provides a dual-card terminal testing system, including:

[0006] A first script server, a second script server, a system simulator and a test terminal;

[0007] The test terminal includes a first user identification card SIM card and a second SIM card, and the first script server tests the simulated service data sent through the first SIM card, and the second script server tests the simulated service data sent through the second SIM card;

[0008] The system simulator simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card; wherein,

[0009] The system simulator receives at least one target simulated service data sent by the test terminal, and determines a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, wherein the target SIM card is the first SIM card or the second SIM card;

[0010] The system simulator sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, wherein the target thread resource is the first thread resource or the second thread resource, and the target script server is the first script server or the second script server.

[0011] Optionally, before the system simulator receives at least one target simulated service data sent by the test terminal, the system simulator further includes:

[0012] The first script server allocates a first international mobile subscriber identity IMSI to the first SIM card, and sends the first IMSI to the system simulator, and the system simulator sends the first IMSI to the test terminal, so that when the test terminal sends target simulated service data through the first SIM card, the target simulated service data carries the first IMSI;

[0013] The second script server allocates a second IMSI to the second SIM card, and sends the second IMSI to the system simulator, and the system simulator sends the second IMSI to the test terminal, so that when the test terminal sends target simulated service data through the second SIM card, the target simulated service data carries the second IMSI;

[0014] The system simulator determines a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, including:

[0015] The system simulator determines a target SIM card corresponding to the target simulated service data based on a target IMSI carried in the target simulated service data, wherein the target IMSI is the first IMSI or the second IMSI.

[0016] Optionally, the first script server allocates a first international mobile subscriber identity IMSI to the first SIM card, including:

[0017] When the system simulator receives the first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry the IMSI, the system simulator sends the first registration data to the first script server; when the first script server detects that the first registration data does not carry the IMSI, the first IMSI is allocated to the first SIM card;

[0018] The second script server assigns a second IMSI to the second SIM card, including:

[0019] When the system simulator receives the second registration data sent by the test terminal, and the second registration data is not the registration data received for the first time by the system simulator and the second registration data does not carry the IMSI, the system simulator sends the second registration data to the second script server; when the second script server detects that the second registration data does not carry the IMSI, it allocates a second IMSI to the second SIM card.

[0020] Optionally, the system simulator includes a data forwarding module and a protocol layer simulation module, the protocol layer simulation module includes a simulated packet data convergence protocol PDCP layer, a radio link control RLC layer, a media access control MAC layer and a physical layer, the first thread resources and the second thread resources are simulated in the PDCP layer, the RLC layer and the MAC layer, and the data forwarding module is connected to the PDCP layer.

[0021] Optionally, the first script server sends the first IMSI to the system simulator, and the system simulator sends the first IMSI to the test terminal, including:

[0022] The first script server sends the first IMSI to the data forwarding module, and the data forwarding module sends the first IMSI to the test terminal through the first thread resources in the PDCP layer, the RLC layer, and the MAC layer;

[0023] The second script server sends the second IMSI to the system simulator, and the system simulator sends the second IMSI to the test terminal, including:

[0024] The second script server sends the second IMSI to the data forwarding module, and the data forwarding module sends the second IMSI to the test terminal through the second thread resources in the PDCP layer, the RLC layer and the MAC layer.

[0025] Optionally, before the system simulator receives at least one target simulated service data sent by the test terminal, the system simulator further includes:

[0026] The first script server sends the first IMSI to the data forwarding module, and the data forwarding module combines the first IMSI and the path information of the first thread resource into first identification information and sends it to the MAC layer; the second script server sends the second IMSI to the data forwarding module, and the data forwarding module combines the second IMSI and the path information of the second thread resource into second identification information and sends it to the MAC layer;

[0027] The system simulator sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, including:

[0028] The MAC layer obtains the target identification information corresponding to the target SIM card based on the target IMSI carried in the target simulated service data, wherein the target identification information is the first identification information or the second identification information; obtains the path information of the target thread resource corresponding to the target SIM card from the target identification information, and based on the path information of the target thread resource, sends the target simulated service data to the target script server through the target thread resource.

[0029] Optionally, a communication connection is established between the first script server and the second script server, and the second script server sends a current test process of the second script server to the first script server.

[0030] The present application embodiment provides a dual-card terminal testing method, which is applied to a system simulator, including:

[0031] Receiving at least one target simulated service data sent by the test terminal, and determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, wherein the target SIM card is a first SIM card or a second SIM card included in the test terminal;

[0032] Sending the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card;

[0033] The system simulator simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card, the target thread resource is the first thread resource or the second thread resource, the target script server is the first script server or the second script server, the first script server is used to test the simulated service data sent through the first SIM card, and the second script server is used to test the simulated service data sent through the second SIM card.

[0034] Optionally, before receiving at least one target simulated service data sent by the test terminal, the method further includes:

[0035] Receive a first IMSI assigned by the first script server to the first SIM card and a second IMSI assigned by the second script server to the second SIM card; send the first IMSI and the second IMSI to a test terminal, so that the test terminal carries the first IMSI in the target simulated service data when sending the target simulated service data through the first SIM card, and carries the second IMSI in the target simulated service data when sending the target simulated service data through the second SIM card;

[0036] The determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data comprises:

[0037] Based on the target IMSI carried in the target simulated service data, a target SIM card corresponding to the target simulated service data is determined, wherein the target IMSI is the first IMSI or the second IMSI.

[0038] Optionally, the receiving a first IMSI allocated by the first script server to the first SIM card and a second IMSI allocated by the second script server to the second SIM card includes:

[0039] When the system simulator receives first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry IMSI, the first registration data is sent to the first script server through the first thread resource, so that when the first script server detects that the first registration data does not carry IMSI, the first script server allocates a first IMSI to the first SIM card and sends the first IMSI to the system simulator; when the system simulator receives second registration data sent by the test terminal, the second registration data is not the registration data received by the system simulator for the first time and the second registration data does not carry IMSI, the second registration data is sent to the second script server through the second thread resource, so that when the second script server detects that the second registration data does not carry IMSI, the second IMSI is allocated to the second SIM card and sent to the system simulator; and the first IMSI sent by the first script server and the second IMSI sent by the second script server are received.

[0040] Optionally, after receiving the first IMSI allocated by the first script server to the first SIM card and the second IMSI allocated by the second script server to the second SIM card, the method further includes:

[0041] combining the first IMSI and the path information of the first thread resource into first identification information, and combining the second IMSI and the path information of the second thread resource into second identification information;

[0042] The step of sending the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card includes:

[0043] Based on the target IMSI carried in the target simulated service data, the target identification information corresponding to the target SIM card is obtained, wherein the target identification information is the first identification information or the second identification information; the path information of the target thread resource corresponding to the target SIM card is obtained from the target identification information, and based on the path information of the target thread resource, the target simulated service data is sent to the target script server through the target thread resource.

[0044] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the dual-card terminal testing method when executing the computer program.

[0045] An embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the dual-card terminal testing method are implemented.

[0046] The dual-card terminal testing system, method and electronic device provided in the embodiments of the present application respectively perform simulated service data tests on the first SIM card and the second SIM card by using two sets of test scripts of the first script server and the second script server, and the system simulator simulates a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card respectively. At this time, when the system simulator receives at least one target simulated service data sent by the test terminal, it can determine the target SIM card corresponding to each target simulated service data, and then send the target simulated service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, so that the first SIM card and the second SIM card can be tested using one thread resource respectively, so that the two SIM cards can be tested at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0048] Figure 1 This is a module block diagram of a dual-card terminal testing system in an embodiment of the present application;

[0049] Figure 2 This is a schematic diagram of the structure of the system simulator in the embodiment of the present application;

[0050] Figure 3 This is a test flow diagram of a dual-card terminal test system in an embodiment of the present application;

[0051] Figure 4 This is a flowchart of the steps of the dual-card terminal testing system method in an embodiment of the present application;

[0052] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] like Figure 1 FIG. 1 is a schematic diagram of the structure of a dual-card terminal test system in an embodiment of the present application, and the dual-card terminal test system includes:

[0055] A first script server 1, a second script server 2, a system simulator 3 and a test terminal 4;

[0056] The test terminal 4 includes a first SIM card and a second SIM card, and the first script server 1 tests the simulated service data sent through the first SIM card, and the second script server 2 tests the simulated service data sent through the second SIM card;

[0057] The system simulator 3 simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card; wherein,

[0058] The system simulator 3 receives at least one target simulated service data sent by the test terminal 4, and determines a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, the target SIM card being the first SIM card or the second SIM card;

[0059] The system simulator 3 sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, wherein the target thread resource is the first thread resource or the second thread resource, and the target script server is the first script server 1 or the second script server 2.

[0060] Specifically, a test script is provided in the first script server 1. The test script is written in the scripting language of Test and Test Control Notation (TTCN-3 for short), and is responsible for testing the simulated service data sent through the first SIM card; in addition, the first script server 1 can serve as the main test process, responsible for information processing and sending of the first SIM card. During the test, the main signaling process is the air interface signaling process of the first SIM card, including the cell registration process, the IP Multimedia Subsystem (IMS for short) initial registration process, carrier aggregation (CA for short) and non-independent networking (NSA for short) and other signaling processes, as well as the subsequent service data interaction process with the first SIM card.

[0061] The second script server 2 is provided with a test script, which is also written in TTCN-3 as the script language and is responsible for testing the simulated service data sent through the second SIM card; in addition, the second script server 2 can serve as an auxiliary test process, responsible for information processing and sending of the second SIM card. During the test, the main signaling process is the air interface signaling process of the second SIM card, including the cell registration process, the IMS initial registration process, other signaling processes such as CA and NSA, and the subsequent service data interaction process with the second SIM card.

[0062] In addition, the system simulator 3 simulates unrelated first thread resources and second thread resources, and the first thread resources correspond to the first SIM card and the second thread resources correspond to the second SIM card. At this time, since the first script server 1 tests the simulated service data sent through the first SIM card, the second script server 2 tests the simulated service data sent through the second SIM card, that is, the first script server 1 occupies the first thread resources and the second script server 2 occupies the second thread resources, the first SIM card, the first thread resources and the first script server are a test line, and the second SIM card, the second thread resources and the second script server are a test line, thereby ensuring that the data interaction process of the first SIM card and the second SIM card will not affect each other.

[0063] It should be noted that an interface is provided between the first script server 1 and the second script server 2 and the system simulator 3 , so as to realize information interaction between the first script server 1 and the system simulator 3 and information interaction between the second script server 2 and the system simulator 3 .

[0064] Based on the above system, the test terminal 4 can send at least one target simulated service data to the system simulator 3, and the system simulator 3 determines the target SIM card corresponding to each target simulated service data, and the target SIM card is the first SIM card or the second SIM card, that is, the test terminal 4 can send the target simulated service data through the first SIM card, and can also send the target service data through the second SIM card. At this time, the system simulator 3 determines whether the target SIM card for sending each target simulated data service is the first SIM card or the second SIM card. Specifically, after determining the target SIM card to which the target simulated data service is sent, the system simulator 3 can send the target simulated service data to the target script server corresponding to the target SIM card through the target thread resources corresponding to the target SIM card, that is, when the target SIM card is the first SIM card, the system simulator 3 sends the target simulated service data to the first script server 1 corresponding to the first SIM card through the first thread resources corresponding to the first SIM card; when the target SIM card is the second SIM card, the system simulator 3 sends the target simulated service data to the second script server 2 corresponding to the second SIM card through the second thread resources corresponding to the second SIM card, thereby enabling the first script server 1 to test the target simulated service data sent through the first SIM card, and the second script server 2 to test the target simulated service data sent through the second SIM card.

[0065] It should be noted that the at least one target simulated service data may include the target simulated service data sent by the first SIM card and the target simulated service data sent by the second SIM card, that is, the system can enable two SIM cards to work in parallel.

[0066] In addition, it should be noted that the target simulated service data can be voice service data or IP data service; of course, when the target simulated service data is voice service data, the test terminal can only send voice service data through the first SIM card or the second SIM card at one time node, and when the target simulated service data is IP data service, the test terminal can send IP data service through the first SIM card and the second SIM card at one time node, and can also send IP data service through the first SIM card or the second SIM card, which is not limited here. In addition, the target simulated service data can be sent by the service simulation server.

[0067] In this way, the dual-card terminal test system provided by the present application uses two sets of test scripts of the first script server and the second script server to respectively test the simulated service data of the first SIM card and the second SIM card, and the system simulator simulates the first thread resources corresponding to the first SIM card and the second thread resources corresponding to the second SIM card respectively. At this time, when the system simulator receives at least one target simulated service data sent by the test terminal, it can determine the target SIM card corresponding to each target simulated service data, and then send the target simulated service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, so that the first SIM card and the second SIM card can be tested using one thread resource respectively, so that the two SIM cards can be tested at the same time, that is, the two SIM cards can work in parallel, and it is convenient to complete the relevant function test of the dual-card terminal, modify parameters and observe the data of each layer simply and effectively.

[0068] In addition, optionally, in the present embodiment, before the system simulator receives at least one target simulated service data sent by the test terminal, the first script server 1 allocates a first international mobile subscriber identity (IMSI) to the first SIM card, and sends the first IMSI to the system simulator 3, and the system simulator 3 sends the first IMSI to the test terminal 4, so that when the test terminal 4 sends the target simulated service data through the first SIM card, the first IMSI is carried in the target simulated service data; the second script server 2 allocates a second IMSI to the second SIM card, and sends the second IMSI to the system simulator 3, and the system simulator 3 sends the second IMSI to the test terminal 4, so that when the test terminal sends the target simulated service data through the second SIM card, the second IMSI is carried in the target simulated service data;

[0069] At this time, when the system simulator determines the target SIM card corresponding to each target simulated service data in at least one target simulated service data, it can determine the target SIM card corresponding to the target simulated service data based on the target IMSI carried in the target simulated service data, where the target IMSI is the first IMSI or the second IMSI.

[0070] Specifically, the first script server can allocate a dedicated first IMSI to the first SIM card and send it to the test terminal through the system simulator, and the second script server can allocate a dedicated second IMSI to the second SIM card and send it to the test terminal through the system simulator, so that the test terminal can carry the first IMSI in the target simulated service data when sending the target simulated service data through the first SIM card, and can carry the second IMSI in the target simulated service data when sending the target simulated service data through the second SIM card, that is, the first IMSI and the second IMSI are used as identifiers to distinguish the SIM card sending the target simulated service data, so that the system simulator can determine whether the target SIM card sending the target simulated service data is the first SIM card or the second SIM card based on the first IMSI or the second IMSI carried in the target simulated service data. Of course, if the target simulated service data carries the first IMSI, the target SIM card is determined to be the first SIM card, and if the target simulated service data carries the second IMSI, the target SIM card is determined to be the second SIM card.

[0071] In this way, the system allocates IMSI to the test terminal through the script server, so that the test terminal can carry IMSI in the target simulated service data sent, so that the system simulator can distinguish the target SIM card sending the target simulated service data based on the IMSI when receiving the target simulated service data, and then make it possible to send the target simulated service data to the script server corresponding to the target SIM card through the thread resources corresponding to the target SIM card, thereby realizing testing of two SIM cards with each card using a set of resource threads, avoiding the problem of large limitations in the test process caused by only one SIM card being tested at the same time.

[0072] Optionally, when the first script server assigns the first IMSI to the first SIM card, when the system simulator receives the first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry the IMSI, the system simulator sends the first registration data to the first script server; then when the first script server detects that the first registration data does not carry the IMSI, it assigns the first IMSI to the first SIM card.

[0073] Specifically, when the test terminal sends first registration data to the system simulator and the first registration data is sent for the first time and does not carry the first IMSI, the system simulator may preferentially send the first registration data to the first script server through the first thread resource, and the first script server allocates the first IMSI to the first SIM card.

[0074] In addition, when the second script server assigns a second IMSI to the second SIM card, when the system simulator receives the second registration data sent by the test terminal, and the second registration data is not the first registration data received by the system simulator and the second registration data does not carry the IMSI, the system simulator sends the second registration data to the second script server; at this time, when the second script server detects that the second registration data does not carry the IMSI, it assigns the second IMSI to the second SIM card.

[0075] Specifically, when the test terminal sends second registration data to the system simulator and the second registration data is not the first registration data sent and does not carry the second IMSI, the system simulator can preferentially send the second registration data to the second script server through the second thread resource. At this time, the second script server allocates a second IMSI to the second SIM card.

[0076] In this way, through the above process, it is achieved that the first script server allocates the first IMSI to the first SIM card and the second script server allocates the second IMSI to the second SIM card.

[0077] In addition, optionally, in this embodiment, if Figure 2 As shown, the system simulator includes a data forwarding module and a protocol layer simulation module. The protocol layer simulation module includes a simulated packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a media access control (MAC) layer and a physical layer. The PDCP layer, the RLC layer and the MAC layer are all simulated with first thread resources and second thread resources, and the data forwarding module is connected to the PDCP layer.

[0078] Specifically, the data forwarding configuration module establishes two sets of data transceiver ports with the first script server 1 and the second script server 2 respectively to process the data of the two script servers, and transmits the data of the corresponding script servers to the resources of different SIM cards at the PDCP layer. In addition, the data forwarding configuration module 31 also receives and stores the first IMSI provided by the first script server 1 and the second IMSI provided by the second script server 2. In addition, the data forwarding configuration module stores the path information of the first thread resource and the path information of the second thread resource, and can control the forwarding path of the data sent by the first script server and the second script server.

[0079] Different resources are distinguished in the PDCP layer, the RLC layer and the MAC layer, that is, first thread resources and second thread resources are distinguished, so that different SIM cards can send data through different thread resources, so that two SIM cards can work in parallel.

[0080] In addition, the PDCP layer is used to process the data from the first script server and the second script server side of the first SIM card and the second SIM card, and complete the parsing and compilation of the PDCP data header; the RLC layer is used to process the data from the PDCP layer of the first SIM card and the second SIM card, and complete the parsing and compilation of the RLC data header; the MAC layer is used to process the data from the RLC layer of the first SIM card and the second SIM card, and complete the parsing and compilation of the MAC data header; the physical layer is used to perform the modulation and demodulation function of the physical layer.

[0081] Optionally, based on the above structure of the system simulator, the first script server sends the first IMSI to the system simulator. When the system simulator sends the first IMSI to the test terminal, the first script server can send the first IMSI to the data forwarding module, and the data forwarding module sends the first IMSI to the test terminal through the first thread resources in the PDCP layer, RLC layer and MAC layer.

[0082] In addition, the second script server sends the second IMSI to the system simulator. When the system simulator sends the second IMSI to the test terminal, the second script server can send the second IMSI to the data forwarding module, and the data forwarding module sends the second IMSI to the test terminal through the second thread resources in the PDCP layer, RLC layer and MAC layer.

[0083] In this way, through the above process, the script server sends the IMSI to the test terminal through the data forwarding module of the system server and each protocol layer.

[0084] In addition, optionally, in the present embodiment, before the system simulator receives at least one target simulated service data sent by the test terminal, the first script server in the present embodiment also sends a first IMSI to the data forwarding module, and the data forwarding module combines the first IMSI and the path information of the first thread resource into first identification information and sends it to the MAC layer; the second script server sends a second IMSI to the data forwarding module, and the data forwarding module combines the second IMSI and the path information of the second thread resource into second identification information and sends it to the MAC layer.

[0085] At this time, when the system simulator sends the target simulated service data to the target script server corresponding to the target SIM card through the target thread resources corresponding to the target SIM card, the MAC layer obtains the target identification information corresponding to the target SIM card based on the target IMSI carried in the target simulated service data, where the target identification information is the first identification information or the second identification information; then the system simulator obtains the path information of the target thread resources corresponding to the target SIM card from the target identification information, and based on the path information of the target thread resources, sends the target simulated service data to the target script server through the target thread resources.

[0086] That is, the data forwarding module can combine the first IMSI and the path information of the first thread resource and convert them into the first identification information, and then send it directly to the MAC layer, and combine the second IMSI and the path information of the second thread resource and convert them into the second identification information, and then send it directly to the MAC layer, so that when the MAC layer receives the target simulated service data, it can determine the identification information corresponding to the target simulated service data based on the first IMSI or the second IMSI carried in the target simulated service data and the IMSI carried in the identification information, that is, determine the target identification information corresponding to the target SIM card, and then obtain the path information of the target thread resource from the first identification information or the second identification information as the target identification information, and based on the path information, send the target simulated service data to the target script server through the target thread resource, thereby realizing the data transmission process through different thread resources, and then realizing that the two SIM cards can work in parallel.

[0087] In addition, optionally, in this embodiment, a communication connection is established between the first script server and the second script server, and the second script server sends the current test process of the second script server to the first script server.

[0088] Specifically, during the test process, the first script server can use interaction between script servers to monitor the operation status of the second script server in real time, and after completing the corresponding test steps, the second script server can feedback the current operation status and the completed step number to the first script server through interaction instructions between script servers, that is, report the current test progress, so that the first script server can confirm the subsequent instructions of the test case and the judgment of the test results according to the current test process feedback from the second script server.

[0089] The specific process of this application is described below through specific embodiments.

[0090] like Figure 3 As shown, the overall testing process of this application includes:

[0091] First, the first registration data of the test terminal reaches the MAC layer through the physical layer of the system simulator, and the MAC layer preferentially transmits the first registration data to the first thread resource corresponding to the first SIM card in the RLC layer and the PDCP layer; then the PDCP layer sends the first registration data to the data forwarding configuration module, and the data forwarding configuration module detects that the PDCP first thread resource corresponds to the first SIM card, and sends the first registration data to the first script server; then the first script server completes the processing of the first registration data and allocates a first IMSI to the first SIM card, and sends the first IMSI to the data forwarding configuration module, and the data forwarding configuration module detects whether the first script server or the second script server sends the first IMSI, and then based on the detection result, the first IMSI is transmitted to the first thread resource corresponding to the first SIM card in the PDCP layer and the RLC layer, and is transmitted by the RLC layer to the MAC layer and modulated by the physical layer to be sent to the test terminal.

[0092] Then, after the first script server sends the first IMSI to the data forwarding configuration module, the data forwarding configuration module combines the first IMSI and the path information of the first thread resource into the first identification information of the first SIM card and sends it to the MAC layer. At this time, the MAC layer can determine whether the target simulated service data sent by the terminal is sent by the first SIM card based on the first identification information, and send the target simulated service data to the first script server based on the path information of the first thread when determining.

[0093] In addition, the allocation process of the second IMSI of the second SIM card is the same as the allocation process of the first IMSI of the first SIM card. That is, the second registration data of the test terminal reaches the MAC layer through the physical layer of the system simulator, and the MAC layer transfers the second registration data to the second thread resource corresponding to the second SIM card in the RLC layer and the PDCP layer; then the PDCP layer sends the second registration data to the data forwarding configuration module, the data forwarding configuration module detects the second SIM card corresponding to the PDCP second thread resource, and sends the second registration data to the second script server; then the second script server completes the processing of the second registration data and allocates the second IMSI to the second SIM card, and sends the second IMSI to the data forwarding configuration module, the data forwarding configuration module detects whether the first script server or the second script server sends the second IMSI, and then based on the detection result, transfers the second IMSI to the second thread resource corresponding to the second SIM card in the PDCP layer and the RLC layer, and is transferred from the RLC layer to the MAC layer and modulated by the physical layer and sent to the test terminal.

[0094] Then, after the second script server sends the second IMSI to the data forwarding configuration module, the data forwarding configuration module combines the second IMSI and the path information of the second thread resource into the second identification information of the second SIM card and sends it to the MAC layer. At this time, the MAC layer can determine whether the target simulated service data sent by the terminal is sent by the second SIM card based on the second identification information, and send the target simulated service data to the second script server based on the path information of the second thread when determining.

[0095] After the test terminal receives the first IMSI and the second IMSI, and the MAC layer stores the first identification information and the second identification information, the test terminal sends one or more target simulated service data. At this time, the target simulated service data reaches the MAC layer through the physical layer. The MAC layer identifies the card number to which the received target simulated service data belongs according to the configured identification information, that is, it identifies whether it is the first SIM card or the second SIM card, and passes the target simulated service data to the corresponding line resources of the RLC layer and the PDCP layer according to the identified card number. Finally, the corresponding line resources of the PDCP layer pass the target simulated service data to the corresponding script server.

[0096] In this way, the dual-card terminal test system provided in this embodiment uses two sets of test scripts of the first script server and the second script server to respectively test the simulated service data of the first SIM card and the second SIM card, and the system simulator simulates the first thread resource corresponding to the first SIM card and the second thread resource corresponding to the second SIM card, so that the first SIM card and the second SIM card can be tested using one thread resource respectively, so that the two SIM cards can be tested at the same time, and the parallel testing of the two SIM cards is realized, the test efficiency is improved, and the performance of the two SIM cards when working simultaneously or separately can be understood, avoiding the problem of small test limitations.

[0097] In addition, if Figure 4 FIG. 1 is a flowchart of a dual-card terminal testing method in an embodiment of the present application, and the method includes the following steps:

[0098] Step 401: receiving at least one target simulated service data sent by a test terminal, and determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data.

[0099] Specifically, the test terminal is provided with a first SIM card and a second SIM card, and the target SIM card is the first SIM card or the second SIM card included in the test terminal.

[0100] When receiving one or more target simulated service data sent by the test terminal, the system simulator can determine whether each target simulated service data is sent by the first SIM card or the second SIM card, so that the transmission link resources of the target simulated service data can be selected based on the determined target SIM card.

[0101] Step 402: Send the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card.

[0102] Specifically, the system simulator simulates thread resources, and the thread resources include first thread resources corresponding to the first SIM card and second thread resources corresponding to the second SIM card.

[0103] After determining the target SIM card, the system simulator can send the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card.

[0104] Among them, the target thread resource is the first thread resource or the second thread resource, the target script server is the first script server or the second script server, the first script server is used to test the simulated service data sent through the first SIM card, and the second script server is used to test the simulated service data sent through the second SIM card.

[0105] That is, when it is determined that the target SIM card is the first SIM card, the target simulated service data is sent to the first script server through the first thread resource corresponding to the first SIM card; when it is determined that the target SIM card is the second SIM card, the target simulated service data is sent to the second script server through the second thread resource corresponding to the second SIM card, thereby achieving that the first SIM card and the second SIM card each occupy one thread resource, thereby ensuring that the data interaction process of the two SIM cards will not be affected.

[0106] In addition, optionally, in this embodiment, before the system simulator receives at least one target simulated service data sent by the test terminal, it can also receive the first IMSI assigned by the first script server to the first SIM card and the second IMSI assigned by the second script server to the second SIM card; and then send the first IMSI and the second IMSI to the test terminal, so that the test terminal carries the first IMSI in the target simulated service data when sending the target simulated service data through the first SIM card, and carries the second IMSI in the target simulated service data when sending the target simulated service data through the second SIM card.

[0107] At this time, when the system simulator determines the target SIM card corresponding to each target simulated service data in at least one target simulated service data, it can determine the target SIM card corresponding to the target simulated service data based on the target IMSI carried in the target simulated service data, where the target IMSI is the first IMSI or the second IMSI.

[0108] In addition, specifically, when the system simulator receives the first IMSI assigned by the first script server to the first SIM card and the second IMSI assigned by the second script server to the second SIM card, when the system simulator receives the first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry the IMSI, the first registration data can be sent to the first script server through the first thread resource, so that when the first script server detects that the first registration data does not carry the IMSI, the first IMSI is assigned to the first SIM card and the first IMSI is sent to the system simulator; when the system simulator receives the second registration data sent by the test terminal, the second registration data is not the registration data received by the system simulator for the first time and the second registration data does not carry the IMSI, the second registration data is sent to the second script server through the second thread resource, so that when the second script server detects that the second registration data does not carry the IMSI, the second IMSI is assigned to the second SIM card and the second IMSI is sent to the system simulator; then, the first IMSI sent by the first script server and the second IMSI sent by the second script server are received.

[0109] In addition, optionally, in this embodiment, after the system simulator receives the first IMSI assigned by the first script server to the first SIM card and the second IMSI assigned by the second script server to the second SIM card, it can also combine the first IMSI and the path information of the first thread resource into the first identification information, and combine the second IMSI and the path information of the second thread resource into the second identification information;

[0110] At this time, when the system simulator sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resources corresponding to the target SIM card, it can obtain the target identification information corresponding to the target SIM card based on the target IMSI carried in the target simulation service data, where the target identification information is the first identification information or the second identification information; then obtain the path information of the target thread resources corresponding to the target SIM card from the target identification information, and based on the path information of the target thread resources, send the target simulation service data to the target script server through the target thread resources.

[0111] It should be noted here that the specific content of the above process of this embodiment can be found in the relevant content of the system embodiment side, and will not be repeated here.

[0112] In this way, this embodiment receives at least one target simulated service data sent by the test terminal, determines the target SIM card corresponding to each target simulated service data in the at least one target simulated service data, and then sends the target simulated service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, thereby realizing that the first SIM card and the second SIM card can be tested using one thread resource respectively, so that the two SIM cards can be tested at the same time, realizing parallel testing of the two SIM cards, improving the test efficiency, and being able to understand the performance of the two SIM cards when working simultaneously or separately, avoiding the problem of small test limitations.

[0113] In addition, if Figure 5 As shown, it is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present application, and the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call a computer program stored in the memory 530 and can be run on the processor 510 to perform the following steps:

[0114] Receiving at least one target simulated service data sent by the test terminal, and determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, wherein the target SIM card is a first SIM card or a second SIM card included in the test terminal;

[0115] Sending the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card;

[0116] The system simulator simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card, the target thread resource is the first thread resource or the second thread resource, the target script server is the first script server or the second script server, the first script server is used to test the simulated service data sent through the first SIM card, and the second script server is used to test the simulated service data sent through the second SIM card.

[0117] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0118] An embodiment of the present application also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the methods provided in the above embodiments and can achieve the same technical effects, which will not be repeated here.

[0119] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A dual-card terminal testing system, characterized in that: include: A first script server, a second script server, a system simulator and a test terminal; The test terminal includes a first user identification card SIM card and a second SIM card, and the first script server tests the simulated service data sent through the first SIM card, and the second script server tests the simulated service data sent through the second SIM card; The system simulator simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card; wherein, The system simulator receives at least one target simulated service data sent by the test terminal, and determines a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, wherein the target SIM card is the first SIM card or the second SIM card; The system simulator sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, wherein the target thread resource is the first thread resource or the second thread resource, and the target script server is the first script server or the second script server.

2. The dual-card terminal testing system according to claim 1, characterized in that: Before the system simulator receives at least one target simulated service data sent by the test terminal, the system simulator further includes: The first script server allocates a first international mobile subscriber identity IMSI to the first SIM card, and sends the first IMSI to the system simulator, and the system simulator sends the first IMSI to the test terminal, so that when the test terminal sends target simulated service data through the first SIM card, the target simulated service data carries the first IMSI; The second script server allocates a second IMSI to the second SIM card, and sends the second IMSI to the system simulator, and the system simulator sends the second IMSI to the test terminal, so that when the test terminal sends target simulated service data through the second SIM card, the target simulated service data carries the second IMSI; The system simulator determines a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, including: The system simulator determines a target SIM card corresponding to the target simulated service data based on a target IMSI carried in the target simulated service data, wherein the target IMSI is the first IMSI or the second IMSI.

3. The dual-card terminal testing system according to claim 2, characterized in that: The first script server allocates a first international mobile subscriber identity IMSI to the first SIM card, including: When the system simulator receives the first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry the IMSI, the system simulator sends the first registration data to the first script server; When the first script server detects that the first registration data does not carry an IMSI, it allocates a first IMSI to the first SIM card; The second script server assigns a second IMSI to the second SIM card, including: When the system simulator receives the second registration data sent by the test terminal, the second registration data is not the registration data received by the system simulator for the first time and the second registration data does not carry the IMSI, the system simulator sends the second registration data to the second script server; When the second script server detects that the second registration data does not carry the IMSI, the second IMSI is allocated to the second SIM card.

4. The dual-card terminal testing system according to claim 2, characterized in that: The system simulator includes a data forwarding module and a protocol layer simulation module. The protocol layer simulation module includes a simulated packet data convergence protocol PDCP layer, a radio link control RLC layer, a media access control MAC layer and a physical layer. The first thread resources and the second thread resources are simulated in the PDCP layer, the RLC layer and the MAC layer, and the data forwarding module is connected to the PDCP layer.

5. The dual-card terminal testing system according to claim 4, characterized in that: The first script server sends the first IMSI to the system simulator, and the system simulator sends the first IMSI to the test terminal, including: The first script server sends the first IMSI to the data forwarding module, and the data forwarding module sends the first IMSI to the test terminal through the first thread resources in the PDCP layer, the RLC layer, and the MAC layer; The second script server sends the second IMSI to the system simulator, and the system simulator sends the second IMSI to the test terminal, including: The second script server sends the second IMSI to the data forwarding module, and the data forwarding module sends the second IMSI to the test terminal through the second thread resources in the PDCP layer, the RLC layer and the MAC layer.

6. The dual-card terminal testing system according to claim 4, characterized in that: Before the system simulator receives at least one target simulated service data sent by the test terminal, the system simulator further includes: The first script server sends the first IMSI to the data forwarding module, and the data forwarding module combines the first IMSI and the path information of the first thread resource into first identification information and sends it to the MAC layer; The second script server sends the second IMSI to the data forwarding module, and the data forwarding module combines the second IMSI and the path information of the second thread resource into second identification information and sends it to the MAC layer; The system simulator sends the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card, including: The MAC layer acquires target identification information corresponding to the target SIM card based on the target IMSI carried in the target simulation service data, wherein the target identification information is the first identification information or the second identification information; The path information of the target thread resource corresponding to the target SIM card is obtained from the target identification information, and based on the path information of the target thread resource, the target simulation service data is sent to the target script server through the target thread resource.

7. The dual-card terminal testing system according to claim 1, characterized in that: A communication connection is established between the first script server and the second script server, and the second script server sends a current test process of the second script server to the first script server.

8. A dual-card terminal testing method, applied to a system simulator, characterized in that: include: Receiving at least one target simulated service data sent by the test terminal, and determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data, wherein the target SIM card is a first SIM card or a second SIM card included in the test terminal; Sending the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card; The system simulator simulates thread resources, and the thread resources include a first thread resource corresponding to the first SIM card and a second thread resource corresponding to the second SIM card, the target thread resource is the first thread resource or the second thread resource, the target script server is the first script server or the second script server, the first script server is used to test the simulated service data sent through the first SIM card, and the second script server is used to test the simulated service data sent through the second SIM card.

9. The dual-card terminal testing method according to claim 8, characterized in that: Before receiving at least one target simulated service data sent by the test terminal, the method further includes: Receiving a first IMSI allocated by the first script server to the first SIM card and a second IMSI allocated by the second script server to the second SIM card; Sending the first IMSI and the second IMSI to a test terminal, so that the test terminal carries the first IMSI in the target simulated service data when sending the target simulated service data through the first SIM card, and carries the second IMSI in the target simulated service data when sending the target simulated service data through the second SIM card; The determining a target SIM card corresponding to each target simulated service data in the at least one target simulated service data comprises: Based on the target IMSI carried in the target simulated service data, a target SIM card corresponding to the target simulated service data is determined, wherein the target IMSI is the first IMSI or the second IMSI.

10. The dual-card terminal testing method according to claim 9, characterized in that: The receiving the first IMSI allocated by the first script server to the first SIM card and the second IMSI allocated by the second script server to the second SIM card comprises: When the system simulator receives the first registration data sent by the test terminal, the first registration data is the registration data received by the system simulator for the first time and the first registration data does not carry the IMSI, the first registration data is sent to the first script server through the first thread resource, so that when the first script server detects that the first registration data does not carry the IMSI, the first IMSI is allocated to the first SIM card and the first IMSI is sent to the system simulator; When the system simulator receives the second registration data sent by the test terminal, the second registration data is not the registration data received for the first time by the system simulator and the second registration data does not carry the IMSI, the second registration data is sent to the second script server through the second thread resource, so that when the second script server detects that the second registration data does not carry the IMSI, the second IMSI is allocated to the second SIM card and sent to the system simulator; A first IMSI sent by the first script server and a second IMSI sent by the second script server are received.

11. The dual-card terminal testing method according to claim 9, characterized in that: After receiving the first IMSI allocated by the first script server to the first SIM card and the second IMSI allocated by the second script server to the second SIM card, the method further includes: combining the first IMSI and the path information of the first thread resource into first identification information, and combining the second IMSI and the path information of the second thread resource into second identification information; The step of sending the target simulation service data to the target script server corresponding to the target SIM card through the target thread resource corresponding to the target SIM card includes: Based on the target IMSI carried in the target simulated service data, acquiring target identification information corresponding to the target SIM card, wherein the target identification information is the first identification information or the second identification information; The path information of the target thread resource corresponding to the target SIM card is obtained from the target identification information, and based on the path information of the target thread resource, the target simulation service data is sent to the target script server through the target thread resource.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the dual-card terminal testing method according to any one of claims 8 to 11 are implemented.

13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the dual-card terminal testing method as claimed in any one of claims 8 to 11 are implemented.

Citation Information

Patent Citations

  • Method, system and mobile terminal for data communication interaction based on international mobile subscriber identification number (IMSI)

    CN102469443A

  • Method for accessing Internet by dual-card mobile terminal and dual-card mobile terminal

    CN108696859A