CN102035889A - Software testing method for telecommunication terminal - Google Patents

Software testing method for telecommunication terminal Download PDF

Info

Publication number
CN102035889A
CN102035889A CN2010105901913A CN201010590191A CN102035889A CN 102035889 A CN102035889 A CN 102035889A CN 2010105901913 A CN2010105901913 A CN 2010105901913A CN 201010590191 A CN201010590191 A CN 201010590191A CN 102035889 A CN102035889 A CN 102035889A
Authority
CN
China
Prior art keywords
computer
terminal
communicating terminal
daily record
communication
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
CN2010105901913A
Other languages
Chinese (zh)
Inventor
王建荣
丁二伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI TEJET TELECOM TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI TEJET TELECOM 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 SHANGHAI TEJET TELECOM TECHNOLOGY Co Ltd filed Critical SHANGHAI TEJET TELECOM TECHNOLOGY Co Ltd
Priority to CN2010105901913A priority Critical patent/CN102035889A/en
Publication of CN102035889A publication Critical patent/CN102035889A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a software testing method for a telecommunication terminal. The software testing method for the telecommunication terminal comprises the following steps that: a communication terminal is connected with a computer, and the computer is connected with Internet; the computer initializes the communication terminal and identifies a state, parameters and a characteristic value of the communication terminal; the computer reads and stores log information in the communication terminal; communication process between the communication terminal and the computer is ended; the computer at least sends the log information, and the parameters and the characteristic value of the communication terminal to a remote server through the Internet; and the communication process between the computer and the Internet is ended. In the software testing method for the telecommunication terminal, any application is not needed to be added on a communication terminal side and the development cycle is short; the software testing method for the telecommunication terminal is suitable for marketers or external field testers whose technical capacity is relatively weak and base is relatively poor; the remotely acquired information comprises log and terminal characteristic information; and the method contributes to quick positioning and effective analysis of the terminal problem.

Description

The method for testing software of telecommunication terminal
Technical field
The present invention relates to a kind of method of testing of communicating terminal, relate in particular to a kind of method for testing software of telecommunication terminal.
Background technology
The targeted customer of consumer electronics series products is the user on the different markets, and these users may be domestic, also may be international user.Equally, end product depends on communication network environment, and terminal and system's secundum legem communication protocol are carried out the mutual of information.
Before the end product listing, through running into such problem, although passed through the test of the various simulated environments of fundamental sum of long duration, the new problem that still can exist some to find or can't expect when testing at the scene in this locality.These problems can feed back to the related personnel sometimes timely, the Test Engineer also can serious analysis and contrast, even and the problem finder confirm repeatedly, still can't effectively locate and tracking problem, thereby, often need to coordinate special personnel and go to the scene to reappear problem again, so that obtain first hand problem description.Cause such problem reason that the following aspects is arranged: 1. the description of problem is normally insecure, the people who pinpoints the problems often is not the personnel of specialty, therefore be difficult to problem is carried out the description of specialty, the information that in the process of describing of being everlasting, has added a lot of subjectivities, thereby the description of problem is oversimplified, make the path of reproduction of problem complicated; 2. problem lacks reliable information preservation means; usually in the design process of end product; the log record instrument that can provide the user to protect " scene " accordingly; but obtain these daily records and lack effective means; although can use some very special-purpose instruments to obtain these log informations; but, often can't be used widely based on the higher specification requirement of action need and the authority problem of instrument itself.
Summary of the invention
The problem that the present invention solves be existing communicating terminal under long-range situation, can't confirm the problem of the defective of its existence reliably.
To achieve these goals, the invention provides a kind of method for testing software of telecommunication terminal, may further comprise the steps: described communicating terminal links to each other with a computer, and described computer connects the Internet; Described computer carries out initialization to described communicating terminal, discerns state, parameter and the characteristic value of described communicating terminal; Described computer reads and stores the log information in the described communicating terminal; Finish the communication process between described communicating terminal and the described computer; Described computer is sent to remote server by the parameter and the characteristic value of the Internet to described log information of major general and described communicating terminal; Finish the communication process of described computer and described the Internet.
Optionally, described communicating terminal is a mobile phone.
Optionally, the parameter of described communicating terminal comprises model, software version and the hardware version of described communicating terminal.
Optionally, described computer reads described log information in binary mode.
Optionally, described computer also sends the daily record side information to described remote server, and described daily record side information comprises the version of described daily record and the date of formation of described daily record at least.
Optionally, described step c further may further comprise the steps: c1: the file system task of the communication thread of described computer and described communicating terminal is carried out communication; C2: communication thread sends the daily record reading order to described communicating terminal; C3: after described communicating terminal opens file,, send to the computer-side communication thread by serial ports with the daily record data packing; C4: communication thread generates journal file and returns the side-play amount that next reads the address according to the size of daily record according to the data of returning in temp directory, and so circulation is finished up to whole log transmission.
Owing to adopted technique scheme, compared with prior art, the present invention has the following advantages: the method for testing software of telecommunication terminal of the present invention need not to increase any application in the communicating terminal side, and the construction cycle is short; Software compatible good, because and the portable terminal internal task is carried out communication, main operating process only need realize in computer-side, can guarantee compatibility to the end product of similar platform based on the mechanism of serial communication, transplanting even directly use that corresponding product can the aspect; The robustness of software is good, can not make amendment to the information of end side in the use, has avoided causing the unusual of the follow-up use of terminal; The present invention is fit to technical capability relative marketing personal or field testing personnel weak, that the basis is relatively poor relatively and uses, and the long-range imformosome that obtains has comprised daily record and terminal feature information, helps the quick location and effective analysis of terminal problem.
Description of drawings
Fig. 1 is the schematic flow sheet of the method for testing software of telecommunication terminal of the present invention.
Fig. 2 is the computer of the method for testing software of telecommunication terminal of the present invention and the data and the instruction transmission schematic diagram of communicating terminal.
Fig. 3 is the computer of the method for testing software of telecommunication terminal of the present invention and the data and the instruction transmission schematic diagram of remote server.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in detail.
At first, please refer to Fig. 1, Fig. 1 is the schematic flow sheet of the method for testing software of telecommunication terminal of the present invention, as can be seen from Figure 1, the method for testing software of telecommunication terminal of the present invention may further comprise the steps: step 11: described communicating terminal links to each other with a computer, described computer connects the Internet, and described communicating terminal is a mobile phone; Step 12: described computer carries out initialization to described communicating terminal, discerns state, parameter and the characteristic value of described communicating terminal, and the parameter of described communicating terminal comprises the model of described communicating terminal, software version and hardware version; Step 13: described computer reads and stores the log information in the described communicating terminal, and described computer reads described log information in binary mode; Step 14: finish the communication process between described communicating terminal and the described computer; Step 15: described computer is by parameter and the characteristic value of the Internet to described log information of major general and described communicating terminal, be sent to remote server, described computer also sends the daily record side information to described remote server, described daily record side information comprises the version of described daily record and the date of formation of described daily record at least, described computer is sent to remote server after packing by the Internet to the parameter of described log information of major general and described communicating terminal and characteristic value again; Step 16: the communication process that finishes described computer and described the Internet.
More specifically process is: after described communicating terminal connection initialization is finished, the computer-side watcher thread is shaken hands by specifying serial ports trial terminal to carry out communication, the display terminal state, and obtain the characteristic parameter such as electronic identification number, terminal models, software version of terminal by communication thread, stl status to terminal obtains simultaneously, prepare the log transmission process, described terminal is communicating terminal; The communication thread of computer-side and terminal document system task are carried out communication, communication thread sends the daily record reading order to terminal, after terminal task opens file, daily record data is packed, send to the computer-side communication thread by serial ports, communication thread generates journal file and returns the side-play amount that next reads the address according to the size of daily record according to the data of returning in temp directory, so circulation is finished up to whole log transmission, communication thread sends the closing journal order, discharges serial ports and each thread resources with the end side communication simultaneously; The network thread of computer-side is with terminal parameter and characteristic value, and local daily record data is packaged in the unified imformosome, send to long-range server by the internet communication agreement, after imformosome sends successfully, finish network thread and releasing network and connect and thread resources.
Then, please refer to Fig. 2, Fig. 2 is the computer of the method for testing software of telecommunication terminal of the present invention and the data and the instruction transmission schematic diagram of communicating terminal, with the detailed explanation more of the communication process between computer and the communication tool, PC represents it is computer among Fig. 2, ME represents it is communicating terminal, refer to mobile phone at this, the direction of arrow is represented the direction that data or instruction are transmitted, information all is initiatively to be initiated by computer-side alternately at every turn, finish by end side, i.e. the form of " question-response ".Finish a feature operation, may need to carry out information interaction repeatedly.Computer-side is at first according to configuration information, to the terminal inquiry state, the information such as model, software, hardware version that comprises terminal, these information side information that generates daily record, according to the configuring condition of computer-side, also need the version of daily record and the side informations such as date of formation of daily record simultaneously; First-selection, computer-side need be obtained log information is deposited file in encrypted file system (EFS) the information content, comprise number of files, file name, information such as file size.Knowing under the situation of whole folder information, just can operation such as read and write the journal file in the file.Comprise mainly that alternately folder information reads, log information obtains, these three aspects of log information deleted file between computer-side and the end side software, also have the work of some other state-maintenance simultaneously, as the mobile phone state visit etc.
Reading log folder information at first needs to open the respective file folder according to configuration information.Read journal file in this document folder according to the file pointer that returns, read the method that folder information adopts traversal.When reading the 1st file, set its parameter and point to first file, this document of returning folder is the information of first corresponding file down, and wherein this information has comprised various information such as the filename of this document and file type.And the like, parameter pointer adds up at every turn, and when not having filename in the information of returning, expression this document folder all files has down all read, can obtain the whole log informations under this document folder thus.
The process that log information obtains is actual to be exactly a process of reading the EFS file.By reading folder information, can obtain the fileinfo below the specified folder.When needs obtained this document, computer-side was opened the filename of this belt path by sending instruction, obtains the descriptor of this document.Then send some reading command, the character of some is read in each request; The position of reading simultaneously, is by its subsidiary deviant decision.End side is according to reading position, quantity and subsidiary deviant, or go in the local file system corresponding journal file and content, and, send it back computer-side by serial ports, the number of characters that data packets for transmission is drawn together deviant, actual read data and read with the blocks of files that computer-side requires.
Read in the daily record process, when the actual data value that reads in the packet that returns less than transmission during threshold value, expression this document has read and has finished.Computer-side software can be formed an identical file according to several packets that read according to deviant and character thereof, thereby realizes the acquisition process of log information.After all journal file read and finishes, computer-side was used the connection status of closing with terminal, and enters the long-range transmission standby condition of daily record.
At last, please refer to Fig. 3, Fig. 3 is the computer of the method for testing software of telecommunication terminal of the present invention and the data and the instruction transmission schematic diagram of remote server, with the detailed explanation more of the communication process between computer and the remote server, PC represents computer among Fig. 3, and Server represents remote server, the direction of the direction indication data of arrow or instruction transmission.Computer-side is used at first initialization connection status, detect the network connection state of this moment, determine that this moment, network was available, simultaneously according to the state that defines, check the log acquisition record of this moment and need the terminal relevant configuration information of transmission simultaneously, after init state is finished, will set up transmission control protocol (TCP) with server host and be connected.After connection status is set up, send acknowledge message.Use and mutual exchange command of far-end server and response, this process will last till connection termination always.Computer-side is used and the interactive command of far-end server is made up of an order and some parameters.All command definitions basic functions and give different modes of operation, in the command interaction life cycle,, finish the processing and the transmission course of log information by the different state of definition session.Be opened in case be connected, and confirmed that handshaking information, connect state machine have just entered " affirmation " state with the remote server end.In this state, computer-side is used the validity that must confirm oneself to server.
After confirming successfully, server just obtains the resource relevant with the client, and this moment, connect state machine entered " operation " state.Finish when the daily record message transmission, computer-side is sent when exiting command, and server is released in the resource that obtains in the mode of operation, and sends message, stops connecting.Connect state machine has entered " closing " state.In the state procedure, the TCP of far-end server connection is used by computer-side and is opened " affirmation ", is sent by server and confirms order.At this moment, application must prove its identity to server.Treatment mechanism adopts the username and password manner of comparison.In the affirmation process of username and password, use and at first send log on command, if far-end server is used and just can be sent check command to finish affirmation with the response of " affirmation " conditional code, perhaps sending exits command stops this session." failure " conditional code if far-end server returns, the client can send again and confirm order, perhaps sends to exit command.After application had sent log on command, whether server allowed the corresponding authority uploaded according to the additional information decision of the username and password order that receives.In case server judges that by these data the application that connects is effective client, it is " effectively " state that server will be put this connection thread, and prepares to receive the data flow that application method is come.Otherwise if this is connected to the state of engineering noise, server will be closed and being connected of this application.
After application had successfully been confirmed the identity of oneself to server, session entered " operation " state.Application begins transfer of data with far-end server, and log information transmits by ICP/IP protocol and is reassembled into complete journal file at the remote service end; After transfer of data was finished, server end notice computer-side application transport was finished, and state success message and detailed state are sent to application, closes connection after application is confirmed and the state information that remote server returns is shown to the user.
Though oneself discloses the present invention as above with preferred embodiment, the present invention is defined in this.Any those skilled in the art without departing from the spirit and scope of the present invention, all can do various changes and modification, so protection scope of the present invention should be as the criterion with claim institute restricted portion.

Claims (6)

1. the method for testing software of a telecommunication terminal is characterized in that, may further comprise the steps:
Step a: described communicating terminal links to each other with a computer, and described computer connects the Internet;
Step b: described computer carries out initialization to described communicating terminal, discerns state, parameter and the characteristic value of described communicating terminal;
Step c: described computer reads and stores the log information in the described communicating terminal;
Steps d: finish the communication process between described communicating terminal and the described computer;
Step e: described computer is sent to remote server by the parameter and the characteristic value of the Internet to described log information of major general and described communicating terminal;
Step f: the communication process that finishes described computer and described the Internet.
2. the method for testing software of telecommunication terminal according to claim 1 is characterized in that: described communicating terminal is a mobile phone.
3. the method for testing software of telecommunication terminal according to claim 1 is characterized in that: the parameter of described communicating terminal comprises the model of described communicating terminal, software version and hardware version.
4. the method for testing software of telecommunication terminal according to claim 1 is characterized in that: described computer reads described log information in binary mode.
5. the method for testing software of telecommunication terminal according to claim 1, it is characterized in that: described computer also sends the daily record side information to described remote server, and described daily record side information comprises the version of described daily record and the date of formation of described daily record at least.
6. the method for testing software of telecommunication terminal according to claim 1 is characterized in that: described step c further may further comprise the steps:
C1: the file system task of the communication thread of described computer and described communicating terminal is carried out communication;
C2: communication thread sends the daily record reading order to described communicating terminal;
C3: after described communicating terminal opens file,, send to the computer-side communication thread by serial ports with the daily record data packing;
C4: communication thread generates journal file and returns the side-play amount that next reads the address according to the size of daily record according to the data of returning in temp directory, and so circulation is finished up to whole log transmission.
CN2010105901913A 2010-12-16 2010-12-16 Software testing method for telecommunication terminal Pending CN102035889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105901913A CN102035889A (en) 2010-12-16 2010-12-16 Software testing method for telecommunication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105901913A CN102035889A (en) 2010-12-16 2010-12-16 Software testing method for telecommunication terminal

Publications (1)

Publication Number Publication Date
CN102035889A true CN102035889A (en) 2011-04-27

Family

ID=43888205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105901913A Pending CN102035889A (en) 2010-12-16 2010-12-16 Software testing method for telecommunication terminal

Country Status (1)

Country Link
CN (1) CN102035889A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103528619A (en) * 2012-07-04 2014-01-22 腾讯科技(深圳)有限公司 Overseas service testing method and system, testing platform, and overseas testing machine
CN104156304A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Method and device for obtaining terminal application software for compatibility testing
CN104486309A (en) * 2014-12-06 2015-04-01 北京银信长远科技股份有限公司 Terminal emulation communication protocol recording method
CN104572411A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Log data processing method and device
CN105431829A (en) * 2013-08-14 2016-03-23 傲立焜株式会社 App test system and app test method
CN109634878A (en) * 2018-12-07 2019-04-16 用友网络科技股份有限公司 Monitoring method, monitoring device, server, terminal and readable storage medium storing program for executing
CN110209564A (en) * 2019-06-03 2019-09-06 宜春宜联科技有限公司 Acquisition methods, printer, server and the printer system of printer log
CN112965949A (en) * 2021-03-03 2021-06-15 上海英方软件股份有限公司 Method for remotely reading ORACLE log file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211298A (en) * 2006-12-29 2008-07-02 环隆电气股份有限公司 Remote dummy control method
CN101325625A (en) * 2008-07-25 2008-12-17 余纯龙 System, apparatus and method for testing remote handset
CN101729295A (en) * 2009-12-02 2010-06-09 北京东土科技股份有限公司 Method for realizing log function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211298A (en) * 2006-12-29 2008-07-02 环隆电气股份有限公司 Remote dummy control method
CN101325625A (en) * 2008-07-25 2008-12-17 余纯龙 System, apparatus and method for testing remote handset
CN101729295A (en) * 2009-12-02 2010-06-09 北京东土科技股份有限公司 Method for realizing log function

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103528619A (en) * 2012-07-04 2014-01-22 腾讯科技(深圳)有限公司 Overseas service testing method and system, testing platform, and overseas testing machine
CN104156304A (en) * 2013-05-14 2014-11-19 腾讯科技(深圳)有限公司 Method and device for obtaining terminal application software for compatibility testing
CN104156304B (en) * 2013-05-14 2017-09-26 腾讯科技(深圳)有限公司 Acquisition methods and device for the terminal application software of compatibility test
CN105431829A (en) * 2013-08-14 2016-03-23 傲立焜株式会社 App test system and app test method
CN104572411A (en) * 2013-10-10 2015-04-29 腾讯科技(深圳)有限公司 Log data processing method and device
CN104486309A (en) * 2014-12-06 2015-04-01 北京银信长远科技股份有限公司 Terminal emulation communication protocol recording method
CN109634878A (en) * 2018-12-07 2019-04-16 用友网络科技股份有限公司 Monitoring method, monitoring device, server, terminal and readable storage medium storing program for executing
CN110209564A (en) * 2019-06-03 2019-09-06 宜春宜联科技有限公司 Acquisition methods, printer, server and the printer system of printer log
CN112965949A (en) * 2021-03-03 2021-06-15 上海英方软件股份有限公司 Method for remotely reading ORACLE log file
CN112965949B (en) * 2021-03-03 2022-11-22 上海英方软件股份有限公司 Method for remotely reading ORACLE log file

Similar Documents

Publication Publication Date Title
CN102035889A (en) Software testing method for telecommunication terminal
TWI230885B (en) Computer network system, computer system, method for communication between computer systems, method for measuring computer system performance, and storage medium
US6769622B1 (en) System and method for simulating universal serial bus smart card device connected to USB host
CN104967585B (en) A kind of method and apparatus of remote debugging mobile terminal
CN106471543B (en) User's cross-correlation across multiple applications on client device
CN110427785A (en) Acquisition methods and device, the storage medium and electronic device of device-fingerprint
US20070213966A1 (en) Traffic generator program
CN101641689A (en) Method, system and recording medium for collecting contents usage information
CN108196879A (en) Method for processing business, device, equipment and computer readable storage medium
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
US10505750B2 (en) Box for communication and management of devices
CN107665237B (en) Data structure classification device, and unstructured data publishing and subscribing system and method
WO2007019735A1 (en) Communication method and system
CN110519127B (en) Network delay detection method, device and storage medium
CN106105154A (en) The method of data upload, Apparatus and system
US20180191858A1 (en) System for managing data of user devices
CN110363017A (en) Mix the data safety sharing method and system based on client encryption under cloud environment
Powell et al. The test and training enabling architecture (TENA)
Tiwana et al. Location, location, location! modeling data proximity in the cloud
CN101809612A (en) Dynamic email directory harvest attack detection and mitigation
Seo et al. A framework for estimating the impact of a distributed software system's architectural style on its energy consumption
Choi et al. Application patterns for cyber-physical systems
US11438191B2 (en) Interconnection box for user devices
Di Noia et al. Semantic-based Bluetooth-RFID interaction for advanced resource discovery in pervasive contexts
CN110381056A (en) Proprietary protocol decoding method and device based on Netty

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110427