Short message authentication method and device, computer equipment and storage medium

By deploying the SMS authentication subsystem in the automated test system, and using multiple service nodes and communication modules to automatically obtain and verify SMS verification codes, the problem of low SMS authentication efficiency in automated tests is solved, and the execution efficiency of test tasks is improved.

CN119172153APending Publication Date: 2024-12-20SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411372899.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In web page automation testing, when SMS authentication is required, the tester cannot keep an eye on the automation task at all times, resulting in delayed verification code input, reducing the execution efficiency of automation tests.

Method used

Design a SMS authentication method, by deploying the SMS authentication subsystem in an automated test system, using multiple service nodes and communication modules, obtaining SMS verification code based on preset time intervals, and determining the mobile phone through verification code extraction processing and correspondence relationship Number, automatically complete the verification operation of the verification code login interface.

Benefits of technology

It realizes SMS authentication for automated testing tasks without manual intervention, improves the execution efficiency of automated testing, and supports the concurrent processing of multiple verification codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172153A_ABST
    Figure CN119172153A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a short message authentication method and device, computer equipment and a storage medium. The method is applied to the automatic test system, the automatic test system comprises a short message authentication subsystem, the short message authentication subsystem comprises a plurality of service nodes, and each service node is connected with a plurality of communication modules. Acquiring short messages received by the plurality of communication modules within the target time interval through the plurality of service nodes; performing verification code extraction processing on the obtained short message to obtain a plurality of verification codes; determining a mobile phone number corresponding to each verification code according to a preset corresponding relationship between the communication module and the mobile phone number and the communication module corresponding to each verification code; and executing verification code verification operation of the corresponding verification code login interface according to each verification code and the corresponding mobile phone number, and completing short message authentication of the plurality of automatic test tasks. By implementing the method provided by the embodiment of the invention, the execution efficiency of the automatic test task can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a text message authentication method, device, computer equipment and storage medium. Background Art

[0002] Software automation testing can improve testing efficiency. However, in the process of web automation testing, if you encounter a scenario that requires SMS authentication, manual intervention is often required to open the mobile phone to receive the verification code, and then manually enter the verification code on the verification code input interface.

[0003] However, by manually inputting the verification code, the tester cannot keep an eye on the automated task all the time and cannot input the verification code in time, resulting in low execution efficiency of the automated test task. Summary of the invention

[0004] The embodiments of the present application provide a text message authentication method, apparatus, computer equipment and storage medium, which can automatically perform text message authentication when executing automated testing tasks, thereby improving the execution efficiency of automated testing tasks.

[0005] In a first aspect, an embodiment of the present application provides a text message authentication method, which is applied to an automated testing system, wherein the automated testing system includes a text message authentication subsystem, wherein the text message authentication subsystem includes a plurality of service nodes, each of which is connected to a plurality of communication modules, and wherein the method includes:

[0006] Based on a preset time interval, multiple short messages received by multiple communication modules within a target time interval are obtained through multiple service nodes, the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval;

[0007] The obtained SMS is processed for verification code extraction to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated test tasks;

[0008] Determine the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes;

[0009] According to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is performed to complete the SMS authentication of multiple automated test tasks.

[0010] In a second aspect, an embodiment of the present application further provides a text message authentication device, which is deployed in an automated testing system, wherein the automated testing system includes a text message authentication subsystem, wherein the text message authentication subsystem includes a plurality of service nodes, each of which is connected to a plurality of communication modules, and wherein the text message authentication device includes:

[0011] A transceiver unit, configured to obtain, based on a preset time interval, text messages received by a plurality of the communication modules within a target time interval through a plurality of the service nodes, wherein the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval;

[0012] The processing unit is used to extract the verification code from the acquired text message to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated testing tasks; according to the preset correspondence between the communication module and the mobile phone number and the communication module corresponding to each verification code, the mobile phone number corresponding to each verification code is determined; according to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is executed to complete the SMS authentication of multiple automated testing tasks.

[0013] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.

