CN109818777A - A kind of method of calibration of software error code - Google Patents

A kind of method of calibration of software error code Download PDF

Info

Publication number
CN109818777A
CN109818777A CN201811548237.8A CN201811548237A CN109818777A CN 109818777 A CN109818777 A CN 109818777A CN 201811548237 A CN201811548237 A CN 201811548237A CN 109818777 A CN109818777 A CN 109818777A
Authority
CN
China
Prior art keywords
client
error code
emulating server
method described
further include
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
CN201811548237.8A
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.)
GRANDSTREAM NETWORKS Inc
SHENZHEN GRANDSTREAM NETWORKS TECHNOLOGY Co Ltd
Original Assignee
GRANDSTREAM NETWORKS Inc
SHENZHEN GRANDSTREAM NETWORKS 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 GRANDSTREAM NETWORKS Inc, SHENZHEN GRANDSTREAM NETWORKS TECHNOLOGY Co Ltd filed Critical GRANDSTREAM NETWORKS Inc
Priority to CN201811548237.8A priority Critical patent/CN109818777A/en
Publication of CN109818777A publication Critical patent/CN109818777A/en
Pending legal-status Critical Current

Links

Abstract

The present invention discloses a kind of methods of calibration of software error code, comprising: step a: client and emulating server establish TCP connection;Step b: client sends verification operation signaling, receives and parses through verification operation signaling by emulating server, and final reply responds to client;Step c: the error code carried in client resolution response searches miscue after being judged as abnormal responses and informs user.The processing capacity of the method for the present invention efficient simulation software in abnormal cases, and it can comprehensively complete whether checking routine can provide correctly response to all exception error codes and prompt, the various consumption manually manufactured extremely are saved, solve manually to be difficult to the exception manufactured.

Description

A kind of method of calibration of software error code
Technical field
The invention belongs to the synchronous calculating skills of multimedia audio-video data in MultiMedia Field more particularly to communication software Art.
Background technique
Various exception errors are always encountered in the process of running per a software, when exception error occurs in program, are all needed Provide corresponding explain to allow user's understanding what problem occur and how to solve.For different scenes Different Results Abnormal, program would generally dish out various error codes, and client upper layer allows user to understand program to go out with brief and concise text prompt Which kind of exception showed, and has provided guiding, has needed how to solve.
Currently, carrying out artificial manufacture client according to the corresponding scene of error code usually using the mode of desk checking Or the exception of server, it checks under corresponding abnormal scene, software can give user what prompt on interface, if meet expection Suggestion content.But the mode existing defects of desk checking, all exception error codes, but also meeting can not usually be completely covered Consume a large amount of time and efforts.In this case it is desirable to one kind can efficiently complete verification software to all error codes whether The method correctly prompted can be provided, has ensured that a good user experience effect.
Summary of the invention
It is an object of that present invention to provide one kind can either save manpower, and can complete the side of comprehensively check errors code Method.
In order to achieve the object of the present invention, a kind of method of calibration of software error code is disclosed, specifically includes the following steps: step Rapid a: client and emulating server establish TCP connection;Step b: client sends verification operation signaling, is connect by emulating server Verification operation signaling is received and parses, final reply responds to client;Step c: the error code carried in client resolution response, Miscue is searched after being judged as abnormal responses and informs user.
Preferably, before step a further include: running simulation server script, the error code poller module in script have arranged All error codes as defined in the demand having.
Preferably, before step a further include: starting emulating server service opens listening port, monitors client Connection request.
Preferably, in step a further include: client local network configures dns resolution, makes the request domain name sent can be with It parses to emulating server.
Preferably, in step a further include: client establishes TCP connection by TCP three-way handshake and emulating server, Through consultation signalling mode is switched into websocket requesting party by http protocol switching websocket protocol again Formula.
Preferably, step b specifically: the verification operation signaling that client is sent is encapsulated by TCP connection with websocket After be sent on emulating server.
Preferably, step b specifically: client sends verification operation signaling after clicking the verifying function button on the page.
Preferably, step c is specifically included: according to the error code being resolved to, being searched in the prompt list of client error code Corresponding prompt.
Preferably, in step c further include: will be prompted to prompt user in the form of playing frame or toast on the page, inform The reason of operation failure and operation failure.
Preferably, the above method further include: client is clicking the function button on the page again, sends second specifically It operates signaling and carries out subsequent error code check to emulating server.
A kind of method of calibration of software error code of the present invention, the method applicability provided is wide, easy to operate, relative to people The mode of work verification, dramatically saves time and manpower;And comprehensively check errors code can be completed, artificial school is avoided Uncontrollability under proved recipe formula and incomprehensive.
Detailed description of the invention
Fig. 1 is software error code check method flow chart in the specific embodiment of the invention.
Specific embodiment
Basic principle of the invention: realizing the relevant analog functuion of server error code by writing python script, when After client and emulating server establish connection, client one message of every transmission will be returned to emulating server, emulating server The message of error code is carried again to client, and client provides corresponding prompt according to error code, reaches verification visitor by this method Corresponding processing is made at family end after receiving errored response and whether prompt meets expected purpose.
The present invention is described in further detail with reference to the accompanying drawings and examples.It can be understood that described at this time Specific embodiment be used only for explaining the present invention rather than limiting the invention.It also should be noted that for convenience It describes, the relevant part of the present invention is only illustrated in attached drawing rather than entire infrastructure.
When encountering various exceptions the present invention provides a kind of verification software, the method for how handling exception error, this method Script is write by python language, by the realization principle of emulating server, forms an emulating server.Client passes through Socket and emulating server establish connection.After connection is established, client sends a request to emulating server, the analog service Device provides the response for carrying error code after receiving request, and by the way of poll, circulation provides different error codes, to reach To the effect for verifying all error codes.
Fig. 1 is software error code check method flow chart in the specific embodiment of the invention, as seen from the figure, mistake of the present invention Code check method mainly comprises the steps that
Step S110: running simulation server script, the error code poller module in script have been listed as defined in existing demand All error codes start emulating server service, open listening port, monitor the connection request of client.
Step S120: actual customer end local network configures dns resolution, and the request domain name for sending it can parse to this Emulating server.
Step S130: client first passes through TCP three-way handshake and emulating server establishes TCP connection, then passes through association Signalling mode is switched to websocket request method, Zhi Houke by http protocol switching websocket protocol by quotient The request that family end is sent is sent on emulating server after being encapsulated by TCP connection with websocket.
Step S140: client clicks some button on the page, triggers the execution of a certain function, and client can issue pair The signaling and server answered are negotiated, the TCP connection established by step S130, are sent in a manner of websocket request specific Signaling is operated to emulating server.After emulating server receives, the scheduling request is parsed, subsequent emulating server enters exception Processing, i.e. error code poller module reply carrying error code respond to client.
Step S150: after client receives the errored response of operation signaling, the response is parsed, if it find that the response is Abnormal responses, the then error code carried in further resolution response are mentioned according to the error code being resolved in client error code Show and search corresponding prompt in list, after finding, which is prompted to use in the form of playing frame or toast on the page The reason of family, informing operation failure and operation failure.
Step S160: client is clicking the function button on the page again, sends second concrete operations signaling to mould Quasi- server, emulating server still carry out abnormality processing after receiving, and reply carry second error code respond to visitor Family end, client are resolved to the error code, then search corresponding prompt, and play frame prompt user.
Step S170: and so on, until error code all in emulating server error code loop module has been performed both by Circulation is jumped out after finishing.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art can manage Solution, the present invention is not limited to the specific embodiments, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method of calibration of software error code, which is characterized in that specifically includes the following steps:
Step a: client and emulating server establish TCP connection;
Step b: the client sends verification operation signaling, receives and parses through the verification operation by the emulating server and believes It enables, final reply responds to the client;
Step c: the client analyzes the response to the error code of middle carrying, and mistake is searched after being judged as abnormal responses and is mentioned Show and informs user.
2. the method according to claim 1, wherein before the step a further include: run the simulation suit It is engaged in device script, the error code poller module in the script has listed all error codes as defined in existing demand.
3. according to the method described in claim 2, it is characterized in that, before the step a further include: start the simulation suit Business device service, opens listening port, monitors the connection request of the client.
4. according to the method described in claim 3, it is characterized in that, in the step a further include: the client local network Network configures dns resolution, can parse the request domain name sent to the emulating server.
5. according to the method described in claim 4, it is characterized in that, in the step a further include: the client passes through TCP three-way handshake and the emulating server establish TCP connection, then through consultation by http protocol switching websocket protocol, Signalling mode is switched into websocket request method.
6. according to the method described in claim 5, it is characterized in that, the step b specifically: the client is sent described Verification operation signaling is sent on the emulating server after being encapsulated by TCP connection with websocket.
7. according to the method described in claim 6, it is characterized in that, the step b specifically: the client is clicked on the page Verifying function button after send verification operation signaling.
8. the method according to the description of claim 7 is characterized in that the step c is specifically included: according to the mistake being resolved to Code searches corresponding prompt in client error code prompt list.
9. according to the method described in claim 8, it is characterized in that, in the step c further include: by the prompt on the page The reason of prompting user in the form of playing frame or toast, informing operation failure and operation failure.
10. according to the method described in claim 9, it is characterized in that, the method also includes: the client is being clicked again Function button on the page sends second concrete operations signaling to the emulating server and carries out subsequent error code check.
CN201811548237.8A 2018-12-18 2018-12-18 A kind of method of calibration of software error code Pending CN109818777A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811548237.8A CN109818777A (en) 2018-12-18 2018-12-18 A kind of method of calibration of software error code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811548237.8A CN109818777A (en) 2018-12-18 2018-12-18 A kind of method of calibration of software error code

Publications (1)

Publication Number Publication Date
CN109818777A true CN109818777A (en) 2019-05-28

Family

ID=66602094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811548237.8A Pending CN109818777A (en) 2018-12-18 2018-12-18 A kind of method of calibration of software error code

Country Status (1)

Country Link
CN (1) CN109818777A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751716A (en) * 2021-01-05 2021-05-04 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN106802859A (en) * 2015-11-25 2017-06-06 北京京东尚科信息技术有限公司 A kind of method and device of client software test
CN106874163A (en) * 2016-12-29 2017-06-20 广州华多网络科技有限公司 A kind of method and system for showing software error code information
CN107038041A (en) * 2016-12-27 2017-08-11 阿里巴巴集团控股有限公司 The dynamic compatibility method of data processing method, error code, device and system
US20170300402A1 (en) * 2016-04-19 2017-10-19 Sap Se Mock server and extensions for application testing
CN107515798A (en) * 2017-09-06 2017-12-26 郑州云海信息技术有限公司 The error handling method and device of storage management software
CN108183962A (en) * 2018-01-04 2018-06-19 上海瀚之友信息技术服务有限公司 A kind of simulated testing system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905258A (en) * 2012-12-24 2014-07-02 百度国际科技(深圳)有限公司 Method and apparatus for testing data uploading function of client
CN106802859A (en) * 2015-11-25 2017-06-06 北京京东尚科信息技术有限公司 A kind of method and device of client software test
US20170300402A1 (en) * 2016-04-19 2017-10-19 Sap Se Mock server and extensions for application testing
CN107038041A (en) * 2016-12-27 2017-08-11 阿里巴巴集团控股有限公司 The dynamic compatibility method of data processing method, error code, device and system
CN106874163A (en) * 2016-12-29 2017-06-20 广州华多网络科技有限公司 A kind of method and system for showing software error code information
CN107515798A (en) * 2017-09-06 2017-12-26 郑州云海信息技术有限公司 The error handling method and device of storage management software
CN108183962A (en) * 2018-01-04 2018-06-19 上海瀚之友信息技术服务有限公司 A kind of simulated testing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751716A (en) * 2021-01-05 2021-05-04 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment
CN112751716B (en) * 2021-01-05 2023-10-17 厦门亿联网络技术股份有限公司 Test method and system for controlling response of file server and electronic equipment

Similar Documents

Publication Publication Date Title
US10122857B2 (en) System and method for analytics with automated whisper mode
US10200536B2 (en) Omni channel customer care system and method
US9871922B1 (en) Customer care database creation system and method
US10834031B2 (en) Information exchange method, client, and apparatus
CN101960822B (en) SIP-HTTP application correlator
US20160234383A1 (en) Calling an Unready Terminal
CN106357609A (en) User creation method and system, public network server and private cloud equipment
CN105099769B (en) Abnormal operation processing method, equipment and the system of business platform
CN103200022B (en) A kind of data download abnormality eliminating method, equipment and system
US20200067993A1 (en) Methods and system for placing a video call over a communication network
CN105516372B (en) Processing method, device and the server of filename
CN109818777A (en) A kind of method of calibration of software error code
CN102457494B (en) Method and device for improving monitoring success rate based on session initiation protocol (SIP) signaling
CN103442256B (en) A kind of method and system that electric program menu is realized based on HTML5
RU2604983C2 (en) Service parsing method flexibly adapted to ims system service tag
CN107786552A (en) Single-point logging method, system and computer equipment
CN104602108A (en) Method and system for transferring files of mobile phone and set-top box
CN104065913A (en) Instant messaging client
CN104158728B (en) Social network sites plus group's method, plus group's system and server
CN103078879A (en) Certification system and method for user registration
CN103124300B (en) A kind ofly realize the method that instant messaging IM client binds SIP phone automatically
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN107070872B (en) A kind of data processing method and device for client
Dogar et al. Missit: Using missed calls for free, extremely low bit-rate communication in developing regions
CN106874004A (en) The method and client and server of lowest version software compatibility highest version file

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