CN111405124A - Automatic transfer test method based on short message and outbound call and related equipment thereof - Google Patents

Automatic transfer test method based on short message and outbound call and related equipment thereof Download PDF

Info

Publication number
CN111405124A
CN111405124A CN202010100626.5A CN202010100626A CN111405124A CN 111405124 A CN111405124 A CN 111405124A CN 202010100626 A CN202010100626 A CN 202010100626A CN 111405124 A CN111405124 A CN 111405124A
Authority
CN
China
Prior art keywords
preset
data
outbound
test
result
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.)
Pending
Application number
CN202010100626.5A
Other languages
Chinese (zh)
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010100626.5A priority Critical patent/CN111405124A/en
Publication of CN111405124A publication Critical patent/CN111405124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/26Arrangements for supervision, monitoring or testing with means for applying test signals or for measuring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of computers, and provides an automatic circulation test method based on short messages and outbound calls and related equipment thereof, wherein the automatic circulation test method based on the short messages and the outbound calls comprises the following steps: in the process of automatic circulation testing, carrying out calling processing of an automatic circulation interface on the detected test data, and determining the test data corresponding to the successfully called automatic circulation interface as initial data according to a feedback result after the calling processing; executing an outbound operation on the initial data, and determining the initial data responding to the outbound operation as target data according to a response result of the outbound operation; acquiring calling time and response time corresponding to target data from a preset record library; and determining qualified data according to the calling time and the response time, and judging a test result of the automatic circulation test based on the qualified data. The technical scheme of the invention realizes the automatic circulation processing of the number under the framework of automatic testing, and improves the efficiency and the accuracy of the testing process.

Description

Automatic transfer test method based on short message and outbound call and related equipment thereof
Technical Field
The invention relates to the technical field of computers, in particular to an automatic circulation test method based on short messages and outbound calls and related equipment thereof.
Background
The outbound call platform is a platform for realizing automatic call dialing for a user, and the short message platform is a platform for realizing automatic short message sending for the user. In order to improve the transfer rate of the short message platform sending the failure list, the number which is sent by the short message platform in failure is transferred to the outbound platform for outbound operation. In the test circulation processing process, manual short message sending task simulation of various short message sending failure conditions is time-consuming, low in efficiency and incapable of simulating the circulation of big data through manual intervention, and in addition, manual test cannot ensure verification of the performance of outbound circulation, so that the circulation test process is low in efficiency and accuracy.
Disclosure of Invention
The embodiment of the invention provides an automatic circulation test method based on short messages and outbound calls and related equipment thereof, and aims to solve the problems of low efficiency and low accuracy caused by manual intervention in a circulation test process.
An automatic transfer test method based on short messages and outbound calls comprises the following steps:
in the process of automatic circulation testing, if testing data exist in a target database, importing the testing data into a preset circulation port to perform calling processing of an automatic circulation interface, obtaining a feedback result after the calling processing, and recording calling time corresponding to all calling processing in a preset recording library;
according to the feedback result, determining the test data corresponding to the automatic circulation interface which is successfully called as initial data;
importing the initial data into a preset outbound port to execute outbound operation to obtain a response result of the outbound operation, and recording response time corresponding to all the response results in a preset record library;
determining the initial data responding to the outbound operation as target data according to the response result;
acquiring the calling time corresponding to the target data calling automatic circulation interface and the response time responding to the outbound operation from a preset record library;
and selecting the target data of which the calling time and the response time reach preset conditions as qualified data, and judging the test result of the automatic circulation test based on the qualified data.
An automatic circulation testing device based on short messages and outbound calls comprises:
the detection module is used for guiding the test data into a preset circulation port to perform calling processing on an automatic circulation interface if the test data is detected to exist in a target database in the automatic circulation test process, obtaining a feedback result after the calling processing, and recording calling time corresponding to all the calling processing in a preset recording library;
the initial data determining module is used for determining the test data corresponding to the automatic circulation interface which is successfully called as the initial data according to the feedback result;
the outbound operation module is used for importing the initial data into a preset outbound port to execute outbound operation, obtaining response results of the outbound operation and recording response time corresponding to all the response results in a preset recording library;
the target data acquisition module is used for determining the initial data responding to the outbound operation as target data according to the response result;
the acquisition module is used for acquiring the calling time corresponding to the target data calling automatic circulation interface and the response time responding to the outbound operation from a preset record library;
and the judging module is used for selecting the target data of which the calling time and the response time reach preset conditions as qualified data and judging the test result of the automatic circulation test based on the qualified data.
A computer device comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the automatic circulation test method based on the short message and the outbound when executing the computer program.
A computer-readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of the above automatic circulation test method based on sms and outbound.
According to the automatic circulation test method based on the short message and the outbound and the related equipment thereof, the detected test data is called by the automatic circulation interface, the test data which successfully calls the automatic circulation interface is determined as the initial data according to the feedback result obtained by the calling, the outbound operation is executed on the initial data, the initial data which responds to the outbound operation is determined as the target data according to the response result obtained by the outbound operation, the qualified data is determined according to the calling time and the response time corresponding to the target data, and finally the test result of the automatic circulation test is judged according to the qualified data. Initial data are screened according to the calling condition of the automatic circulation interface, invalid data which cannot be successfully called can be effectively eliminated, redundant subsequent calculation of the invalid data is avoided, and subsequent testing efficiency is improved; then, target data are screened out according to the response result, qualified data are extracted from the target data based on preset conditions, and due to the fact that the data are screened layer by layer under different limiting conditions, the accuracy of obtaining the qualified data can be guaranteed; and finally, judging the test result of the automatic circulation test according to the qualified data, and realizing a complete test flow for automatically circulating the number failed in sending the short message to an outbound platform for outbound under the framework of the automatic test, thereby avoiding manual intervention and further improving the efficiency and the accuracy of the circulation test process.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of an automatic circulation test method based on short messages and outbound calls according to an embodiment of the present invention;
fig. 2 is a flowchart of importing test data into a target database in an automatic circulation test method based on short messages and outbound calls according to an embodiment of the present invention;
fig. 3 is a flowchart of step S3 in the automatic circulation test method based on short message and outbound provided in the embodiment of the present invention;
fig. 4 is a flowchart of step S32 in the automatic circulation test method based on short message and outbound provided in the embodiment of the present invention;
fig. 5 is a flowchart of step S6 in the automatic circulation test method based on short message and outbound provided in the embodiment of the present invention;
fig. 6 is a schematic diagram of an automatic circulation test device based on short messages and outbound calls according to an embodiment of the present invention;
fig. 7 is a block diagram of a basic mechanism of a computer device according to an embodiment of the present invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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.
The automatic circulation test method based on the short message and the outbound call is applied to the server side, and the server side can be specifically realized by an independent server or a server cluster consisting of a plurality of servers. In an embodiment, as shown in fig. 1, an automatic circulation test method based on short messages and outbound calls is provided, which includes the following steps:
s1: in the process of automatic circulation testing, if testing data exist in a target database, the testing data are imported into a preset circulation port to carry out calling processing on an automatic circulation interface, a feedback result after the calling processing is obtained, and calling time corresponding to all calling processing is recorded in a preset recording library.
In the embodiment of the invention, the automatic circulation test is used for testing whether the number with the short message sending failure can be normally circulated to the outbound platform for outbound operation under the condition that the short message sending failure of the short message platform.
Specifically, in the process of automatic circulation testing based on an automatic testing framework, if test data are detected to exist in a target database of a current testing link, the test data are imported into a preset circulation port to perform calling processing of an automatic circulation interface, and after the calling processing is completed, a feedback result is obtained from a preset log table, and calling time spent in the calling processing is saved in a preset recording library.
The target database refers to a database which is specially used for storing test data.
The preset flow port refers to a processing port dedicated to executing call processing.
The preset log table is a data table which is specially used for storing test data and obtaining feedback results after calling, wherein the results comprise success and failure.
The preset record library is a database which is specially used for recording the calling time spent by each test data when the calling processing of the automatic circulation interface is carried out and the response time spent by each initial data when the calling operation is carried out.
It should be noted that the test data includes real number data and virtual number data, and each test data has its corresponding task ID in the automatic circulation test process, and the task ID can help the user to query the corresponding test data and query the corresponding situation of the test data corresponding to the task ID in the test process, for example, the specific situation of test failure occurs.
S2: and determining the test data corresponding to the successfully called automatic circulation interface as initial data according to the feedback result.
Specifically, the feedback result in step S1 is identified, and when the feedback result is successful, it indicates that the automatic flow conversion interface is successfully called, and the test data corresponding to the feedback result is determined as the initial data, that is, the test data corresponding to the automatic flow conversion interface that is successfully called is determined as the initial data.
It should be noted that, when the feedback result is failure, it indicates that the automatic flow transfer interface call fails.
S3: and importing the initial data into a preset outbound port to execute outbound operation, obtaining a response result of the outbound operation, and recording response time corresponding to all the response results in a preset record library.
In the embodiment of the present invention, the initial data obtained in step S2 is imported to a preset outbound port to execute an outbound operation, when the preset outbound port detects the initial data, the initial data is used to perform an outbound operation, and after the outbound operation is executed, a response result of the outbound operation is obtained, and the response time spent when the initial data performs the outbound operation is stored in a preset record base.
The preset outbound port is a processing port specially used for outbound operation on initial data.
The response result refers to the case of the outbound response when the initial data is subjected to the outbound operation, and may specifically refer to whether the outbound operation is responded, the recording status, and the like.
S4: and determining initial data responding to the outbound operation as target data according to the response result.
Specifically, by identifying the response result, if the response result is identified as a response outbound operation, the initial data corresponding to the response result is determined as the target data.
If the response result is identified as the non-response outbound operation, no processing is performed.
S5: and acquiring the calling time corresponding to the target data calling automatic circulation interface and the response time responding to the outbound operation from a preset record library.
In the embodiment of the invention, the preset record library records the call time corresponding to the call processing of all the test data in the automatic circulation interface and records the response time corresponding to the response result obtained when all the initial data execute the outbound operation; the initial data is obtained based on the test data, and the target data is obtained based on the initial data, so that the target data is compared with the test data in the preset recording library, the target data is compared with the initial data in the preset recording library, and the call time corresponding to the test data which is the same as the target data and the response time corresponding to the initial data which is the same as the target data are extracted.
S6: and selecting target data with calling time and response time reaching preset conditions as qualified data, and judging a test result of the automatic circulation test based on the qualified data.
In the embodiment of the present invention, the preset condition refers to a condition set according to an actual requirement of a user, and specifically, the preset condition may be a condition in which both the call time and the response time are less than or equal to a time set by the user. The test result refers to that the test reaches the standard or the test does not reach the standard.
Specifically, if the preset condition is that the calling time and the response time are both less than or equal to the time set by the user, the calling time and the response time are respectively compared with the time set by the user, if the calling time and the response time are both less than or equal to the time set by the user, the calling time and the response time reach the preset condition, target data corresponding to the calling time and the response time are determined to be qualified data, finally, the comprehensive quantity of all qualified data in the automatic circulation test process is obtained, when the comprehensive quantity is greater than or equal to the user set value, the test result is up to standard, and when the comprehensive quantity is less than the user set value, the test result is not up to standard.
In this embodiment, the detected test data is called by the automatic flow interface, the test data that successfully calls the automatic flow interface is determined as initial data according to a feedback result obtained by the calling, an outbound operation is performed on the initial data, the initial data that responds to the outbound operation is determined as target data according to a response result obtained by the outbound operation, qualified data is determined according to calling time and response time corresponding to the target data, and finally, the test result of the automatic flow test is determined according to the qualified data. Initial data are screened according to the calling condition of the automatic circulation interface, invalid data which cannot be successfully called can be effectively eliminated, redundant subsequent calculation of the invalid data is avoided, and subsequent testing efficiency is improved; then, target data are screened out according to the response result, qualified data are extracted from the target data based on preset conditions, and due to the fact that the data are screened layer by layer under different limiting conditions, the accuracy of obtaining the qualified data can be guaranteed; and finally, judging the test result of the automatic circulation test according to the qualified data, and realizing a complete test flow for automatically circulating the number failed in sending the short message to an outbound platform for outbound under the framework of the automatic test, thereby avoiding manual intervention and further improving the efficiency and the accuracy of the circulation test process.
In an embodiment, as shown in fig. 2, before step S1, the method for testing automatic circulation based on sms and outbound further includes the following steps:
s70: and detecting the sending state of the virtual number data in the preset database, wherein the sending state comprises successful sending and failed sending.
Specifically, the sending state in a preset database is detected, wherein the preset database is a database specially used for storing virtual number data.
The virtual number data includes a task ID, a virtual number, a transmission status, and the like.
S71: and if the transmission state is detected to be successful, updating the transmission state of the virtual number data with the transmission state being successful to be failed.
Specifically, when it is detected that the transmission status of the virtual number data is transmission success, the transmission status of the virtual number data is updated to transmission failure.
It should be noted that the preset database includes virtual number data whose transmission status is transmission success or transmission failure, and the transmission status of the virtual number data whose transmission status is transmission success is updated to transmission failure, so that the data volume of subsequent tests using the virtual number data whose transmission failure is performed can be increased, and the accuracy of the tests can be improved.
S72: and acquiring the real number data with the sending state of failure from the real number database.
In the embodiment of the invention, the real number database is a database which is specially used for storing the real number and the corresponding sending state of the real number, wherein the sending state comprises the sending success and the sending failure.
Specifically, by identifying the sending state in the real number database, when the sending state is identified as sending failure, the real number data corresponding to the sending state is extracted.
S73: and determining all the virtual number data and the real number data which correspond to the sending failure in the sending state as test data, and importing the test data into a target database.
Specifically, both the virtual number data with the sending state of failure and the real number data with the sending state of failure are determined as test data, and all the test data are imported into the target database for the subsequent automatic circulation test by using the test data in the target database.
In this embodiment, the sending state of the virtual number data is detected, the sending state of the successful sending is updated to the sending failure, and the real number data and the virtual number data of which the sending state is the sending failure are both used as test data and are imported into the target database together. By updating the sending state of the virtual number data with the sending state being successful to the sending failure, the data volume of the subsequent test by using the virtual number data with the sending failure can be improved, and the test accuracy is further improved; the method combines the real number data and the virtual number data, can diversify the test data, presents different data types, and avoids instability of a single data type in the automatic circulation test process, thereby improving the accuracy of subsequent automatic circulation tests.
In an embodiment, the test data includes number identification information, as shown in fig. 3, in step S3, importing the initial data to a preset outbound port to perform an outbound operation, obtaining a response result of the outbound operation, and recording response times corresponding to all the response results in a preset record library, including the following steps:
s31: and importing the initial data into a preset outbound port to execute outbound operation, and identifying number identification information corresponding to the initial data to obtain an identification result, wherein the identification result comprises a real number and a virtual number.
In the embodiment of the invention, the initial data is imported into the preset outbound port, when the preset outbound port detects the initial data, the outbound operation is executed on the initial data, and the number identification information corresponding to the initial data is identified to obtain the identification result.
S32: and if the recognition result is a real number, acquiring the reaction condition of the preset test machine as a response result.
In the embodiment of the invention, when the real number executes the outbound operation, the call signal corresponding to the outbound operation is transmitted to the preset test machine, if the preset test machine detects the call signal, the preset test machine feeds back the corresponding response signal, and if the preset test machine does not detect the call signal, the preset test machine does not feed back the corresponding response signal.
Specifically, if the identification result is detected to be a real number, the reaction condition of the preset test machine is obtained, that is, whether the preset test machine feeds back a corresponding response signal is obtained as a response result. The preset testing machine is a testing machine specially used for responding to a real number to perform an outbound operation, and the preset testing machine includes a response time corresponding to each response signal, that is, there is a corresponding response time in response to a real number of the preset testing machine, and it should be noted that the testing machine may specifically be a communication device such as a telephone.
S33: and if the identification result is the virtual number, acquiring the record state in the preset outbound record table as a response result.
In the embodiment of the invention, when the virtual number executes the outbound operation, the preset test machine can only receive the calling signal of the real number and cannot be used for verifying the outbound operation of the virtual number, so that the virtual signal of the outbound operation executed by the virtual number is detected by a preset virtual outbound mechanism.
If the virtual outbound mechanism detects a virtual signal and indicates that the virtual number successfully flows to the preset outbound port to execute the outbound operation, the virtual outbound mechanism records the record state of the virtual number corresponding to the virtual signal in a preset outbound record table as verified, and if the virtual outbound mechanism does not detect the virtual signal and indicates that the virtual number unsuccessfully flows to the preset outbound port to execute the outbound operation, the virtual outbound mechanism records the record state of the virtual number corresponding to the virtual signal in the preset outbound record table as unverified.
Specifically, if the identification result is detected to be a virtual number, the virtual number is compared with the virtual number in the preset outbound record table, the record state of the corresponding virtual number is inquired from the preset outbound record table, and the record state is used as a response result. The preset outbound record table is a data table specially used for recording the virtual number, the record state corresponding to the virtual number and the response time corresponding to the record state.
S34: and acquiring the response time of each response result, and storing all the response times into a preset record library.
Specifically, according to the response results obtained in steps S32 and S33, since the response result is the reaction condition of the preset test machine or the record state in the preset outbound record table, the corresponding response time exists in the reaction condition of the preset test machine, and the corresponding response time exists in the record state in the preset outbound record table, each response result is directly obtained, and all the response times are stored in the preset record library.
In this embodiment, an outbound operation is performed on the initial data, the number identification information corresponding to the initial data is identified, if the identification result is a real number, a reaction condition of the preset test machine is obtained as a response result, and if the identification result is a virtual number, a recording state is obtained as a response result. According to different types of data, different feedback conditions are obtained as response results, the relevance among different data can be increased, and the accuracy of determining target data according to the response results subsequently is improved.
In an embodiment, as shown in fig. 4, in step S32, if the recognition result is a real number, the obtaining the reaction condition of the preset test machine as the response result includes the following steps:
s321: and if the recognition result is a real number, sending a preset test machine and a callback address to the monitoring end through the target script.
In the embodiment of the invention, when the identification result is a real number, the number corresponding to the automatic circulation processing is indicated as the real number, and the target script is used for sending the preset test machine and the callback address to the monitoring end.
The target script is a processing script which is set according to actual requirements of a user and used for sending a preset test machine and a callback address to the monitoring end. And the target script can specifically realize the following functions: 1. registering a calling party and recording a calling party callback address; 2. inquiring incoming call records of a preset test machine; 3. and informing the caller of the incoming call result.
The callback address is an interface for test implementation, the interface is used for implementing the function of recording real number outbound records, and the dialed records are stored in files in a peer directory of a target script and can be files in txt or csv format and the like. These records are the actual dialing records as the actual results at the time of test validation.
S322: and acquiring a monitoring result fed back by the preset testing machine through the callback address, and taking the monitoring result as a response result.
In the embodiment of the invention, after the task of the automatic circulation test is finished, the target script inquires the dialing record file in the callback address in the same-level directory, if the dialing record file cannot be found, the preset test machine does not detect the calling signal, namely the preset test machine does not respond to the outbound operation of the real number, so that the target script is not called back, the callback address does not have the dialing record file, namely the monitoring result is verification failure. If the dialing record file can be found, indicating that the preset test machine responds to the outbound operation of the real number, analyzing the record of the dialing record file, matching the number in the record with the real number for executing the outbound operation, and if the real number is consistent with the number of the preset test machine and the number received by the preset test machine is consistent with the real number, indicating that the preset test machine responds to the outbound operation of the real number, namely, the monitoring result is successful.
If the monitoring result is that the verification is successful, indicating that the preset test machine responds to the outbound operation; and if the monitoring result is that the verification fails, indicating that the preset test machine does not respond to the outbound operation.
Specifically, a monitoring result fed back by the preset testing machine through the callback address is directly obtained, and the monitoring result is used as a response result.
It should be noted that, a monitoring script exists in the preset test machine, and after the automatic circulation test starts, the monitoring script monitors whether the preset test machine receives an outbound condition. And the monitoring script calls the callback address to transmit back the information as long as the monitoring script monitors whether the preset test machine receives the outbound call condition, wherein the transmitted back information comprises the mobile phone mac, the incoming call number and the incoming call time.
In this embodiment, if the recognition result is a real number, the preset test machine and the callback address are sent to the monitoring end through the target script, and the monitoring result fed back by the preset test machine through the callback address is obtained as a response result. By appointing the preset test machine and the callback address, the actual outbound condition of the real number can be acquired according to the preset test machine, and the callback address is acquired, so that the condition of inaccurate receiving of the monitoring result can be avoided, and the accuracy of automatic circulation test by using the real number is further improved.
In an embodiment, as shown in fig. 5, in the step S6, selecting target data whose calling time and response time both reach the preset condition as qualified data, and determining the test result of the automatic circulation test based on the qualified data includes the following steps:
s61: and comparing the calling time with preset calling time, and comparing the response time with preset response time.
In the embodiment of the present invention, according to the calling time and the response time corresponding to the target data obtained in step S5, the calling time is directly compared with the preset calling time, and the response time is compared with the preset response time.
The preset calling time is time for judging whether the calling time is qualified, and may specifically be 1 second, or may be set according to actual needs of a user, and is not limited herein.
The preset response time is the time for judging whether the response time is qualified or not according to the actual requirement of the user.
S62: and if the calling time is less than or equal to the preset calling time and the response time is less than or equal to the preset response time, determining the target data as qualified data.
In this embodiment, according to the comparison method in step S61, if the calling time is less than or equal to the preset calling time and the response time is less than or equal to the preset response time, the target data corresponding to the calling time and the response time is determined as qualified data.
S63: and acquiring the comprehensive quantity of qualified data from a preset statistical library, and comparing the comprehensive quantity with a preset threshold value.
In the embodiment of the present invention, the integrated quantity refers to the sum of the quantities of all qualified data. The preset statistical library is a database used for storing qualified data obtained by testing by using the test data in the automatic circulation test process and the comprehensive quantity corresponding to all the qualified data.
Specifically, the corresponding qualified data and the comprehensive quantity are directly obtained from a preset statistical library, and the comprehensive quantity is compared with a preset threshold value. The preset threshold is a numerical value set according to the actual demand of the user, and may specifically be 500, or may be set according to the actual demand of the user, which is not limited herein.
S64: if the comprehensive quantity is larger than or equal to the preset threshold value, the test result is that the test reaches the standard.
Specifically, according to the comparison method in step S63, if the integrated quantity is greater than or equal to the preset threshold, it indicates that the test result of the automatic circulation test is that the test is up to standard, that is, the frame corresponding to the automatic circulation test meets the user requirement.
S65: if the comprehensive quantity is smaller than the preset threshold value, the test result is that the test does not reach the standard.
Specifically, according to the comparison method in step S63, if the integrated quantity is smaller than the preset threshold, it indicates that the test result of the automatic circulation test is that the test does not reach the standard, that is, the frame corresponding to the automatic circulation test fails to meet the user requirement.
In this embodiment, if the calling time is less than or equal to the preset calling time and the response time is less than or equal to the preset response time, the target data corresponding to the calling time and the response time is determined as qualified data, and the comprehensive number of the qualified data is obtained, if the comprehensive number is greater than or equal to a preset threshold, the test is indicated to reach the standard, and if the comprehensive number is less than the preset threshold, the test is indicated to not reach the standard. The method for screening qualified data based on the calling time and the response time can effectively screen qualified data meeting the requirements set by a user, guarantees the validity of the qualified data, compares the comprehensive quantity of the qualified data with a preset threshold value, and can quickly and accurately judge whether a frame corresponding to an automatic circulation test reaches the standard, so that the complete test flow of automatically circulating the number failed in sending the short message to an outbound platform for outbound call is realized, manual intervention is avoided, and the efficiency and the accuracy of the circulation test process are further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an automatic circulation test device based on short messages and outbound is provided, and the automatic circulation test device based on short messages and outbound corresponds to the automatic circulation test method based on short messages and outbound in the embodiment one to one. As shown in fig. 6, the automatic circulation test device based on short message and outbound comprises a detection module 61, an initial data determination module 62, an outbound operation module 63, a target data acquisition module 64, an acquisition module 65 and a judgment module 66. The functional modules are explained in detail as follows:
the detection module 61 is configured to, in the process of the automatic transfer test, if it is detected that test data exists in the target database, import the test data into a preset transfer port to perform transfer processing of an automatic transfer interface, obtain a feedback result after the transfer processing, and record transfer time corresponding to all the transfer processing in a preset recording library;
the initial data determining module 62 is configured to determine, according to the feedback result, test data corresponding to the automatic circulation interface that is successfully called as initial data;
the outbound operation module 63 is configured to import the initial data to a preset outbound port to execute an outbound operation, obtain a response result of the outbound operation, and record response time corresponding to all the response results in a preset record library;
a target data obtaining module 64, configured to determine, according to the response result, initial data that responds to the outbound operation as target data;
an obtaining module 65, configured to obtain, from a preset record library, a call time corresponding to a call of the target data to the automatic circulation interface and a response time for responding to an outbound operation;
the judging module 66 is configured to select target data with calling time and response time meeting preset conditions as qualified data, and judge a test result of the automatic circulation test based on the qualified data.
Further, the automatic circulation test device based on the short message and the outbound call further comprises:
the system comprises a sending state detection module, a sending state detection module and a sending state detection module, wherein the sending state detection module is used for detecting the sending state of the virtual number data in a preset database, and the sending state comprises sending success and sending failure;
the updating module is used for updating the sending state of the virtual number data with the sending state of successful sending to sending failure if the sending state is detected to be successful sending;
the real number data acquisition module is used for acquiring real number data with a sending state of sending failure from a real number database;
and the determining module is used for determining all the virtual number data and the real number data which correspond to the sending failure in the sending state as the test data and importing the test data into the target database.
Further, the outbound manipulation module 63 includes:
the import submodule is used for importing the initial data into a preset outbound port to execute outbound operation and identifying number identification information corresponding to the initial data to obtain an identification result, wherein the identification result comprises a real number and a virtual number;
the first identification submodule is used for acquiring the reaction condition of the preset test machine as a response result if the identification result is a real number;
the second identification submodule is used for acquiring the record state in the preset outbound record table as a response result if the identification result is the virtual number;
and the storage submodule is used for acquiring the response time of each response result and storing all the response times into a preset record library.
Further, the first identification submodule includes:
the generating unit is used for sending a preset test machine and a callback address to the monitoring end through the target script if the identification result is a real number;
and the response result determining unit is used for acquiring the monitoring result fed back by the preset testing machine through the callback address and taking the monitoring result as a response result.
Further, the determining module 66 includes:
the comparison submodule is used for comparing the calling time with the preset calling time and comparing the response time with the preset response time;
the qualified data determining submodule is used for determining the target data as qualified data if the calling time is less than or equal to the preset calling time and the response time is less than or equal to the preset response time;
the comprehensive quantity obtaining sub-module is used for obtaining the comprehensive quantity of qualified data from a preset statistical library and comparing the comprehensive quantity with a preset threshold value;
the first result sub-module is used for indicating that the test result is up to standard if the comprehensive quantity is more than or equal to a preset threshold;
and the second result submodule is used for indicating that the test result is not up to the standard if the comprehensive quantity is less than the preset threshold.
In the embodiment, the initial data is screened according to the calling condition of the automatic circulation interface, so that invalid data which cannot successfully call the automatic circulation interface can be effectively eliminated, redundant subsequent calculation of the invalid data is avoided, and the subsequent testing efficiency is improved; then, target data are screened out according to the response result, qualified data are extracted from the target data based on preset conditions, and due to the fact that the data are screened layer by layer under different limiting conditions, the accuracy of obtaining the qualified data can be guaranteed; and finally, judging the test result of the automatic circulation test according to the qualified data, and realizing a complete test flow for automatically circulating the number failed in sending the short message to an outbound platform for outbound under the framework of the automatic test, thereby avoiding manual intervention and further improving the efficiency and the accuracy of the circulation test process.
Some embodiments of the present application disclose a computer device. Referring specifically to fig. 7, a basic structure block diagram of a computer device 90 according to an embodiment of the present application is shown.
As illustrated in fig. 7, the computer device 90 includes a memory 91, a processor 92, and a network interface 93 communicatively connected to each other through a system bus. It is noted that only a computer device 90 having components 91-93 is shown in FIG. 7, but it is understood that not all of the illustrated components are required to be implemented, and that more or fewer components may alternatively be implemented. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 91 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 91 may be an internal storage unit of the computer device 90, such as a hard disk or a memory of the computer device 90. In other embodiments, the memory 91 may also be an external storage device of the computer device 90, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, provided on the computer device 90. Of course, the memory 91 may also include both internal and external memory units of the computer device 90. In this embodiment, the memory 91 is generally used for storing an operating system and various application software installed in the computer device 90, such as program codes of the automatic circulation test method based on short messages and outgoing calls. Further, the memory 91 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 92 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 92 is typically used to control the overall operation of the computer device 90. In this embodiment, the processor 92 is configured to run a program code stored in the memory 91 or process data, for example, run a program code of the automatic circulation test method based on the short message and the outbound call.
The network interface 93 may include a wireless network interface or a wired network interface, and the network interface 93 is generally used to establish a communication connection between the computer device 90 and other electronic devices.
In the embodiment, the initial data is screened according to the calling condition of the automatic circulation interface, so that invalid data which cannot successfully call the automatic circulation interface can be effectively eliminated, redundant subsequent calculation of the invalid data is avoided, and the subsequent testing efficiency is improved; then, target data are screened out according to the response result, qualified data are extracted from the target data based on preset conditions, and due to the fact that the data are screened layer by layer under different limiting conditions, the accuracy of obtaining the qualified data can be guaranteed; and finally, judging the test result of the automatic circulation test according to the qualified data, and realizing a complete test flow for automatically circulating the number failed in sending the short message to an outbound platform for outbound under the framework of the automatic test, thereby avoiding manual intervention and further improving the efficiency and the accuracy of the circulation test process.
The present application further provides another embodiment, that is, a computer-readable storage medium is provided, where a test data information entry program is stored in the computer-readable storage medium, and the test data information entry program can be executed by at least one processor, so that the at least one processor executes any one of the steps of the above automatic circulation test method based on short messages and outgoing calls.
In the embodiment, the initial data is screened according to the calling condition of the automatic circulation interface, so that invalid data which cannot successfully call the automatic circulation interface can be effectively eliminated, redundant subsequent calculation of the invalid data is avoided, and the subsequent testing efficiency is improved; then, target data are screened out according to the response result, qualified data are extracted from the target data based on preset conditions, and due to the fact that the data are screened layer by layer under different limiting conditions, the accuracy of obtaining the qualified data can be guaranteed; and finally, judging the test result of the automatic circulation test according to the qualified data, and realizing a complete test flow for automatically circulating the number failed in sending the short message to an outbound platform for outbound under the framework of the automatic test, thereby avoiding manual intervention and further improving the efficiency and the accuracy of the circulation test process.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a computer device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
Finally, it should be noted that the above-mentioned embodiments illustrate only some of the embodiments of the present application, and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. An automatic circulation test method based on short messages and outbound is characterized in that the automatic circulation test method based on short messages and outbound comprises the following steps:
in the process of automatic circulation testing, if testing data exist in a target database, importing the testing data into a preset circulation port to perform calling processing of an automatic circulation interface, obtaining a feedback result after the calling processing, and recording calling time corresponding to all calling processing in a preset recording library;
according to the feedback result, determining the test data corresponding to the automatic circulation interface which is successfully called as initial data;
importing the initial data into a preset outbound port to execute outbound operation to obtain a response result of the outbound operation, and recording response time corresponding to all the response results in a preset record library;
determining the initial data responding to the outbound operation as target data according to the response result;
acquiring the calling time corresponding to the target data calling automatic circulation interface and the response time responding to the outbound operation from a preset record library;
and selecting the target data of which the calling time and the response time reach preset conditions as qualified data, and judging the test result of the automatic circulation test based on the qualified data.
2. The automatic circulation test method based on short messages and outbound as claimed in claim 1, wherein in the process of automatic circulation test, if it is detected that the target database has test data, the test data is imported into a preset circulation port to perform the calling process of the automatic circulation interface, so as to obtain the feedback result after the calling process, and before the step of recording all calling time corresponding to the calling process in a preset recording library, the automatic circulation test method based on short messages and outbound further comprises:
detecting a sending state of virtual number data in a preset database, wherein the sending state comprises sending success and sending failure;
if the sending state is detected to be the successful sending, updating the sending state of the virtual number data with the sending state being the successful sending into the sending failure;
acquiring real number data with the sending state being the sending failure from a real number database;
and determining the virtual number data and the real number data corresponding to the transmission failure in all the transmission states as the test data, and importing the test data into the target database.
3. The automatic circulation test method based on short message and outbound as claimed in claim 1, wherein the test data includes number identification information, the step of importing the initial data to a preset outbound port to execute the outbound operation to obtain the response result of the outbound operation, and recording the response time corresponding to all the response results in a preset record library comprises:
importing the initial data into a preset outbound port to execute outbound operation, and identifying the number identification information corresponding to the initial data to obtain an identification result, wherein the identification result comprises a real number and a virtual number;
if the identification result is the real number, acquiring the reaction condition of the preset test machine as the response result;
if the identification result is the virtual number, acquiring a record state in a preset outbound record table as the response result;
and acquiring the response time of each response result, and storing all the response times into a preset record library.
4. The automatic circulation test method based on short messages and outbound as claimed in claim 3, wherein the step of obtaining the reaction condition of the preset test machine as the response result if the recognition result is the real number comprises:
if the identification result is the real number, sending a preset test machine and a callback address to a monitoring end through a target script;
and acquiring a monitoring result fed back by the preset testing machine through the callback address, and taking the monitoring result as the response result.
5. The automatic circulation test method based on short messages and outbound as claimed in claim 1, wherein the step of selecting the target data of which the calling time and the response time both reach preset conditions as qualified data and judging the test result of the automatic circulation test based on the qualified data comprises:
comparing the calling time with preset calling time, and comparing the response time with preset response time;
if the calling time is less than or equal to a preset calling time and the response time is less than or equal to a preset response time, determining the target data as qualified data;
acquiring the comprehensive quantity of the qualified data from a preset statistical library, and comparing the comprehensive quantity with a preset threshold value;
if the comprehensive quantity is greater than or equal to a preset threshold value, the test result is that the test reaches the standard;
and if the comprehensive quantity is smaller than a preset threshold value, the test result is that the test does not reach the standard.
6. An automatic circulation testing device based on short messages and outbound calls is characterized in that the automatic circulation testing device based on short messages and outbound calls comprises:
the detection module is used for guiding the test data into a preset circulation port to perform calling processing on an automatic circulation interface if the test data is detected to exist in a target database in the automatic circulation test process, obtaining a feedback result after the calling processing, and recording calling time corresponding to all the calling processing in a preset recording library;
the initial data determining module is used for determining the test data corresponding to the automatic circulation interface which is successfully called as the initial data according to the feedback result;
the outbound operation module is used for importing the initial data into a preset outbound port to execute outbound operation, obtaining response results of the outbound operation and recording response time corresponding to all the response results in a preset recording library;
the target data acquisition module is used for determining the initial data responding to the outbound operation as target data according to the response result;
the acquisition module is used for acquiring the calling time corresponding to the target data calling automatic circulation interface and the response time responding to the outbound operation from a preset record library;
and the judging module is used for selecting the target data of which the calling time and the response time reach preset conditions as qualified data and judging the test result of the automatic circulation test based on the qualified data.
7. The automatic circulation testing device based on short message and outbound call of claim 8, wherein the outbound call operation module comprises:
the import submodule is used for importing the initial data into a preset outbound port to execute outbound operation, and identifying the number identification information corresponding to the initial data to obtain an identification result, wherein the identification result comprises a real number and a virtual number;
the first identification submodule is used for acquiring the reaction condition of the preset test machine as the response result if the identification result is the real number;
the second identification submodule is used for acquiring a record state in a preset outbound record table as the response result if the identification result is the virtual number;
and the storage submodule is used for acquiring the response time of each response result and storing all the response times into a preset record library.
8. The automatic circulation testing device based on short messages and outbound call of claim 7, wherein the first identification submodule comprises:
the generating unit is used for sending a preset test machine and a callback address to the monitoring end through the target script if the identification result is the real number;
and the response result determining unit is used for acquiring the monitoring result fed back by the preset testing machine through the callback address and taking the monitoring result as the response result.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automatic circulation test method based on sms and outbound as claimed in any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the automatic circulation test method based on sms and outbound as claimed in any one of claims 1 to 5.
CN202010100626.5A 2020-02-18 2020-02-18 Automatic transfer test method based on short message and outbound call and related equipment thereof Pending CN111405124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010100626.5A CN111405124A (en) 2020-02-18 2020-02-18 Automatic transfer test method based on short message and outbound call and related equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010100626.5A CN111405124A (en) 2020-02-18 2020-02-18 Automatic transfer test method based on short message and outbound call and related equipment thereof

Publications (1)

Publication Number Publication Date
CN111405124A true CN111405124A (en) 2020-07-10

Family

ID=71430327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010100626.5A Pending CN111405124A (en) 2020-02-18 2020-02-18 Automatic transfer test method based on short message and outbound call and related equipment thereof

Country Status (1)

Country Link
CN (1) CN111405124A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940472A (en) * 1996-12-16 1999-08-17 Mci Communications Corporation Intelligent services network test system
WO2011006342A1 (en) * 2009-07-16 2011-01-20 中兴通讯股份有限公司 Call queuing system and method and preoccupant-pattern outbound call sytem and method
CN110248030A (en) * 2019-05-22 2019-09-17 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of short message compensation mechanism
CN110753161A (en) * 2019-09-24 2020-02-04 苏宁云计算有限公司 Voice outbound scheduling method, device, computer equipment and storage medium
CN110784602A (en) * 2019-09-10 2020-02-11 中国平安财产保险股份有限公司 Soft telephone communication method, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5940472A (en) * 1996-12-16 1999-08-17 Mci Communications Corporation Intelligent services network test system
WO2011006342A1 (en) * 2009-07-16 2011-01-20 中兴通讯股份有限公司 Call queuing system and method and preoccupant-pattern outbound call sytem and method
CN110248030A (en) * 2019-05-22 2019-09-17 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of short message compensation mechanism
CN110784602A (en) * 2019-09-10 2020-02-11 中国平安财产保险股份有限公司 Soft telephone communication method, device, terminal and storage medium
CN110753161A (en) * 2019-09-24 2020-02-04 苏宁云计算有限公司 Voice outbound scheduling method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUENDERMANN D.等: "OPTIMIZE THE OBVIOUS: AUTOMATIC CALL FLOW GENERATION", 《 2010 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS》, 28 June 2010 (2010-06-28) *
姜述瀛: "面向中小企业的轻量级CRM呼叫中心***设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 March 2016 (2016-03-15) *

Similar Documents

Publication Publication Date Title
CN111290742A (en) Parameter verification method and device, electronic equipment and readable storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN110737548B (en) Data request method and server
CN109656791B (en) gPC performance test method and device based on Jmeter
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN112686542A (en) Service processing method and device, electronic equipment and storage medium
CN112732463A (en) Message subscription method and device based on big data
CN110399131B (en) Method, device and computer equipment for improving stability of application program
CN111405124A (en) Automatic transfer test method based on short message and outbound call and related equipment thereof
CN115037653B (en) Service flow monitoring method, device, electronic equipment and storage medium
CN108377357B (en) Visual platform call method and device
CN115276844A (en) Communication module testing method and device and electronic equipment
CN114386047A (en) Application vulnerability detection method and device, electronic equipment and storage medium
CN113239396A (en) Data access system, method, device, computer equipment and medium
CN113282516A (en) Method and device for processing test case result
CN111104439B (en) Stored data comparison method, stored data comparison device and storage medium
CN113141366B (en) Message submitting method and device, storage medium and electronic equipment
CN116151530A (en) Data processing method and device, data processing system and service system
CN115237430A (en) Method and device for creating cluster, storage medium and electronic equipment
CN111752590A (en) Operation and maintenance management method and system
CN114329383A (en) Login-free access method, device, equipment and medium of third-party application system
CN117971699A (en) White screen detection method, device, equipment and storage medium

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