CN104794052B - The method and device of encryption display test - Google Patents

The method and device of encryption display test Download PDF

Info

Publication number
CN104794052B
CN104794052B CN201510152028.1A CN201510152028A CN104794052B CN 104794052 B CN104794052 B CN 104794052B CN 201510152028 A CN201510152028 A CN 201510152028A CN 104794052 B CN104794052 B CN 104794052B
Authority
CN
China
Prior art keywords
test
encryption
display
encryption information
display test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510152028.1A
Other languages
Chinese (zh)
Other versions
CN104794052A (en
Inventor
冯斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510152028.1A priority Critical patent/CN104794052B/en
Publication of CN104794052A publication Critical patent/CN104794052A/en
Application granted granted Critical
Publication of CN104794052B publication Critical patent/CN104794052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of method and device for encrypting display test, described encrypt shows that the step of method of test includes the step of simultaneous display is tested, and the simultaneous display is tested includes:By adding debugging code in bottom to monitor the encryption information for the encrypted card that bottom feeds back in real time;Obtain the encryption information currently shown on terminal screen;The terminal is encrypted according to the encryption information and the encryption information of display fed back display test.The present invention can be monitored by debugging code to the encryption information fed back after bottom comprehensive descision, so as to get the actual encryption state of encrypted card, this makes it possible to determine shown encryption information whether with encrypted card actual encryption state consistency, be advantageous to further test the encryption function of the encrypted card.

Description

The method and device of encryption display test
Technical field
The present invention relates to terminal test technical field, more particularly to a kind of method and device for encrypting display test.
Background technology
At present, commonly used with intelligent terminal, its function is also more and more rich and varied.In order to realize phone or The secrecy of short breath, scrambler phone card produce therewith.In order to carry out the higher communication of confidentiality, a kind of common way is to provide one The encrypted state of kind encrypted card shows that it is to be in encrypted state or non-encrypted shape that encrypted card is shown on the screen of terminal State, i.e., the current encrypted state of encrypted card can be shown in real time, user can be encrypted when showing encrypted state logical Letter.But the mode of the encrypted state of encrypted card is shown, can not determine shown encrypted state with adding in common Black-box Testing The actual state consistency of close card, that is, occur the inaccurate situation of display, thus the encryption function of the encrypted card can not be entered Row test.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is existing skill Art.
The content of the invention
It is a primary object of the present invention to provide a kind of method and device for encrypting display test, it is intended to how solve to screen The technical problem that the authenticity of the encryption information of the encrypted card shown on curtain is tested.
To achieve the above object, the present invention provides a kind of method for encrypting display test, the side of the encryption display test The step of method includes the step of simultaneous display is tested, and the simultaneous display is tested includes:
By adding debugging code in bottom to monitor the encryption information for the encrypted card that bottom feeds back in real time;
Obtain the encryption information currently shown on terminal screen;
The terminal is encrypted according to the encryption information and the encryption information of display fed back display test.
Preferably, it is described that display is encrypted to the terminal according to the encryption information fed back and the encryption information of display The step of test, includes:
Judge whether fed back encryption information and shown encryption information are identical;
If the encryption information fed back is identical with shown encryption information, encryption shows that test passes through, and otherwise encrypts Display test does not pass through.
Preferably, the step of simultaneous display test further comprises:
After test passes through, the debugging code is nullified.
Preferably, the method for the encryption display test also includes:It is encrypted under a variety of different test scenes aobvious The step of showing test, described the step of display test is encrypted under a variety of different test scenes, include:
A variety of different test scenes when being used by using third party application analog encryption card;
The switch test scene in the test scene simulated, and perform the synchronization under the test scene switched and show Show testing procedure.
Preferably, described the step of display test is encrypted under a variety of different test scenes, further comprises:
After test passes through, calling interface corresponding to the third party application is closed.
In addition, to achieve the above object, the present invention also provides a kind of device for encrypting display test, the encryption display is surveyed The device of examination includes simultaneous display test module, and the simultaneous display test module includes:
Monitoring unit, for being believed by adding debugging code in bottom to monitor the encryption for the encrypted card that bottom feeds back in real time Breath;
Acquiring unit, for obtaining the encryption information currently shown on terminal screen;
Simultaneous display test cell, for being entered according to the encryption information and the encryption information of display fed back to the terminal Row encryption display test.
Preferably, the simultaneous display test cell includes:
Contrast subunit, for the encryption information fed back to be compared with shown encryption information;
Subelement is tested, if consistent with shown encryption information for the encryption information fed back, encryption display is surveyed Pinged, otherwise encryption display test does not pass through.
Preferably, the simultaneous display test module further comprises:Unit is nullified, for after test passes through, nullifying The debugging code.
Preferably, the device of the encryption display test also includes scrnario testing module, and the scrnario testing module includes:
Analogue unit, a variety of different checkout areas during for being used by using third party application analog encryption card Scape;
Scrnario testing unit, for the switch test scene in the test scene simulated, and in the checkout area switched The simultaneous display test cell is triggered under scape display test is encrypted.
Preferably, the scrnario testing module further comprises:Closing unit, for after test passes through, described in closing Calling interface corresponding to third party application.
A kind of method and device for encrypting display test of the present invention, by adding debugging code in bottom to monitor bottom in real time The encryption information of the encrypted card of layer feedback, the encryption information that then will be shown in the encryption information fed back and terminal current screen It is compared display test is encrypted, by debugging code can enter to the encryption information fed back after bottom comprehensive descision Row monitoring, so as to get the actual encryption state of encrypted card, whether this makes it possible to determine shown encryption information with adding Close card actual encryption state consistency, be advantageous to further test the encryption function of the encrypted card.
Brief description of the drawings
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of the method first embodiment of present invention encryption display test;
Fig. 4 is the refinement schematic flow sheet of step S103 in Fig. 3;
Fig. 5 is the schematic flow sheet of the method second embodiment of present invention encryption display test;
Fig. 6 is the schematic flow sheet of the method 3rd embodiment of present invention encryption display test;
Fig. 7 is the schematic flow sheet of the method fourth embodiment of present invention encryption display test;
Fig. 8 is the high-level schematic functional block diagram of the device first embodiment of present invention encryption display test;
Fig. 9 is the high-level schematic functional block diagram of the device second embodiment of present invention encryption display test.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the present invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be advantageous to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as digital TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that except being used in particular for moving Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal for the mobile terminal for realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 100 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, it is at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information that the server or reception of broadcast singal and/or broadcast related information generate before And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast Receiving module 111 can be broadcasted by using various types of broadcast system reception signals.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hold (DVB-H), the Radio Data System of forward link media (MediaFLO), received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one in server and/or receive from it radio signal.Such radio signal can lead to including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for the method for calculation position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 122, camera 121 in video acquisition mode or image capture mode by image capture apparatus obtain static images Or the view data of video is handled.Picture frame after processing may be displayed on display unit 151.Handled through camera 121 Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can will so Acoustic processing be voice data.Audio (voice) data after processing can be converted in the case of telephone calling model can The form that mobile communication base station is sent to via mobile communication module 112 exports.Microphone 122 can implement various types of make an uproar Sound eliminates (or suppression) algorithm to eliminate (or suppression) caused noise or dry during receiving and sending audio signal Disturb.
User input unit 130 can control each of mobile terminal according to the order generation key input data that user inputs Kind operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, sensitive component of detection change of resistance, pressure, electric capacity etc. caused by being touched), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 100, user for mobile terminal 100, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 141, to be combined below This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 100 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device with identification module can (hereinafter referred to as " identification device ") take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 100.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 100 from base or may be used as allowing to pass through it from the various command signals that base inputs It is transferred to the path of mobile terminal.It may be used as being used to identify that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed in mobile terminal 100 information handled.For example, when mobile terminal 100 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is receiving or in memory 160 by wireless communication unit 110 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and to export be sound.Moreover, dio Output Modules 152 can provide and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 performs. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration There is provided output, when receive calling, message or some it is other enter communication (incoming communication) when, alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by tactile as offer, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can be with performing memory by network connection The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 performs and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or be can be structured as and controlled Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system operate.
The communication system that can be wherein operated according to the mobile terminal of the present invention referring now to Fig. 2 descriptions.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to figure 2, cdma wireless communication system can include multiple mobile terminals 100, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If back haul link can construct according to any of interface that Ganji knows, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or each subregion can be by two or more for diversity reception Antenna covers.Each BS270, which may be constructed such that, supports multiple frequency distribution, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 100 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals It is at least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that, any number of satellite can be utilized to obtain useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100 Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives each anti- Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Reference picture 3, in one embodiment, the method for encryption display test include the step of simultaneous display is tested, described The step of simultaneous display is tested includes:
Step S101, by adding debugging code in bottom to monitor the encryption information for the encrypted card that bottom feeds back in real time;
The present embodiment passes through added debugging code come the bottom of to by adding debugging code in original bottom code The encryption information of the encrypted card of layer feedback is monitored, i.e., debugging code can be believed the encryption fed back after bottom comprehensive descision Breath is monitored, so as to get the actual encryption state of encrypted card.
Wherein, in bottom adds debugging code, the display information on screen, example can also be added in bottom code Such as, debugging bottom most code feedback " shows in screen respectively while TATE_ERROR, STATE_NORMAL, STATE_ABNORMAL " Show " failure, normal, exception ".
The encryption information that other third party's instruments need not be reused and obtain this encrypted card of the present embodiment.Because Third party's instrument is generally all that research staff oneself writes, so third party's instrument realizes the function that code may be tested with needs Respective code it is consistent, so as to the same situation of both acquisition results, situation about both being misdeemed when such as misdeeming occur. In addition, for security consideration, in addition to interface corresponding to debugging code, terminal provides extra interface as few as possible.
Step S102, obtain the encryption information currently shown on terminal screen;
Step S103, display is encrypted to the terminal according to the encryption information and the encryption information of display fed back and surveys Examination.
In the present embodiment, after the encryption information that obtained bottom feeds back is monitored by debugging code, the encryption that will be fed back Information is compared with the encryption information of display current on screen, judges that encryption display tests whether to lead to according to comparison result Cross.
In the present embodiment, because debugging code is monitored to the encrypted state of encrypted card in real time, it can truly reflect and add The current encrypted state of close card, if the encryption information shown on screen monitors obtained encryption information not in real time with debugging code Identical, then encryption display test does not pass through.
The encryption of embodiment itself shows that test can continue to carry out a predetermined time, shields when within the predetermined time The encryption information shown on curtain monitors obtained encryption information all same in real time with debugging code, then encryption shows that test passes through.
Embodiment itself can also timing the encrypted state of encrypted card is monitored, often monitor once then be considered as once plus Close display test, the encryption display test of pre-determined number is then carried out, if in the encryption display test of pre-determined number, on screen The encryption information of display monitors obtained encryption information all same in real time with debugging code, then encryption shows that test passes through.
Compared with prior art, the present embodiment in bottom by adding debugging code to monitor the encryption that bottom feeds back in real time The encryption information of card, then the encryption information fed back is compared to enter with the encryption information shown on terminal current screen Row encryption display test, by debugging code can be monitored to the encryption information fed back after bottom comprehensive descision, so as to Get the actual encryption state of encrypted card, this makes it possible to determine shown encryption information whether with encrypted card actual encryption State consistency, be advantageous to further test the encryption function of the encrypted card.
In a preferred embodiment, as shown in figure 4, on the basis of above-mentioned Fig. 3 embodiment, above-mentioned steps S103 bags Include:
Step S1031, judge whether fed back encryption information and shown encryption information are identical;
Step S1032, if the encryption information fed back is identical with shown encryption information, encryption display test is logical Cross;
Step S1033, if the encryption information fed back differs with shown encryption information, encryption display test is not Pass through.
The encryption information fed back is compared the present embodiment with the encryption information of display current on screen, if two Person is consistent, then terminal can truly reflect the current encrypted state of encrypted card, i.e. encryption shows that test passes through;If both differ Cause, then terminal fails the current encrypted state of true reflection encrypted card, i.e. encryption display test does not pass through.
In a preferred embodiment, as shown in figure 5, on the basis of above-mentioned Fig. 3 embodiment, the simultaneous display is surveyed The step of examination, further comprises:Step S104, after test passes through, nullify the debugging code.
In the present embodiment, after test passes through, i.e., the encryption information and the time of day of encrypted card that are shown on terminal screen It is identical, it may be determined that the terminal is qualified product, and the debugging code for making an addition to bottom is unregistered, to prevent debugging code quilt Malice uses and further influences the function of encrypted card.
In a preferred embodiment, as shown in fig. 6, on the basis of above-mentioned Fig. 3 embodiment, encryption display test Method also includes:The step of display test is encrypted under a variety of different test scenes, it is described in a variety of different tests The step of display test is encrypted under scene includes:
Step S105, a variety of different test scenes when being used by using third party application analog encryption card;
Step S106, the switch test scene in the test scene simulated, and performed under the test scene switched The simultaneous display testing procedure.
In the present embodiment, it is contemplated that the limitation of true environment, quick, survey repeatedly can not be carried out under a variety of test scenes A variety of different test scenes when trying, therefore being used by using third party application analog encryption card, it is switched fast each Kind test scene is tested so that bottom constantly makes corresponding change to the encrypted state of encrypted card.
The present embodiment is directed to the difference of test scene, such as the field that the scene of terminal network lock, encrypted card are expired and not out of date Scape, encrypted card be intact and the scene such as damage, and further can be combined these scenes and then re-test so that terminal The encrypted state of encrypted card constantly converts, and reaches the purpose of pressure test.
The present embodiment performs above-mentioned simultaneous display testing procedure under the test scene simulated.
The present embodiment by using third party application it is a large amount of, it is random, quick, change encrypted state repeatedly, cause bottom Layer judges encrypted state constantly to change.What deserves to be explained is the present embodiment can be kept for a period of time after can not using display Display mode, such as toast.
Preferably, the present embodiment can also further carry out scrnario testing in true environment.True environment ratio uses Third party application simulation is increasingly complex, so the true environment pressure test of certain number can be improved further reliably Property.
In a preferred embodiment, as shown in fig. 7, on the basis of above-mentioned Fig. 3 embodiment, in a variety of different surveys The step of display test is encrypted under the scape of examination hall further comprises:Step S107, after test passes through, close the third party Calling interface corresponding to application program.
In the present embodiment, when be encrypted under a variety of different test scenes display test pass through after, can be further true The fixed terminal is qualified product, calling interface corresponding to third party application is closed, to prevent that calling interface from maliciously being made With and further influence the function of encrypted card.
This statement also provides a kind of device for encrypting display test, as shown in figure 8, in one embodiment, the encryption is aobvious Showing the device of test includes simultaneous display test module 10, and simultaneous display test module 10 includes:
Monitoring unit 101, for by adding debugging code in bottom to monitor adding for the encrypted card of bottom feedback in real time Confidential information;
The present embodiment passes through added debugging code come the bottom of to by adding debugging code in original bottom code The encryption information of the encrypted card of layer feedback is monitored, i.e., debugging code can be believed the encryption fed back after bottom comprehensive descision Breath is monitored, so as to get the actual encryption state of encrypted card.
Wherein, in bottom adds debugging code, the display information on screen, example can also be added in bottom code Such as, debugging bottom most code feedback " shows in screen respectively while TATE_ERROR, STATE_NORMAL, STATE_ABNORMAL " Show " failure, normal, exception ".
The encryption information that other third party's instruments need not be reused and obtain this encrypted card of the present embodiment.Because Third party's instrument is generally all that research staff oneself writes, so third party's instrument realizes the function that code may be tested with needs Respective code it is consistent, so as to the same situation of both acquisition results, situation about both being misdeemed when such as misdeeming occur. In addition, for security consideration, in addition to interface corresponding to debugging code, terminal provides extra interface as few as possible.
Acquiring unit 102, for obtaining the encryption information currently shown on terminal screen;
Simultaneous display test cell 103, for according to the encryption information and the encryption information of display fed back to the end Display test is encrypted in end.
In the present embodiment, after the encryption information that obtained bottom feeds back is monitored by debugging code, the encryption that will be fed back Information is compared with the encryption information of display current on screen, judges that encryption display tests whether to lead to according to comparison result Cross.
In the present embodiment, because debugging code is monitored to the encrypted state of encrypted card in real time, it can truly reflect and add The current encrypted state of close card, if the encryption information shown on screen monitors obtained encryption information not in real time with debugging code Identical, then encryption display test does not pass through.
The encryption of embodiment itself shows that test can continue to carry out a predetermined time, shields when within the predetermined time The encryption information shown on curtain monitors obtained encryption information all same in real time with debugging code, then encryption shows that test passes through.
Embodiment itself can also timing the encrypted state of encrypted card is monitored, often monitor once then be considered as once plus Close display test, the encryption display test of pre-determined number is then carried out, if in the encryption display test of pre-determined number, on screen The encryption information of display monitors obtained encryption information all same in real time with debugging code, then encryption shows that test passes through.
In a preferred embodiment, on the basis of above-mentioned Fig. 8 embodiment, the simultaneous display test cell 103 Including:Contrast subunit, for the encryption information fed back to be compared with shown encryption information;Test subelement, If consistent with shown encryption information for the encryption information fed back, encryption shows that test passes through, otherwise encryption display Test does not pass through.
The encryption information fed back is compared the present embodiment with the encryption information of display current on screen, if two Person is consistent, then terminal can truly reflect the current encrypted state of encrypted card, i.e. encryption shows that test passes through;If both differ Cause, then terminal fails the current encrypted state of true reflection encrypted card, i.e. encryption display test does not pass through.
In a preferred embodiment, on the basis of above-mentioned Fig. 8 embodiment, the simultaneous display test module 10 is entered One step includes:Unit is nullified, for after test passes through, nullifying the debugging code.
In the present embodiment, after test passes through, i.e., the encryption information and the time of day of encrypted card that are shown on terminal screen It is identical, it may be determined that the terminal is qualified product, and the debugging code for making an addition to bottom is unregistered, to prevent debugging code quilt Malice uses and further influences the function of encrypted card.
In a preferred embodiment, as shown in figure 9, on the basis of above-mentioned Fig. 8 embodiment, the encryption display is surveyed The device of examination also includes scrnario testing module 20, and the scrnario testing module includes:Analogue unit, for by using third party A variety of different test scenes when application program analog encryption card uses;Scrnario testing unit, in the test simulated Switch test scene in scene, and trigger the simultaneous display test cell under the test scene switched and display is encrypted Test.
In the present embodiment, it is contemplated that the limitation of true environment, quick, survey repeatedly can not be carried out under a variety of test scenes A variety of different test scenes when trying, therefore being used by using third party application analog encryption card, it is switched fast each Kind test scene is tested so that bottom constantly makes corresponding change to the encrypted state of encrypted card.
The present embodiment is directed to the difference of test scene, such as the field that the scene of terminal network lock, encrypted card are expired and not out of date Scape, encrypted card be intact and the scene such as damage, and further can be combined these scenes and then re-test so that terminal The encrypted state of encrypted card constantly converts, and reaches the purpose of pressure test.
The present embodiment triggers above-mentioned simultaneous display test cell and display survey is encrypted under the test scene simulated Examination.
The present embodiment by using third party application it is a large amount of, it is random, quick, change encrypted state repeatedly, cause bottom Layer judges encrypted state constantly to change.What deserves to be explained is the present embodiment can be kept for a period of time after can not using display Display mode, such as toast.
Preferably, the present embodiment can also further carry out scrnario testing in true environment.True environment ratio uses Third party application simulation is increasingly complex, so the true environment pressure test of certain number can be improved further reliably Property.
In a preferred embodiment, on the basis of above-mentioned Fig. 9 embodiment, the scrnario testing module 20 is further Including:Closing unit, for after test passes through, closing calling interface corresponding to the third party application.
In the present embodiment, when be encrypted under a variety of different test scenes display test pass through after, can be further true The fixed terminal is qualified product, calling interface corresponding to third party application is closed, to prevent that calling interface from maliciously being made With and further influence the function of encrypted card.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. method for encrypting display test, it is characterised in that the method for the encryption display test is surveyed including simultaneous display The step of examination, include the step of simultaneous display test:
    By adding debugging code in bottom to monitor the encryption information for the encrypted card that bottom feeds back in real time;
    Obtain the encryption information currently shown on terminal screen;
    The terminal is encrypted according to the encryption information and the encryption information of display fed back display test.
  2. 2. the method for encryption display test as claimed in claim 1, it is characterised in that described according to the encryption information fed back And the encryption information of display is encrypted the step of showing test to the terminal and included:
    Judge whether fed back encryption information and shown encryption information are identical;
    If the encryption information fed back is identical with shown encryption information, encryption shows that test passes through, otherwise encryption display Test does not pass through.
  3. 3. the method for encryption display test as claimed in claim 1, it is characterised in that the step of simultaneous display is tested is entered One step includes:
    After test passes through, the debugging code is nullified.
  4. 4. the method for the encryption display test as described in claim 1,2 or 3, it is characterised in that the encryption display test Method also includes:The step of display test is encrypted under a variety of different test scenes, it is described in a variety of different tests The step of display test is encrypted under scene includes:
    A variety of different test scenes when being used by using third party application analog encryption card;
    The switch test scene in the test scene simulated, and perform the simultaneous display under the test scene switched and survey Try is rapid.
  5. 5. the method for encryption display test as claimed in claim 4, it is characterised in that described in a variety of different test scenes Under be encrypted display test the step of further comprise:
    After test passes through, calling interface corresponding to the third party application is closed.
  6. 6. a kind of device for encrypting display test, it is characterised in that the device of the encryption display test is surveyed including simultaneous display Die trial block, the simultaneous display test module include:
    Monitoring unit, for by adding debugging code in bottom to monitor the encryption information for the encrypted card that bottom feeds back in real time;
    Acquiring unit, for obtaining the encryption information currently shown on terminal screen;
    Simultaneous display test cell, for being added according to the encryption information and the encryption information of display fed back to the terminal Close display test.
  7. 7. the device of encryption display test as claimed in claim 6, it is characterised in that the simultaneous display test cell bag Include:
    Contrast subunit, for the encryption information fed back to be compared with shown encryption information;
    Subelement is tested, if consistent with shown encryption information for the encryption information fed back, encryption display test is logical Cross, otherwise encryption display test does not pass through.
  8. 8. the device of encryption display test as claimed in claim 6, it is characterised in that the simultaneous display test module enters one Step includes:Unit is nullified, for after test passes through, nullifying the debugging code.
  9. 9. the device of the encryption display test as described in claim 6,7 or 8, it is characterised in that the encryption display test Device also includes scrnario testing module, and the scrnario testing module includes:
    Analogue unit, a variety of different test scenes during for being used by using third party application analog encryption card;
    Scrnario testing unit, for the switch test scene in the test scene simulated, and under the test scene switched Trigger the simultaneous display test cell and display test is encrypted.
  10. 10. the device of encryption display test as claimed in claim 9, it is characterised in that the scrnario testing module is further Including:Closing unit, for after test passes through, closing calling interface corresponding to the third party application.
CN201510152028.1A 2015-04-01 2015-04-01 The method and device of encryption display test Active CN104794052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510152028.1A CN104794052B (en) 2015-04-01 2015-04-01 The method and device of encryption display test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510152028.1A CN104794052B (en) 2015-04-01 2015-04-01 The method and device of encryption display test

Publications (2)

Publication Number Publication Date
CN104794052A CN104794052A (en) 2015-07-22
CN104794052B true CN104794052B (en) 2018-01-19

Family

ID=53558861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510152028.1A Active CN104794052B (en) 2015-04-01 2015-04-01 The method and device of encryption display test

Country Status (1)

Country Link
CN (1) CN104794052B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209344A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 The method of testing of a kind of voice encryption and test equipment
CN112437294B (en) * 2020-11-25 2021-10-12 腾讯科技(深圳)有限公司 Method, device and equipment for testing identity hiding function and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609492A (en) * 2009-07-23 2009-12-23 凌阳科技股份有限公司 The encipher-decipher method of embedded device and system
CN101873622A (en) * 2010-06-29 2010-10-27 青岛海信移动通信技术股份有限公司 Method and device for testing encryption unit
CN102202334A (en) * 2011-06-24 2011-09-28 迈普通信技术股份有限公司 Method and system for testing 3G (3rd Generation) wireless router with encryption card
CN104317697A (en) * 2014-11-14 2015-01-28 深圳市中兴移动通信有限公司 Card status display processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100856007B1 (en) * 2006-09-06 2008-09-02 성균관대학교산학협력단 A verification method for operation of encryption apparatus andits application to electronic voting
JP2012169756A (en) * 2011-02-10 2012-09-06 Hitachi Ltd Encrypted communication inspection system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609492A (en) * 2009-07-23 2009-12-23 凌阳科技股份有限公司 The encipher-decipher method of embedded device and system
CN101873622A (en) * 2010-06-29 2010-10-27 青岛海信移动通信技术股份有限公司 Method and device for testing encryption unit
CN102202334A (en) * 2011-06-24 2011-09-28 迈普通信技术股份有限公司 Method and system for testing 3G (3rd Generation) wireless router with encryption card
CN104317697A (en) * 2014-11-14 2015-01-28 深圳市中兴移动通信有限公司 Card status display processing method and device

