CN107040535B - Method, device and system for monitoring login of mobile application channel and storage medium - Google Patents

Method, device and system for monitoring login of mobile application channel and storage medium Download PDF

Info

Publication number
CN107040535B
CN107040535B CN201710223715.7A CN201710223715A CN107040535B CN 107040535 B CN107040535 B CN 107040535B CN 201710223715 A CN201710223715 A CN 201710223715A CN 107040535 B CN107040535 B CN 107040535B
Authority
CN
China
Prior art keywords
login
channel
mobile application
monitoring
information
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.)
Active
Application number
CN201710223715.7A
Other languages
Chinese (zh)
Other versions
CN107040535A (en
Inventor
李芳�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710223715.7A priority Critical patent/CN107040535B/en
Publication of CN107040535A publication Critical patent/CN107040535A/en
Application granted granted Critical
Publication of CN107040535B publication Critical patent/CN107040535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a device, a system and a storage medium for monitoring login of a mobile application channel, which are characterized in that login information generated by automatically logging in any channel by a mobile application through an image recognition technology is received, the login information is written into a configuration file, the login information in the configuration file is read in a preset monitoring period, an authentication request is generated according to the login information and then sent to a channel server, and an authentication result fed back by the channel server is received so as to judge the login condition of the channel.

Description

Method, device and system for monitoring login of mobile application channel and storage medium
Technical Field
The invention relates to the field of mobile application, in particular to a method, a device and a system for monitoring login of a mobile application channel and a storage medium.
Background
With the development of mobile application mobile terminals, hundreds of mobile application distribution channels are also generated, mobile applications are accessed more and more, it becomes very necessary to monitor the services of the channels, the channels generally include a login function, and if a mobile application needs to access a channel, the mobile application needs to access the login function of the corresponding channel.
According to the prior art, each mobile application channel is logged manually, namely, a package of each channel needs to be installed on a mobile phone or a simulator manually, then corresponding mobile application apps are operated, after the apps enter the channels, the channels are logged manually, and then the logging conditions of the channels are monitored after a series of operations such as payment are performed.
The other monitoring method is to monitor the login condition of the mobile application channel through log analysis, namely, the current login condition is monitored by counting the success and failure amount of the log, and if the failure amount reaches a certain threshold value, an alarm is given back. The method lacks the support of a real client, and cannot detect whether the user can log in through an account password, namely, only a log generated after the user logs in can be detected, if the user logs in unsuccessfully after inputting a user name and a password, a problem occurs before the log is generated, so that the log cannot be logged in, and the situation cannot be monitored; for another case, if the threshold is not reached, but the log-in is not performed, the monitoring cannot be performed by the method.
Disclosure of Invention
An embodiment of the present invention provides a method, an apparatus, a system and a storage medium for monitoring login of a mobile application channel, which can effectively solve the problem that the mobile application channel cannot be automatically monitored in real time in the prior art, save time, accurately reflect login conditions through real login, and are fast and effective.
In order to achieve the above object, an embodiment of the present invention provides a method for monitoring login of a mobile application channel, including:
receiving login information sent by a mobile application client, wherein the login information is generated by the mobile application automatically logging in any channel, and the login information at least comprises one of the following information: user identity authentication uid, token; writing the login information into a corresponding configuration file according to a preset format; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
reading the configuration file of the channel according to a preset monitoring period, and acquiring the login information of the channel;
generating a verification request according to the login information of the channel, and sending the verification request to a channel server;
and receiving a verification result fed back by the channel server, and acquiring the login condition of the channel according to the verification result.
Compared with the prior art, the method for monitoring the login of the mobile application channel disclosed by one embodiment of the invention comprises the steps of receiving login information generated by automatically logging in any channel by the mobile application through an image recognition technology, writing the login information into a configuration file, reading the login information in the configuration file in a preset monitoring period, generating a verification request according to the login information, sending the verification request to a channel server, receiving a verification result fed back by the channel server to judge the login condition of the channel, wherein the login information of the channel is generated by the mobile application through the image recognition technology, so that the problems of long time consumption and incapability of real-time monitoring during manual login are avoided, the client needs to log in the channel truly, the channel is monitored through the verification of the login information, and the login condition of the channel can be reflected truly.
As an improvement of one of the above solutions, generating an authentication request according to the login information of the channel, and sending the request to a channel server, includes:
and generating a verification request according to the user identification uid and the token of the channel and the condition of the channel for verifying the user identification uid and the token interface, and sending the verification request to a channel server so as to call the verification interface of the channel. The verification request comprises login information, the requirement of the channel verification interface is met, and effective information whether the channel login is successful or not can be obtained.
As an improvement of one of the above solutions, receiving a verification result fed back by the channel server, and obtaining the login condition of the channel according to the verification result includes:
and forwarding the verification result to a data collection server for analysis or locally analyzing the verification result, and obtaining the login condition of the channel according to the verification result obtained after analysis. And the verification result is selectively sent to a data collection server side or analyzed locally according to the local processing capacity, so that the information whether the channel is effectively logged in can be obtained.
As an improvement of one of the above schemes, obtaining the login condition of the channel according to the verification result specifically includes:
obtaining the login condition of the channel according to a result field in the verification result; wherein, in the result field: 0 indicates login failure, and 1 indicates login success; or 1 means login failure and 0 means login success. The success/failure of login is represented by 0 and 1 of the result field, so that the method conforms to the rule of machine language and is beneficial to subsequent judgment and processing.
As an improvement of one of the above solutions, after obtaining the login condition of the channel according to the verification result, the method further includes:
if the channel login fails, sending a reminding signal; and the verification result is the calling result of the verification interface. An effective way for failure presentation after automatic monitoring is to send out a reminding signal and make corresponding treatment measures in time.
As an improvement of one of the above solutions, the method further comprises the steps of:
and acquiring a login period of the channel, and writing the login period of the channel into a corresponding configuration file, wherein the login period is the validity period of a token of the channel. And defining the validity period of the token, and repeatedly utilizing the token to monitor the channel within the validity period of the token.
One embodiment of the present invention further provides a mobile application channel login monitoring device, which is characterized by comprising:
the receiving module is used for receiving login information sent by a mobile application client, wherein the login information is generated by the mobile application automatically logging in any channel, and the login information at least comprises one of the following information: user identity authentication uid, token; writing the login information into a corresponding configuration file according to a preset format; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
the configuration file reading module is used for reading the configuration file of the channel according to a preset monitoring period and acquiring the login information of the channel;
the verification request sending module is used for generating a verification request according to the login information of the channel and sending the request to a channel server;
and the monitoring module is used for receiving the verification result fed back by the channel server and obtaining the login condition of the channel according to the verification result.
Compared with the prior art, the mobile application channel login monitoring device disclosed by one embodiment of the invention receives login information generated by automatically logging in any channel by a mobile application through an image recognition technology through a receiving module, writes the login information into a configuration file, reads the login information of the channel in the configuration file through a configuration file reading module in a preset monitoring period, generates a verification request according to the login information of the channel through an interface calling module, calls a verification interface of the channel, and finally receives a verification result fed back by a channel service end through the verification module so as to judge the login condition of the channel, wherein the login information of the channel is generated by automatically logging in the channel through the image recognition technology by the mobile application in the scheme, so that the problems of long time consumption of manual login and incapability of real-time monitoring are avoided, in the scheme, the client needs to log in the channel really and the channel is monitored by verifying the login information, so that the login condition of the channel can be reflected really.
One embodiment of the present invention further provides a method for monitoring login of a mobile application channel, which includes the following steps:
when a mobile application under any channel is operated, based on a graph recognition image technology, clicking and inputting operations are simulated on an application login interface, so that automatic login of the mobile application in the channel is completed;
reading the running log of the mobile application to obtain login information generated by logging in the channel, wherein the login information at least comprises one of the following information: user identity authentication uid, token;
and sending the login information to a monitoring end, and monitoring the login condition of the corresponding channel by the monitoring end based on the login information.
Compared with the prior art, the mobile application channel login monitoring method disclosed by one embodiment of the invention adopts the graph recognition technology to simulate clicking and inputting operations on a mobile application login interface, thereby completing automatic login of the mobile application in any channel, then obtains login information generated by logging in the channel by reading the running log of the mobile application, sends the login information to the monitoring end, and monitors the login condition of the channel by the monitoring end, the scheme needs login of a real client, avoids the problem of incomplete monitoring caused by monitoring by counting the success and failure of login in the running log in the prior art, can accurately reflect the real condition of the login channel, adopts the graph recognition technology to realize automatic login of the mobile application, overcomes the problems of long time consumption of manual login and incapability of real-time monitoring, and can monitor the login conditions of a plurality of channels in real time, and automatic monitoring is realized.
As an improvement of one of the above solutions, based on a graph recognition image technology, a click and input operation is simulated on a login interface of a mobile application, which specifically includes:
identifying a login input box in a login interface of a mobile application and the position of the login input box, simulating click operation, and automatically inputting a user name and a password of the mobile application;
and identifying a login button in the login interface of the mobile application and the position of the login button, and simulating click operation, thereby completing the automatic login of the mobile application in the channel. By identifying the login input box and the login button, the real login can be simulated, so that more accurate login monitoring is realized. The steps comprise the identification of the login input box, the login button and the corresponding position, and the function of artificial visual identification can be simulated, so that the automatic login of the mobile application is realized.
As an improvement of one of the above schemes, the login information is sent to the monitoring terminal through an http interface.
As an improvement of one of the above schemes, the method is applied to an android simulator or an android system mobile terminal. When the method is applied to the android simulator, the support of a physical computer can be obtained, and the performance is more stable.
As an improvement of one of the above solutions, the step of simulating a click and an input operation on a corresponding mobile application login interface, thereby completing the automatic login of the mobile application in the channel specifically includes:
and simulating clicking and inputting operations on the mobile application login interface according to the preset login period of the channel, so as to finish the automatic periodic login of the mobile application in the channel. And the automatic periodic login can obtain a new token, thereby realizing more accurate monitoring.
As an improvement of one of the above solutions, the method further comprises the steps of:
and acquiring the login period of the channel, and sending the login period of the channel to the monitoring end. The problem of timeliness of the token can be solved through periodic login, and monitoring is more real-time and more effective.
One embodiment of the present invention further provides a mobile application channel login monitoring device, which is characterized by comprising:
the automatic login module is used for simulating clicking and inputting operations on a login interface of the mobile application based on a graph recognition image technology when the mobile application under any channel is operated, so that the automatic login of the mobile application in the channel is completed;
a log reading module, configured to read an operation log of the mobile application, and obtain login information generated by logging in the channel, where the login information at least includes one of the following: user identity authentication uid, token;
and the monitoring module is used for sending the login information to a monitoring end, and the monitoring end monitors the login condition of the corresponding channel based on the login information.
Compared with the prior art, the mobile application channel login monitoring device disclosed by one embodiment of the invention firstly adopts a graphic recognition technology to simulate clicking and input operation on a mobile application login interface through an automatic login module, so that automatic login of the mobile application in any channel is completed, then a log reading module reads an operation log of the mobile application to obtain login information generated by logging in the channel, and finally the login information is sent to a monitoring end through the monitoring module, and the login condition of the channel is monitored by the monitoring end; meanwhile, the automatic login of the mobile application is realized by adopting a graph recognition technology, so that the complexity of manual login is overcome; furthermore, manual login cannot be frequently operated, and the difficult problem of untimely monitoring can be brought.
One embodiment of the present invention further provides a system for monitoring login of a mobile application channel, which includes:
the monitoring terminal comprises the mobile application channel login monitoring device in one embodiment;
the mobile application client comprises the mobile application channel login monitoring device in one embodiment.
Compared with the prior art, in the mobile application channel login monitoring system disclosed by one embodiment of the invention, the monitoring end comprises the mobile application channel login monitoring device disclosed by one embodiment of the invention, and the mobile application client comprises the mobile application channel login monitoring device disclosed by one embodiment of the invention, so that real-time and accurate login monitoring can be realized.
One embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the method for monitoring login of a mobile application channel according to one embodiment of the present invention.
One embodiment of the present invention further provides a storage medium, where the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the method for monitoring login of a mobile application channel according to one embodiment.
One embodiment of the invention also provides a terminal, which comprises one or more processors; a memory; a display device; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the mobile application channel login monitoring method of one of the embodiments described above.
One embodiment of the invention also correspondingly provides a server, which comprises one or more processors; a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the mobile application channel login monitoring method of one of the embodiments described above.
Drawings
Fig. 1 is a flowchart illustrating a method for monitoring login of a mobile application channel according to an embodiment of the present invention.
FIG. 2 is a diagram illustrating a channel login verification process according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for monitoring login of a mobile application channel according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating a method for monitoring login of a mobile application channel according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a mobile application channel login monitoring apparatus according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating a method for monitoring login of a mobile application channel according to an embodiment of the present invention.
Fig. 7 is a flowchart illustrating step S11 according to an embodiment of the present invention.
Fig. 8 is a flowchart illustrating a method for monitoring login of a mobile application channel according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of a mobile application channel login monitoring apparatus according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of the automatic login module 201 according to an embodiment of the present invention.
Fig. 11 is a schematic structural diagram of a mobile application channel login monitoring system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flow chart of another mobile application channel login monitoring method according to an embodiment of the present invention is shown, which includes the steps of:
s1, receiving login information sent by a mobile application client, wherein the login information is generated by the mobile application automatically logging in any channel, and the login information at least comprises one of the following information: user identity authentication uid, token; writing the login information into a corresponding configuration file according to a preset format; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
in this step, the User Identification uid is an abbreviation of User Identification, i.e., a User Identification (id corresponding to the channel account); the token is a verification token returned by the channel after the mobile application logs in, and is used for verifying the legality of the channel. The user downloads the mobile application from the channel to the game client, then channel login is carried out, each login generates a log at the back end of the game, and the log contains various login information including information such as user identity identification uid, token and whether login is successful.
S2, reading the configuration file of the channel according to a preset monitoring period, and acquiring the login information of the channel;
the smaller the monitoring period is, the higher the logging monitoring precision of the mobile application channel is, and the more accurate the real logging condition of the mobile application in the channel can be reflected. However, in practical situations, the computing power of the system needs to be considered, and the monitoring period cannot be shortened infinitely.
S3, generating a verification request according to the login information of the channel, and sending the verification request to a channel server;
and the verification request comprises the login information of the channel, and the validity of login is verified while the validity of the login is verified according to the login information of the channel.
And S4, receiving a verification result fed back by the channel server, and obtaining the login condition of the channel according to the verification result.
The verification result comprises the legality of the channel and the validity of login, so that whether the channel successfully logs in can be judged according to the verification result. Preferably, the verification result includes a channel identification (such as an internet channel, a 360-degree channel, a Baidu channel, etc.) and a result field of the channel. The login condition of the channel can be judged through the result field; in the result field, 0 represents login failure, and 1 represents login success; or 1 means login failure and 0 means login success.
In specific implementation, firstly, receiving login information generated by automatic login of a mobile application in any channel, writing the login information of the channel into a configuration file of a corresponding channel according to a preset format, and reading the configuration file of the channel according to a preset monitoring period to acquire the login information of the channel; constructing a verification request according to the login information of the channel, and sending the verification request to a channel server; and then receiving a verification result fed back by the channel server, obtaining the login condition of the channel according to the verification result, and sending a reminding signal if the channel login fails. The channel login is automatically generated by the mobile application based on the image recognition technology, the problems that manual login is long in time consumption and cannot be monitored in real time are solved, login information generated by real login of a client is needed, channel monitoring is carried out in a mode of verifying the login information, the login condition of the channel can be reflected truly, and accuracy is high. On the other hand, the corresponding configuration file is periodically read in the preset monitoring period to obtain the login information of the channel for monitoring, the token written in the configuration file can be repeatedly utilized, and the channel is not required to be carried out once the token is verified. In addition, the monitoring precision can be adjusted by setting different monitoring periods, and compared with the login condition of manually logging in to obtain the channel, the method is more controllable.
It should be noted that, the method and the system for monitoring the login condition of the channel by adopting the process of verifying the uid and the token by the monitoring terminal are different from the method and the system for judging whether the login of the channel is abnormal by adopting the ratio of success and failure of login in the statistical running log in the prior art, and can more accurately reflect the login condition of each channel.
The process of verifying the uid and token at the monitoring end is specifically that, as shown in fig. 2, after a user inputs an account password at a mobile application client, such as a game client, the user logs in on an interface, and at this time, a request for verifying the account password at a channel background is triggered; after the account password is successfully verified, the channel server side returns the user identity identification uid corresponding to the account and the logged access token to the game client side; and then the game client sends the user identity identification uid and the token to the monitoring end, the monitoring end verifies the effectiveness of the user identity identification uid and the token through an interface of the channel, and the channel server returns the verification result to the monitoring end, so that whether the user identity identification uid and the token are true or not and the channel identity is reliable or not are judged. According to the scheme, the channel verification process is used for monitoring the login conditions of the plurality of channels, so that the login conditions of the channels can be truly and accurately reflected, and more efficient monitoring is realized.
Similarly, since tokens are time-efficient, the validity period of token tokens for each channel needs to be defined in the configuration file. As shown in fig. 3, the method for monitoring login of mobile application channel in another preferred embodiment further comprises the steps of:
s5, obtaining the login period of the channel, and writing the login period of the channel into a corresponding configuration file, wherein the login period is the validity period of the token of the channel.
The validity period of a new token is obtained every time a channel is logged in, so that the login period of the channel can be used as the validity period of the token of the channel. And in the validity period of the token, reading the valid token in the configuration file to perform the next verification, so as to obtain the accurate login condition of the channel, and when the validity period of the token is exceeded, the valid token cannot be read, the next verification cannot be performed, and the login condition of the channel cannot be obtained.
In a preferred embodiment, as shown in fig. 4, step S3 generates an authentication request according to the login information of the channel, and sends the authentication request to the channel server, which specifically includes:
s31, generating a verification request according to the user identification uid and the token of the channel and the condition of the channel for verifying the user identification uid and the token interface, and sending the verification request to a channel server to call the verification interface of the channel;
receiving the verification result fed back by the channel server in step S4, and obtaining the login status of the channel according to the verification result specifically includes:
and S41, forwarding the verification result to a data collection server for analysis or locally analyzing the verification result, and obtaining the login condition of the channel according to the verification result obtained after analysis.
After the mobile application client accesses the channel, the channel server provides a corresponding verification interface to verify the validity of the user identification uid and the token interface. Therefore, it can be understood that the authentication request needs to satisfy the requirement of the channel for authenticating the user identification uid and the token interface in addition to the user identification uid and the token information of the channel. The verification result fed back by the channel server side is generally packed encrypted data, so that the verification result is received and then needs to be sent to a data collection server side or analyzed locally, and the identification of the channel and the result of interface calling can be obtained after the verification result is analyzed. According to the channel identification and the interface calling result, the login condition (including login success and login failure) of the channel can be judged.
In addition, after the login condition of the channel is obtained according to the verification result, if the channel login fails, a reminding signal is sent out; and the verification result is the calling result of the verification interface.
Referring to fig. 5, a schematic structural diagram of a mobile application channel login monitoring apparatus according to an embodiment of the present invention is shown, including:
the receiving module 101 is configured to receive login information sent by a mobile application client, where the login information is information generated by the mobile application automatically logging in any channel, and the login information at least includes one of the following information: user identity authentication uid, token; writing the login information into a corresponding configuration file according to a preset format; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
the configuration file reading module 102 is configured to read a configuration file of the channel according to a preset monitoring period, and acquire login information of the channel;
the verification request sending module 103 is configured to generate a verification request according to the login information of the channel, and send the verification request to the channel server;
and the monitoring module 104 is configured to receive a verification result fed back by the channel server, and obtain a login condition of the channel according to the verification result.
The verification module judges the login condition of the channel according to a result field in the verification result; in the result field, 0 represents login failure, and 1 represents login success; or 1 means login failure and 0 means login success.
In a preferred embodiment, the verification request sending module 103 is further configured to generate a verification request according to the user identification uid and the token of the channel and the condition of the channel for verifying the user identification uid and the token interface, and send the verification request to the channel server to invoke the verification interface of the channel.
In a preferred embodiment, the monitoring module is further configured to forward the verification result to a data collection server for analysis or locally analyze the verification result, and obtain the login condition of the channel according to the verification result obtained after analysis.
In a preferred embodiment, the mobile application channel login monitoring apparatus 100 further includes a reminding module, configured to send a reminding signal if the channel login fails; and the verification result is the calling result of the verification interface.
The receiving module is further configured to obtain a login period of the channel, and write the login period of the channel into a corresponding configuration file, where the login period is a validity period of a token of the channel. The token validity period of the channel can be defined by writing the login period of the channel in the corresponding configuration file, thereby realizing more effective monitoring.
For a specific process of the mobile application channel login monitoring apparatus in this embodiment, reference may be made to the mobile application channel login monitoring method in embodiment 4, which is not described herein again.
Referring to fig. 6, which is a schematic flow chart of a mobile application channel login monitoring method according to an embodiment of the present invention, including the steps of:
s11, when the mobile application under any channel is operated, based on the image recognition technology, clicking and inputting operations are simulated on a corresponding mobile application login interface, so that automatic login of the mobile application in the channel is completed;
among them, image recognition is a technique in which a computer processes, analyzes, and understands an image to recognize various different patterns of objects and objects. The identification process comprises image preprocessing, image segmentation, feature extraction and judgment matching. In brief, image recognition is how a computer reads the contents of a picture like a person. By means of the image recognition technology, the information can be acquired more quickly through picture searching, a new mode of interacting with the external world can be generated, and the external world can operate more intelligently. Therefore, through the image recognition technology, the login input frame and the login button are recognized, and various automatic test frames are combined, so that clicking and input operations of a user at corresponding positions can be simulated, automatic login of mobile applications in each channel is realized, and manual login is not needed.
S12, reading the running log of the mobile application, and obtaining login information generated by logging in the channel, wherein the login information at least comprises one of the following information: user identity authentication uid, token;
the user downloads the mobile application from the channel to the client, then channel login is carried out, each login generates a log at the back end of the game, and the log contains various login information including user identification uid, token and whether login is successful or not.
And S13, sending the login information to a monitoring terminal, and monitoring the login condition of the corresponding channel by the monitoring terminal based on the login information.
And the monitoring end verifies the login information to obtain the legality of the channel and whether the login is normal.
In the scheme, a pattern recognition technology is adopted to realize automatic login of the mobile application in any channel, wherein as shown in fig. 7, a pattern recognition technology is adopted to simulate clicking and inputting operations in step S11, and the method specifically includes:
s111, identifying a login input box in a login interface of the mobile application and the position of the login input box, simulating click operation, and automatically inputting a user name and a password of the mobile application;
and S112, identifying a login button in the login interface of the mobile application and the position of the login button, and simulating click operation, thereby completing automatic login of the mobile application in the channel.
It can be understood that the login input box and the corresponding position need to be identified by naked eyes through manual login, and then login information including a user name and a password is manually clicked and input; and then, identifying the login button and the corresponding position by naked eyes, and manually clicking the login button to finish login operation. In the scheme, the login input box, the login button and the corresponding positions are identified by adopting a graphic identification technology, and the manual login process can be automatically completed by combining an automatic test framework, so that automatic monitoring is realized.
It should be noted that an automated testing framework, i.e., a framework for application to automated testing, is described. By definition of the framework, the automated testing framework either provides a reusable base automated testing module, such as: selenium, watir, etc., which mainly provide the most basic automated testing functions, such as opening a program, simulating a mouse and a keyboard to click or operate a tested object, and finally verifying the properties of the tested object to judge the correctness of the program.
According to the mobile application channel login monitoring method provided by the embodiment, in the process of running a mobile application in any channel, based on an image recognition technology, clicking and inputting operations are simulated on a mobile application login interface, the automatic login of the mobile application in the channel is completed, then the running logs are read, login information generated by logging in each channel is obtained, the login information of the channel is sent to a monitoring end, and the monitoring end monitors the login condition of the channel. The scheme adopts the image recognition technology to realize automatic login of the mobile application in any channel, avoids the defects that manual login is long in time consumption and the login cannot be frequently and repeatedly monitored in real time, realizes the automation of monitoring, monitors the login condition of the channel by adopting the process of verifying login information by a monitoring end (including the verification of user identity information uid and token), is different from the prior art which judges whether the login of the channel is abnormal by counting the ratio of success and failure of login in an operation log, and can more accurately reflect the login condition of each channel. The process of the game client verifying the login information is specifically shown in fig. 2.
Since the token has a certain timeliness, the token cannot be reused all the time and needs to be updated regularly. And simulating clicking and input operation on a login interface of the mobile application according to the login period of the channel, so that the mobile application enables the login period of the channel to automatically log in the channel, and a new token can be obtained and sent to the game server and written into a configuration file of the game server.
As shown in fig. 8, based on the timeliness of the token, the method for monitoring login of a mobile application channel in another preferred embodiment further includes the following steps:
s14, obtaining the login period of the channel, and sending the login period of the channel to the game server.
And sending a login period to the game server, wherein the validity period of the token of the channel can be defined at the game server. And obtaining the effective token for verification in the validity period of the token, so as to obtain the accurate login condition of the channel, and when the validity period of the token is exceeded, the effective token cannot be read, so that the login condition of the channel cannot be obtained.
Preferably, the mobile application channel login monitoring method provided by the embodiment is applied to an android simulator or an android system mobile terminal, because the android simulator is installed on a physical computer, the performance is more stable, and the processing speed is faster. And the android system mobile terminal can continuously generate heat and delay due to high-frequency repeated use, and even a dead halt phenomenon can possibly occur.
Referring to fig. 9, a schematic structural diagram of a mobile application channel login monitoring apparatus according to an embodiment of the present invention is shown, including:
the automatic login module 201 is used for simulating clicking and inputting operations on an application login interface based on a graph recognition image technology when a mobile application under any channel is operated, so that the automatic login of the mobile application in the channel is completed;
a log reading module 202, configured to read an operation log of the mobile application, and obtain login information generated by logging in the channel, where the login information at least includes one of the following: user identity authentication uid, token;
and the monitoring module 203 is configured to send the login information to a monitoring end, and the monitoring end monitors the login condition of the corresponding channel based on the login information.
Wherein, the monitoring module 203 sends the uid and token to the game server by calling an http interface.
As can be appreciated, as shown in fig. 10, the automatic login module 201 includes:
a login input box identification unit 2011, configured to identify a login input box in a login interface of a mobile application and a position of the login input box, simulate a click operation, and automatically input a user name and a password of the mobile application;
the login button recognition unit 2012 is configured to recognize a login button in the mobile application login interface and a position of the login button, and simulate a click operation, so as to complete automatic login of the mobile application in the channel.
In a preferred embodiment, the device is applied to an android simulator or an android system mobile terminal.
In a preferred embodiment, the automatic login module is further configured to simulate a click and an input operation on a login interface of a mobile application according to a preset login period of the channel, so as to complete automatic periodic login of the mobile application in the channel. And a new token can be obtained by automatically and periodically logging in the channel, so that real-time monitoring is realized, and more accurate channel logging condition is obtained.
For a specific process of the mobile application channel login monitoring apparatus in this embodiment, reference may be made to the mobile application channel login monitoring method provided in the foregoing embodiment, which is not described herein again.
Referring to fig. 11, a schematic structural diagram of a mobile application channel login monitoring system according to an embodiment of the present invention is shown, including:
the monitoring terminal 301 comprises the mobile application channel login monitoring device;
and the mobile application client 302 comprises the mobile application channel login monitoring device.
For the specific working process of the mobile application channel login monitoring system of this embodiment, reference may be made to the mobile application channel login monitoring method provided in the foregoing embodiment, which is not described herein again.
Correspondingly, the invention provides a storage medium, which comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute any one of the above mobile application channel login monitoring methods.
Correspondingly, the invention provides a terminal comprising one or more processors; a memory; a display device; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing any of the mobile application channel login monitoring methods described above.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and may also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits. However, the implementation of a software program is a more preferable embodiment for the present invention. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention, and that such changes and modifications are to be considered in the light of the teachings of the present invention.

Claims (19)

1. A mobile application channel login monitoring method is characterized by comprising the following steps:
the method comprises the following steps that a monitoring end receives login information sent by a mobile application client, wherein the login information is generated by automatic login of a mobile application in any mobile application access channel, and the login information at least comprises one of the following information: user identity authentication uid, token; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
the monitoring terminal writes the login information into a configuration file of a corresponding channel according to a preset format;
the monitoring end reads the configuration file of the channel according to a preset monitoring period to acquire the login information of the channel;
the monitoring terminal generates a verification request according to the login information of the channel acquired periodically and periodically sends the verification request to the channel server;
and the monitoring end receives a verification result fed back by the channel server end and acquires the login condition of the channel according to the verification result.
2. The mobile application channel login monitoring method of claim 1, wherein generating an authentication request according to the login information of the channel, and sending the request to a channel server comprises:
and generating a verification request according to the user identification uid and the token of the channel and the condition of the channel for verifying the user identification uid and the token interface, and sending the verification request to a channel server so as to call the verification interface of the channel.
3. The method for monitoring login of a mobile application channel according to claim 1, wherein receiving a verification result fed back by the channel server, and obtaining the login condition of the channel according to the verification result comprises:
and forwarding the verification result to a data collection server for analysis or locally analyzing the verification result, and obtaining the login condition of the channel according to the verification result obtained after analysis.
4. The method for monitoring login of a mobile application channel according to any one of claims 1 to 3, wherein obtaining the login condition of the channel according to the verification result specifically comprises:
obtaining the login condition of the channel according to a result field in the verification result; wherein, in the result field: 0 indicates login failure, and 1 indicates login success; or 1 means login failure and 0 means login success.
5. The method for monitoring login of a mobile application channel according to claim 2, after obtaining the login status of the channel according to the verification result, further comprising:
if the channel login fails, sending a reminding signal; and the verification result is the calling result of the verification interface.
6. The mobile application channel login monitoring method of claim 1, wherein the method further comprises the steps of:
and acquiring a login period of the channel, and writing the login period of the channel into a corresponding configuration file, wherein the login period is the validity period of a token of the channel.
7. A mobile application channel login monitoring device, comprising:
the monitoring terminal receiving module is used for receiving login information sent by a mobile application client, wherein the login information is generated by automatically logging in any mobile application access channel by the mobile application, and the login information at least comprises one of the following information: user identity authentication uid, token; the mobile application simulates clicking and inputting operations on a corresponding mobile application login interface based on a graph recognition technology so as to realize automatic login in the channel;
the monitoring terminal configuration file writing module writes the login information into a configuration file of a corresponding channel according to a preset format;
the monitoring terminal configuration file reading module is used for reading the configuration file of the channel according to a preset monitoring period and acquiring the login information of the channel;
the monitoring terminal verification request sending module is used for generating a verification request according to the login information of the channel and sending the request to the channel server;
and the monitoring end monitoring module is used for receiving the verification result fed back by the channel server and obtaining the login condition of the channel according to the verification result.
8. A mobile application channel login monitoring method is characterized by comprising the following steps:
when a mobile application under any mobile application access channel is operated, based on a graph recognition image technology, clicking and inputting operations are simulated on a mobile application login interface, so that automatic login of the mobile application in the channel is completed;
reading the running log of the mobile application to obtain login information generated by logging in the channel, wherein the login information at least comprises one of the following information: user identity authentication uid, token;
sending the login information to a monitoring end, and enabling the monitoring end to: writing the login information into a configuration file of a corresponding channel according to a preset format; reading the configuration file of the channel according to a preset monitoring period, and acquiring the login information of the channel; generating a verification request according to the login information of the channel acquired periodically, and periodically transmitting the verification request to a channel server; and receiving a verification result fed back by the channel server to monitor the login condition of the corresponding channel.
9. The mobile application channel login monitoring method of claim 8, wherein the operations of clicking and inputting are simulated on the mobile application login interface based on a graph recognition image technology, and specifically comprises:
identifying a login input box in a login interface of a mobile application and the position of the login input box, simulating click operation, and automatically inputting a user name and a password of the mobile application;
and identifying a login button in the login interface of the mobile application and the position of the login button, and simulating click operation, thereby completing the automatic login of the mobile application in the channel.
10. The mobile application channel login monitoring method of claim 8, wherein the login information is sent to the monitoring end through an http interface.
11. The mobile application channel login monitoring method of claim 8, wherein the method is applied to an android simulator or an android system mobile terminal.
12. The mobile application channel login monitoring method of claim 8, wherein simulating click and input operations on a corresponding mobile application login interface, thereby completing automatic login of the mobile application in the channel specifically comprises:
and simulating clicking and inputting operations on the mobile application login interface according to the preset login period of the channel, so as to finish the automatic periodic login of the mobile application in the channel.
13. The mobile application channel login monitoring method of claim 8, wherein the method further comprises the steps of:
and acquiring the login period of the channel, and sending the login period of the channel to the monitoring end.
14. A mobile application channel login monitoring device, comprising:
the automatic login module is used for simulating clicking and inputting operations on a login interface of the mobile application based on a graph recognition image technology when the mobile application under any mobile application access channel is operated, so that the automatic login of the mobile application in the channel is completed;
a log reading module, configured to read an operation log of the mobile application, and obtain login information generated by logging in the channel, where the login information at least includes one of the following: user identity authentication uid, token;
the monitoring module is used for sending the login information to a monitoring end, and the monitoring end: writing the login information into a configuration file of a corresponding channel according to a preset format; reading the configuration file of the channel according to a preset monitoring period, and acquiring the login information of the channel; generating a verification request according to the login information of the channel acquired periodically, and periodically transmitting the verification request to a channel server; and receiving a verification result fed back by the channel server to monitor the login condition of the corresponding channel.
15. A mobile application channel login monitoring system, comprising:
a monitoring end, comprising the mobile application channel login monitoring device of claim 7;
a mobile application client comprising the mobile application channel login monitoring device of claim 14.
16. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the mobile application channel login monitoring method according to any one of claims 1 to 6.
17. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the mobile application channel login monitoring method according to any one of claims 8 to 13.
18. A terminal comprising one or more processors; a memory; a display device; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the mobile application channel login monitoring method of any of claims 1-6.
19. A server comprising one or more processors; a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the mobile application channel login monitoring method of any of claims 8-13.
CN201710223715.7A 2017-04-07 2017-04-07 Method, device and system for monitoring login of mobile application channel and storage medium Active CN107040535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710223715.7A CN107040535B (en) 2017-04-07 2017-04-07 Method, device and system for monitoring login of mobile application channel and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710223715.7A CN107040535B (en) 2017-04-07 2017-04-07 Method, device and system for monitoring login of mobile application channel and storage medium

Publications (2)

Publication Number Publication Date
CN107040535A CN107040535A (en) 2017-08-11
CN107040535B true CN107040535B (en) 2020-07-10

Family

ID=59533449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710223715.7A Active CN107040535B (en) 2017-04-07 2017-04-07 Method, device and system for monitoring login of mobile application channel and storage medium

Country Status (1)

Country Link
CN (1) CN107040535B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156237B (en) * 2017-12-22 2020-07-31 平安养老保险股份有限公司 Product information pushing method and device, storage medium and computer equipment
CN108920910A (en) * 2018-08-01 2018-11-30 北京奇安信科技有限公司 A kind of mobile security service SDK authorization management method and device
CN109388538B (en) * 2018-09-13 2020-12-08 西安交通大学 Kernel-based file operation behavior monitoring method and device
CN110610071A (en) * 2019-08-20 2019-12-24 广州海颐信息安全技术有限公司 Privileged account management method and device based on screen identification
CN110780789B (en) * 2019-10-25 2023-01-06 腾讯科技(深圳)有限公司 Game application starting method and device, storage medium and electronic device
CN110990073B (en) * 2019-11-13 2023-09-29 北京城市网邻信息技术有限公司 Method and device for verifying customization requirements of application program
CN111460356B (en) * 2020-04-23 2024-03-12 北京信安世纪科技股份有限公司 Automatic login method, device, medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065147A (en) * 2011-01-07 2011-05-18 深圳市易聆科信息技术有限公司 Method and device for obtaining user login information based on enterprise application system
CN103268331A (en) * 2011-11-21 2013-08-28 北京奇虎科技有限公司 Automatic login method and automatic login device
CN104283703A (en) * 2013-07-08 2015-01-14 中国移动通信集团黑龙江有限公司 User login reminding method and system
CN105847008A (en) * 2016-03-18 2016-08-10 北京理工大学 Anonymous subscription agreement and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8700788B2 (en) * 2006-08-18 2014-04-15 Smarticon Technologies, Llc Method and system for automatic login initiated upon a single action with encryption

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065147A (en) * 2011-01-07 2011-05-18 深圳市易聆科信息技术有限公司 Method and device for obtaining user login information based on enterprise application system
CN103268331A (en) * 2011-11-21 2013-08-28 北京奇虎科技有限公司 Automatic login method and automatic login device
CN104283703A (en) * 2013-07-08 2015-01-14 中国移动通信集团黑龙江有限公司 User login reminding method and system
CN105847008A (en) * 2016-03-18 2016-08-10 北京理工大学 Anonymous subscription agreement and system thereof

Also Published As

Publication number Publication date
CN107040535A (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN107040535B (en) Method, device and system for monitoring login of mobile application channel and storage medium
CN108959068B (en) Software interface testing method, device and storage medium
CN109241343B (en) System, method and device for identifying brush amount user
CN112884092A (en) AI model generation method, electronic device, and storage medium
CN107168844B (en) Performance monitoring method and device
CN115757150A (en) Production environment testing method, device, equipment and storage medium
CN105955838A (en) System halt reason check method and device
CN109840212B (en) Function test method, device and equipment of application program and readable storage medium
CN109656803B (en) Information pushing method and device and electronic equipment
US9304891B1 (en) Load-test generator
CN112882957A (en) Test task validity checking method and device
CN112667501A (en) Link testing method and device based on automatic baffle and related equipment
CN115242684B (en) Full-link pressure measurement method and device, computer equipment and storage medium
CN116662193A (en) Page testing method and device
CN111476349A (en) Model testing method and server
CN114245204B (en) Video surface signing method and device based on artificial intelligence, electronic equipment and medium
CN105405220A (en) Method and device for automated test
CN114416596A (en) Application testing method and device, computer equipment and storage medium
CN113656314A (en) Pressure test processing method and device
CN113656313A (en) Automatic test processing method and device
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
CN112445697A (en) Method and apparatus for testing applications
CN118037279B (en) Automatic operation and maintenance management system and method for photovoltaic equipment based on computer vision
CN115242491B (en) APP cloud detection method and system based on web crawlers

Legal Events

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