[0015] The embodiment of the present application provides a method, device, computer equipment and storage medium for SMS authentication. The method is applied to an automated test system, the automated test system includes an SMS authentication subsystem, the SMS authentication subsystem includes multiple service nodes, each of the service nodes is connected to multiple communication modules, and the method includes: based on a preset time interval, obtaining multiple SMS messages received by multiple communication modules within a target time interval through multiple service nodes, the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval; performing verification code extraction processing on the obtained SMS to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated test tasks; determining the mobile phone number corresponding to each verification code according to the preset correspondence between the communication module and the mobile phone number and the communication module corresponding to each verification code; performing the verification code verification operation of the corresponding verification code login interface according to each verification code and the corresponding mobile phone number, and completing the SMS authentication of multiple automated test tasks. The automated testing system in the embodiment of the present application can automatically obtain SMS verification codes and automatically complete SMS authentication of automated testing tasks without the need for manual SMS authentication operations, and can support SMS authentication of multiple verification codes separately, thereby improving the execution efficiency of automated testing tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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.

[0017] Figure 1 A schematic diagram of an application scenario of the SMS authentication method provided in an embodiment of the present application;

[0018] Figure 2 A flowchart of the SMS authentication method provided in the embodiment of the present application;

[0019] Figure 3 A schematic diagram of a sub-process of the SMS authentication method provided in an embodiment of the present application;

[0020] Figure 4 A schematic block diagram of a text message authentication device provided in an embodiment of the present application;

[0021] Figure 5 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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.

[0023] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0024] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0025] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0026] Embodiments of the present application provide a text message authentication method, apparatus, computer equipment, and storage medium.

[0027] The execution subject of the SMS authentication method may be the SMS authentication device provided in the embodiment of the present application, or a computer system integrating the SMS authentication device, wherein the computer system includes multiple computer devices, which may be terminals or servers.

[0028] Specifically, the computer system is an automated testing system, which includes a text message authentication subsystem and a testing subsystem, wherein the structure of the text message authentication subsystem is as follows: Figure 1 As shown, the SMS authentication subsystem includes multiple service nodes ( Figure 1 The service nodes include N service nodes, where N is an integer greater than 1), each of the service nodes is connected to multiple communication modules, wherein the service nodes may specifically be physical servers of a Linux system.

[0029] In order to enable the service node to connect to more pairs of communication modules, each of the service nodes in the embodiment of the present application is connected to multiple communication modules through multiple physical ports of the hub, wherein different SIM cards are respectively inserted into different communication modules.

[0030] In some embodiments, each of the service nodes is deployed with a target service through the virtual container docker. Since the service node deploys the target service through the virtual container, if the node needs to be expanded, it is only necessary to use the virtual container to deploy the target service in the node. It can be seen that through the embodiments of the present application, the service nodes of the SMS authentication subsystem can be quickly expanded according to demand.

[0031] Each service node is a physical server, and each service node is connected to multiple communication modules through Universal Serial Bus (USB) mounting technology or Wireless Fidelity (WIFI) mounting technology, so that the target service can directly interact with the communication module through AT commands.

[0032] The target service in this application is used to interact with the corresponding communication module through AT commands to implement the functions of receiving and sending text messages through the corresponding communication module.

[0033] The communication module in the embodiment of the present application is a multi-mode Long Term Evolution Category 4 (LTE Cat4) module, which is designed to provide efficient and reliable wireless communication solutions for the Internet of Things and Machine to Machine (M2M) applications, and has built-in rich protocol stacks and drivers, allowing developers to quickly implement communication functions such as voice, data and SMS.

[0034] For further information, see Figure 1 In some embodiments, the SMS authentication subsystem further includes a management center master, which is connected to each service node, wherein the management center has the following functions:

[0035] 1. Display the node information of each service node in the SMS authentication subsystem, including node identification and node online status information;

[0036] 2. Identify the SIM card information and mobile phone number of each communication module;

[0037] 3. Display the SIM card information corresponding to each service node;

