CN110177378A - A kind of automated testing method and relevant device - Google Patents

A kind of automated testing method and relevant device Download PDF

Info

Publication number
CN110177378A
CN110177378A CN201910428125.7A CN201910428125A CN110177378A CN 110177378 A CN110177378 A CN 110177378A CN 201910428125 A CN201910428125 A CN 201910428125A CN 110177378 A CN110177378 A CN 110177378A
Authority
CN
China
Prior art keywords
phone number
code
test
verification code
platform
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
CN201910428125.7A
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
Original Assignee
OneConnect Smart Technology Co 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910428125.7A priority Critical patent/CN110177378A/en
Publication of CN110177378A publication Critical patent/CN110177378A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic
    • 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)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Automated test tool of the embodiment of the present invention suitable for testing, disclose a kind of automated testing method and relevant device, which comprises test platform generates instruction to the short message verification code that test object server sends the first preset quantity within the scope of the first preset duration;The test platform sends the identifying code acquisition request for the phone number in the target mobile phones set of numbers to the SMS platform;The test platform determines the quantity of target random verification code in the random verification code received according to the random verification code and the corresponding phone number of the random verification code of the SMS platform transmission received;The test platform determines the test result for the anti-pressure ability that the identifying code for the test object server generates according to the quantity and first preset quantity of the target random verification code.The test of the anti-pressure ability generated for the identifying code of test object server may be implemented through the invention.

Description

A kind of automated testing method and relevant device
Technical field
This application involves computer field more particularly to a kind of automated testing methods and relevant device.
Background technique
Currently, during the function of payment, login or registration of many softwares or website etc. etc. realizes, malicious script in order to prevent Duration attempt, identifying code is usually increased in the realization of these functions and verifies this process.Short message verification code is wherein A kind of mode, for users, short message verification code ensure that the safety of payment account or logon account etc. to needle, for website Or it ensure that the quantity and quality of user for software etc..But in the development process of website or software etc., need to software or Website etc. is tested, and developer repairs the source code of software or website usually before automatic test at present Change, the source code for generating random verification code is revised as to generate the code of specified " universal code ", will be write in automatized script Enter " universal code ", i.e., will be " omnipotent automatically when going to the automatized script of input identifying code in automatic test course Code " inserts identifying code input frame as identifying code, and the identifying code for inputting software or website to automatized script verifies.? In some usage scenarios of software or website, it will usually have a large number of users while use the scene of identifying code function, software or net It stands and generates the anti-pressure ability of this identifying code of a large amount of short message verification code generation in a short time, to Guan Chong in these scenes It wants, and above-mentioned this test mode cannot achieve the test of the anti-pressure ability of the identifying code generation to software or website.
Summary of the invention
The application provides a kind of automated testing method and relevant device, is may be implemented through the invention for test object The test for the anti-pressure ability that the identifying code of server generates.
First aspect of the embodiment of the present invention provides a kind of automated testing method, comprising:
Test platform is tested within the scope of the first preset duration to the short message that test object server sends the first preset quantity It demonstrate,proves code and generates instruction, so that the test object server is tested at random for the phone number generation in target mobile phones set of numbers Code is demonstrate,proved, and the random verification code of generation and the corresponding phone number of the random verification code are sent to SMS platform, Mei Gesuo It states short message verification code and generates the different phone number for instructing and respectively carrying in the target mobile phones set of numbers;
The test platform is sent to the SMS platform for the phone number in the target mobile phones set of numbers Identifying code acquisition request, so that random verification code that the SMS platform sends the test object server and described random The corresponding phone number of identifying code is sent to the test platform;
The test platform is received according within the scope of the second preset duration after the transmission identifying code acquisition request The SMS platform send random verification code and the corresponding phone number of the random verification code, determine receive it is random The quantity of target random verification code in identifying code, wherein each target random verification code is for the target mobile phones number Unique random verification code of a phone number in code collection conjunction;
The test platform is determined and is directed to according to the quantity and first preset quantity of the target random verification code The test result for the anti-pressure ability that the identifying code of the test object server generates.
With reference to first aspect, in the first possible implementation, the test platform is tested at random according to the target The quantity and first preset quantity of code are demonstrate,proved, determines the resistance to compression energy that the identifying code for the test object server generates The test result of power includes:
The test platform is in the determining ratio with the quantity and first preset quantity of the target random verification code Not less than the first preset ratio, and in the case where meeting preset identifying code format convention with the target random verification code, The test result for determining the anti-pressure ability that the identifying code for the test object server generates is that test passes through.
The possible implementation of with reference to first aspect the first, in the second possible implementation, the method Further include:
The test for the anti-pressure ability that the test platform is generated in the identifying code determined for the test object server As a result it in the case where passing through for test, according to the target random verification code, determines be directed to the target random verification code respectively The input identifying code of corresponding phone number, wherein the set of the corresponding phone number composition of the target random verification code First mobile phone set of numbers of the consistent phone number composition of input identifying code and random verification code comprising the second preset quantity, And the input identifying code of third preset quantity forms the second mobile phone set of numbers with the inconsistent phone number of random verification code;
The test platform submits request to the first identifying code that the test object server sends the second preset quantity Request is submitted with the second identifying code of third preset quantity, so that the test object server is to the first phone number collection Corresponding identifying code verification result is verified and generated to the input identifying code of phone number in conjunction, and to second mobile phone Corresponding identifying code verification result is verified and generated to the input identifying code of phone number in set of numbers, wherein described first Identifying code submits request respectively to carry phone number and corresponding input identifying code different in the first mobile phone set of numbers, Second identifying code submits request respectively to carry phone number different in the second mobile phone set of numbers and corresponding defeated Enter identifying code;
The test platform according to the identifying code verification result for phone number in the first mobile phone set of numbers with And the identifying code verification result for phone number in the second mobile phone set of numbers, it determines and is directed to the test object service The test result of the identifying code verifying anti-pressure ability of device.
The possible implementation of second with reference to first aspect, in the third possible implementation, the method Further include:
The test platform is detecting the test object server for the random verification code of generation and described is testing at random When the corresponding phone number of card code is sent to SMS platform, triggering timing device is directed to the accidental validation code timing of the generation;
The test platform submits request to the first identifying code that the test object server sends the second preset quantity Include:
The test platform is corresponding to the first phone number in the third phone number set in the chronograph hand The duration of accidental validation code timing be greater than preset identifying code validity period, and in the case where being less than default first preset duration, The first mobile phone number verification code of first phone number and the corresponding input identifying code of first phone number will be carried Request is submitted to be sent to the test object server, so that test object server is according to the first mobile phone number verification code The receiving time for submitting request and the preset identifying code validity period are to the corresponding input identifying code of first phone number It is verified, and generates the identifying code verification result for being directed to first phone number, wherein the third phone number set For the subset of the first mobile phone set of numbers, the third phone number set includes the phone number of the 4th preset quantity, First phone number is any phone number in the third phone number set;
The method also includes:
Test platform identifying code verification result in each phone number for determining the third phone number set The case where being not less than the second preset ratio for the quantity of the phone number of identifying code failure and the ratio of the 4th preset quantity Under, determine that the test result of the identifying code time limit verifying anti-pressure ability for the test object is that test passes through.
With reference to first aspect, in the fourth possible implementation, the method also includes:
The platform digital certificate of the test platform is sent to the SMS platform by the test platform, so that described short Believe that platform carries out authentication to the test platform according to the platform digital certificate, and the case where authentication passes through Under, the SMS platform is after receiving the identifying code acquisition request that the test platform is sent by the test object The random verification code and the corresponding phone number of the random verification code that server is sent are sent to the test platform.
With reference to first aspect, in a fifth possible implementation, the test object server is flat to the short message The random verification code that the random verification code and the SMS platform that platform is sent are sent to the test platform is with short message text What this form was sent, include the random verification code and identifying code prompt information in the short message text;
The method also includes:
The test platform determines the number home area for each phone number that the SMS platform received is sent Corresponding category of language, and determine the corresponding accidental validation of each phone number that the SMS platform for carrying and receiving is sent The category of language for the identifying code prompt information that the short message text of code includes;
The test platform determines the second phone number quantity that the SMS platform received is sent, the second-hand The number home corresponding category of language in the area random verification code corresponding with carrying second phone number of machine number it is short The category of language of this identifying code prompt information for being included of message is consistent;
The test platform is sending the verifying in the quantity and the test platform for determining second phone number The ratio of the quantity of the phone number received within the scope of the second preset duration after code acquisition request is greater than third preset ratio In the case where, the test result for determining that the short message text for the test object server generates anti-pressure ability is that test is logical It crosses.
Second aspect of the embodiment of the present invention provides a kind of automated testing method, comprising:
SMS platform receives the random verification code and the corresponding mobile phone of the random verification code that test object server is sent Number, the random verification code are that the test object server is receiving the short of the first preset quantity of test platform transmission Believe the random verification code generated after identifying code generates instruction for the phone number in the target mobile phones set of numbers, Mei Gesuo It states short message verification code and generates the different phone number for instructing and respectively carrying in preset target mobile phones set of numbers;
The SMS platform receives the cell-phone number being directed in the target mobile phones set of numbers that the test platform is sent The identifying code acquisition request of code;
The SMS platform receives testing at random for the phone number in the target mobile phones set of numbers determining In the case where demonstrate,proving code, random verification code and the corresponding cell-phone number of the random verification code that the test object server is sent Code is sent to the test platform, so that the test platform is default according to second after sending the identifying code acquisition request The random verification code and the corresponding phone number of the random verification code that the SMS platform received within the scope of duration is sent, Determine the quantity of target random verification code, and according to the quantity of the target random verification code and first preset quantity, Determine the test result for the anti-pressure ability that the identifying code for the test object server generates, wherein each target Random verification code is unique random verification code for a phone number in the target mobile phones set of numbers.
The third aspect of the embodiment of the present invention provides a kind of automatic test device, comprising:
Instruction sending unit, for sending the first preset quantity to test object server within the scope of the first preset duration Short message verification code generate instruction so that the test object server is raw for the phone number in target mobile phones set of numbers It is sent to short message at random verification code, and by the random verification code of generation and the corresponding phone number of the random verification code and puts down Platform, the short message verification code generate the different phone number for instructing and respectively carrying in the target mobile phones set of numbers;
Request transmitting unit, for sending to the SMS platform for the cell-phone number in the target mobile phones set of numbers The identifying code acquisition request of code, so that random verification code that the SMS platform sends the test object server and described The corresponding phone number of random verification code is sent to the test platform;
Quantity determination unit, for inscribed according to the second preset duration range after sending the identifying code acquisition request The random verification code and the corresponding phone number of the random verification code that the SMS platform received is sent, what determination received The quantity of target random verification code in random verification code, wherein each target random verification code is for the target hand Unique random verification code of a phone number in machine set of numbers;
Test result determination unit, for the quantity and first present count according to the target random verification code Amount determines the test result for the anti-pressure ability that the identifying code for the test object server generates.
Fourth aspect of the embodiment of the present invention provides a kind of automatic test device, which is characterized in that including processor, deposits Reservoir and communication interface, the processor, memory and communication interface are connected with each other, wherein the communication interface is for connecing Data are received and send, the memory is for storing program code, and the processor is for calling said program code, the journey Sequence code makes the computer execute above-mentioned first aspect and each possible realization side of first aspect when executed by a computer Any one method in formula.
The 5th aspect of the embodiment of the present invention provides a kind of computer storage medium, and the computer storage medium is stored with Computer program, the computer program make the processor execute above-mentioned first aspect and first party when being executed by a processor The each possible implementation in face.
In the embodiment of the present invention, it is pre- that test platform sends first to test object server within the scope of the first preset duration If the short message verification code for carrying the different phone numbers in preset target mobile phones set of numbers respectively of quantity generates instruction, with Test object is set to generate random verification code for the phone number in target mobile phones set of numbers, and by the random verification code of generation And the corresponding phone number of the random verification code is sent to SMS platform, test platform sends to SMS platform and is directed to target hand After the identifying code acquisition request of phone number in machine set of numbers, SMS platform is tested at random by what test object server was sent Card code and the corresponding phone number of the random verification code are sent to test platform, and test platform is according in the transmission identifying code The random verification code and corresponding cell-phone number that the SMS platform received within the scope of the second preset duration after acquisition request is sent Code, determines the quantity of target random verification code, and then according to the quantity of target random verification code and first preset quantity, Determine the test result for the anti-pressure ability that the identifying code for the test object server generates.It will be tested by SMS platform The random verification code and corresponding phone number that object server generates are sent to test platform, make the available mould of test platform Quasi- a large number of users test object server is requested after the usage scenario for generating random verification code test object server generate with Machine identifying code as a result, realizing the automatic test of the anti-pressure ability to the generation of the identifying code of test object server in turn.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of interaction schematic diagram of automatization test system provided in an embodiment of the present invention;
Fig. 2 is a kind of configuration diagram of automatization test system provided in an embodiment of the present invention;
Fig. 3 is the interaction schematic diagram of another automatization test system provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of automatic test device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another automatic test device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 be a kind of interaction schematic diagram of automatization test system provided in an embodiment of the present invention, it is described from Dynamicization test macro can include at least test platform, test object server and SMS platform, and the test platform can be Based on Python, Selenium frame, Unittest frame, HTMLTestRunner frame, for the test object The correlation function of the identifying code of server is tested and the test platform built, and the test object server can be application program Server, Website server etc., SMS platform are by calling Webservice interface to send the platform of SMS, by short Believe the platform of the transmission SMS of cat or sends the platform of SMS by SMS messaging platform.It is real for the present invention referring to fig. 2 A kind of configuration diagram of automatization test system of example offer is provided.As shown in Figure 1, in the automatization test system, it can To realize a kind of automated testing method, it can specifically include following steps:
S101, test platform send the short of the first preset quantity to test object server within the scope of the first preset duration Believe that identifying code generates instruction.
Here, the short message verification code generate instruction respectively carry one in the target mobile phones set of numbers it is different Phone number.The anti-pressure ability that the test platform can be generated in the identifying code received for the test object server Test instruction after, execute step S101.The test platform sends the mode that the short message verification code generation instructs It is corresponding multiple that different phone numbers in the target mobile phones set of numbers are inputted into the test object server respectively Phone number fills in the phone number input frame in the page, and analog subscriber clicks the operation of right mouse button, clicks the mobile phone Number fills in the identifying code for filled in phone number in the page and obtains button.It is described to carry target mobile phones number respectively The short message verification code of different phone numbers in set generates instruction can be for simultaneously to test object server transmission , or it is sent successively to the test object server within the scope of first preset duration.Described first is default Duration may range from pre-set shorter time range, and first preset quantity can be pre-set biggish Quantity, it is to be understood that the ratio of the first preset duration range and first preset quantity is smaller, and identifying code generates The test result of anti-pressure ability be that the anti-pressure ability that the identifying code of test object server that test passes through generates is stronger.
S102, the test object server generate instruction according to the short message verification code and are directed to the target mobile phones number Phone number in set generates random verification code.
Here, the test object server can pass through preset random number according to preset identifying code format convention It generates function and generates the random verification code.The random verification code can be simple numeric class or alphabetic class or text class Identifying code, or the combined identifying code of above-mentioned a variety of types.
S103, the test object server is by the random verification code of generation and the corresponding cell-phone number of the random verification code Code is sent to SMS platform.
Here, one random verification code of the every generation of the test object server is just by the identifying code of generation and corresponding hand Machine number is sent to SMS platform.
S104, the test platform are sent to the SMS platform for the cell-phone number in the target mobile phones set of numbers The identifying code acquisition request of code.
Step S104 is immediately performed after step s 102, is being received so that SMS platform determines for the target hand After the random verification code of phone number in machine set of numbers, need to forward to the test platform immediately.Step S104 can be with It executes, can also be executed before step S103 after step s 103, can also be performed simultaneously with step S103.
In a kind of implementation, the phone number in the target mobile phones set of numbers has certain format character, institute It states and carries the format character in identifying code acquisition request, as latter four of phone number be 0 this format character;It is another real In existing mode, each phone number in the target mobile phones set of numbers is carried in the identifying code acquisition request.
S105, the SMS platform determine receive for phone number in the target mobile phones set of numbers with In the case where machine identifying code, respond random verification code that the identifying code acquisition request sends the test object server and The corresponding phone number of the random verification code is sent to the test platform.
In a kind of implementation, carried in the identifying code acquisition request each in the target mobile phones set of numbers In the case where phone number, the SMS platform is periodically directed to the target mobile phones number collection in the preset time time limit It closes, detects whether to have received the random verification code for each phone number in the target mobile phones set of numbers one by one, and The random verification code and corresponding phone number that will test are sent to the test platform;In another implementation, in institute It states and is carried in identifying code acquisition request in the target mobile phones set of numbers in the case where the format character of phone number, it is described short It detects whether to letter land period to have received the random verification code for the phone number for meeting the format character, and will inspection The random verification code and corresponding phone number measured is sent to the test platform.
It optionally, further include that the test platform sends out the platform digital certificate of the test platform before step S105 The SMS platform is given, is tested so that the SMS platform carries out identity to the test platform according to the platform digital certificate Card, and in the case where authentication passes through, the SMS platform is in the identifying code for receiving the test platform transmission The random verification code and the corresponding cell-phone number of the random verification code for sending the test object server after acquisition request Code is sent to the test platform.By the authentication to the test platform, the test object server pair ensure that The service security answered.
The SMS platform carries out the specific implementation of authentication according to the platform digital certificate to the test platform Mode can be with are as follows: the SMS platform obtains publisher's digital certificate of the platform digital certificate, passes through the publication number formulary The publisher's public key for including in word certificate, is decrypted the digital signature of the platform digital certificate, is determining to described flat Platform digital certificate carries out the digital signature unanimous circumstances of the platform digital certificate after the cryptographic Hash and decryption that Hash operation obtains Under, determine that the platform digital certificate is not tampered in transmission process.Determining the platform digital certificate in transmission process In be not tampered in the case where, Xiang Suoshu test platform sends authentication random message, and the test platform is by preset After platform private key encrypts the authentication random message received, it is sent to the SMS platform, the SMS platform After being decrypted by the platform public key for including in the platform digital certificate to the encrypted authentication random message received, Feelings of the authentication random message with the authentication random message to test platform transmission always after determining decryption Under condition, determine that carrying out authentication to the test platform is verified.
S106, the test platform are inscribed according to the second preset duration range after sending the identifying code acquisition request The random verification code and the corresponding phone number of the random verification code that the SMS platform received is sent, what determination received The quantity of target random verification code in random verification code.
Here, the test platform is while sending the identifying code acquisition request to the SMS platform, triggering meter When device be directed to the timing of the identifying code acquisition request, it is pre- to be equal to described second in the timing for the identifying code acquisition request If when the corresponding duration of duration range, stopping receiving the random verification code and corresponding phone number that the SMS platform is sent, And it determines and corresponding from the different phone numbers in the target mobile phones set of numbers in the random verification code that receives tests at random Demonstrate,prove the quantity of code, wherein each described target random verification code is for a mobile phone in the target mobile phones set of numbers Unique random verification code of number, if in the random verification code received comprising for two of same phone number it is different with Machine identifying code, then the two random verification codes are not involved in the counting of the quantity for the target random verification code.For example, if institute It states and receives random verification code within the scope of the second preset duration after test platform sends the identifying code acquisition request and include 1983,2435,3255,5234 and 3523, wherein 1983 corresponding phone numbers are 13200011111,2435 corresponding hands Machine number is that 13122334444,3255 corresponding phone numbers are 18888889999,5234 and 3523 corresponding phone numbers Be 18111112222, it is determined that the random verification code received in target random verification code include 1983,2435 and 3255 3 random verification codes.
S107, the test platform is according to the quantity and first preset quantity of the target random verification code, really Surely the test result of the anti-pressure ability generated for the identifying code of the test object server.
Specifically, the different quantity according to the target random verification code and first present count can be preset Amount, to the determination method of the test result of the anti-pressure ability of the identifying code generation of the test object server.A kind of determination side In method, determine the target random verification code quantity it is equal with first preset quantity in the case where, determine be directed to institute The test result for stating the anti-pressure ability of the identifying code generation of test object server passes through for test, otherwise, it determines for described The test result for the anti-pressure ability that the identifying code of test object server generates is that test does not pass through.Method is determined in another kind In, it is not less than the first preset ratio in the quantity of the true target random verification code and the ratio of first preset quantity, and In the case where meeting preset identifying code format convention with the target random verification code, determines and taken for the test object The test result for the anti-pressure ability that the identifying code of business device generates is that test passes through, otherwise, it determines being directed to the test object service The test result for the anti-pressure ability that the identifying code of device generates is that test does not pass through.
Optionally, the random verification code and the short message that the test object server is sent to the SMS platform are flat The random verification code that platform is sent to the test platform is sent in the form of short message text, includes in the short message text The random verification code and identifying code prompt information, such as the identifying code prompt information can be for " you log in testing for XXAPP Demonstrate,proving code is ";The method can be the following steps are included: the test platform determines what the SMS platform received was sent The corresponding category of language in number home area of each phone number, and determine what the SMS platform for carrying and receiving was sent The category of language for the identifying code prompt information that the short message text of the corresponding random verification code of each phone number includes;The test Platform determines the second phone number quantity that the SMS platform received is sent, the number home of second phone number What the short message text of the corresponding category of language in area random verification code corresponding with second phone number is carried was included tests The category of language for demonstrate,proving code prompt information is consistent;The test platform is in the quantity and the test for determining second phone number Ratio of the platform in the quantity for sending the phone number received within the scope of the second preset duration after the identifying code acquisition request In the case that value is greater than third preset ratio, determine that the short message text for the test object server generates anti-pressure ability Test result is that test passes through.
For example, the phone number that the test platform receives is+8613111112222, the number of the phone number is returned The corresponding category of language in possession area is Chinese, is if carrying the phone number and corresponding to the identifying code prompt information of random verification code " identifying code that you log in XXAPP is ", it is determined that the number home area corresponding category of language Chinese of the phone number and is taken The category of language Chinese for the identifying code prompt information that short message text with corresponding random verification code is included is consistent, the cell-phone number Code is the second phone number, and participates in the counting of the second phone number;If described carrying phone number corresponds to random verification code Identifying code prompt information be " The validation code for logging XX APP is ", it is determined that the cell-phone number The corresponding category of language Chinese in the number home area of code, what the short message text of random verification code corresponding with carrying was included tests The category of language English for demonstrate,proving code prompt information is inconsistent, is not the second phone number, is not involved in the counting of the second phone number.
In the embodiment of the present invention, it is pre- that test platform sends first to test object server within the scope of the first preset duration If the short message verification code for carrying the different phone numbers in preset target mobile phones set of numbers respectively of quantity generates instruction, with Test object is set to generate random verification code for the phone number in target mobile phones set of numbers, and by the random verification code of generation And the corresponding phone number of the random verification code is sent to SMS platform, test platform sends to SMS platform and is directed to target hand After the identifying code acquisition request of phone number in machine set of numbers, SMS platform is tested at random by what test object server was sent Card code and the corresponding phone number of the random verification code are sent to test platform, and test platform is according in the transmission identifying code The random verification code and corresponding cell-phone number that the SMS platform received within the scope of the second preset duration after acquisition request is sent Code, determines the quantity of target random verification code, and then according to the quantity of target random verification code and first preset quantity, Determine the test result for the anti-pressure ability that the identifying code for the test object server generates.It will be tested by SMS platform The random verification code and corresponding phone number that object server generates are sent to test platform, make the available mould of test platform Quasi- a large number of users test object server is requested after the usage scenario for generating random verification code test object server generate with Machine identifying code as a result, realizing the automatic test of the anti-pressure ability to the generation of the identifying code of test object server in turn.
Referring to Fig. 3, Fig. 3 is the interaction schematic diagram of another automatization test system provided in an embodiment of the present invention, is such as schemed It is shown, pass through in the test result test for the anti-pressure ability that the identifying code determined for the test object server generates In the case of, the test to other anti-pressure abilities of the test object server can also be realized by following steps, it is specific to walk It is rapid as follows:
S201, target random verification code described in the test platform determine be directed to the target random verification code phase respectively The input identifying code of corresponding phone number.
Here, the determination inputs the specific of identifying code for the corresponding phone number of the target random verification code Mode are as follows: determine the phone number composition of the second preset quantity at random from the corresponding phone number of the target random verification code First mobile phone set of numbers, it is for the phone number in the first mobile phone set of numbers, the phone number is corresponding random Identifying code is determined as the corresponding input identifying code of the phone number;By institute in the corresponding phone number of the target random verification code It states all phone numbers other than the first mobile phone set of numbers and constitutes the second mobile phone set of numbers, in the second mobile phone set of numbers The number of phone number is third preset quantity, for the phone number in the second mobile phone set of numbers, by the cell-phone number Any identifying code other than the corresponding random verification code of code is determined as the corresponding input identifying code of the phone number, for example, if institute The identifying code that random verification code is digital form is stated, the numerical value behind the corresponding number of the random verification code plus 1 can be determined For corresponding input identifying code.Herein for the mode of the corresponding input identifying code of phone number in the combination of the second phone number Without limitation.
Wherein, if the SMS platform transmission that the test platform receives is directed to the target mobile phones set of numbers In the corresponding random verification code of a certain phone number there are two, then for the phone number carry out input identifying code really It is fixed.
S202, the test platform are submitted to the first identifying code that the test object server sends the second preset quantity Second identifying code of request and third preset quantity submits request.
Here, first identifying code submits request respectively to carry cell-phone number different in the first mobile phone set of numbers Code and corresponding input identifying code, it is different in the second mobile phone set of numbers that second identifying code submits request respectively to carry Phone number and corresponding input identifying code, the test platform can test within the scope of the 4th preset duration by described first Card code submits request to submit request to be sent to the test object server with second identifying code.
S203, the test object server are corresponding random according to the phone number in the first mobile phone set of numbers Identifying code verifies the input identifying code of the phone number in the first mobile phone set of numbers, and generates for described the The identifying code verification result of phone number in one mobile phone set of numbers.
Specifically, the test object server is sentenced for the phone number in the first mobile phone set of numbers It is disconnected, judge that the corresponding random verification code of each phone number in the first mobile phone set of numbers is corresponding with same phone number Input identifying code it is whether consistent, if unanimously, generate be directed to the phone number the correct identifying code verification result of identifying code, if It is inconsistent, generate the identifying code verification result of the identifying code mistake for the phone number.
In a kind of optional embodiment, the test platform detect the test object server by generation with When machine identifying code and the corresponding phone number of the random verification code are sent to SMS platform, triggering timing device is directed to the generation Accidental validation code timing;In step S202, the phone number in the first mobile phone set of numbers and correspondence will be carried respectively Input identifying code the first identifying code submit request to be sent to the concrete mode of the test object server can be with are as follows: in institute State chronograph hand to the corresponding accidental validation code timing of the first phone number in the third phone number set when grow up In preset identifying code validity period, and in the case where being less than default first preset duration, will carry first phone number and Corresponding the first mobile phone number verification code for inputting identifying code of first phone number submits request to be sent to the test pair As server, wherein the third phone number collection is combined into the subset of the first mobile phone set of numbers, the third cell-phone number Code collection closes the phone number comprising the 4th preset quantity, and first phone number is appointing in the third phone number set One phone number.During this, each phone number in the third phone number set is confirmed as the first mobile phone Number, and then submit request to be sent to the test identifying code for carrying each phone number and corresponding input identifying code and take It is engaged in device, each phone number in the first mobile phone set of numbers can be determined as the first phone number simultaneously and be tested It demonstrate,proves code submission request to send, can also be successively determined as the first phone number and carries out identifying code submission request transmission.And institute Stating the phone number in third phone number set is the 4th present count determined at random from the first mobile phone set of numbers The phone number of amount.
After the test object server often receives the first mobile phone number verification code submission request, i.e., according to institute It states the first mobile phone number verification code and submits the receiving time of request, the corresponding random verification code of first phone number and described Preset identifying code validity period verifies the corresponding input identifying code of first phone number, and generates for described the The identifying code verification result of one phone number.The test object server verifies the corresponding input of first phone number The concrete mode that code is verified are as follows: test object server basis first receives the identifying code and submits connecing for request Between time receiving and the preset identifying code validity period, judge whether the corresponding input identifying code of first phone number is the time limit Effective identifying code, if the corresponding input identifying code of first phone number is not time limit effective identifying code, generation is directed to The expired identifying code verification result of the identifying code of first phone number, if the corresponding input verifying of first phone number Code is time limit effective identifying code, and then judges the corresponding input identifying code of first phone number and first cell-phone number Whether the corresponding random verification code of code is consistent, if unanimously, the identifying code generated for first phone number is correctly verified Code verification result generates the identifying code verification result of the identifying code mistake for first phone number if inconsistent.
The test object server generates the identifying code for each phone number in the third phone number set After verification result, the test object determines identifying code verification result in each phone number of the third phone number set For the quantity of the phone number of identifying code failure and the ratio of the 4th preset quantity, the third cell-phone number code collection is being determined Identifying code verification result is the quantity and the 4th present count of the phone number of identifying code failure in each phone number closed In the case that the ratio of amount is not less than the second preset ratio, the test platform determines the identifying code phase for being directed to the test object The test result of limit verifying anti-pressure ability is that test passes through.Here, the test platform can be counted in third preset duration model What the test object server in enclosing generated is directed to the verification result of phone number in the third phone number set The ratio of quantity and the 4th preset quantity, the third preset duration range can be from starting to the test object service The corresponding identifying code of phone number that device sends third phone number set starts timing at the time of submitting request, can also be from general The phone number of third phone number set starts timing at the time of being sent completely to the test object server, can also be with needle Timing is distinguished to each phone number in third phone number set, concrete mode is herein without limitation.
S204, the test object server are corresponding random according to the phone number in the second mobile phone set of numbers Identifying code verifies the input identifying code of the phone number in the second mobile phone set of numbers, and generates for described the The identifying code verification result of phone number in two mobile phone set of numbers.
Here, the test object server is judged for the phone number in the second mobile phone set of numbers, And generate the concrete mode of corresponding identifying code verification result refering in step S203 in the first mobile phone set of numbers Phone number judged that and generate the implementation of corresponding identifying code verification result, details are not described herein again.
S205, the test platform obtain the identifying code verifying for the phone number in the first mobile phone set of numbers As a result and for the phone number in the second mobile phone set of numbers identifying code verification result.
S206, the test platform are verified according to the identifying code for the phone number in the first mobile phone set of numbers As a result and for the phone number in the second mobile phone set of numbers identifying code verification result, determine be directed to the test The test result of the identifying code verifying anti-pressure ability of object server.
Specifically, the test platform determines identifying code verification result in the phone number for the first mobile phone set of numbers It is greater than the 4th preset ratio, and described for the number of the correct phone number of identifying code and the ratio of second preset quantity Identifying code verification result in the phone number of two mobile phone set of numbers be the phone number of identifying code mistake number with it is described In the case that the ratio of third preset quantity is greater than the 5th preset ratio, the identifying code for being directed to the test object server is determined The test result of verifying anti-pressure ability is that test passes through, otherwise, it determines the identifying code for the test object server is verified The test result of anti-pressure ability is that test does not pass through.
In the embodiment of the present invention, test platform is in the resistance to compression for determining the identifying code generation for the test object server The test result of ability is that will carry in the first mobile phone set of numbers phone number and corresponding respectively in the case that test passes through First identifying code of input identifying code submit request with carry in the second mobile phone set of numbers phone number and corresponding defeated respectively The second identifying code for entering identifying code submits request to be sent to test object server, makes test object server to described first-hand The corresponding input identifying code of phone number in machine set of numbers and the phone number in the second mobile phone set of numbers are corresponding defeated Enter identifying code to be verified, and generate corresponding identifying code verification result, test platform is according to the test object server needle To the identifying code verification result of the phone number in the first mobile phone set of numbers, and it is directed to the second phone number collection The identifying code verification result of phone number in conjunction determines that the identifying code for the test object server verifies anti-pressure ability Test result, the random verification code that test object server generates and corresponding phone number be sent to test by SMS platform Platform allows test platform to simulate a large number of users and requests test object server to generate the usage scenario of random verification code, And then realize the automatic test that anti-pressure ability is verified to the identifying code of test object server.
Referring to fig. 4, Fig. 4 is a kind of structural schematic diagram of automatic test device provided in an embodiment of the present invention, as schemed institute Show, the automatic test device 40 can include at least instruction sending unit 401, request transmitting unit 402, quantity and determine list Member 403 and test result determination unit 404, in which:
Instruction sending unit 401, it is default for sending first to test object server within the scope of the first preset duration The short message verification code of quantity generates instruction, so that the test object server is for the cell-phone number in target mobile phones set of numbers Code generates random verification code, and the random verification code of generation and the corresponding phone number of the random verification code are sent to short message Platform, each short message verification code generate the different mobile phone for instructing and respectively carrying in the target mobile phones set of numbers Number.
Request transmitting unit 402, for sending to the SMS platform for the hand in the target mobile phones set of numbers The identifying code acquisition request of machine number so that random verification code that the SMS platform sends the test object server and The corresponding phone number of the random verification code is sent to the test platform.
Quantity determination unit 403, for according to the second preset duration range after sending the identifying code acquisition request The random verification code and the corresponding phone number of the random verification code that the SMS platform inside received is sent, determine and receive To random verification code in target random verification code quantity, wherein each target random verification code be for the mesh Mark unique random verification code of a phone number in phone number set.
Test result determination unit 404, for being preset according to the quantity of the target random verification code and described first Quantity determines the test result for the anti-pressure ability that the identifying code for the test object server generates.
In the specific implementation, the automatic test device can execute such as Fig. 1-figure by each functional module built in it Each step in 3 automated testing method, specific implementation details see each step in the corresponding embodiment of Fig. 1-Fig. 3 Realization details, details are not described herein again.
In the embodiment of the present invention, instruction sending unit sends the to test object server within the scope of the first preset duration The short message verification code generation for carrying the different phone numbers in preset target mobile phones set of numbers respectively of one preset quantity refers to It enables, so that test object generates random verification code for the phone number in target mobile phones set of numbers, and by the random of generation Identifying code and the corresponding phone number of the random verification code are sent to SMS platform, and request transmitting unit is sent to SMS platform After the identifying code acquisition request of the phone number in target mobile phones set of numbers, SMS platform sends out test object server The random verification code and the corresponding phone number of the random verification code sent are sent to quantity determination unit, quantity determination unit root It is tested at random according to what the SMS platform received within the scope of the second preset duration after the transmission identifying code acquisition request was sent Code and corresponding phone number are demonstrate,proved, determines the quantity of target random verification code, and then test result determination unit is according to the mesh The quantity and first preset quantity of random verification code are marked, determines that the identifying code for the test object server generates Anti-pressure ability test result.The random verification code for being generated test object server by SMS platform and corresponding mobile phone Number is sent to quantity determination unit, requests that the available simulation a large number of users of quantity determination unit to test object server Test object server generates tying as a result, realizing test in turn for random verification code after generating the usage scenario of random verification code The automatic test for the anti-pressure ability that fruit determination unit generates the identifying code of test object server.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another automatic test device provided in an embodiment of the present invention, is such as schemed Shown, the automatic test device 50 includes processor 501, memory 502 and communication interface 503.Processor 501 connects Memory 502 and communication interface can be connected to by bus to memory 502 and communication interface 503, such as processor 501 503。
Processor 501 is configured as that the automatic test device is supported to execute automatic test side described in Fig. 1-Fig. 3 Corresponding function in method.The processor 501 can be central processing unit (Central Processing Unit, CPU), network Processor (Network Processor, NP), hardware chip or any combination thereof.Above-mentioned hardware chip can be dedicated collection At circuit (Application-Specific Integrated Circuit, ASIC), programmable logic device (Programmable Logic Device, PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices (Complex Programmable Logic Device, CPLD), field programmable gate array (Field- Programmable Gate Array, FPGA), Universal Array Logic (Generic Array Logic, GAL) or its any group It closes.
Memory 502 is for storing program code etc..Memory 502 includes internal storage, and internal storage can wrap Include at least one of following: volatile memory (such as dynamic random access memory (DRAM), static state RAM (SRAM), synchronize it is dynamic State RAM (SDRAM) etc.) and nonvolatile memory (such as disposable programmable read only memory (OTPROM), programming ROM (PROM), erasable programmable ROM (EPROM), electrically erasable ROM (EEPROM).Memory 502 can also include outer Portion's memory, external memory may include at least one of following: hard disk (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD), flash drive, for example, high density flash memory (CF), secure digital (SD), miniature SD, mini SD, Extreme digital (xD), memory stick etc..
The communication interface 503 is for receiving or sending data.
Processor 501 can call said program code to execute following operation:
Test platform is tested within the scope of the first preset duration to the short message that test object server sends the first preset quantity It demonstrate,proves code and generates instruction, so that the test object server is tested at random for the phone number generation in target mobile phones set of numbers Code is demonstrate,proved, and the random verification code of generation and the corresponding phone number of the random verification code are sent to SMS platform, Mei Gesuo It states short message verification code and generates the different phone number for instructing and respectively carrying in the target mobile phones set of numbers;
The test platform is sent to the SMS platform for the phone number in the target mobile phones set of numbers Identifying code acquisition request, so that random verification code that the SMS platform sends the test object server and described random The corresponding phone number of identifying code is sent to the test platform;
The test platform is received according within the scope of the second preset duration after the transmission identifying code acquisition request The SMS platform send random verification code and the corresponding phone number of the random verification code, determine receive it is random The quantity of target random verification code in identifying code, wherein each target random verification code is for the target mobile phones number Unique random verification code of a phone number in code collection conjunction;
The test platform is determined and is directed to according to the quantity and first preset quantity of the target random verification code The test result for the anti-pressure ability that the identifying code of the test object server generates.
It should be noted that the realization of each operation can also correspond to referring to Fig.1-embodiment of the method shown in Fig. 3 phase It should describe;The processor 501 can be also used for executing other operations in above method embodiment.
The embodiment of the present invention also provides a kind of computer storage medium, and the computer storage medium is stored with computer journey Sequence, the computer program include program instruction, and described program instruction executes the computer such as Method described in previous embodiment, the computer can be a part of automatic test device mentioned above.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of automated testing method characterized by comprising
Test platform sends the short message verification code of the first preset quantity within the scope of the first preset duration to test object server Instruction is generated, so that the test object server generates accidental validation for the phone number in target mobile phones set of numbers Code, and the random verification code of generation and the corresponding phone number of the random verification code are sent to SMS platform, it is each described Short message verification code generates the different phone number for instructing and respectively carrying in the target mobile phones set of numbers;
The test platform sends the verifying for the phone number in the target mobile phones set of numbers to the SMS platform Code acquisition request, so that random verification code that the SMS platform sends the test object server and the accidental validation The corresponding phone number of code is sent to the test platform;
The test platform is according to the institute received within the scope of the second preset duration after the transmission identifying code acquisition request The random verification code and the corresponding phone number of the random verification code for stating SMS platform transmission, determine the accidental validation received The quantity of target random verification code in code, wherein each target random verification code is for the target mobile phones number collection Unique random verification code of a phone number in conjunction;
The test platform is determined according to the quantity and first preset quantity of the target random verification code for described The test result for the anti-pressure ability that the identifying code of test object server generates.
2. the method as described in claim 1, which is characterized in that the test platform is according to the number of the target random verification code Amount and first preset quantity determine the test for the anti-pressure ability that the identifying code for the test object server generates Result includes:
The test platform is not small with the ratio of the quantity and first preset quantity of the target random verification code in determination In the first preset ratio, and in the case where meeting preset identifying code format convention with the target random verification code, determine Test result for the anti-pressure ability that the identifying code of the test object server generates is that test passes through.
3. the method as described in claim 1, which is characterized in that the method also includes:
The test result for the anti-pressure ability that the test platform is generated in the identifying code determined for the test object server In the case where passing through for test, according to the target random verification code, determine respectively opposite for the target random verification code The input identifying code for the phone number answered, wherein the set of the corresponding phone number composition of the target random verification code includes First mobile phone set of numbers of the consistent phone number composition of the input identifying code and random verification code of the second preset quantity, and The phone number that the input identifying code and random verification code of third preset quantity are inconsistent forms the second mobile phone set of numbers;
The test platform submits request and the to the first identifying code that the test object server sends the second preset quantity Second identifying code of three preset quantities submits request, so that the test object server is in the first mobile phone set of numbers Corresponding identifying code verification result is verified and generated to the input identifying code of phone number, and to second phone number Corresponding identifying code verification result is verified and generated to the input identifying code of phone number in set, wherein first verifying Code submits request respectively to carry phone number and corresponding input identifying code different in the first mobile phone set of numbers, described The submission request of second identifying code respectively carries phone number different in the second mobile phone set of numbers and corresponding input is tested Demonstrate,prove code;
The test platform is according to the identifying code verification result and needle for phone number in the first mobile phone set of numbers To the identifying code verification result of phone number in the second mobile phone set of numbers, determine for the test object server The test result of identifying code verifying anti-pressure ability.
4. method as claimed in claim 3, which is characterized in that the method also includes:
The test platform is detecting the test object server by the random verification code of generation and the random verification code When corresponding phone number is sent to SMS platform, triggering timing device is directed to the accidental validation code timing of the generation;
The test platform is requested to the first identifying code submission that the test object server sends the second preset quantity
The test platform the chronograph hand it is corresponding to the first phone number in the third phone number set with The duration that machine verifies code timing is greater than preset identifying code validity period, and in the case where being less than default first preset duration, will take The first mobile phone number verification code with the corresponding input identifying code of first phone number and first phone number is submitted Request is sent to the test object server, so that test object server is submitted according to the first mobile phone number verification code The receiving time of request and the preset identifying code validity period carry out the corresponding input identifying code of first phone number Verifying, and generate the identifying code verification result for being directed to first phone number, wherein the third phone number collection is combined into institute The subset of the first mobile phone set of numbers is stated, the third phone number set includes the phone number of the 4th preset quantity, described First phone number is any phone number in the third phone number set;
The method also includes:
Test platform identifying code verification result in each phone number for determining the third phone number set is to test In the case that the ratio of the quantity and the 4th preset quantity of demonstrate,proving the phone number of code failure is not less than the second preset ratio, really Surely the test result for the identifying code time limit verifying anti-pressure ability of the test object is that test passes through.
5. the method as described in claim 1, which is characterized in that the method also includes:
The platform digital certificate of the test platform is sent to the SMS platform by the test platform, so that the short message is flat Platform carries out authentication to the test platform according to the platform digital certificate, and in the case where authentication passes through, institute SMS platform is stated to service the test object after receiving the identifying code acquisition request that the test platform is sent The random verification code and the corresponding phone number of the random verification code that device is sent are sent to the test platform.
6. the method as described in claim 1, which is characterized in that the test object server was sent to the SMS platform The random verification code that random verification code and the SMS platform are sent to the test platform is in the form of short message text It sends, includes the random verification code and identifying code prompt information in the short message text;
The method also includes:
The test platform determines that the number home area for each phone number that the SMS platform received is sent is corresponding Category of language, and determine the corresponding random verification code of each phone number for carrying that the SMS platform that receives is sent The category of language for the identifying code prompt information that short message text includes;
The test platform determines the second phone number quantity that the SMS platform received is sent, second cell-phone number The short message text of the corresponding category of language in the number home area random verification code corresponding with second phone number is carried of code The category of language of this identifying code prompt information for being included is consistent;
The test platform is obtained with the test platform in the transmission identifying code in the quantity for determining second phone number The ratio of the quantity of the phone number received within the scope of the second preset duration after taking request is greater than the feelings of third preset ratio Under condition, the test result for determining that the short message text for the test object server generates anti-pressure ability is that test passes through.
7. a kind of automated testing method characterized by comprising
SMS platform receives the random verification code and the corresponding phone number of the random verification code that test object server is sent, The random verification code is that the test object server is tested in the short message for the first preset quantity for receiving test platform transmission It demonstrate,proves code and generates the random verification code generated after instruction for the phone number in the target mobile phones set of numbers, the short message is tested Card code generates the different phone number for instructing and respectively carrying in preset target mobile phones set of numbers;
The SMS platform receives the phone number being directed in the target mobile phones set of numbers that the test platform is sent Identifying code acquisition request;
The SMS platform is determining the random verification code received for the phone number in the target mobile phones set of numbers In the case where, the corresponding phone number of random verification code and the random verification code that the test object server is sent is sent out The test platform is given, so that the test platform is according to the second preset duration after sending the identifying code acquisition request The random verification code and the corresponding phone number of the random verification code that the SMS platform received in range is sent, determine The quantity of target random verification code, and according to the quantity of the target random verification code and first preset quantity, it determines For the test result for the anti-pressure ability that the identifying code of the test object server generates, wherein each target is random Identifying code is unique random verification code for a phone number in the target mobile phones set of numbers.
8. a kind of automatic test device characterized by comprising
Instruction sending unit, for sending the short of the first preset quantity to test object server within the scope of the first preset duration Believe that identifying code generates instruction so that the test object server for the phone number in target mobile phones set of numbers generate with Machine identifying code, and the random verification code of generation and the corresponding phone number of the random verification code are sent to SMS platform, often A short message verification code generates the different phone number for instructing and respectively carrying in the target mobile phones set of numbers;
Request transmitting unit, for sending to the SMS platform for the phone number in the target mobile phones set of numbers Identifying code acquisition request, so that random verification code that the SMS platform sends the test object server and described random The corresponding phone number of identifying code is sent to the test platform;
Quantity determination unit, for being received according within the scope of the second preset duration after the transmission identifying code acquisition request The SMS platform send random verification code and the corresponding phone number of the random verification code, determine receive it is random The quantity of target random verification code in identifying code, wherein each target random verification code is for the target mobile phones number Unique random verification code of a phone number in code collection conjunction;
Test result determination unit, for the quantity and first preset quantity according to the target random verification code, really Surely the test result of the anti-pressure ability generated for the identifying code of the test object server.
9. a kind of automatic test device, which is characterized in that including processor, memory and communication interface, the processor, Memory and communication interface are connected with each other, wherein the communication interface is for sending and receiving data, and the memory is for depositing Program code is stored up, the processor is executed for calling said program code to realize described in claim 1 to 7 any one Method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program are executed by processor to realize method described in claim 1 to 7 any one.
CN201910428125.7A 2019-05-21 2019-05-21 A kind of automated testing method and relevant device Pending CN110177378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910428125.7A CN110177378A (en) 2019-05-21 2019-05-21 A kind of automated testing method and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910428125.7A CN110177378A (en) 2019-05-21 2019-05-21 A kind of automated testing method and relevant device

Publications (1)

Publication Number Publication Date
CN110177378A true CN110177378A (en) 2019-08-27

Family

ID=67691777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910428125.7A Pending CN110177378A (en) 2019-05-21 2019-05-21 A kind of automated testing method and relevant device

Country Status (1)

Country Link
CN (1) CN110177378A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559084A (en) * 2020-12-23 2021-03-26 北京百度网讯科技有限公司 Method, apparatus, device, storage medium, and program product for administering a service
CN112969150A (en) * 2021-01-29 2021-06-15 百果园技术(新加坡)有限公司 Short message gateway experimental method and device
CN113423076A (en) * 2021-05-20 2021-09-21 北京达佳互联信息技术有限公司 Method and device for acquiring verification code short message, electronic equipment and storage medium
CN113489623A (en) * 2021-06-30 2021-10-08 北京达佳互联信息技术有限公司 Verification code testing method, verification code testing device, electronic equipment, storage medium and program product
CN113515446A (en) * 2021-05-08 2021-10-19 上海安畅网络科技股份有限公司 Applet testing method, device, equipment and storage medium
CN115065510A (en) * 2022-05-30 2022-09-16 中国电信股份有限公司 Login method, device, system, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533505A (en) * 2012-07-05 2014-01-22 中国移动通信集团江苏有限公司 Short message sending method, short message sending server, short message sending system and mobile terminal
EP3065447A1 (en) * 2015-03-02 2016-09-07 Rohde & Schwarz GmbH & Co. KG Method and test device for testing an emergency call system supported by mobile telephony
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107566416A (en) * 2017-10-25 2018-01-09 北京安博通科技股份有限公司 Authentication performance method of testing, apparatus and system, terminal, network access server
CN109726121A (en) * 2018-12-12 2019-05-07 北京云测信息技术有限公司 A kind of identifying code acquisition methods and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533505A (en) * 2012-07-05 2014-01-22 中国移动通信集团江苏有限公司 Short message sending method, short message sending server, short message sending system and mobile terminal
EP3065447A1 (en) * 2015-03-02 2016-09-07 Rohde & Schwarz GmbH & Co. KG Method and test device for testing an emergency call system supported by mobile telephony
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107566416A (en) * 2017-10-25 2018-01-09 北京安博通科技股份有限公司 Authentication performance method of testing, apparatus and system, terminal, network access server
CN109726121A (en) * 2018-12-12 2019-05-07 北京云测信息技术有限公司 A kind of identifying code acquisition methods and terminal device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559084A (en) * 2020-12-23 2021-03-26 北京百度网讯科技有限公司 Method, apparatus, device, storage medium, and program product for administering a service
CN112559084B (en) * 2020-12-23 2023-07-21 北京百度网讯科技有限公司 Method, apparatus, device, storage medium and program product for administering services
CN112969150A (en) * 2021-01-29 2021-06-15 百果园技术(新加坡)有限公司 Short message gateway experimental method and device
CN113515446A (en) * 2021-05-08 2021-10-19 上海安畅网络科技股份有限公司 Applet testing method, device, equipment and storage medium
CN113423076A (en) * 2021-05-20 2021-09-21 北京达佳互联信息技术有限公司 Method and device for acquiring verification code short message, electronic equipment and storage medium
CN113489623A (en) * 2021-06-30 2021-10-08 北京达佳互联信息技术有限公司 Verification code testing method, verification code testing device, electronic equipment, storage medium and program product
CN115065510A (en) * 2022-05-30 2022-09-16 中国电信股份有限公司 Login method, device, system, electronic equipment and readable storage medium
CN115065510B (en) * 2022-05-30 2024-05-14 中国电信股份有限公司 Login method, device, system, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110177378A (en) A kind of automated testing method and relevant device
CN108712413B (en) Identity verification method and equipment
US11924247B1 (en) Access control policy simulation and testing
WO2017028630A1 (en) Verification method and server
CN103440456B (en) The method and device that a kind of application security is assessed
CN111078554B (en) Applet debugging method, device, equipment and storage medium
EP3543881A1 (en) Chip access method, security control module, chip and debugging device
CN108989263A (en) Short message verification code attack guarding method, server and computer readable storage medium
CN106453206B (en) A kind of auth method and device
US9173050B2 (en) Application store system and development method using the application store system
CN110677399B (en) Authentication method and device
CN112437078A (en) File storage method, device, equipment and computer readable storage medium
CN109145651B (en) Data processing method and device
EP3253088A1 (en) Control method and terminal for short message reading
CN111783049A (en) User information processing method and system based on block chain
Khan et al. Implementation of decentralized blockchain e-voting
CN106412975A (en) Content charging vulnerability test methods, and apparatuses
CN111405550B (en) WhatsApp key file extraction method and WhatsApp key file extraction equipment
CN110362967A (en) The anti-tamper detection method of application program, device, terminal device and storage medium
CN110445768B (en) Login method and device and electronic equipment
CN106127558B (en) Bill generation method and mobile terminal
CN110022327B (en) Short message authentication test method and device
CN108763934B (en) Data processing method and device, storage medium and server
CN113761478B (en) Authorization method and device for software product
CN107679865B (en) Identity verification method and device based on touch area

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190827