Also Published As

Publication number Publication date
CN104794052A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN104915119B (en) Terminal desktop icon method of adjustment and device
CN105099669B (en) Recording encipher-decipher method and device
CN104820555B (en) The method, apparatus and terminal of horizontal/vertical screen switching
CN105100308B (en) Mobile terminal and its test method
CN105357367B (en) Recognition by pressing keys device and method based on pressure sensor
CN104731456B (en) Desktop widget display methods and device
CN105631370B (en) Region screen locking method and mobile terminal
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106817377A (en) A kind of data encryption device, decryption device and method
CN106453652A (en) Log file uploading method and system
CN106095464B (en) A kind of method and device of the seamless operation of application program
CN105785608B (en) A kind of screen water ripples test macro and method
CN107071161A (en) The aggregation display method and mobile terminal of icon in a kind of status bar
CN105095705B (en) A kind of information processing method and device
CN107105088A (en) One kind operation response method and terminal
CN106775097A (en) A kind for the treatment of method and apparatus of neighboring edge touch-control interaction
CN106550133A (en) Calling identification device and method
CN106548081A (en) A kind of end message display packing and device
CN106125898A (en) The method and device of screen rotation
CN104794052B (en) The method and device of encryption display test
CN104751074B (en) Image display processing method and device
CN106131318A (en) A kind of incoming information hidden method and device
CN106650347A (en) Synchronous unblocking method, device and terminals
CN106792921A (en) The regulating power consumption device and method of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant