CN109241722A - For obtaining method, electronic equipment and the computer-readable medium of information - Google Patents

For obtaining method, electronic equipment and the computer-readable medium of information Download PDF

Info

Publication number
CN109241722A
CN109241722A CN201811112672.6A CN201811112672A CN109241722A CN 109241722 A CN109241722 A CN 109241722A CN 201811112672 A CN201811112672 A CN 201811112672A CN 109241722 A CN109241722 A CN 109241722A
Authority
CN
China
Prior art keywords
log
message
identifying code
short message
mobile phone
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
CN201811112672.6A
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.)
Shanghai Sheng Electronic Payment Services Ltd
Original Assignee
Shanghai Sheng Electronic Payment Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Sheng Electronic Payment Services Ltd filed Critical Shanghai Sheng Electronic Payment Services Ltd
Priority to CN201811112672.6A priority Critical patent/CN109241722A/en
Publication of CN109241722A publication Critical patent/CN109241722A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Abstract

The embodiment of the present application discloses method, electronic equipment and computer-readable medium for obtaining information.One specific embodiment of this method includes: the log-on message acquisition request for receiving test lead and sending, and log-on message acquisition request includes predetermined keyword and preset mobile phone number;Obtain the log-on message with predetermined keyword and preset mobile phone numbers match;Acquired log-on message is returned into test lead, the register so as to test lead based on acquired log-on message performance objective software.The embodiment can will acquire log-on message and execution register is decoupling, realize the automated log on of target software.

Description

For obtaining method, electronic equipment and the computer-readable medium of information
Technical field
This application involves field of computer technology, and in particular to for obtaining method, electronic equipment and the computer of information Readable medium.
Background technique
In software development process, in order to ensure stability, the robustness etc. of software, software test personnel are usually required pair Software is tested.According to the degree of automation of test, software test can be divided into manual testing and automatic test.
Automatic test refers to by automated test tool or other means, according to the test plan of software test personnel Automatically it is tested.Relative to manual test, automatic test can mitigate the workload of software test personnel, improve test effect Rate.
However, needing to log in software in the test process of many softwares and being tested, for example, it is desired to input hand Machine number and short message verification code just can be carried out software test after being verified.
If it is manual testing, this is not problem, as long as having a look mobile phone, input can continue.But certainly It but needs to have the function of automatically extracting short message verification code in dynamicization test process.For Android device, can pass through by Rear after equipment root (root user is unique super keepe in system, it has the permission for being equal to operating system) Platform starts service to realize this function.However, the permission due to root is too big, bring risk is also larger, for example, not It is careful to delete system file, lead to system crash.
Summary of the invention
The embodiment of the present application proposes method, electronic equipment and computer-readable medium for obtaining information.
In a first aspect, some embodiments of the present application provide a kind of method for obtaining information, it is applied to server, This method comprises: receive test lead send log-on message acquisition request, log-on message acquisition request include predetermined keyword and Preset mobile phone number;Obtain the log-on message with predetermined keyword and preset mobile phone numbers match;By acquired log-on message Return to test lead, the register so as to test lead based on acquired log-on message performance objective software.
Second aspect, some embodiments of the present application provide a kind of method for obtaining information, are applied to test lead, This method comprises: sending log-on message acquisition request to server, log-on message acquisition request includes predetermined keyword and presets Phone number;Receive the log-on message with predetermined keyword and preset mobile phone numbers match that server returns;Based on acquired Log-on message performance objective software register.
The third aspect, some embodiments of the present application provide a kind of method for obtaining information, adopt applied to short message Collect end, this method comprises: receiving the short message using preset mobile phone number as receiving number;It detects in short message and whether is closed comprising default Keyword;In response to detecting in short message comprising predetermined keyword, identifying code is extracted from short message.
Fourth aspect, some embodiments of the present application provide a kind of electronic equipment, comprising: one or more processors; Storage device is stored thereon with one or more programs, when one or more programs are executed by one or more processors, so that One or more processors realize the method as described in first aspect, or the method as described in second aspect, or such as the third aspect The method of description.
5th aspect, some embodiments of the present application provide a kind of computer-readable medium, are stored thereon with computer Program is realized the method as described in first aspect or is realized as described in first aspect when the computer program is executed by processor Method, or the method as described in second aspect, or the method as described in the third aspect.
Method, electronic equipment and the computer-readable medium provided by the embodiments of the present application for being used to obtain information, by connecing The log-on message acquisition request including predetermined keyword and preset mobile phone number that Acceptance Tests end is sent obtains close with default later The log-on message of keyword and preset mobile phone numbers match, finally returns to test lead for log-on message, logs in so as to will acquire Information and execution register are decoupling, realize the automated log on of target software.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that some embodiments of the application can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for obtaining information of the application;
Fig. 3 is the schematic diagram of an implementation of embodiment shown in Fig. 2;
Fig. 4 is the schematic diagram of another implementation of embodiment shown in Fig. 2;
Fig. 5 is the schematic diagram according to an application scenarios of the method for obtaining information of the application;
Fig. 6 is the flow chart according to another embodiment of the method for obtaining information of the application;
Fig. 7 is the flow chart according to the another embodiment of the method for obtaining information of the application;
Fig. 8 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, system architecture 100 may include test lead 101,102,103, server 104,105 and short message are adopted Collect end 106,107,108.
User can be used test lead 101,102,103 and interact with server 104, to receive or send message etc..Test Various client applications, such as web browser applications, the application of shopping class, searching class can be installed on end 101,102,103 Using, instant messaging tools, mailbox client, social platform software etc..
Test lead 101,102,103 can be hardware, be also possible to software.When test lead 101,102,103 is hardware, Can be support software test various electronic equipments, including but not limited to smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard sound Frequency level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard Audio level 4) player, pocket computer on knee and desktop computer etc..When test lead 101,102,103 is software When, it may be mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into it, also may be implemented At single software or software module.It is not specifically limited herein.
Server 104 can be to provide the server of various services, such as server 104 can be and provide software test The background server (for example, Docker (the application container engine of an open source) server) of support.Background server can be right The data such as the received log-on message acquisition request of institute carry out the processing such as analyzing, and processing result (such as log-on message) is fed back to Test lead 101,102,103.
Server 105 is also possible to provide the server of various services, such as server 105 can be to provide data access The data server of service.Data server can store data (such as the identifying code of the acquisition of short message collection terminal 106,107,108 Deng), data server also can receive the identifying code acquisition request of server 104 and return to query result.
Server 104,105 can be hardware, be also possible to software.When server 104,105 is hardware, may be implemented At the distributed network equipment group that multiple network equipments form, single network equipment also may be implemented into.When server 104,105 When for software, multiple softwares or software module (such as providing Distributed Services) may be implemented into, list also may be implemented into A software or software module.It is not specifically limited herein.
It should be noted that server 105 can be individual number independently of server 104, such as server 105 According to server.Server 105 also can integrate in server 104, for example, server 105 can be integrated in server 104 In database.
Short message collection terminal 106,107,108 can be hardware, be also possible to software.When short message collection terminal 106,107,108 When for hardware, it can be the various electronic equipments that can receive short message (for example, supporting 2G (the 2nd generation, third Generation) network SIM800C module, support 3G (the 3rd generation, the third generation) and 4G (the 4th Generation, the third generation) network SIM7600CE module etc.).It, can when short message collection terminal 106,107,108 is software To be mounted in above-mentioned electronic equipment.Multiple softwares or software module may be implemented into it, also may be implemented into single software or Software module.
It should be noted that can be with test lead for obtaining the method for information provided by some embodiments of the present application 101, it 102,103 executes, the method provided by some embodiments of the present application for obtaining information can be held by server 104 Row, the provided method for obtaining information of some embodiments of the present application can be held by short message collection terminal 106,107,108 Row.
It should be understood that the number of test lead, server and short message collection terminal in Fig. 1 is only schematical.According to reality It now needs, can have any number of test lead, server and short message collection terminal.
With continued reference to Fig. 2, the process of one embodiment of the method for obtaining information according to the application is shown 200.The method for being used to obtain information, includes the following steps 201~203:
Step 201, the log-on message acquisition request that test lead is sent is received.
It in the present embodiment, can for obtaining the executing subject (for example, server 104 shown in FIG. 1) of the method for information To receive the log-on message acquisition request of test lead (such as test lead shown in FIG. 1 101,102,103) transmission.Here, it tests End can be the terminal device tested target software.Target software can be the application provided to meet user demand Program, for example, web browser, shopping software, search software, instant messaging tools, mailbox client, social platform software etc. Deng.Wherein, log-on message acquisition request may include predetermined keyword and preset mobile phone number.Predetermined keyword may include using In characterization target software or the keyword of login authentication, for example, " XX network ", " XX key ", " identifying code " etc..Preset mobile phone number Code can be test lead and log in the phone number inputted when target software.
Step 202, the log-on message with predetermined keyword and preset mobile phone numbers match is obtained.
It in the present embodiment, can for obtaining the executing subject (for example, server 104 shown in FIG. 1) of the method for information To obtain the log-on message with predetermined keyword and preset mobile phone numbers match in log-on message acquisition request.Wherein, it logs in Information may include the information for carrying out login authentication, for example, the information such as short message verification code, login token.Here, with it is default The log-on message of keyword and preset mobile phone numbers match can be to be accordingly stored with predetermined keyword and preset mobile phone number Log-on message.
Step 203, acquired log-on message is returned into test lead.
It in the present embodiment, can for obtaining the executing subject (for example, server 104 shown in FIG. 1) of the method for information Test lead is returned to the log-on message for obtaining step 202, so that test lead is soft using acquired log-on message performance objective The register of part.
In some optional implementations of the present embodiment, login token is identifying code.Here, identifying code may include Short message verification code (SMS Verification Code).Short message verification code can include but is not limited to: number, letter and it Combination.Login authentication is carried out by sending mobile phone for identifying code, can effectively verify the correctness of user.
Corresponding to the implementation, step 202 can specifically include following steps: choose from identifying code set and default The matched identifying code of phone number, as log-on message, wherein the identifying code in identifying code set be short message collection terminal in response to It intercepts the short message comprising predetermined keyword and the short message intercepted is parsed.
The implementation is illustrated below with reference to Fig. 3, Fig. 3 shows a realization side of embodiment shown in Fig. 2 The timing 300 of formula.
As shown in figure 3, tester needs to carry out automation software testing to the target software for being mounted on test lead.Then:
In step 301, test lead can receive log-in instruction.Here, log-in instruction can be soft for logging in target The instruction of part.For example, test lead can receive the instruction of the login XX software of tester's input.
In step 302, after receiving log-in instruction, test lead can be in such a way that analog subscriber be operated, in target The login interface of software inputs preset mobile phone number, and executes the operation for obtaining short message verification code (for example, simulation click is obtained and tested Demonstrate,prove the effect of the button of code), so that the rear end (server-side) of target software sends identifying code short message to preset mobile phone number.
In step 303, short message collection terminal can be intercepted comprising predetermined keyword (for example, " XX network ", " identifying code " etc. Keyword) identifying code short message, if intercepting the identifying code short message comprising default crucial system thens follow the steps 304.Here, short message Collection terminal can be the terminal of the debugging version configured with chip for cell phone, and a short message collection terminal can receive one or more mobile phones The short message of number.
In step 304, short message collection terminal can parse the identifying code short message intercepted, and obtain identifying code short message In short message verification code, and by the receiving number of short message verification code and the identifying code short message (that is, the default hand that step 302 inputs Machine number) it is associated.
Optionally, short message collection terminal can also be associated with predetermined keyword by short message verification code.
In step 305 and 306, the short message verification code that database can receive the transmission of short message collection terminal is (and associated The related informations such as receiving number), and short message verification code and its related information are performed in accordance with storage.Here, database can To be individual data storage device, for storing short message verification code and its related information.
In step 307, test lead sends identifying code acquisition request to server.Wherein, the identifying code acquisition request packet Preset mobile phone number (such as phone number of step 302 input) and predetermined keyword are included (for example, " XX network ", " identifying code " Equal keywords).
In step 308, server sends identifying code acquisition to database and asks after receiving identifying code acquisition request It asks.Wherein, which includes preset mobile phone number.
In step 309 and step 310, server receives the short message verification code that database returns, and by the short-message verification Code is sent to test lead.
In step 311, test lead can input the identifying code received in such a way that analog subscriber operates, and execute mesh Mark the register (for example, effect that login button is clicked in simulation) of software.
In this implementation, through the above steps 301~311 obtain short message verification code, automated log on target software, into And software test can be carried out to target software, to realize the automatic test of target software.
It should be noted that the application is simultaneously unlimited although Fig. 3 shows step 303~306 and executes prior to step 307 In this.It will be understood to those skilled in the art that can also first carry out step 307 executes step 303~306 again;Alternatively, can be with It is performed simultaneously step 307 and step 303~306.
It should be noted that the application is not limited to although Fig. 3 is shown short message verification code storage in the database This.It should be appreciated that short message verification code can also be stored in other suitable manners, for example, short message verification code is stored in In identifying code set.
In some optional implementations of the present embodiment, log-on message is to log in token.Here, token is logged in be also referred to as For access token (Access Token).In general, user, after front end (software login interface) logins successfully, meeting is in rear end (server end) generates a unique value (character string after a string of encryptions) according to user information, this value can be referred to as Log in token.
Corresponding to the implementation, step 202 can specifically include following steps: firstly, inquiry whether there is and preset The login token of keyword and preset mobile phone numbers match;If inquiring matched login token, the login inquired is enabled Board is determined as log-on message;Alternatively, calling identifying code to obtain based on preset mobile phone number if not inquiring matched login token Interface is taken to execute the operation for obtaining identifying code;Later, it is chosen from identifying code set and preset mobile phone numbers match Identifying code, wherein the identifying code in identifying code set is short message collection terminal in response to intercepting the short message comprising predetermined keyword And the short message intercepted is parsed;Then, login interface is called to be used for execute based on selected identifying code Log in the register of target software;Finally, obtaining if register runs succeeded and logging in token, as log-on message.
The implementation is illustrated below with reference to Fig. 4, Fig. 4 shows a realization side of embodiment shown in Fig. 2 The timing 400 of formula.
As shown in figure 4, tester needs to carry out automation software testing to the target software for being mounted on test lead.Then:
In step 401, test lead can send logging request to server.Wherein, logging request may include presetting Phone number and predetermined keyword.
In step 402, server may determine whether and preset mobile phone number and predetermined keyword are matched steps on Record token.For example, server can whether there is matched login token from Local or Remote data base querying.It is deposited if inquiring In matched login token, then using the login token inquired as log-on message.If inquiring, there is no matched login orders Board thens follow the steps 403~411.
In step 403, server can using preset mobile phone number as parameter, call identifying code obtain interface (such as Third party provide identifying code obtain interface) come execute obtain identifying code operation, so as to the rear end (server-side) of target software Identifying code short message is sent to preset mobile phone number.
In step 404, short message collection terminal can be intercepted comprising predetermined keyword (for example, " XX network ", " identifying code " etc. Keyword) identifying code short message, if intercepting the identifying code short message comprising default crucial system thens follow the steps 405.Here, short message Collection terminal can be the terminal of the debugging version configured with chip for cell phone, and a short message collection terminal can receive one or more mobile phones The short message of number.
In step 405, short message collection terminal can parse the identifying code short message intercepted, and obtain identifying code short message In short message verification code, and it is short message verification code is associated with receiving number (that is, the preset mobile phone number) of the identifying code short message.
In step 406 and 407, the short message verification code that database can receive the transmission of short message collection terminal is (and associated The related informations such as receiving number), and short message verification code and its related information are performed in accordance with storage.Here, database can To be individual data storage device, for storing short message verification code and its related information.
In a step 408, server can send identifying code acquisition request to database.Wherein, identifying code acquisition request It may include preset mobile phone number.
In step 409 and 410, server can receive the short message verification code of database return, and the identifying code is made For parameter, login interface (for example, login interface that third party provides) is called.
In step 411, target software success is logged in response to server calls login interface, server is available to be stepped on Token is recorded as log-on message.For example, the extraction in information that logins successfully that server is returned from the server-side of target software logs in Token.
In step 412 and 413, test lead can receive the log-on message (that is, logging in token) of server return, and will Log-on message calls login interface (for example, login interface that third party provides) to log in as parameter.
Optionally, database can also store login token.Accordingly, timing 400 can also include step 414 and step 415。
In step 414 and step 415, database can receive login token (and the preset mobile phone of server transmission Number), and token will be logged in and be performed in accordance with storage with preset mobile phone number.In this way, test lead need to log in target next time it is soft When part, server directly can obtain corresponding login token from database, be tested without sending short message verification code again Card.
In this implementation, through the above steps 401~413 obtain log in token, automated log on target software, in turn Software test can be carried out to target software, to realize the automatic test of target software.
With continued reference to Fig. 5, it illustrates an application scenarios according to the method for obtaining information of the application.Scheming In 5 application scenarios 500, need to carry out software test, Android to WiFi skeleton key on Android mobile phone 51 (that is, test lead) The login interface of WiFi skeleton key (that is, target software) is shown on mobile phone 51.Firstly, 51 analog subscriber input of Android mobile phone Preset mobile phone number " 13800000000 " is input in phone number input frame, and analog subscriber click " acquisition " button with Obtain short message verification code.Later, short message collection terminal 54 is intercepted comprising keyword " identifying code ", " even still scientific and technological " (that is, default close Keyword) short message " identifying code: 4985.[even still scientific and technological] ", and identifying code " 4985 " are extracted from the identifying code short message, and will test It demonstrate,proves code " 4985 ", keyword " identifying code ", " even still scientific and technological " and phone number " 13800000000 " and is used as a record storage Into database 53.Then, Android mobile phone 51 sends identifying code acquisition request to server 52, and identifying code request includes default hand Machine number " 13800000000 " and predetermined keyword " even still scientific and technological ", " identifying code ".Then, server 52 is looked into from database 53 It askes and preset mobile phone number and the matched short message verification code of predetermined keyword (that is, identifying code " 4985 ").Later, server 52 will The short message verification code " 4985 " inquired is sent to Android mobile phone 51.Finally, 51 analog subscriber input of Android mobile phone is by identifying code " 4985 " are input to identifying code input frame, and analog subscriber clicks " login " button.
The method provided by the above embodiment for obtaining information of the application includes pre- by receive test lead transmission If the log-on message acquisition request of keyword and preset mobile phone number, obtain and predetermined keyword and preset mobile phone number later The log-on message matched, finally returns to test lead for log-on message, so as to will acquire log-on message and execute register solution Coupling, realizes the automated log on of target software.
With further reference to Fig. 6, it illustrates for another embodiment according to the method for obtaining information of the application Process 600.The method for being used to obtain information, includes the following steps 601~603:
Step 601, to server send log-on message acquisition request, log-on message acquisition request include predetermined keyword and Preset mobile phone number.
In the present embodiment, test lead will carry out software test, the execution of the method for obtaining information to target software Main body (for example, test lead shown in FIG. 1 101,102,103) can be sent out to server (for example, server 104 shown in FIG. 1) Send log-on message acquisition request.Here, test lead can be the terminal device tested target software.Target software can be with It is the application program that provides to meet user demand, for example, web browser, shopping software, search software, instant messaging work Tool, mailbox client, social platform software etc..Wherein, log-on message acquisition request may include predetermined keyword and preset Phone number.Predetermined keyword may include the keyword for characterizing target software or login authentication, for example, " XX network ", " XX key ", " identifying code " etc..Preset mobile phone number can be test lead and log in the phone number inputted when target software.
Step 602, the log-on message with predetermined keyword and preset mobile phone numbers match that server returns is received.
In the present embodiment, for obtain the method for information executing subject (for example, test lead shown in FIG. 1 101, 102,103) can receive the log-on message with predetermined keyword and preset mobile phone numbers match of server return.Wherein, it steps on Record information may include the information for carrying out login authentication, for example, the information such as short message verification code, login token.Here, with it is pre- It is accordingly deposited if the log-on message of keyword and preset mobile phone numbers match can be with predetermined keyword and preset mobile phone number The log-on message of storage.
Step 603, the register based on acquired log-on message performance objective software.
In the present embodiment, for obtain the method for information executing subject (for example, test lead shown in FIG. 1 101, 102,103) register of acquired log-on message performance objective software can be used.
In some optional implementations of the present embodiment, login token is identifying code.Here, identifying code may include Short message verification code (SMS Verification Code).Short message verification code can include but is not limited to: number, letter and it Combination.Login authentication is carried out by sending mobile phone for identifying code, can effectively verify the correctness of user.
Corresponding to the implementation, step 603 can specifically include following steps: acquired in the operation input of analog subscriber Log-on message, then execute the operation for logging in target software.
Corresponding to the implementation, log-on message can be obtained as follows by server: from identifying code set The identifying code with preset mobile phone numbers match is chosen, as log-on message.Wherein, the identifying code in identifying code set is that short message is adopted Collection end includes the short message of predetermined keyword and is parsed to the short message intercepted in response to intercepting.Here, short message Collection terminal can be the terminal of the debugging version configured with chip for cell phone, and a short message collection terminal can receive one or more mobile phones The short message of number.
In some optional implementations of the present embodiment, before step 601, this is used to obtain the method for information also It may include steps of:
Firstly, receiving the logging request for logging in target software.Here, logging request can be soft for logging in target The instruction of part.For example, test lead can receive the instruction of the login XX software of tester's input.
Then, in a manner of analog subscriber operation, preset mobile phone number is inputted in the login interface of target software, and execute The operation (for example, the effect for obtaining the button of identifying code is clicked in simulation) of short message verification code is obtained, so as to the rear end of target software (server-side) sends identifying code short message to preset mobile phone number.
In some optional implementations of the present embodiment, log-on message is to log in token.Here, token is logged in be also referred to as For access token (Access Token).In general, user, after front end (software login interface) logins successfully, meeting is in rear end (server end) generates a unique value (character string after a string of encryptions) according to user information, this value can be referred to as Log in token.
Corresponding to the implementation, step 603 can specifically include following steps: using the log-on message of acquisition as parameter, Login interface (for example, login interface that third party provides) is called to execute the operation for logging in target software.
Corresponding to the implementation, log-on message can be obtained as follows by server: firstly, whether inquiry deposits In the login token with predetermined keyword and preset mobile phone numbers match.If inquiring matched login token, will inquire Login token be determined as log-on message;Alternatively, being called if not inquiring matched login token based on preset mobile phone number Identifying code obtains interface to execute the operation for obtaining identifying code.Later, it is chosen and preset mobile phone number from identifying code set The matched identifying code of code, wherein the identifying code in identifying code set is short message collection terminal in response to intercepting comprising default key The short message of word and the short message intercepted is parsed.Then, based on selected identifying code call login interface come Execute the register for logging in target software.Finally, obtaining if register runs succeeded and logging in token, as login Information.
The method provided by the above embodiment for obtaining information of the application includes default close by sending to server The log-on message acquisition request of keyword and preset mobile phone number, later receive server return with predetermined keyword and default hand The log-on message of machine numbers match, the register finally based on acquired log-on message performance objective software, so as to It will acquire log-on message and execution register be decoupling, realize the automated log on of target software.
With further reference to Fig. 7, it illustrates the processes 700 of the another embodiment of the method for obtaining information.This is used for The method for obtaining information, includes the following steps 701~703:
Step 701, the short message using preset mobile phone number as receiving number is received.
In the present embodiment, for obtaining the executing subject of the method for information (for example, short message collection terminal shown in FIG. 1 106, it 107,108) can receive the short message using preset mobile phone number as receiving number.Here, preset mobile phone number can be Test lead logs in the phone number inputted when target software.Short message collection terminal can be the end of the debugging version configured with chip for cell phone End, a short message collection terminal can receive the short message of one or more phone numbers.
Step 702, whether detect in short message includes predetermined keyword.
In the present embodiment, for obtaining the executing subject of the method for information (for example, short message collection terminal shown in FIG. 1 106, it whether 107,108) can detecte in the received short message of step 701 comprising predetermined keyword.Here, predetermined keyword can be with Including the keyword for characterizing target software or login authentication, for example, " XX network ", " XX key ", " identifying code " etc..
Step 703, in response to detecting in short message comprising predetermined keyword, identifying code is extracted from short message.
In the present embodiment, if detecting comprising predetermined keyword in the received short message of institute, for obtaining the side of information The executing subject (for example, short message collection terminal shown in FIG. 1 106,107,108) of method can to the short message comprising predetermined keyword into Row parsing, to obtain the identifying code in short message.Wherein, identifying code can be by server (for example, server 104 shown in FIG. 1) It obtains, to be used for the register of test lead (such as test lead shown in FIG. 1 101,102,103) performance objective software.
Here, the short message comprising predetermined keyword can also be referred to as identifying code short message.Identifying code short message can be target The rear end (server-side) of software test lead input preset mobile phone number and execute obtain short message verification code operation it is rear to pre- What if phone number was sent.It is obtained in server calls identifying code the rear end (server-side) that identifying code short message is also possible to target software Take interface it is rear to preset mobile phone number send.
The method provided by the above embodiment for obtaining information of the application, by receive with preset mobile phone number be connect Collect the digits the short message of code, and whether include predetermined keyword, and from short message after detecting predetermined keyword if then detecting in short message Middle extraction identifying code, it is decoupling so as to will acquire log-on message and execution register, realize stepping on automatically for target software Record.
Below with reference to Fig. 8, it illustrates the electronic equipments for being suitable for being used to realize the embodiment of the present application (for example, shown in FIG. 1 Test lead 101,102,103, server 104, short message collection terminal 106,107,108) structural representation of computer system 800 Figure.Electronic equipment shown in Fig. 8 is only an example, should not function to the embodiment of the present application and use scope bring it is any Limitation.
As shown in figure 8, computer system 800 includes one or more central processing unit (CPU) 801, it can basis The program that is stored in read-only memory (ROM) 802 is loaded into random access storage device (RAM) 803 from storage section 808 In program and execute various movements appropriate and processing.In RAM 803, be also stored with system 800 operate it is required various Program and data.CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 are also connected to bus 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;Including such as organic hair The output par, c 807 of optical diode (OLED) display, liquid crystal display (LCD) etc. and loudspeaker etc.;Including hard disk etc. Storage section 808;And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 execute communication process via the network of such as internet.Driver 810 is also connected to I/O interface 805 as needed.It is removable Medium 811, such as disk, CD, magneto-optic disk, semiconductor memory etc. are unloaded, is mounted on driver 810 as needed, with Convenient for being mounted into storage section 808 as needed from the computer program read thereon.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 809, and/or from detachable media 811 are mounted.When the computer program is executed by central processing unit (CPU) 801, limited in execution the present processes Above-mentioned function.
It should be noted that computer-readable medium described herein can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in test lead, server described in above-described embodiment or short message collection terminal;It is also possible to individualism, and without It is incorporated in the test lead, server or short message collection terminal.Above-mentioned computer-readable medium carries one or more program, when When said one or multiple programs are executed by the test lead, so that the test lead: sending log-on message acquisition to server and ask It asks, log-on message acquisition request includes predetermined keyword and preset mobile phone number;Receive server returns and predetermined keyword With the log-on message of preset mobile phone numbers match;Register based on acquired log-on message performance objective software.When upper When stating one or more program by server execution, so that the server: receiving the log-on message that test lead is sent and obtain Request, log-on message acquisition request includes predetermined keyword and preset mobile phone number;It obtains and predetermined keyword and preset mobile phone The log-on message of numbers match;Acquired log-on message is returned into test lead, so that test lead is believed based on acquired login Cease the register of performance objective software.When said one or multiple programs are executed by the short message collection terminal, so that this is short Believe collection terminal: receiving the short message using preset mobile phone number as receiving number;Whether detect in short message includes predetermined keyword;It rings Ying Yu is detected in short message comprising predetermined keyword, and identifying code is extracted from short message.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for obtaining information is applied to server, which comprises
The log-on message acquisition request that test lead is sent is received, the log-on message acquisition request includes predetermined keyword and presets Phone number;
Obtain the log-on message with the predetermined keyword and the preset mobile phone numbers match;
Acquired log-on message is returned into the test lead, so that the test lead executes mesh based on acquired log-on message Mark the register of software.
2. the method according to claim 1, wherein the log-on message is to log in token;And
The log-on message of the acquisition and the predetermined keyword and the preset mobile phone numbers match, comprising:
Inquiry is with the presence or absence of the login token with the predetermined keyword and the preset mobile phone numbers match;
In response to inquiring matched login token, the login token inquired is determined as the log-on message;
Alternatively,
In response to not inquiring matched login token, identifying code is called to obtain interface based on the preset mobile phone number to execute For obtaining the operation of identifying code;
The identifying code with the preset mobile phone numbers match is chosen from identifying code set, wherein in the identifying code set Identifying code is that short message collection terminal solves the short message intercepted in response to intercepting the short message comprising the predetermined keyword What analysis obtained;
Login interface is called to execute the register for logging in the target software based on selected identifying code;
It runs succeeded in response to register, obtains and log in token, as the log-on message.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The acquired login token of storage.
4. the log-on message obtains the method according to claim 1, wherein the log-on message is identifying code Taking request is that the test lead is sent later by the operation that the clicking operation of analog subscriber is executed for obtaining identifying code.
5. according to the method described in claim 4, it is characterized in that, the acquisition and the predetermined keyword and the default hand The log-on message of machine numbers match, comprising:
The identifying code with the preset mobile phone numbers match is chosen from identifying code set, as the log-on message, wherein institute State the identifying code in identifying code set be short message collection terminal in response to intercept include the short message of the predetermined keyword and to blocking What the short message being truncated to was parsed.
6. a kind of method for obtaining information is applied to test lead, which comprises
Log-on message acquisition request is sent to server, the log-on message acquisition request includes predetermined keyword and preset mobile phone Number;
Receive the log-on message with the predetermined keyword and the preset mobile phone numbers match that the server returns;
Register based on acquired log-on message performance objective software.
7. according to the method described in claim 6, it is characterized in that, the log-on message is to log in token;And
The register based on acquired log-on message performance objective software, comprising:
Using the log-on message as parameter, login interface is called to execute the operation for logging in the target software.
8. the method according to the description of claim 7 is characterized in that the log-on message is by the server by operating as follows It obtains:
Inquiry is with the presence or absence of the login token with the predetermined keyword and the preset mobile phone numbers match;
In response to inquiring matched login token, the login token inquired is determined as the log-on message;
Alternatively,
In response to not inquiring matched login token, identifying code is called to obtain interface based on the preset mobile phone number to execute For obtaining the operation of identifying code;
The identifying code with the preset mobile phone numbers match is chosen from identifying code set, wherein in the identifying code set Identifying code is that short message collection terminal solves the short message intercepted in response to intercepting the short message comprising the predetermined keyword What analysis obtained;
Login interface is called to execute the register for logging in the target software based on selected identifying code;
It runs succeeded in response to register, obtains and log in token, as the log-on message.
9. according to the method described in claim 6, it is characterized in that, the log-on message is identifying code;And
The register based on acquired log-on message performance objective software, comprising:
Log-on message described in the operation input of analog subscriber and execute operation for logging in the target software.
10. according to the method described in claim 9, it is characterized in that, it is described to server send log-on message acquisition request it Before, the method also includes:
Receive the logging request for logging in the target software;
The clicking operation of analog subscriber executes the operation for obtaining identifying code.
11. according to the method described in claim 9, it is characterized in that, the log-on message is by the server by grasping as follows It obtains:
Chosen from identifying code set with the identifying code of the preset mobile phone numbers match, as with the predetermined keyword and institute State the log-on message of preset mobile phone numbers match, wherein the identifying code in the identifying code set be short message collection terminal in response to It intercepts the short message comprising the predetermined keyword and the short message intercepted is parsed.
12. a kind of method for obtaining information is applied to short message collection terminal, which comprises
Receive the short message using preset mobile phone number as receiving number;
It whether detects in the short message comprising predetermined keyword;
In response to detecting in the short message comprising the predetermined keyword, identifying code is extracted from the short message.
13. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any one of claims 1 to 12.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein real when described program is executed by processor The now method as described in any one of claims 1 to 12.
CN201811112672.6A 2018-09-25 2018-09-25 For obtaining method, electronic equipment and the computer-readable medium of information Pending CN109241722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811112672.6A CN109241722A (en) 2018-09-25 2018-09-25 For obtaining method, electronic equipment and the computer-readable medium of information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811112672.6A CN109241722A (en) 2018-09-25 2018-09-25 For obtaining method, electronic equipment and the computer-readable medium of information

Publications (1)

Publication Number Publication Date
CN109241722A true CN109241722A (en) 2019-01-18

Family

ID=65056664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811112672.6A Pending CN109241722A (en) 2018-09-25 2018-09-25 For obtaining method, electronic equipment and the computer-readable medium of information

Country Status (1)

Country Link
CN (1) CN109241722A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787991A (en) * 2019-01-31 2019-05-21 平安科技(深圳)有限公司 Exempt from close login method, device, equipment and storage medium based on mobile terminal
CN110022327A (en) * 2019-04-23 2019-07-16 杭州迪普科技股份有限公司 A kind of short message certification test method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424095A (en) * 2013-08-26 2015-03-18 卓望数码技术(深圳)有限公司 Automatic testing method and system of mobile terminal
CN104699618A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method and device used for automatically testing high-privilege progress by designated user
CN105474224A (en) * 2013-08-26 2016-04-06 苹果公司 Secure provisioning of credentials on an electronic device
CN105493439A (en) * 2013-09-25 2016-04-13 迈克菲股份有限公司 Proxy authentication for single sign-on
CN105592065A (en) * 2015-11-05 2016-05-18 中国银联股份有限公司 Method and system for website registration on the basis of mobile phone message
CN106161364A (en) * 2015-04-06 2016-11-23 上海比赞信息科技有限公司 A kind of personal authentication's credential management method and system based on mobile terminal
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107506624A (en) * 2017-08-22 2017-12-22 深圳竹云科技有限公司 A kind of Windows system safe login methods based on short message verification code
CN107562637A (en) * 2017-09-28 2018-01-09 网易有道信息技术(北京)有限公司 It is a kind of for the method for software test, equipment, system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424095A (en) * 2013-08-26 2015-03-18 卓望数码技术(深圳)有限公司 Automatic testing method and system of mobile terminal
CN105474224A (en) * 2013-08-26 2016-04-06 苹果公司 Secure provisioning of credentials on an electronic device
CN105493439A (en) * 2013-09-25 2016-04-13 迈克菲股份有限公司 Proxy authentication for single sign-on
CN104699618A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method and device used for automatically testing high-privilege progress by designated user
CN106161364A (en) * 2015-04-06 2016-11-23 上海比赞信息科技有限公司 A kind of personal authentication's credential management method and system based on mobile terminal
CN105592065A (en) * 2015-11-05 2016-05-18 中国银联股份有限公司 Method and system for website registration on the basis of mobile phone message
CN106899445A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 The method and system of page interface automatic test
CN107506624A (en) * 2017-08-22 2017-12-22 深圳竹云科技有限公司 A kind of Windows system safe login methods based on short message verification code
CN107562637A (en) * 2017-09-28 2018-01-09 网易有道信息技术(北京)有限公司 It is a kind of for the method for software test, equipment, system and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109787991A (en) * 2019-01-31 2019-05-21 平安科技(深圳)有限公司 Exempt from close login method, device, equipment and storage medium based on mobile terminal
CN110022327A (en) * 2019-04-23 2019-07-16 杭州迪普科技股份有限公司 A kind of short message certification test method and device
CN110022327B (en) * 2019-04-23 2021-11-02 杭州迪普科技股份有限公司 Short message authentication test method and device

Similar Documents

Publication Publication Date Title
CN107832468B (en) Demand recognition methods and device
CN109241722A (en) For obtaining method, electronic equipment and the computer-readable medium of information
CN109033406A (en) For searching for the method, apparatus and storage medium of block chain data
CN107832941A (en) Order processing method and device
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
CN109492210A (en) A kind of online document content displaying method, device, storage medium and electronic equipment
CN110198248A (en) The method and apparatus for detecting IP address
CN109582873A (en) Method and apparatus for pushed information
CN109271397A (en) Method and apparatus for handling information
CN110297995A (en) Method and apparatus for Information on Collection
CN110990528A (en) Question answering method and device and electronic equipment
CN109522327A (en) Information generating method, device and system
CN109145591A (en) The plug-in loading method of application program
CN109634827A (en) Method and apparatus for generating information
CN109190058A (en) Method and apparatus for handling information
CN109714357A (en) Method and apparatus for distributing resource
CN109299477A (en) Method and apparatus for generating text header
CN108090351A (en) For handling the method and apparatus of request message
CN109408647A (en) Method and apparatus for handling information
CN108959087A (en) test method and device
CN109145209A (en) For searching for the method, apparatus and storage medium of block chain data
CN110019263A (en) Information storage means and device
CN111488995B (en) Method, device and system for evaluating joint training model
CN108182180B (en) Method and apparatus for generating information
CN109388753A (en) Method and apparatus for handling information

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