CN108111611A - A kind of client detection method, device and electronic equipment - Google Patents
A kind of client detection method, device and electronic equipment Download PDFInfo
- Publication number
- CN108111611A CN108111611A CN201711430722.0A CN201711430722A CN108111611A CN 108111611 A CN108111611 A CN 108111611A CN 201711430722 A CN201711430722 A CN 201711430722A CN 108111611 A CN108111611 A CN 108111611A
- Authority
- CN
- China
- Prior art keywords
- client
- detected
- information
- data bag
- preset
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
An embodiment of the present invention provides a kind of client detection method, device and electronic equipment, the described method includes:Preset data bag is sent to its corresponding server-side by client to be detected, and receives the response data bag of server-side return;The first information that client to be detected is generated with server-side in interaction is monitored and obtained, and the first information is stored in by preset format rule in detection file;The size in client to be detected committed memory space during continuous service in preset time is monitored, the second information of the size in committed memory space is stored in by preset format rule in detection file;Using default comparison condition, each information preserved in detection file is matched, when occurring information unmatched with default comparison condition in each information, prompt message is sent to related operating personnel for the unmatched information.It can realize and client to be detected is detected automatically, need not manually be detected, improve detection efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of client detection method, device and electronic equipment.
Background technology
With the continuous development of computer technology and Internet technology, people can pass through institute in the terminals such as mobile phone, computer
The various client softwares of installation realize various functions, for example, shopping, social and trip etc..
In order to meet the various demands of the people under internet environment.Can all there be the substantial amounts of visitor with difference in functionality daily
Family end is developed, these clients newly developed introduce to the market be directly used by a user before, it is necessary to be surveyed to it
Examination,, just can be with after having no problem when completing detection to client newly developed to detect whether existing defects or loophole etc.
The client is released, so that user downloads and uses.
In the prior art, generally manually debugged and detected by related developer for the detection of client,
Affected personnel is needed manually to operate client to be detected in various Working moulds when developer is manually debugged and detected
It runs under formula or cond, is interacted with server, and by checking in various states in operation and interaction
Various parameters during lower operation, to determine that the client to be detected whether there is exception or loophole.So pass through artificial side
Formula is detected client, wastes substantial amounts of manpower, and detection efficiency is very low.
The content of the invention
The embodiment of the present invention is designed to provide a kind of client detection method, device and electronic equipment, is treated with real
The client of detection is automatically detected, to improve detection efficiency.Specific technical solution is as follows:
An embodiment of the present invention provides a kind of client detection method, including:
Preset data bag is sent to the corresponding server-side of the client to be detected by client to be detected, and receives institute
State the response data bag that server-side is returned according to the preset data bag;
The first information that the client to be detected is generated with the server-side in interaction is monitored and obtains, and will
The first information is stored in by preset format rule in detection file, and the first information includes:The preset data bag, institute
State running state parameter when client to be detected sends the preset data bag, the response data bag, the visitor to be detected
Family end receives the running state parameter during response data bag;
The size in client to be detected committed memory space during continuous service in preset time is monitored, is accounted for described
It is stored in the second information of the size of memory headroom by preset format rule in the detection file;
Using default comparison condition, each information preserved in the detection file is matched, when described each
When occurring information unmatched with the default comparison condition in information, sent out for the unmatched information to related operating personnel
Send prompt message, the default comparison condition is for the pre-set standard value of each information or critical field.
Optionally, the method further includes:
It obtains the installation procedure of client to be detected, and is installed in default terminal by the installation procedure described to be checked
Survey client;
The 3rd information generated in installation process is stored in by the preset format rule in the detection file, it is described
3rd information is included in the running state parameter of installation procedure described in installation process.
Optionally, it is described monitor and obtain that the client to be detected and the server-side generate in interaction the
One information, including:
By sending the sending port of the preset data bag and in the client to be detected for receiving
The receiving port for stating response data bag carries out packet capturing, obtains the preset data bag that the client to be detected sends and described
Response data bag;
By monitoring the state parameter of the client to be detected in real time, the client to be detected is obtained respectively and sends institute
Running state parameter and the client to be detected when stating preset data bag receive the operating status during response data bag
Parameter;
By the preset data bag, the client to be detected sends the running state parameter during preset data bag,
Running state parameter when the response data bag, the client to be detected receive the response data bag is as described first
Information.
Optionally, the method further includes:
The client to be detected is detected by default securing software, using generated testing result information as
4th information, and the 4th information is stored in by the preset format rule in the detection file.
Optionally, the method further includes:
The client to be detected is unloaded from the default terminal, by the 5th information generated in uninstall process by institute
It states preset format rule to be stored in the detection file, the 5th information is included in the unloading information generated in uninstall process
And/or residual risk of the client to be detected in the default terminal.
The embodiment of the present invention additionally provides a kind of client's end detecting device, including:
Execution module, for sending present count to the corresponding server-side of the client to be detected by client to be detected
According to bag, and receive the response data bag that the server-side is returned according to the preset data bag;
First monitoring modular monitors and obtains what the client to be detected was generated with the server-side in interaction
The first information, and the first information is stored in by preset format rule in detection file, the first information includes:It is described
Preset data bag, the client to be detected send the running state parameter during preset data bag, the response data bag,
The client to be detected receives the running state parameter during response data bag;
Second monitoring modular monitors the client to be detected committed memory space during continuous service in preset time
Second information of the size in the committed memory space is stored in by preset format rule in the detection file by size;
Comparing module, for using default comparison condition, each information preserved in file progress to be detected to described
Match somebody with somebody, when occurring information unmatched with the default comparison condition in each information, for the unmatched information to
Related operating personnel send prompt message, the default comparison condition be for the pre-set standard value of each information or
Critical field.
Optionally, described device further includes:
Module is installed, for obtaining the installation procedure of client to be detected, and by the installation procedure in default terminal
The upper installation client to be detected;The 3rd information generated in installation process is stored in by the preset format rule described
It detects in file, the 3rd information is included in the running state parameter of installation procedure described in installation process.
Optionally, first monitoring modular, specifically for including:
By sending the sending port of the preset data bag and in the client to be detected for receiving
The receiving port for stating response data bag carries out packet capturing, obtains the preset data bag that the client to be detected sends and described
Response data bag;By monitoring the state parameter of the client to be detected in real time, the client hair to be detected is obtained respectively
Running state parameter and the client to be detected when sending the preset data bag receive the operation during response data bag
State parameter;By the preset data bag, the client to be detected sends the running state parameter during preset data bag,
Running state parameter when the response data bag, the client to be detected receive the response data bag is as described first
Information.
Optionally, described device further includes:
3rd monitoring modular, for being detected by default securing software to the client to be detected, by produced by
Testing result information as the 4th information, and by the 4th information by the preset format rule be stored in it is described detection text
In part.
Optionally, described device further includes:
Unload module for unloading the client to be detected from the default terminal, will generate in uninstall process
The 5th information by the preset format rule be stored in it is described detection file in, the 5th information is included in uninstall process
The residual risk of the unloading information of generation and/or the client to be detected in the default terminal.
The embodiment of the present invention additionally provides a kind of electronic equipment, total including processor, communication interface, memory and communication
Line, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any of the above-described client detection side
Method.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable
Instruction is stored in storage medium, when run on a computer so that computer performs any of the above-described client
Detection method.
At the another aspect that the present invention is implemented, a kind of computer program product for including instruction is additionally provided, when it is being counted
When being run on calculation machine so that computer performs any of the above-described client detection method.
A kind of client detection method provided in an embodiment of the present invention, device and electronic equipment, can pass through visitor to be detected
Family end sends preset data bag to server-side, and receives the response data bag that server-side is returned.It monitors and obtains to be checked simultaneously
It surveys client and server-side and interacts the first information of generation and client to be detected operationally shared memory headroom
The second information.The first information and the second information are stored in by preset format rule in detection file, then by configuring
Default comparison condition each information for being preserved in detection file is matched, when occurring in the information preserved and default
During the unmatched information of comparison condition, it may be considered that client to be detected exist when generating the unmatched information it is abnormal,
Otherwise the unmatched information will not be generated, it is possible to send prompting letter to related operating personnel for the unmatched information
Breath.Client to be detected is detected automatically so as to realize, client to be detected need not be manually detected out and exist
Various problems and exception during operation.Improve detection efficiency.By prompt message, related operating personnel can not be directed to this not
The information matched somebody with somebody is repaired or adjusted to client to be detected in time, can cause reparation for client to be detected more
Add with specific aim.Certainly, implement any of the products of the present invention or method must be not necessarily required to reach above-described institute simultaneously
There is advantage.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of client detection method provided in an embodiment of the present invention;
Fig. 2 is the structure chart of client's end detecting device provided in an embodiment of the present invention;
Fig. 3 is the structure chart of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the flow chart of client detection method provided in an embodiment of the present invention, including:
Step 101, preset data bag is sent to the corresponding server-side of client to be detected by client to be detected, and connect
Receive the response data bag that server-side is returned according to preset data bag.
The installation procedure of client to be detected can be used for installing client to be detected in default terminal, and default terminal can
With the terminal dedicated for detection client operating condition, such as the terminal devices such as mobile phone or computer.
The embodiment of the present invention can be applied in the default terminal, and by way of software, hardware or software and hardware combining
It realizes.Make it possible to preset in terminal at this, automatically realize the detection to client to be detected.
Default terminal is after client to be detected is mounted with, it is possible to be sent by the client to be detected to server-side
Preset data bag.Server-side is corresponding with the client to be detected, can be interacted with the client to be detected, so as to for
The client to be detected provides the server-side of service, can be the large server or distributed server system of rear end.
Preset data bag can be the client regular traffic flow to be detected under, to server-side transmission various industry
Business data packet.For example, the client to be detected is a client for shopping, then business data packet can be for asking
The data packet of merchandise news is obtained, for data packet of payment for merchandise payment for goods etc..Alternatively, preset data bag can also be special
For the detection data packet that the various functions for detecting the client to be detected specially create, which can simulate
When being interacted between client and server-side to be detected, in hair needed for the various clients to be detected being likely to occur
The Various types of data bag sent.
Likewise, server-side after preset data bag is received, for different preset data bags, can be sent different
Response data bag, response data bag is for the response as preset data bag.For example, preset data bag is for payment for merchandise goods
During the data packet of money, then response data bag can be for confirming the data packet of gathering.Specifically, preset data bag and response number
According to bag, on the premise of the function needed for the embodiment of the present invention is met, the form of existing various data packets may be employed, herein
It does not limit.
Default terminal can be sent, example when sending preset data bag according to pre-set order or rule
Such as, the preset data bag for test function A is sent first, is being sent the preset data bag for test function B, is being retransmited use
In preset data bag of test function C etc..It can so cause the note of the interaction data generated in subsequent step for interaction
Record is more explicit, facilitates in subsequent step and interaction data is matched using default comparison condition.
Step 102, the first information that client to be detected is generated with server-side in interaction is monitored and obtains, and will
The first information is stored in by preset format rule in detection file, and the first information includes:Preset data bag, client hair to be detected
Running state parameter during preset data bag, response data bag are sent, client to be detected is received back operation shape when answering data packet
State parameter.
Default terminal send preset data bag or be received back answer data packet when, can monitor in real time and synchronous acquisition
What client to be detected was generated with server-side in interaction, for example, the various interactive numbers such as preset data bag, response data bag
According to, and using the interaction data as the first information.
It, can be with specifically, monitor and obtain the first information that client to be detected and server-side generate in interaction
Including:
The first step, by sending the sending port of preset data bag and in client to be detected for being received back
The receiving port of data packet is answered to carry out packet capturing, obtains preset data bag and response data bag that client to be detected is sent.
Client to be detected can send preset data bag by sending port to server-side, and sending port can be true
Port, as preset terminal possessed by physical port or or by program realize virtual port.By at this
Sending port carries out packet capturing, can obtain the preset data bag that client to be detected is sent to server-side.
Receiving port is used for receiving the response data bag of server-side transmission, similar with sending port or real object
Manage port or virtual port, also, when for real physical port when, can be same port with sending port.By
The receiving port carries out packet capturing, can obtain the response data bag received by client to be detected.
Packet capturing is carried out in sending port and receiving port, there can be many methods, for example, fiddler packet capturings can be passed through
Instrument is realized that fiddler packet catchers automatically can carry out packet capturing in sending port, so that is be more prone to obtains
Take preset data bag and response data bag.
Second step by monitoring the state parameter of client to be detected in real time, obtains client to be detected and sends in advance respectively
If the running state parameter and client to be detected during data packet are received back running state parameter when answering data packet.
Default terminal can also monitor the state parameter of client to be detected in real time, it is hereby achieved that be checked
Running state parameter and client to be detected when surveying client transmission preset data bag are received back operation shape when answering data packet
State parameter, state parameter can include much information type, for example, when sending preset data bag, residing for data to be tested bag
In functional mode, CUP occupancies and the related data information that generates or record etc. when sending preset data bag.State
Parameter can be used for reflect client to be detected send preset data bag or be received back answer data packet when client to be detected
Operating status or the method for operation.
3rd step, by preset data bag, client to be detected sends running state parameter during preset data bag, responds number
According to bag, client to be detected is received back running state parameter when answering data packet as the first information.
The first information is the various interaction datas generated when server-side interacts for client to be detected and generates
During the interaction data, the state parameter of client to be detected.The first information is protected by pre-set preset format rule
In the presence of in detection file.
Detection file can be used for the various information for recording generation of the client to be detected in monitoring process, therein each
Kind information can be stored in by preset format rule in detection file.
Preset format rule can have many modes, and preset format rule can include for set by different information
Fixed different-format rule.As long as specifically, can be beneficial to the various information preserved is distinguished and identified, then can
As preset format rule.For example, for the first information, preset format rule can be, in the first segment of detection file or the
The first information is preserved in one page or the first form, the first information form preserved is:Type of data packet-packet content-hair
Send or receive the state parameter during data packet.By above-mentioned preset format rule, can recognize with ease that out in detection file
The various information preserved, and conveniently in subsequent step, each information is matched respectively by default comparison condition.
Step 103, the size in client to be detected committed memory space during continuous service in preset time is monitored, will be accounted for
It is stored in the second information of the size of memory headroom by preset format rule in detection file.
Client to be detected can also monitor client to be detected in operational process in real time when being run in default terminal
In shared memory headroom size.When client continuous service in preset time to be detected, can record in occupancy
The second information of the size in space is deposited, and second information is also stored in by preset format rule in detection file.Second letter
The size in the average committed memory space in preset time and the size in highest committed memory space can be included in breath.
Preset time can be preset a period of time, for example, can be from sending preset data bag, to receiving the present count
According to the time for wrapping corresponding response data bag.
Second information can also be stored in by preset rules form corresponding with the second information in detection file, for example, pin
To the second information, preset format rule can be to preserve second in the detection second segment of file or second page or the second form
Information, the second information format preserved are:The size in the size-highest committed memory space in average committed memory space.
Step 104, using default comparison condition, each information preserved in detection file is matched, when each
When occurring information unmatched with default comparison condition in information, send and carry to related operating personnel for the unmatched information
Show information, it is for the pre-set standard value of each information or critical field to preset comparison condition.
After acquired each information is maintained in detection file by default terminal, it is possible to compare item using default
Part matches each information preserved in detection file.It is pre-configured during default comparison condition, for different
Measurement standard set by each information can be standard value or critical field.
For example, the first information preserved in file is detected is:Preset data bag A is sent, sends preset data treasured
When client operation pattern to be detected be B.For the first information, corresponding default comparison condition is:When transmission preset data
When wrapping A, the operating mode of client is A.When presetting comparison condition by this first information preserved being matched, then
The first information cannot meet default comparison condition, i.e., mismatched with default comparison condition.
Likewise, for example, the second information preserved in file is detected is:In preset time, client to be detected holds level with both hands
The size in equal committed memory space is 200M, and the size in highest committed memory space is 230M.It is corresponding for the second information
Default comparison condition is:The size in average committed memory space is 150-180M, and the size in highest committed memory space is 200M.
When presetting comparison condition by this second information preserved being matched, then second information can not meet default ratio
To condition, i.e., mismatched with default comparison condition.
Default comparison condition is the lower arm's length standard that can reach of client normal operation to be detected, so when inspection
When occurring information unmatched with default comparison condition in each information preserved in survey file, it is believed that client to be detected
It holds when generating the unmatched information in abnormal state or there are loophole, otherwise will not result from default comparison condition not
Matched information.So can be directed to the unmatched information sends prompt message to related operating personnel.For example, when above-mentioned
When the first information and the second information in example are all mismatched with default comparison condition.The unmatched information can be directed to, it is raw
It is sent into prompt message, and by the prompt message to related operating personnel.The document that prompt message can be automatically generated, wherein
The related content of unmatched information can be included.Related operating personnel can be clearly understood that by the prompt message
The problems of client to be detected, and due to containing having inside the Pass for the mismatch information detected in the prompt message
Hold, related operating personnel can explicitly learn client to be detected when generating the unmatched information, present operation
State, so as to more accurately determine the problems of client to be detected.
In embodiments of the present invention, it can realize and client to be detected is detected automatically, need not manually be examined
Measure the various problems and exception of client to be detected operationally.Improve detection efficiency.By prompt message, related operation
Personnel can be directed to the unmatched information, and client to be detected is repaired or adjusted in time, can be caused for treating
The reparation for detecting client more has specific aim.
Optionally, in client detection method provided in an embodiment of the present invention, this method can also include:
The installation procedure of client to be detected is obtained, and passes through installation procedure and client to be detected is installed in default terminal
End;The 3rd information generated in installation process is stored in by preset format rule in detection file, the 3rd information is included in peace
The running state parameter of installation procedure during dress.
The installation procedure for obtaining client to be detected can be related operating personnel, and it is default eventually which is inputted this
It holds or the default terminal voluntarily obtains the installation procedure, for example, downloading automatically from specific website or passing through it
His channel receives the installation procedure, e.g., the modes such as obtains from message queue software.
After default terminal obtains the installation procedure of the client to be detected, it can automatically pass through the installation procedure, peace
Fill client to be detected.
Installation process when installing client to be detected in default terminal, can also recorded by installation procedure simultaneously
3rd information of middle generation, the 3rd information can be included in installation process, generated all kinds of mount messages and installation journey
Running state parameter possessed by sequence.For example, installation the time it takes, occupied disk storage space can be included, be
The no information to conflict with the generation of other programs, client file integrity degree etc. after installation.It can also include in 3rd information pre-
If the information of operating system possessed by terminal and when being installed under the operating system, generated compatible information.Such as, it is
Feedback information of operating system etc. when no compatible and incompatible with the operating system.
Installation process can be carried out repeatedly, such as continue to install after can carrying out interruption installation respectively, be pacified again after unloading
Dress, the mounting means such as installation install client to be detected under different operating system.Also, all remember during installation every time
Record the 3rd information caused by installation process.And by the 3rd information, preserved by preset format corresponding with the 3rd information rule
In file is detected.
Equally, the 3rd information can be directed to by presetting in comparison condition, established corresponding default comparison condition, such as installed institute
The time range of cost is less than 4 minutes, without conflicting information etc..When the 3rd information that is preserved and default comparison condition not
Timing equally, prompt message is sent for unmatched information to related operating personnel.For example, contain conflict in the 3rd information
Then for the conflicting information, prompt message is sent to operating personnel for information.By the 3rd information, visitor to be detected can be detected
Family end installation process there may be the problem of, and then repaired in time.
Optionally, in client detection method provided in an embodiment of the present invention, the method further includes:
Client to be detected is detected by default securing software, using generated testing result information as the 4th
Information, and the 4th information is stored in by preset format rule in detection file.
When using various clients conflicting between the client and other securing softwares, example often occur for user
Such as, individual protection software can limit the function of client or the permitted file of client is mistakenly considered virus or wooden horse.Institute
In order to avoid the generation of such case, to improve user experience.It can be when being detected to client to be detected, detection is
It is no to conflict with the presence of various securing softwares.
It, can be by default securing software to the visitor to be detected when after client to be detected is mounted in default terminal
Family end is scanned or detects.And it is stored in the result of detection as the 4th information in detection file.Default securing software can
Think common viral protection software, fire wall and system security software etc..Default securing software can be to file or journey
Sequence is scanned detection, and exports the information such as examining report.So by setting detection of the securing software to client to be detected,
It can determine whether default securing software exists with client to be detected to conflict.The testing result of default securing software, can
By output is the 4th information in the form of data or document, the 4th information can be stored in detection file, with for use by pre-
If comparison condition is matched.
By the 4th information be stored in detection file in after, can utilize default comparison condition corresponding with the 4th information into
Row matching, the general default comparison condition can be:There is no conflicting informations.When detecting in the 4th information preserved in file
Containing indivedual default securing softwares and during the conflicting information of client to be detected, for example, believing in the 4th information containing one article of conflict
Breath:The testing result of securing software A is that the file B in client to be detected is trojan horse program.Then generated for the 4th information
Prompt message, contain in prompt message with the 4th information-related content, to notify related operating personnel to be detected in time
It is adjusted and repairs.
Optionally, in client detection method provided in an embodiment of the present invention, the method further includes:
Client to be detected is unloaded from default terminal, the 5th information generated in uninstall process is advised by preset format
It is then stored in detection file, the 5th information is included in the unloading information generated in uninstall process and/or client to be detected exists
Residual risk in default terminal.
It, can also be to the uninstall process of the client to be detected after above-mentioned various detections are completed to client to be detected
It is detected.Default terminal can unload client to be detected, the 5th information caused by acquisition in uninstall process
And be stored in detection file, the 5th information can include unloading information/or residual risk, after uninstall process duration, unloading
Whether shortcut remains, and whether registry data remains etc..
Also, default terminal can in several ways unload client to be detected, for example, passing through visitor to be detected
Uninstaller possessed by family end itself, carries out client to be detected by other uninstalls or program the mode such as to unload.
Under different unloading manners, the 5th information caused by each unloading manner can be obtained respectively.
Likewise, the 5th letter that can be by default comparison condition corresponding with the 5th information to being stored in detection file
Breath is matched, when mismatching, for example, default comparison condition is:Residual risk is not contained, and detects preserved in file
Five information include:Registration table residual data A.Then the 5th information is mismatched with default comparison condition, then for the 5th letter
Breath generation prompt message, and sent to related operating personnel.Allow the operator to the uninstall process of client to be detected into
One-step optimization avoids the residual data of the registration table in unloading.
Referring to Fig. 2, Fig. 2 is the structure chart of client's end detecting device provided in an embodiment of the present invention, including:
Execution module 201, it is pre- for being sent by client to be detected to the corresponding server-side of the client to be detected
If data packet, and receive the response data bag that the server-side is returned according to the preset data bag;
First monitoring modular 202 monitors and obtains the client to be detected and produced with the server-side in interaction
The raw first information, and the first information is stored in by preset format rule in detection file, the first information includes:
The preset data bag, the client to be detected send the running state parameter during preset data bag, the response number
According to bag, the client to be detected receives the running state parameter during response data bag;
Second monitoring modular 203, monitoring the client to be detected, committed memory is empty during continuous service in preset time
Between size, the second information of the size in the committed memory space is stored in the detection file by preset format rule
In;
Comparing module 204, for using default comparison condition, being carried out to each information preserved in the detection file
Matching, when occurring information unmatched with the default comparison condition in each information, for the unmatched information
Prompt message is sent to related operating personnel, the default comparison condition is for each pre-set standard value of information
Or critical field.
In embodiments of the present invention, it can realize and client to be detected is detected automatically, need not manually be examined
Measure the various problems and exception of client to be detected operationally.Improve detection efficiency.By prompt message, related operation
Personnel can be directed to the unmatched information, and client to be detected is repaired or adjusted in time, can be caused for treating
The reparation for detecting client more has specific aim.
Optionally, implement in the present invention in the client's end detecting device provided, described device further includes:
Module is installed, for obtaining the installation procedure of client to be detected, and by the installation procedure in default terminal
The upper installation client to be detected;The 3rd information generated in installation process is stored in by the preset format rule described
It detects in file, the 3rd information is included in the running state parameter of installation procedure described in installation process.
Optionally, implement in the present invention in the client's end detecting device provided, first monitoring modular 202 is specific to use
In including:
By sending the sending port of the preset data bag and in the client to be detected for receiving
The receiving port for stating response data bag carries out packet capturing, obtains the preset data bag that the client to be detected sends and described
Response data bag;By monitoring the state parameter of the client to be detected in real time, the client hair to be detected is obtained respectively
Running state parameter and the client to be detected when sending the preset data bag receive the operation during response data bag
State parameter;By the preset data bag, the client to be detected sends the running state parameter during preset data bag,
Running state parameter when the response data bag, the client to be detected receive the response data bag is as described first
Information.
Optionally, implement in the present invention in the client's end detecting device provided, described device further includes:
3rd monitoring modular, for being detected by default securing software to the client to be detected, by produced by
Testing result information as the 4th information, and by the 4th information by the preset format rule be stored in it is described detection text
In part.
Optionally, implement in the present invention in the client's end detecting device provided, described device further includes:
Unload module for unloading the client to be detected from the default terminal, will generate in uninstall process
The 5th information by the preset format rule be stored in it is described detection file in, the 5th information is included in uninstall process
The residual risk of the unloading information of generation and/or the client to be detected in the default terminal.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 3, including processor 301, communication interface 302,
Memory 303 and communication bus 304, wherein, processor 301, communication interface 302, memory 303 is complete by communication bus 304
Into mutual communication,
Memory 303, for storing computer program;
Processor 301 during for performing the program stored on memory 303, realizes following steps:
Preset data bag is sent to the corresponding server-side of the client to be detected by client to be detected, and receives institute
State the response data bag that server-side is returned according to the preset data bag;
The first information that the client to be detected is generated with the server-side in interaction is monitored and obtains, and will
The first information is stored in by preset format rule in detection file, and the first information includes:The preset data bag, institute
State running state parameter when client to be detected sends the preset data bag, the response data bag, the visitor to be detected
Family end receives the running state parameter during response data bag;
The size in client to be detected committed memory space during continuous service in preset time is monitored, is accounted for described
It is stored in the second information of the size of memory headroom by preset format rule in the detection file;
Using default comparison condition, each information preserved in the detection file is matched, when described each
When occurring information unmatched with the default comparison condition in information, sent out for the unmatched information to related operating personnel
Send prompt message, the default comparison condition is for the pre-set standard value of each information or critical field.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer so that computer performs any institute in above-described embodiment
The client detection method stated.
In another embodiment provided by the invention, a kind of computer program product for including instruction is additionally provided, when it
When running on computers so that computer performs any client detection method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real
It is existing.When implemented in software, can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or
It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter
Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium
In or from a computer readable storage medium to another computer readable storage medium transmit, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is the data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk
Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device,
For the embodiments such as electronic equipment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng
See the part explanation of embodiment of the method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modifications, equivalent replacements and improvements are made within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of client detection method, which is characterized in that including:
Preset data bag is sent to the corresponding server-side of the client to be detected by client to be detected, and receives the clothes
The response data bag that business end is returned according to the preset data bag;
The first information that the client to be detected is generated with the server-side in interaction is monitored and obtains, and by described in
The first information is stored in by preset format rule in detection file, and the first information includes:The preset data bag, it is described to treat
Detect running state parameter when client sends the preset data bag, the response data bag, the client to be detected
Receive the running state parameter during response data bag;
The size in client to be detected committed memory space during continuous service in preset time is monitored, it will be in the occupancy
The second information for depositing the size in space is stored in by preset format rule in the detection file;
Using default comparison condition, each information preserved in the detection file is matched, when each information
During unmatched with the default comparison condition information of middle appearance, send and carry to related operating personnel for the unmatched information
Show information, the default comparison condition is for the pre-set standard value of each information or critical field.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
The installation procedure of client to be detected is obtained, and the visitor to be detected is installed in default terminal by the installation procedure
Family end;
The 3rd information generated in installation process is stored in by the preset format rule in the detection file, the described 3rd
Information is included in the running state parameter of installation procedure described in installation process.
3. according to the method described in claim 1, it is characterized in that, it is described monitor and obtain the client to be detected with it is described
The first information that server-side generates in interaction, including:
By being used to send the sending port of the preset data bag in the client to be detected and for receiving described return
The receiving port of data packet is answered to carry out packet capturing, obtains the preset data bag and the response that the client to be detected is sent
Data packet;
By monitoring the state parameter of the client to be detected in real time, it is described pre- that the client transmission to be detected is obtained respectively
If the running state parameter and the client to be detected during data packet receive the operating status ginseng during response data bag
Number;
By the preset data bag, the client to be detected sends the running state parameter during preset data bag, described
Response data bag, the running state parameter when client to be detected receives the response data bag are believed as described first
Breath.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
The client to be detected is detected by default securing software, using generated testing result information as the 4th
Information, and the 4th information is stored in by the preset format rule in the detection file.
5. according to the method described in claim 1, it is characterized in that, the method further includes:
The client to be detected is unloaded from the default terminal, by the 5th information generated in uninstall process by described pre-
If format convention is stored in the detection file, the 5th information be included in the unloading information that is generated in uninstall process and/
Or residual risk of the client to be detected in the default terminal.
6. a kind of client's end detecting device, which is characterized in that including:
Execution module, for sending preset data to the corresponding server-side of the client to be detected by client to be detected
Bag, and receive the response data bag that the server-side is returned according to the preset data bag;
First monitoring modular monitors and obtains the client to be detected and the server-side generate in interaction first
Information, and the first information is stored in by preset format rule in detection file, the first information includes:It is described default
Data packet, the client to be detected send the running state parameter during preset data bag, and the response data bag is described
Client to be detected receives the running state parameter during response data bag;
Second monitoring modular, monitor the client to be detected in preset time during continuous service committed memory space it is big
It is small, the second information of the size in the committed memory space is stored in by preset format rule in the detection file;
Comparing module, for using comparison condition is preset, being matched to each information preserved in the detection file, when
When occurring information unmatched with the default comparison condition in each information, for the unmatched information to related behaviour
Make personnel and send prompt message, the default comparison condition is for the pre-set standard value of each information or standard model
It encloses.
7. device according to claim 6, which is characterized in that described device further includes:
Module is installed, for obtaining the installation procedure of client to be detected, and is pacified by the installation procedure in default terminal
Fill the client to be detected;The 3rd information generated in installation process is stored in the detection by the preset format rule
In file, the 3rd information is included in the running state parameter of installation procedure described in installation process.
8. device according to claim 6, which is characterized in that first monitoring modular, specifically for including:
By being used to send the sending port of the preset data bag in the client to be detected and for receiving described return
The receiving port of data packet is answered to carry out packet capturing, obtains the preset data bag and the response that the client to be detected is sent
Data packet;By monitoring the state parameter of the client to be detected in real time, the client to be detected is obtained respectively and sends institute
Running state parameter and the client to be detected when stating preset data bag receive the operating status during response data bag
Parameter;By the preset data bag, the client to be detected sends the running state parameter during preset data bag, described
Response data bag, the running state parameter when client to be detected receives the response data bag are believed as described first
Breath.
9. device according to claim 6, which is characterized in that described device further includes:
3rd monitoring modular, for being detected by default securing software to the client to be detected, by generated inspection
It surveys result information and is stored in the detection file by the preset format rule as the 4th information, and by the 4th information
In.
10. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method and steps of claim 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711430722.0A CN108111611B (en) | 2017-12-26 | 2017-12-26 | Client detection method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711430722.0A CN108111611B (en) | 2017-12-26 | 2017-12-26 | Client detection method and device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108111611A true CN108111611A (en) | 2018-06-01 |
| CN108111611B CN108111611B (en) | 2021-08-24 |
Family
ID=62213394
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711430722.0A Active CN108111611B (en) | 2017-12-26 | 2017-12-26 | Client detection method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108111611B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020016937A1 (en) * | 2000-08-02 | 2002-02-07 | Henry Houh | Method and apparatus for utilizing a network processor as part of a test system |
| CN101945016A (en) * | 2009-07-09 | 2011-01-12 | 中兴通讯股份有限公司 | Method and device for testing stability of device webmaster |
| CN102761453A (en) * | 2011-04-26 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Method for testing availability of client and client |
| CN103825783A (en) * | 2014-03-10 | 2014-05-28 | 珠海市君天电子科技有限公司 | Test method and device |
| CN107018001A (en) * | 2016-01-28 | 2017-08-04 | 中国移动通信集团贵州有限公司 | A kind of application and trouble localization method and device |
-
2017
- 2017-12-26 CN CN201711430722.0A patent/CN108111611B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020016937A1 (en) * | 2000-08-02 | 2002-02-07 | Henry Houh | Method and apparatus for utilizing a network processor as part of a test system |
| CN101945016A (en) * | 2009-07-09 | 2011-01-12 | 中兴通讯股份有限公司 | Method and device for testing stability of device webmaster |
| CN102761453A (en) * | 2011-04-26 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Method for testing availability of client and client |
| CN103825783A (en) * | 2014-03-10 | 2014-05-28 | 珠海市君天电子科技有限公司 | Test method and device |
| CN107018001A (en) * | 2016-01-28 | 2017-08-04 | 中国移动通信集团贵州有限公司 | A kind of application and trouble localization method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108111611B (en) | 2021-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109376078B (en) | Mobile application testing method, terminal equipment and medium | |
| CN110704847B (en) | Vulnerability scanning method and related device | |
| US8245080B2 (en) | Model-based testing of an application program under test | |
| CN109491905A (en) | Head end test method, apparatus and electronic equipment | |
| CN105303112B (en) | The detection method and device of component call loophole | |
| CN108897665A (en) | Blog management method, device, computer equipment and storage medium | |
| CN105787364A (en) | Automated testing method, device and system for task | |
| CN110149298A (en) | A kind of method and apparatus for kidnapping detection | |
| CN103581185A (en) | Cloud searching and killing method, device and system for resisting anti-antivirus test | |
| CN109254914A (en) | Software development kit test method, system, computer installation and readable storage medium storing program for executing | |
| CN109460009A (en) | A kind of industrial control system reliability test system and test method | |
| CN105095753B (en) | Broadcast safe detection method, device | |
| CN104462934B (en) | A kind of information processing method and electronic equipment | |
| CN104618336B (en) | A kind of account management method, equipment and system | |
| CN107465551A (en) | port detecting method and device | |
| CN112765597A (en) | Software installation package detection method and device | |
| CN109670316A (en) | A kind of leak detection method and device based on Java exception | |
| US20230236564A1 (en) | System and method for automatic decompilation and detection of errors in software | |
| CN108092971A (en) | A kind of method and device of processing business message | |
| CN101141361B (en) | Communication method and system between embedded type equipments | |
| CN108111611A (en) | A kind of client detection method, device and electronic equipment | |
| CN111880754B (en) | Automatic testing method and medium for printing equipment, computer equipment and system | |
| KR101079036B1 (en) | Apparatus and method for detecting abnormal control network signs | |
| CN109214189A (en) | Method, apparatus, storage medium and the electronic equipment of recognizer loophole | |
| CN109101354A (en) | A kind of monitoring method and its device of fault message |
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 |