CN111125654A - Method and device for automatically logging in client based on log file and readable medium - Google Patents

Method and device for automatically logging in client based on log file and readable medium Download PDF

Info

Publication number
CN111125654A
CN111125654A CN201911324098.5A CN201911324098A CN111125654A CN 111125654 A CN111125654 A CN 111125654A CN 201911324098 A CN201911324098 A CN 201911324098A CN 111125654 A CN111125654 A CN 111125654A
Authority
CN
China
Prior art keywords
log file
log
automatic login
real time
login
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
CN201911324098.5A
Other languages
Chinese (zh)
Inventor
马力
李爱华
蔡其锋
周诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201911324098.5A priority Critical patent/CN111125654A/en
Publication of CN111125654A publication Critical patent/CN111125654A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a log file-based client automatic login method, a log file-based client automatic login device and a readable medium, wherein the method for visualizing the function call time and the statistical result of a main user embedded system comprises the following steps: monitoring a user login interface in real time, and generating a log corresponding to the identification when a corresponding control appears; monitoring the log information in real time, and acquiring log file information when a corresponding identifier appears; and carrying out automatic login according to the log file information. The invention has the beneficial effects that: the statistical result data is visualized, so that an engineer can conveniently and quickly locate the problem in the development process of the embedded system, the debugging efficiency of the system is improved, and the operation bottleneck of the system is easier to find.

Description

Method and device for automatically logging in client based on log file and readable medium
Technical Field
The invention relates to the field of game automation test, in particular to a method and a device for client automatic login based on a log file and a readable medium.
Background
The network game client terminal is automatically tested, the system needs to automatically start the client terminal, complete automatic login and then perform scene test in the game.
The man-machine login process is that human eyes judge whether an account password input box appears or not and then manually input, and the difficulty of the automatic process is that the process of human eye identification is unavailable, so the input time is difficult to control.
The common solution is image recognition similar to a key sprite, and image matching is performed on a display picture in real time to judge whether a target button or other controls appear. However, the disadvantage is that the game has rich pictures, and the button control even has a semitransparent effect, so that the success rate of image matching is not high, and matching failure is easy to occur.
Disclosure of Invention
The invention aims to solve at least one technical problem in the prior art, and provides a method, a device and a readable medium for automatically logging in a client based on a log file, which have low implementation cost and higher success rate than image matching.
The technical scheme of the invention comprises a method for automatically logging in a client based on a log file, which is characterized by comprising the following steps: s100, monitoring a user login interface in real time, and generating a log corresponding to the identification when a corresponding control appears; s200, monitoring the log information in real time, and acquiring log file information when a corresponding identifier appears; and S300, performing automatic login according to the log file information.
According to the log file-based client automatic login method, the identifier is set as a user-defined keyword.
According to the log file-based client automatic login method, the obtaining S100 specifically includes: and monitoring the user interface in real time, and generating the custom keyword write-in log when the login interface control is monitored.
According to the log file-based client automatic login method, the obtaining S200 specifically includes: and reading log file information in real time, and issuing an automatic login instruction when the user-defined keyword is read.
According to the log file-based client automatic login method, S300 specifically includes: and calling a keyboard interface provided by the system and account password information input by a historical user to automatically log in.
The technical scheme of the invention also comprises a device for automatically logging in the client based on the log file, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, and is characterized in that any one of the method steps is realized when the processor executes the computer program.
The technical solution of the present invention further includes a computer-readable storage medium, in which a computer program is stored, and when being executed by a processor, the computer program implements any of the method steps described above.
The invention has the beneficial effects that: the implementation cost is low, only the game client is required to write the log file, the image matching technology is not required to be used, and the success rate is higher than that of image matching.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
FIG. 1 illustrates an overall flow diagram according to an embodiment of the invention;
fig. 2 shows a schematic view of an apparatus according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.
FIG. 1 shows a general flow diagram according to an embodiment of the invention. The process comprises the following steps: s100, monitoring a user login interface in real time, and generating a log corresponding to the identification when a corresponding control appears; s200, monitoring the log information in real time, and acquiring log file information when a corresponding identifier appears; and S300, performing automatic login according to the log file information.
Fig. 2 shows a schematic view of an apparatus according to an embodiment of the invention. The apparatus comprises a memory 100 and a processor 200, wherein the processor 200 stores a computer program for performing: monitoring a user login interface in real time, and generating a log corresponding to the identification when a corresponding control appears; monitoring the log information in real time, and acquiring log file information when a corresponding identifier appears; and carrying out automatic login according to the log file information. Wherein the memory 100 is used for storing data.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (7)

1. A method for client automatic login based on log files is characterized in that:
s100, monitoring a user login interface in real time, and generating a log corresponding to the identification when a corresponding control appears;
s200, monitoring the log information in real time, and acquiring log file information when a corresponding identifier appears;
and S300, performing automatic login according to the log file information.
2. The method of claim 1, wherein the flag is set as a custom key.
3. The method for client automatic login based on log file according to claim 2, wherein the S100 specifically comprises:
and monitoring the user interface in real time, and generating the custom keyword write-in log when the login interface control is monitored.
4. The method for client automatic login based on log file according to claim 3, wherein the S200 specifically comprises:
and reading log file information in real time, and issuing an automatic login instruction when the user-defined keyword is read.
5. The method for client automatic login based on log file according to claim 4, wherein the S300 specifically comprises:
and calling a keyboard interface provided by the system and account password information input by a historical user to automatically log in.
6. An apparatus for log file based client auto-login, the apparatus comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the processor when executing the computer program implements the method steps of any of claims 1-5.
7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 5.
CN201911324098.5A 2019-12-20 2019-12-20 Method and device for automatically logging in client based on log file and readable medium Pending CN111125654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911324098.5A CN111125654A (en) 2019-12-20 2019-12-20 Method and device for automatically logging in client based on log file and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911324098.5A CN111125654A (en) 2019-12-20 2019-12-20 Method and device for automatically logging in client based on log file and readable medium

Publications (1)

Publication Number Publication Date
CN111125654A true CN111125654A (en) 2020-05-08

Family

ID=70500467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911324098.5A Pending CN111125654A (en) 2019-12-20 2019-12-20 Method and device for automatically logging in client based on log file and readable medium

Country Status (1)

Country Link
CN (1) CN111125654A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375688B1 (en) * 2010-03-29 2013-07-24 Vodafone Group PLC Managing automatic log in to Internet target resources
US20140013008A1 (en) * 2012-07-05 2014-01-09 Eric Lazarus Managing data in a data queue including synchronization of media on multiple devices
CN103916254A (en) * 2012-12-29 2014-07-09 中国移动通信集团黑龙江有限公司 Analysis method and system for dynamic authentication behavior
CN104331373A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Monkey test system and method
CN105827641A (en) * 2016-05-13 2016-08-03 沃通电子认证服务有限公司 Context awareness type dynamic unified authentication method and system
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2375688B1 (en) * 2010-03-29 2013-07-24 Vodafone Group PLC Managing automatic log in to Internet target resources
US20140013008A1 (en) * 2012-07-05 2014-01-09 Eric Lazarus Managing data in a data queue including synchronization of media on multiple devices
CN103916254A (en) * 2012-12-29 2014-07-09 中国移动通信集团黑龙江有限公司 Analysis method and system for dynamic authentication behavior
CN104331373A (en) * 2014-11-28 2015-02-04 上海斐讯数据通信技术有限公司 Monkey test system and method
CN105827641A (en) * 2016-05-13 2016-08-03 沃通电子认证服务有限公司 Context awareness type dynamic unified authentication method and system
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends

Similar Documents

Publication Publication Date Title
CN107659455B (en) Method, storage medium, device and system for Mock data of iOS (internet operating system) end
CN108134708B (en) Method and device for monitoring third-party interface
CN106485261B (en) Image recognition method and device
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
WO2019019356A1 (en) Application program test method and apparatus, computer device and storage medium
CN107273278A (en) Interim card determines method, device and terminal
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN104156305A (en) Application program testing method and device
CN109656800B (en) Method and device for testing image recognition application, terminal and storage medium
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN106411649A (en) Control method and device for remote play system
CN108805512A (en) A kind of attendance information recording method and its equipment, system
CN111125654A (en) Method and device for automatically logging in client based on log file and readable medium
CN110413398A (en) Method for scheduling task, device, computer equipment and storage medium
CN113852610B (en) Message processing method, device, computer equipment and storage medium
CN112631949B (en) Debugging method and device, computer equipment and storage medium
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN102053862B (en) Method and device for inspecting material files in instant messenger
CN107193581B (en) Firmware upgrading method and device, storage medium and computer equipment
CN110968519A (en) Game testing method, device, server and storage medium
CN110489253A (en) Data processing method, device, equipment and computer readable storage medium
CN110825577B (en) Frozen screen testing method and device for terminal equipment
CN106776278B (en) DSP (digital signal processor) debugging method and device based on dual-core architecture
CN117332412B (en) Detection method and device for data security system and electronic equipment
CN117216011B (en) File transmission method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508

RJ01 Rejection of invention patent application after publication