[0038] 4. Provide functional interfaces such as balance inquiry and SMS sending;

[0039] 5. Display the content of the SMS.

[0040] The target service also includes a heartbeat sending service, which is used to periodically send heartbeat information including node information and communication module information to the management center.

[0041] After the management center collects the node information of each service node and the device information of each communication module, the tester can view the node information and device information through the management center to understand the operation status of each service node and communication module in the system, thereby realizing unified management of service nodes and communication modules.

[0042] Figure 2 Schematic diagram of the SMS authentication method provided in the embodiment of the present application. Figure 2 As shown, the method includes the following steps S110-S140.

[0043] S110. Based on a preset time interval, obtain, through a plurality of the service nodes, short messages received by a plurality of the communication modules within a target time interval.

[0044] The interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval.

[0045] The preset time interval can be 5 seconds or other interval lengths. The specific interval length can be adjusted according to actual needs, and the specific interval length of the time interval is not limited in this application.

[0046] Each service node in the present application may correspond to the same preset time interval, or time intervals of different lengths may be set for different service nodes.

[0047] Specifically, for each service node, at every preset time interval (5 seconds is used as an example below), the AT command is used to interact with the multiple communication modules connected thereto, and short messages received within 5 seconds from the current time in the multiple communication modules are obtained.

[0048] In some embodiments, the service node deploys a target service through a virtual container. In this case, step S110 includes: based on the preset time interval, through the target services corresponding to multiple service nodes respectively, using AT commands to interact with the corresponding communication module to obtain the text messages received by the multiple communication modules within the target time interval.

[0049] S120: Perform verification code extraction processing on the acquired SMS to obtain multiple verification codes, each of which is a verification code that needs to be entered in a different verification code login interface in multiple automated test tasks.

[0050] In this embodiment, specifically, verification code extraction processing can be performed on each acquired short message based on a preset regular matching technology to obtain multiple verification codes from multiple short messages.

[0051] Among them, the automated testing system also includes a testing subsystem. When executing an automated testing task for a target website, the browser is first automatically started through the Selenium automation tool, the verification code login interface in the target website is opened, and the mobile phone number is automatically filled in the verification code login interface, and the page sends the verification code button automatically clicked, wherein the filled-in mobile phone number is selected from a mobile phone number library, and the mobile phone number library stores the mobile phone numbers of each communication module in the SMS authentication subsystem.

[0052] S130. Determine the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes.

[0053] In this embodiment, since the SMS authentication method provided by this application supports concurrent multi-task processing, multiple verification codes will be obtained through multiple communication modules within the same period of time. In order to determine which verification code login interface each verification code corresponds to, this embodiment also needs to determine the mobile phone number corresponding to each verification code.

[0054] At this time, before determining the mobile phone numbers corresponding to the verification codes, the method further includes:

[0055] Obtain the mobile phone number of the SIM card in each of the communication modules; and construct a corresponding relationship between the communication module and the mobile phone number according to the mobile phone number of the SIM card in each of the communication modules.

[0056] Specifically, in this embodiment, the mobile phone number of the SIM card can be manually identified, or an automatic mobile phone number identification service can be set in the target service of the service node to automatically identify the mobile phone number of the SIM card of the inserted communication module through the service.

[0057] Among them, in the embodiment of the present application, the mobile phone number corresponding to the communication module is the mobile phone number of the SIM card in the communication module.

[0058] S140, performing a verification code verification operation on a corresponding verification code login interface according to each verification code and a corresponding mobile phone number, and completing SMS authentication of a plurality of the automated test tasks.

[0059] Specifically, see Figure 3 , step S140 includes:

[0060] S1401. Send each verification code and the corresponding mobile phone number to the testing subsystem.

[0061] Among them, the test subsystem can obtain the verification code and the corresponding mobile phone number in the following two ways.

[0062] First, each verification code and the corresponding mobile phone number can be sent directly to the test subsystem;

[0063] Second, each verification code and the corresponding mobile phone number may be stored in a preset verification code database; and then each verification code and the corresponding mobile phone number may be read from the verification code database by the test subsystem.

[0064] S1402: Determine, by the test subsystem, the verification code login interface corresponding to each verification code according to the corresponding mobile phone number.

[0065] Specifically, since different verification code login interfaces use different mobile phone numbers to trigger the sending of verification codes, before entering verification codes in different verification code login interfaces, you first need to determine which verification codes need to be entered in different verification code login interfaces.

[0066] S1403: Fill in each verification code into the corresponding verification code login interface through the test subsystem, and trigger a verification code verification operation.

[0067] Specifically, after the verification code login interfaces corresponding to the verification codes are determined, the test subsystem inputs the corresponding verification code through the Selenium automation tool verification code login interface, and automatically clicks the login button to complete the login automation test process.

[0068] Among them, due to the existence of arrears in number fees or communication module failure, it is possible that although a verification code SMS is sent to a communication module, the communication module does not receive the corresponding verification code SMS, eventually causing the verification code input in the verification code login interface to time out.

[0069] The present invention uses the following method to troubleshoot:

[0070] When the test subsystem detects the existence of an abnormal verification code login interface in which the verification code input has timed out, the target mobile phone number corresponding to the abnormal verification code login interface is determined; a troubleshooting instruction for the target mobile phone number is generated by the test subsystem; the troubleshooting instruction is sent to the SMS authentication subsystem by the test subsystem; and the SMS authentication subsystem performs troubleshooting on the target mobile phone number based on the troubleshooting instruction.

[0071] Specifically, in some embodiments, the performing troubleshooting on the target mobile phone number based on the troubleshooting instruction by the SMS authentication subsystem includes:

[0072] The SMS authentication subsystem responds to the troubleshooting instruction, and determines the target communication module corresponding to the target mobile phone number according to the corresponding relationship between the communication module and the mobile phone number; in the SMS authentication subsystem, the target communication module is controlled by the target service node corresponding to the target communication module to send a troubleshooting SMS to the target operator, and the troubleshooting result returned by the target operator based on the troubleshooting SMS is obtained.

[0073] For example, a balance inquiry SMS is sent to the target operator corresponding to the mobile phone number, and the balance SMS returned by the target operator is used to determine whether the communication module cannot receive the SMS due to arrears.

[0074] Further, after the SMS authentication subsystem responds to the troubleshooting instruction and determines the target communication module corresponding to the target mobile phone number according to the correspondence between the communication module and the mobile phone number, the method further includes:

[0075] Determine whether the target communication module is online. If not, directly feedback the troubleshooting result that the target communication module is offline; if online, execute the step of controlling the target communication module to send a troubleshooting SMS to the target operator through the target service node corresponding to the target communication module in the SMS authentication subsystem.

[0076] To sum up, the automated testing system in the embodiment of the present application can automatically obtain SMS verification codes and automatically complete SMS authentication of automated testing tasks without the need for manual SMS authentication operations, and can support SMS authentication of multiple verification codes separately, thereby improving the execution efficiency of automated testing tasks.

[0077] Figure 4 4 is a schematic block diagram of a text message authentication device 400 provided in an embodiment of the present application. Figure 4 As shown, corresponding to the above SMS authentication method, the present application also provides a SMS authentication device 400. The SMS authentication device 400 includes a unit for executing the above SMS authentication method. The SMS authentication device 400 is configured in an automated testing system. The automated testing system includes an SMS authentication subsystem. The SMS authentication subsystem includes multiple service nodes. Each of the service nodes is connected to multiple communication modules. For details, please refer to Figure 4 The SMS authentication device 400 includes a transceiver unit 401 and a processing unit 402, wherein:

[0078] The transceiver unit 401 is used to obtain, based on a preset time interval, the short messages received by the plurality of communication modules within a target time interval through the plurality of service nodes, wherein the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval;

[0079] The processing unit 402 is used to perform verification code extraction processing on the obtained SMS to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated testing tasks; according to the correspondence between the preset communication module and the mobile phone number and the communication module corresponding to each verification code, the mobile phone number corresponding to each verification code is determined; according to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is executed to complete the SMS authentication of multiple automated testing tasks.

[0080] The preset time interval can be 5 seconds or other interval lengths. The specific interval length can be adjusted according to actual needs, and the specific interval length of the time interval is not limited in this application.

[0081] Each service node in the present application may correspond to the same preset time interval, or time intervals of different lengths may be set for different service nodes.

[0082] Specifically, verification code extraction processing may be performed on each acquired short message based on a preset regular matching technology, so as to obtain multiple verification codes from multiple short messages.

[0083] Since the SMS authentication method provided in this application supports concurrent multi-task processing, multiple verification codes will be obtained through multiple communication modules in the same period of time. In order to determine which verification code login interface each verification code corresponds to, this embodiment also needs to determine the mobile phone number corresponding to each verification code.

[0084] The automated testing system also includes a testing subsystem. When executing an automated testing task on a target website, the browser is first automatically started through the Selenium automation tool, the verification code login interface in the target website is opened, the mobile phone number is automatically filled in the verification code login interface, and the page send verification code button is automatically clicked, wherein the filled-in mobile phone number is selected from a mobile phone number library, and the mobile phone number library stores the mobile phone numbers of each communication module in the SMS authentication subsystem.

[0085] In some embodiments, the automated testing system further includes a testing subsystem; when the processing unit 402 executes the verification code verification operation step of executing the corresponding verification code login interface according to each verification code and the corresponding mobile phone number, it is specifically used to:

[0086] The transceiver unit 401 is used to send each verification code and the corresponding mobile phone number to the test subsystem; the test subsystem determines the verification code login interface corresponding to each verification code according to the corresponding mobile phone number; the test subsystem fills each verification code into the corresponding verification code login interface and triggers the verification code verification operation.

[0087] Among them, the test subsystem can obtain the verification code and the corresponding mobile phone number in the following two ways.

[0088] First, each verification code and the corresponding mobile phone number can be sent directly to the test subsystem;

[0089] Second, each verification code and the corresponding mobile phone number may be stored in a preset verification code database; and then each verification code and the corresponding mobile phone number may be read from the verification code database by the test subsystem.

[0090] Specifically, since different verification code login interfaces use different mobile phone numbers to trigger the sending of verification codes, before entering verification codes in different verification code login interfaces, you first need to determine which verification codes need to be entered in different verification code login interfaces.

[0091] After the verification code login interfaces corresponding to the verification codes are determined, the test subsystem enters the corresponding verification code through the Selenium automation tool verification code login interface and automatically clicks the login button to complete the login automation test process.

[0092] In some embodiments, when executing the step of sending each verification code and the corresponding mobile phone number to the test subsystem, the transceiver unit 401 is specifically used to:

[0093] The verification codes and the corresponding mobile phone numbers are stored in a preset verification code database; and the verification codes and the corresponding mobile phone numbers are read from the verification code database by the test subsystem.

[0094] In some embodiments, the processing unit 402 is further configured to:

[0095] When the test subsystem detects an abnormal verification code login interface with a verification code input timeout, the target mobile phone number corresponding to the abnormal verification code login interface is determined; a troubleshooting instruction for the target mobile phone number is generated by the test subsystem; based on the transceiver unit 401, the troubleshooting instruction is sent to the SMS authentication subsystem by the test subsystem; and the SMS authentication subsystem performs troubleshooting on the target mobile phone number based on the troubleshooting instruction.

[0096] Due to arrears in number fees or communication module failure, it is possible that although a verification code SMS is sent to a communication module, the communication module does not receive the corresponding verification code SMS, eventually causing the verification code input in the verification code login interface to time out.

[0097] In some embodiments, when the processing unit 402 executes the step of troubleshooting the target mobile phone number based on the troubleshooting instruction through the SMS authentication subsystem, it is specifically used to:

[0098] The SMS authentication subsystem responds to the troubleshooting instruction, and determines the target communication module corresponding to the target mobile phone number according to the corresponding relationship between the communication module and the mobile phone number; in the SMS authentication subsystem, the transceiver unit 401 is used to control the target communication module to send a troubleshooting SMS to the target operator through the target service node corresponding to the target communication module, and obtains the troubleshooting result returned by the target operator based on the troubleshooting SMS.

[0099] For example, a balance inquiry SMS is sent to the target operator corresponding to the mobile phone number, and the balance SMS returned by the target operator is used to determine whether the communication module cannot receive the SMS due to arrears.

[0100] Further, after the SMS authentication subsystem responds to the troubleshooting instruction and determines the target communication module corresponding to the target mobile phone number according to the correspondence between the communication module and the mobile phone number, the method further includes:

[0101] Determine whether the target communication module is online. If not, directly feedback the troubleshooting result that the target communication module is offline; if online, execute the step of controlling the target communication module to send a troubleshooting SMS to the target operator through the target service node corresponding to the target communication module in the SMS authentication subsystem.

[0102] In some embodiments, each of the service nodes is deployed with a target service through a virtual container; when the transceiver unit 401 executes the step of obtaining the SMS messages received by the multiple communication modules within the target time interval through the multiple service nodes based on the preset time interval, it is specifically used to:

[0103] Based on the preset time interval, the target services respectively corresponding to the multiple service nodes are used to interact with the corresponding communication modules using AT commands to obtain the short messages received by the multiple communication modules within the target time interval.

[0104] In some embodiments, before executing the step of determining the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes, the processing unit 402 is further used to:

[0105] The mobile phone number of the SIM card in each of the communication modules is obtained through the transceiver unit 401; and the corresponding relationship between the communication module and the mobile phone number is established according to the mobile phone number of the SIM card in each of the communication modules.

[0106] To sum up, the automated testing system in the embodiment of the present application can automatically obtain SMS verification codes and automatically complete SMS authentication of automated testing tasks without the need for manual SMS authentication operations, and can support SMS authentication of multiple verification codes separately, thereby improving the execution efficiency of automated testing tasks.

[0107] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned SMS authentication device 400 and each unit can refer to the corresponding description in the above-mentioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0108] The SMS authentication device can be implemented in the form of a computer program. Figure 5 Runs on the computer device shown.

[0109] See also Figure 5 , Figure 5 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be any computer device in a computer system corresponding to an automated test system, and may specifically be a terminal or a server.

[0110] See also Figure 5 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0111] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a short message authentication method.

[0112] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0113] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a short message authentication method.

[0114] The network interface 505 is used to communicate with other devices over the network. Figure 5 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] The processor 502 of each computer device 500 in the computer system is used to run the computer program 5032 stored in the memory to jointly implement the following steps:

[0116] Based on a preset time interval, multiple short messages received by multiple communication modules within a target time interval are obtained through multiple service nodes, the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval;

[0117] The obtained SMS is processed for verification code extraction to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated test tasks;

[0118] Determine the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes;

[0119] According to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is performed to complete the SMS authentication of multiple automated test tasks.

[0120] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0121] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0122] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:

[0123] Based on a preset time interval, multiple short messages received by multiple communication modules within a target time interval are obtained through multiple service nodes, the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval;

[0124] The obtained SMS is processed for verification code extraction to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated test tasks;

[0125] Determine the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes;

[0126] According to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is performed to complete the SMS authentication of multiple automated test tasks.

[0127] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0129] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0130] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0132] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A SMS authentication method, It is characterized in that The method is applied to an automated testing system, the automated testing system includes a short message authentication subsystem, the short message authentication subsystem includes a plurality of service nodes, each of the service nodes is connected to a plurality of communication modules, and the method includes: Based on a preset time interval, multiple short messages received by multiple communication modules within a target time interval are obtained through multiple service nodes, the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval; The obtained SMS is processed for verification code extraction to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated test tasks; Determine the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes; According to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is performed to complete the SMS authentication of multiple automated test tasks.

2. The method according to claim 1, It is characterized in that The automated testing system further includes a testing subsystem; the verification code verification operation of the corresponding verification code login interface is performed according to each verification code and the corresponding mobile phone number, including: Sending each verification code and the corresponding mobile phone number to the testing subsystem; Determine the verification code login interface corresponding to each verification code according to the corresponding mobile phone number by the test subsystem; Each verification code is filled into the corresponding verification code login interface through the test subsystem, and a verification code verification operation is triggered.

3. The method according to claim 2, It is characterized in that The sending of each verification code and the corresponding mobile phone number to the testing subsystem includes: Storing each verification code and the corresponding mobile phone number in a preset verification code database; Each verification code and the corresponding mobile phone number are read from the verification code database through the testing subsystem.

4. The method according to claim 2, It is characterized in that The method further comprises: When the test subsystem detects that there is an abnormal verification code login interface with a verification code input timeout, determining a target mobile phone number corresponding to the abnormal verification code login interface; Generating a troubleshooting instruction for the target mobile phone number through the test subsystem; Sending the troubleshooting instruction to the SMS authentication subsystem through the test subsystem; The SMS authentication subsystem performs troubleshooting on the target mobile phone number based on the troubleshooting instruction.

5. The method according to claim 4, It is characterized in that The performing troubleshooting on the target mobile phone number based on the troubleshooting instruction by the SMS authentication subsystem includes: Responding to the troubleshooting instruction through the SMS authentication subsystem, determining a target communication module corresponding to the target mobile phone number according to the correspondence between the communication module and the mobile phone number; In the SMS authentication subsystem, the target service node corresponding to the target communication module controls the target communication module to send a troubleshooting SMS to the target operator, and obtains the troubleshooting result returned by the target operator based on the troubleshooting SMS.

6. The method according to claim 1, It is characterized in that Each of the service nodes is deployed with a target service through a virtual container; and based on a preset time interval, obtaining the short messages received by the plurality of communication modules within the target time interval through the plurality of service nodes includes: Based on the preset time interval, the target services respectively corresponding to the multiple service nodes are used to interact with the corresponding communication modules using AT commands to obtain the short messages received by the multiple communication modules within the target time interval.

7. The method according to any one of claims 1 to 6, It is characterized in that Before determining the mobile phone numbers corresponding to the verification codes according to the preset correspondence between the communication modules and the mobile phone numbers and the communication modules corresponding to the verification codes, the method further includes: Obtain the mobile phone number of the SIM card in each of the communication modules; A correspondence between the communication module and the mobile phone number is established according to the mobile phone number of the SIM card in each communication module.

8. A SMS authentication device, It is characterized in that The SMS authentication device is deployed in an automated testing system, the automated testing system includes an SMS authentication subsystem, the SMS authentication subsystem includes a plurality of service nodes, each of the service nodes is connected to a plurality of communication modules, and the SMS authentication device includes: A transceiver unit, configured to obtain, based on a preset time interval, text messages received by a plurality of the communication modules within a target time interval through a plurality of the service nodes, wherein the interval between the start time of the target time interval and the current time is the preset time interval, and the current time is the end time of the target time interval; A processing unit is used to extract verification codes from the acquired text messages to obtain multiple verification codes, each of which is a verification code that needs to be entered in different verification code login interfaces in multiple automated testing tasks; according to the correspondence between the preset communication module and the mobile phone number and the communication module corresponding to each verification code, the mobile phone number corresponding to each verification code is determined; according to each verification code and the corresponding mobile phone number, the verification code verification operation of the corresponding verification code login interface is executed to complete the SMS authentication of multiple automated testing tasks.

9. A computer system comprising a plurality of computer devices, each of which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processors in the plurality of computer devices jointly implement the SMS authentication method as claimed in any one of claims 1 to 7 when executing the corresponding computer programs.

10. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the SMS authentication method according to any one of claims 1 to 7.