CN115276844A - Communication module testing method and device and electronic equipment - Google Patents

Communication module testing method and device and electronic equipment Download PDF

Info

Publication number
CN115276844A
CN115276844A CN202210922267.0A CN202210922267A CN115276844A CN 115276844 A CN115276844 A CN 115276844A CN 202210922267 A CN202210922267 A CN 202210922267A CN 115276844 A CN115276844 A CN 115276844A
Authority
CN
China
Prior art keywords
communication module
test
tested
instruction
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210922267.0A
Other languages
Chinese (zh)
Other versions
CN115276844B (en
Inventor
甘玮
徐昶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mobiletek Telecommunication Ltd
Original Assignee
Shanghai Mobiletek Telecommunication Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Mobiletek Telecommunication Ltd filed Critical Shanghai Mobiletek Telecommunication Ltd
Priority to CN202210922267.0A priority Critical patent/CN115276844B/en
Publication of CN115276844A publication Critical patent/CN115276844A/en
Application granted granted Critical
Publication of CN115276844B publication Critical patent/CN115276844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/15Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/29Performance testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test method and a test device of a communication module and electronic equipment. The method comprises the following steps: acquiring a plurality of test instructions for testing the communication module to be tested; determining a test script corresponding to each test instruction; and testing the communication module to be tested based on the plurality of test scripts to obtain a test result corresponding to each test script, wherein the test result is used for representing the communication state of the communication module to be tested. The invention solves the technical problem of low communication function testing efficiency caused by adopting a local computer to test related communication modules in the prior art.

Description

Communication module testing method and device and electronic equipment
Technical Field
The invention relates to the field of cloud processing, in particular to a method and a device for testing a communication module and electronic equipment.
Background
The communication module generally refers to a module for other devices to perform communication functions (especially wireless communication functions, such as GSM, 3G, 4G, and 5G), and needs to perform a comprehensive performance test before the module is manufactured or installed in the other devices to ensure the performance of the product.
In the related testing, a single module under test is usually connected to a local computer, and then the tester uses an automated testing framework to perform related functional testing. The testing method can only test one function of the module to be tested by one tester at the same time, and if the conditions that the tester A needs to test the voice call function and the tester B needs to test the short message function occur, two sets of computers need to be adopted to be used simultaneously, so that the problem of low communication function testing efficiency is caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing a communication module and electronic equipment, which are used for at least solving the technical problem of low communication function testing efficiency caused by testing related communication modules by adopting a local computer in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a method for testing a communication module, including: acquiring a plurality of test instructions for testing the communication module to be tested; determining a test script corresponding to each test instruction; and testing the communication module to be tested based on the plurality of test scripts to obtain a test result corresponding to each test script, wherein the test result is used for representing the communication state of the communication module to be tested.
Further, the method for testing the communication module further comprises the following steps: the method comprises the steps of testing the communication module to be tested based on a plurality of test scripts to obtain a test result, and then determining a target test result based on the test result corresponding to each test script, wherein the test scripts comprise at least one of a first test script and a second test script, the first test script is used for carrying out call test on the communication module to be tested, the second test script is used for carrying out short message test on the communication module to be tested, and the target test result is used for representing whether the communication module to be tested can normally communicate.
Further, the method for testing the communication module further comprises the following steps: if the test script is the first test script, sending a first instruction to the communication module to be tested based on the first test script so that the communication module to be tested sends a call request to the target communication module based on the first instruction; and if the communication module to be tested fails to feed back the sending of the call request, generating a test result corresponding to the first test script.
Further, the method for testing the communication module further comprises the following steps: after a first instruction is sent to the communication module to be tested based on the first test script, if the communication module to be tested feeds back that the call request is sent successfully, a second instruction is sent to the target communication module based on the first test script so that the target communication module responds to the call request; and if the target communication module fails to feed back the response to the call request, generating a test result corresponding to the first test script.
Further, the method for testing the communication module further comprises the following steps: after sending a second instruction to the target communication module based on the first test script, if the target communication module successfully responds to the call request in a feedback mode, sending a third instruction to the communication module to be tested based on the first test script, and sending a fourth instruction to the target communication module based on the first test script, so that the communication module to be tested executes a call ending operation based on the third instruction, and the target communication module executes a call ending operation based on the fourth instruction; acquiring a first execution result fed back by the communication module to be tested and a second execution result fed back by the target communication module, wherein the first execution result represents whether the communication module to be tested has executed the call ending operation or not, and the second execution result represents whether the communication module to be tested has executed the call ending operation or not; and determining a test result corresponding to the first test script based on the first execution result and the second execution result.
Further, the method for testing the communication module further comprises the following steps: if the test script is the second test script, a fifth instruction is sent to the communication module to be tested, so that the communication module to be tested sends a target short message to the target communication module based on the fifth instruction; and if the target short message is failed to be fed back by the communication module to be tested, determining a test result corresponding to the second test script.
Further, the method for testing the communication module further comprises the following steps: after the fifth instruction is sent to the communication module to be tested, if the communication module to be tested feeds back the target short message to be sent successfully, a sixth instruction is sent to the target communication module, so that the target communication module replies the target short message based on the sixth instruction; acquiring a first reply result fed back by the communication module to be tested and a second reply result fed back by the target communication module, wherein the first reply result represents whether the communication module to be tested receives the reply content of the target communication module, and the second reply result represents whether the target communication module replies; and determining a test result corresponding to the second test script based on the first reply result and the second reply result.
According to another aspect of the embodiments of the present invention, there is also provided a testing apparatus for a communication module, including: the acquisition module is used for acquiring a plurality of test instructions for testing the communication module to be tested; the determining module is used for determining the test script corresponding to each test instruction; and the test module is used for testing the communication module to be tested based on the plurality of test scripts to obtain a test result, wherein the test result is used for representing whether the communication module to be tested can normally communicate.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the above-mentioned test method for a communication module when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running a program, wherein the program is arranged to perform the method for testing a communication module as described above when run.
In the embodiment of the invention, a mode of simultaneously testing a plurality of communication functions of the communication module to be tested based on the cloud server is adopted, a plurality of test instructions for testing the communication module to be tested are obtained, and then the test script corresponding to each test instruction is determined, so that the communication module to be tested is tested based on the plurality of test scripts, and the test result corresponding to each test script is obtained, wherein the test result is used for representing the communication state of the communication module to be tested.
In the process, a plurality of test instructions are acquired based on the cloud server, on one hand, the problem that test environments generated in the same space with the local computer are limited when relevant workers test the communication module through the local computer is avoided, on the other hand, the cloud server can respond to the test instructions input by different users at the same time, and on the other hand, the problem that the local computer can only interact with one tester when the communication module is tested by adopting the local computer is avoided, so that the test efficiency of testing the communication module to be tested can be effectively improved. Furthermore, the cloud server is adopted to simultaneously test different communication functions of the communication module to be tested based on the test script corresponding to each test instruction, so that the test efficiency of the communication module to be tested is further improved.
Therefore, the scheme provided by the application achieves the purpose of simultaneously testing a plurality of communication functions of the communication module to be tested based on the cloud server, so that the technical effect of improving the testing efficiency is achieved, and the technical problem of low testing efficiency of the communication functions caused by the fact that a local computer is adopted to test the related communication modules in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an alternative testing method for a communication module according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an alternative method for testing a communication module according to an embodiment of the invention;
fig. 3 is a schematic diagram of an alternative testing apparatus for a communication module according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for testing a communication module, where the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and where a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that described herein.
Fig. 1 is a schematic diagram of an optional testing method for a communication module according to an embodiment of the present invention, and as shown in fig. 1, the method is applied to a cloud server and includes the following steps:
step S102, a plurality of test instructions for testing the communication module to be tested are obtained.
In step S102, a cloud server is used as an execution subject of the application, and a plurality of test instructions for testing a communication module to be tested are obtained through the cloud server, where the communication module to be tested may be a sim card or other communication modules.
Optionally, before the cloud server obtains the plurality of test instructions, the relevant staff may copy the automated test framework and the plurality of test scripts for testing the communication module to be tested in the cloud server. Then, as shown in fig. 1, the cloud server may respond to different test instructions for testing the communication module to be tested, which are input by different target objects (such as the user a and the user B shown in fig. 1), and invoke the automated test framework in the cloud server. The test instruction at least comprises information for representing a test type, wherein the test type can be a video test, a call test, a short message test or other test types.
It should be noted that, by obtaining a plurality of test instructions based on the cloud server, on one hand, the problem that test environments generated by the fact that relevant workers need to be located in the same space with a local computer are limited when testing the communication module through the local computer is avoided, and on the other hand, the cloud server can respond to test instructions input by different users at the same time, and when testing the communication module by adopting the local computer, the local computer can only interact with one tester, so that the test efficiency of testing the communication module to be tested can be effectively improved.
Step S104, determining a test script corresponding to each test instruction.
In step S104, the cloud server may determine a test type corresponding to each test instruction, so as to determine a corresponding test script based on the test type. And after determining the test script, the cloud server may parse the determined test script for subsequent use.
And S106, testing the communication module to be tested based on the plurality of test scripts to obtain a test result, wherein the test result is used for representing whether the communication module to be tested can normally communicate.
In step S106, the cloud server may be connected to the communication module to be tested through the serial port, and the cloud server may simultaneously run a plurality of test scripts to test different communication functions of the communication module to be tested, so as to obtain test results corresponding to the different communication functions, where the test results are used to characterize the communication state of the communication module to be tested corresponding to the test type, for example, when the test type is a call test, the test results may be used to characterize that the communication module to be tested is in a state of successful \ unable to call, successful \ unable to dial out a call, successful \ unable to hang up a call, and when the test type is a short message test, the test results may be used to characterize that the communication module to be tested is in a state of successful \ unable to send a short message, successful \ unable to receive a short message, and the like. And then, the cloud server can feed back each test result to the target object which inputs the test instruction corresponding to the test result so as to be obtained by the corresponding target object.
It should be noted that, by adopting the cloud server to simultaneously test different communication functions of the communication module to be tested based on the plurality of test scripts, the test efficiency of the communication module to be tested is further improved.
Based on the schemes defined in the above steps S102 to S106, it can be known that, in the embodiment of the present invention, a manner of simultaneously testing a plurality of communication functions of the communication module to be tested based on the cloud server is adopted, a plurality of test instructions for testing the communication module to be tested are obtained, and then a test script corresponding to each test instruction is determined, so that the communication module to be tested is tested based on a plurality of test scripts, and a test result corresponding to each test script is obtained, where the test result is used to characterize a communication state of the communication module to be tested.
It is easy to notice that, in the above-mentioned process, through obtaining a plurality of test instructions based on the cloud ware, on the one hand, avoided relevant staff when testing communication module through local computer, need with the limited problem of the test environment that local computer produced in same space, on the other hand, the cloud ware can respond the test instruction of different user's input simultaneously, when having avoided adopting local computer to test communication module, local computer can only interact with a tester, thereby can effectively improve the efficiency of testing communication module that tests to await measuring. Furthermore, the cloud server is adopted to simultaneously test different communication functions of the communication module to be tested based on the test script corresponding to each test instruction, so that the test efficiency of the communication module to be tested is further improved.
Therefore, the scheme provided by the application achieves the purpose of simultaneously testing a plurality of communication functions of the communication module to be tested based on the cloud server, so that the technical effect of improving the testing efficiency is achieved, and the technical problem of low testing efficiency of the communication functions caused by the fact that a local computer is adopted to test the related communication modules in the prior art is solved.
In an optional embodiment, after the communication module to be tested is tested based on a plurality of test scripts and a test result is obtained, the cloud server may determine a target test result based on the test result corresponding to each test script, where the test script includes at least one of a first test script and a second test script, the first test script is used for performing a call test on the communication module to be tested, the second test script is used for performing a short message test on the communication module to be tested, and the target test result is used for characterizing whether the communication module to be tested can normally communicate.
The test script comprises at least one of a first test script and a second test script, the test script can further comprise a third test script or other test scripts, and the third test script can be used for carrying out video test on the communication module to be tested.
Optionally, the cloud server may determine whether the communication module to be tested can normally communicate based on the communication states of the communication module to be tested corresponding to different communication functions. Specifically, the cloud server may determine that the target communication result is that the communication module to be tested can normally communicate when all communication states corresponding to the communication module to be tested represent that the corresponding communication functions are normal, and the cloud server may determine that the target communication result is that the communication module to be tested cannot normally communicate when all communication states corresponding to the communication module to be tested have communication states that represent that the corresponding communication functions are abnormal. And the determined target test result can be stored for the relevant staff to obtain.
It should be noted that, by determining the target test result based on the test result corresponding to each test script, the communication function of the communication module to be tested can be accurately judged.
In an optional embodiment, in the process of testing the communication module to be tested based on the multiple test scripts to obtain the test result corresponding to each test script, if the test script is the first test script, the cloud server may send a first instruction to the communication module to be tested based on the first test script, so that the communication module to be tested sends the call request to the target communication module based on the first instruction, and if the communication module to be tested fails to feed back the call request, the cloud server may generate the test result corresponding to the first test script.
Specifically, as shown in fig. 2, when the test type corresponding to the test instruction input by the user a to the cloud server is a call test, the cloud server may execute the first test script, so as to send a "call dialing instruction to the target communication module (i.e., the first instruction)" to the communication module to be tested through the serial port based on the first test script. The communication module to be tested can receive the instruction, make a call to the target communication module based on the instruction, and then send the execution result of the step to the cloud server through the serial port, wherein the execution result of the step can represent that the call request is sent successfully or the call request is sent unsuccessfully.
Further, when the cloud server obtains an execution result representing that the transmission of the call request fails, a test result corresponding to the first test script can be directly generated based on the execution result, and the test result can represent that the communication module to be tested is in a state that the call cannot be dialed out.
It should be noted that, when the transmission of the call request fails, the corresponding test result is determined based on the execution result fed back by the communication module to be tested, so that on one hand, the accurate determination of the test result is realized, and on the other hand, the invalid execution of the subsequent call step is avoided, thereby improving the test efficiency and ensuring the accuracy of the test result.
In an optional embodiment, after sending the first instruction to the communication module to be tested based on the first test script, if the communication module to be tested feeds back the call request and sends the call request successfully, the cloud server may send a second instruction to the target communication module based on the first test script, so that the target communication module responds to the call request, and if the target communication module fails to feed back the call request, the cloud server may generate a test result corresponding to the first test script.
Optionally, when the cloud server obtains an execution result indicating that the transmission of the call request is successful, the cloud server may continue to execute the first test script, so as to send an instruction of "answering the call (i.e., the aforementioned second instruction)" to the target communication module through the serial port. The target communication module can receive the instruction, answer the call based on the instruction, and send an execution result of the step to the cloud server through the serial port, wherein the execution result of the step can represent that the call request is successfully responded or the call request is failed to be responded. Wherein, aforementioned target communication module can be connected with cloud ware through the serial ports equally.
Further, when the cloud server obtains an execution result representing that the response to the call request fails, a test result corresponding to the first test script can be directly generated based on the execution result, and the test result can represent that the communication module to be tested is in a state of successfully dialing out a call but being incapable of calling.
It should be noted that, when the target communication module fails to respond to the call request, the corresponding test result is determined based on the execution result fed back by the target communication module, on one hand, the specific determination of the abnormal function is realized, and on the other hand, the invalid execution of the subsequent call step is avoided, so that the accuracy of the test result is ensured while the test efficiency is improved.
In an optional embodiment, after sending the second instruction to the target communication module based on the first test script, if the target communication module feeds back a successful response to the call request, the cloud server may send a third instruction to the communication module to be tested based on the first test script, and send a fourth instruction to the target communication module based on the first test script, so that the communication module to be tested performs a call ending operation based on the third instruction, the target communication module performs a call ending operation based on the fourth instruction, and then obtains a first execution result fed back by the communication module to be tested and a second execution result fed back by the target communication module, so as to determine, based on the first execution result and the second execution result, a test result corresponding to the first test script, where the first execution result indicates whether the communication module to be tested has performed the call ending operation, and the second execution result indicates whether the communication module to be tested has performed the call ending operation.
Optionally, when the cloud server obtains an execution result representing that the response to the call request is successful, the cloud server may continue to execute the first test script, so that based on the first test script, a "hang-up call instruction (i.e., the third instruction)" is sent to the communication module to be tested through the serial port, and an "hang-up call instruction (i.e., the fourth instruction)" is sent to the target communication module in the nth second after the third instruction is sent, where N is a numerical value greater than 1.
Further, the communication module to be tested may receive the third instruction, hang up the phone based on the instruction, and send the execution result of the step (i.e., the first execution result) to the cloud server through the serial port, and the target communication module may hang up the phone based on the instruction and send the execution result of the step (i.e., the second execution result) to the cloud server through the serial port when receiving the fourth instruction.
Still further, the communication module to be tested may determine a test result corresponding to the first test script based on the first execution result and the second execution result. For example, when the first execution result and the second execution result both represent that the hang-up is successful, it is determined that the test result corresponding to the first test script is that the communication module to be tested is in a state of successfully dialing out a call and calling and successfully hanging up the call, when the first execution result represents that the hang-up is failed and the second execution result represents that the hang-up is successful, it is determined that the test result corresponding to the first test script is that the communication module to be tested is in a state of successfully dialing out the call and calling but not hanging up the call, and when the first execution result and the second execution result both represent that the hang-up is failed, the communication module to be tested and the target communication module can be controlled to re-execute the hang-up operation based on the first test script until the second execution result represents that the hang-up is successful, thereby facilitating determination of the test result.
Further, as shown in fig. 2, after the cloud server obtains the test result corresponding to the first test script, the cloud server may generate a report based on the test result to feed back to the user a.
It should be noted that the call hanging-up function of the communication module to be tested is determined by combining the execution results of the command of the communication module to be tested and the target communication module, so that the function can be accurately judged, and the judgment inaccuracy caused by the fact that external factors cannot be distinguished is avoided.
In an optional embodiment, in the process of testing the communication module to be tested based on the plurality of test scripts to obtain the test result corresponding to each test script, if the test script is the second test script, the cloud server may send a fifth instruction to the communication module to be tested, so that the communication module to be tested sends the target short message to the target communication module based on the fifth instruction; if the target short message is failed to be fed back by the communication module to be tested, the cloud server can determine a test result corresponding to the second test script.
Specifically, as shown in fig. 2, when the test type corresponding to the test instruction input by the user B to the cloud server is a short message test, the cloud server may execute the second test script, so that based on the second test script, a "send a short message instruction to the target communication module (i.e., the fifth instruction)" is sent to the communication module to be tested through the serial port, the communication module to be tested may receive the instruction, send the target short message to the target communication module based on the instruction, and then send the execution result of the step to the cloud server through the serial port, where the execution result of the step may represent that the target short message is successfully sent or the target short message is unsuccessfully sent.
Further, when the cloud server obtains an execution result representing that the target short message is failed to be sent, a test result corresponding to the second test script can be directly generated based on the execution result, and the test result can represent that the communication module to be tested is in a state that the short message cannot be sent.
It should be noted that, when the target short message fails to be sent, the corresponding test result is determined based on the execution result fed back by the communication module to be tested, so that on one hand, the test result is accurately determined, and on the other hand, invalid execution of subsequent steps is avoided, so that the accuracy of the test result is ensured while the test efficiency is improved.
In an optional embodiment, after the fifth instruction is sent to the communication module to be tested, if the communication module to be tested feeds back the target short message and is successfully sent, the cloud server may send a sixth instruction to the target communication module, so that the target communication module replies the target short message based on the sixth instruction, and then obtain a first reply result fed back by the communication module to be tested and a second reply result fed back by the target communication module, thereby determining a test result corresponding to the second test script based on the first reply result and the second reply result. The first reply result represents whether the communication module to be tested receives the reply content of the target communication module, and the second reply result represents whether the target communication module replies.
Optionally, when the cloud server obtains an execution result representing that the target short message is successfully sent, the cloud server may continue to execute the second test script to send a "reply short message (i.e., the sixth instruction)" to the target communication module through the serial port, and the target communication module may receive the instruction, reply the short message based on the instruction, and send the execution result of the step (i.e., the second reply result) to the cloud server through the serial port. Meanwhile, the cloud server may send an inquiry request to the communication module to be tested after the mth second of the second reply result is obtained, so as to obtain the first reply result.
Still further, the communication module to be tested may determine a test result corresponding to the first test script based on the first reply result and the second reply result.
For example, when the second reply result represents that the target communication module has replied and the first reply result represents that the communication module to be tested receives the reply content of the target communication module, it is determined that the communication module to be tested is in a state of successfully sending out the short message and successfully receiving the short message corresponding to the second test script, when the second reply result represents that the target communication module has replied and the first reply result represents that the communication module to be tested does not receive the reply content of the target communication module, it is determined that the communication module to be tested is in a state of successfully sending out the short message but not receiving the short message corresponding to the second test script, and when the second reply result represents that the target communication module has not replied and the first reply result represents that the communication module to be tested does not receive the reply content of the target communication module, the target communication module may be controlled to re-execute the operation of sending the short message based on the second test script until the second reply result represents that the short message has replied, thereby facilitating determination of the test result.
Further, as shown in fig. 2, after the cloud server obtains the test result corresponding to the second test script, the cloud server may generate a report based on the test result to feed back to the user B.
It should be noted that, by combining the reply results fed back by the communication module to be tested and the target communication module, the function of receiving the short message of the communication module to be tested is determined, so that the function is accurately judged, and the judgment inaccuracy caused by the fact that the influence of external factors cannot be distinguished is avoided.
Therefore, the scheme provided by the application achieves the purpose of simultaneously testing a plurality of communication functions of the communication module to be tested based on the cloud server, so that the technical effect of improving the testing efficiency is achieved, and the technical problem of low testing efficiency of the communication functions caused by the fact that a local computer is adopted to test the related communication modules in the prior art is solved.
Example 2
According to an embodiment of the present invention, an embodiment of a testing apparatus for a communication module is provided, where fig. 3 is a schematic diagram of an alternative testing apparatus for a communication module according to an embodiment of the present invention, as shown in fig. 3, the testing apparatus includes:
an obtaining module 302, configured to obtain a plurality of test instructions for testing the communication module to be tested;
a determining module 304, configured to determine a test script corresponding to each test instruction;
the testing module 306 is configured to test the communication module to be tested based on a plurality of testing scripts to obtain a testing result corresponding to each testing script, where the testing result is used to characterize a communication state of the communication module to be tested.
It should be noted that the acquiring module 302, the determining module 304, and the testing module 306 correspond to steps S102 to S106 in the above embodiment, and the three modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure in embodiment 1.
Optionally, the testing apparatus for a communication module further includes: the first determining submodule is used for determining a target test result based on a test result corresponding to each test script, wherein the test script comprises at least one of a first test script and a second test script, the first test script is used for carrying out call test on the communication module to be tested, the second test script is used for carrying out short message test on the communication module to be tested, and the target test result is used for representing whether the communication module to be tested can normally communicate.
Optionally, the test module further includes: the first sending module is used for sending a first instruction to the communication module to be tested based on the first test script if the test script is the first test script so that the communication module to be tested sends a call request to the target communication module based on the first instruction; and the first generation module is used for generating a test result corresponding to the first test script if the communication module to be tested fails to feed back the call request.
Optionally, the testing apparatus for a communication module further includes: the second sending module is used for sending a second instruction to the target communication module based on the first test script if the communication module to be tested feeds back that the call request is sent successfully so as to enable the target communication module to respond to the call request; and the second generation module is used for generating a test result corresponding to the first test script if the target communication module fails to feed back and respond to the call request.
Optionally, the testing apparatus for a communication module further includes: the third sending module is used for sending a third instruction to the communication module to be tested based on the first test script if the target communication module feeds back a successful response call request, and sending a fourth instruction to the target communication module based on the first test script so that the communication module to be tested executes a call ending operation based on the third instruction, and the target communication module executes a call ending operation based on the fourth instruction; the first acquisition sub-module is used for acquiring a first execution result fed back by the communication module to be tested and a second execution result fed back by the target communication module, wherein the first execution result represents whether the communication module to be tested executes the call ending operation or not, and the second execution result represents whether the communication module to be tested executes the call ending operation or not; and the second determining submodule is used for determining the test result corresponding to the first test script based on the first execution result and the second execution result.
Optionally, the test module further includes: the fourth sending module is used for sending a fifth instruction to the communication module to be tested if the test script is the second test script so that the communication module to be tested sends the target short message to the target communication module based on the fifth instruction; and the third determining submodule determines a test result corresponding to the second test script if the to-be-tested communication module fails to feed back the target short message.
Optionally, the testing apparatus for a communication module further includes: the fifth sending module is used for sending a sixth instruction to the target communication module if the target short message is successfully sent back by the communication module to be tested so that the target communication module replies the target short message based on the sixth instruction; the second acquisition sub-module is used for acquiring a first reply result fed back by the communication module to be tested and a second reply result fed back by the target communication module, wherein the first reply result represents whether the communication module to be tested receives the reply content of the target communication module, and the second reply result represents whether the target communication module replies; and the fourth determining submodule determines a test result corresponding to the second test script based on the first reply result and the second reply result.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for testing a communication module when running.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running a program, wherein the program is arranged to perform the method for testing a communication module as described above when run.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (10)

1. A test method of a communication module is applied to a cloud server, and comprises the following steps:
acquiring a plurality of test instructions for testing the communication module to be tested;
determining a test script corresponding to each test instruction;
and testing the communication module to be tested based on a plurality of test scripts to obtain a test result corresponding to each test script, wherein the test result is used for representing the communication state of the communication module to be tested.
2. The method of claim 1, wherein after testing the communication module under test based on a plurality of test scripts to obtain a test result, the method further comprises:
and determining a target test result based on the test result corresponding to each test script, wherein the test script comprises at least one of a first test script and a second test script, the first test script is used for carrying out a call test on the communication module to be tested, the second test script is used for carrying out a short message test on the communication module to be tested, and the target test result is used for representing whether the communication module to be tested can normally communicate.
3. The method of claim 2, wherein testing the communication module under test based on the plurality of test scripts to obtain a test result corresponding to each test script comprises:
if the test script is a first test script, sending a first instruction to the communication module to be tested based on the first test script so that the communication module to be tested sends a call request to a target communication module based on the first instruction;
and if the communication module to be tested feedbacks the transmission failure of the call request, generating a test result corresponding to the first test script.
4. The method of claim 3, wherein after sending a first instruction to the communication module under test based on the first test script, the method further comprises:
if the communication module to be tested feeds back that the call request is successfully sent, a second instruction is sent to the target communication module based on the first test script, so that the target communication module responds to the call request;
and if the target communication module fails to respond the call request in a feedback mode, generating a test result corresponding to the first test script.
5. The method of claim 4, wherein after sending a second instruction to the target communication module based on the first test script, the method further comprises:
if the target communication module successfully responds to the call request, sending a third instruction to the communication module to be tested based on the first test script, and sending a fourth instruction to the target communication module based on the first test script, so that the communication module to be tested executes a call ending operation based on the third instruction, and the target communication module executes a call ending operation based on the fourth instruction;
acquiring a first execution result fed back by the communication module to be tested and a second execution result fed back by the target communication module, wherein the first execution result represents whether the communication module to be tested executes the call ending operation or not, and the second execution result represents whether the communication module to be tested executes the call ending operation or not;
determining a test result corresponding to the first test script based on the first execution result and the second execution result.
6. The method of claim 2, wherein testing the communication module under test based on the plurality of test scripts to obtain a test result corresponding to each test script comprises:
if the test script is a second test script, sending a fifth instruction to the communication module to be tested so that the communication module to be tested sends a target short message to a target communication module based on the fifth instruction;
and if the target short message is failed to be fed back by the communication module to be tested, determining a test result corresponding to the second test script.
7. The method of claim 6, wherein after sending a fifth instruction to the communication module under test, the method further comprises:
if the target short message is successfully sent back by the communication module to be tested, a sixth instruction is sent to the target communication module, so that the target communication module replies the target short message based on the sixth instruction;
acquiring a first reply result fed back by the communication module to be tested and a second reply result fed back by the target communication module, wherein the first reply result represents whether the communication module to be tested receives the reply content of the target communication module, and the second reply result represents whether the target communication module replies;
and determining a test result corresponding to the second test script based on the first reply result and the second reply result.
8. A testing device for a communication module, comprising:
the acquisition module is used for acquiring a plurality of test instructions for testing the communication module to be tested;
the determining module is used for determining the test script corresponding to each test instruction;
and the testing module is used for testing the communication module to be tested based on a plurality of testing scripts to obtain a testing result corresponding to each testing script, wherein the testing result is used for representing whether the communication module to be tested can normally communicate.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to execute a method of testing a communication module according to any one of claims 1 to 7 when running.
10. An electronic device, wherein the electronic device comprises one or more processors; memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running a program, wherein the program is arranged to perform the method for testing a communication module of any of claims 1 to 7 when run.
CN202210922267.0A 2022-08-02 2022-08-02 Communication module testing method and device, storage medium and electronic equipment Active CN115276844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210922267.0A CN115276844B (en) 2022-08-02 2022-08-02 Communication module testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210922267.0A CN115276844B (en) 2022-08-02 2022-08-02 Communication module testing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN115276844A true CN115276844A (en) 2022-11-01
CN115276844B CN115276844B (en) 2023-06-13

Family

ID=83747132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210922267.0A Active CN115276844B (en) 2022-08-02 2022-08-02 Communication module testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115276844B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514680A (en) * 2022-11-16 2022-12-23 紫光同芯微电子有限公司 Method and device for verifying compatibility of module, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471680A (en) * 2015-12-09 2016-04-06 上海斐讯数据通信技术有限公司 Network voice communication testing system and method
WO2016188181A1 (en) * 2015-10-30 2016-12-01 中兴通讯股份有限公司 Test method, mobile terminal, server and computer storage medium
CN106547687A (en) * 2016-10-14 2017-03-29 深圳前海微众银行股份有限公司 Application testing method, apparatus and system
CN107122291A (en) * 2016-02-25 2017-09-01 北京博酷科技有限公司 Mobile terminal software stability test method and apparatus
CN109144850A (en) * 2018-07-23 2019-01-04 上海携程商务有限公司 The test method interactively communicated and system of mobile terminal
CN112328495A (en) * 2020-11-27 2021-02-05 上海移远通信技术股份有限公司 Module function test system and test method
CN112486818A (en) * 2020-11-27 2021-03-12 合肥移瑞通信技术有限公司 Module function test system and test method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016188181A1 (en) * 2015-10-30 2016-12-01 中兴通讯股份有限公司 Test method, mobile terminal, server and computer storage medium
CN105471680A (en) * 2015-12-09 2016-04-06 上海斐讯数据通信技术有限公司 Network voice communication testing system and method
CN107122291A (en) * 2016-02-25 2017-09-01 北京博酷科技有限公司 Mobile terminal software stability test method and apparatus
CN106547687A (en) * 2016-10-14 2017-03-29 深圳前海微众银行股份有限公司 Application testing method, apparatus and system
CN109144850A (en) * 2018-07-23 2019-01-04 上海携程商务有限公司 The test method interactively communicated and system of mobile terminal
CN112328495A (en) * 2020-11-27 2021-02-05 上海移远通信技术股份有限公司 Module function test system and test method
CN112486818A (en) * 2020-11-27 2021-03-12 合肥移瑞通信技术有限公司 Module function test system and test method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514680A (en) * 2022-11-16 2022-12-23 紫光同芯微电子有限公司 Method and device for verifying compatibility of module, electronic equipment and storage medium
CN115514680B (en) * 2022-11-16 2023-03-21 紫光同芯微电子有限公司 Method and device for verifying compatibility of module, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115276844B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
CN110719199B (en) Network automatic testing and fault positioning method and device
CN111045921A (en) Automatic interface testing method and device, computer equipment and storage medium
CN110442502B (en) Point burying method, device, equipment and storage medium
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN108459850B (en) Method, device and system for generating test script
CN109041267B (en) Network connection fault processing method and device and electronic equipment
CN111597110A (en) Page testing method and device, electronic equipment and storage medium
CN107992386A (en) A kind of router memory method for testing pressure and system
CN108519935B (en) Board card testing method and device, readable storage medium and computer equipment
CN106375102A (en) Service registration method, application method and correlation apparatus
CN115276844A (en) Communication module testing method and device and electronic equipment
CN103605610A (en) System and method for software testing based on Hadoop
CN114328110A (en) Monitoring method, system and storage medium for gateway of Internet of things
CN113132522A (en) Test method, device, server and medium
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN115118646B (en) Data interaction method and device for switch test system and electronic equipment
CN115037653B (en) Service flow monitoring method, device, electronic equipment and storage medium
CN108647139B (en) System test method, device, storage medium and electronic device
CN109995931B (en) Method and device for realizing automatic calling
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN113392028A (en) Distributed test system and control method
CN107623602B (en) Automatic checking method and system
CN113163059A (en) IPPBX performance detection method, terminal device and storage medium
CN107919980B (en) Evaluation method and device for clustered system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant