CN106326117A - Testing method and to-be-tested terminal - Google Patents

Testing method and to-be-tested terminal Download PDF

Info

Publication number
CN106326117A
CN106326117A CN201610683592.0A CN201610683592A CN106326117A CN 106326117 A CN106326117 A CN 106326117A CN 201610683592 A CN201610683592 A CN 201610683592A CN 106326117 A CN106326117 A CN 106326117A
Authority
CN
China
Prior art keywords
test
tested
terminal
default
script
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
CN201610683592.0A
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.)
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 CN201610683592.0A priority Critical patent/CN106326117A/en
Publication of CN106326117A publication Critical patent/CN106326117A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the invention disclose a testing method and a to-be-tested terminal, capable of reducing the workload of a test and saving network resource. The method comprises the steps of receiving a preset test script sent by test equipment; when the preset test script is acquired, controlling to run the preset test script on a test agent device, and performing an off-line test.

Description

A kind of method of testing and terminal to be tested
Technical field
The present invention relates to the measuring technology in the communications field, particularly relate to a kind of method of testing and terminal to be tested.
Background technology
Test generally comprises layout test to user interface (User Interface is called for short UI), content test (includes word And picture), Fabric Hand Test, the content such as components testing.For test objects such as layout, content style, fonts, generally use static state Mode is tested, and the mode such as using spot check table to combine manual observation obtains test result.And in user interface For control, owing to it has the characteristic of man-machine interaction, it is possible to provide a user with such as interface redirect, on-off control, word defeated The interactivity function such as enter, therefore prior art often uses dynamical fashion that UI is tested.
The existing dynamic test for UI typically requires tester and writes test case (test script), to tested right As, the content such as test mode, expected results is bound, then network is utilized to be connected to by data-interface terminal to be tested Test terminal (such as, computer) or server, performed this test case by this test terminal or server and complete end to be tested The UI test of end.
But, it is found that above-mentioned test process needs to connect on a testing machine, to many during above-mentioned test UI When individual test-run a machine to be measured carries out the test of same test case, test job amount is relatively big, and the internet resource of consumption is the most more.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of method of testing and terminal to be tested, it is possible to Reduce the workload of test, save Internet resources.
The technical scheme is that and be achieved in that:
Embodiments providing a kind of method of testing, be applied in a terminal to be tested, one is to be tested Being provided with test agent device in terminal, described method includes:
Receive the default test script that test equipment sends;
When obtaining described default test script, control on described test agent device, run described default test foot This, carry out off-line test.
In such scheme, described control to run described default test script on described test agent device after, institute Method of stating also includes:
When described default test script has run, generate test report, described test report be test result be pre- Generate during rhetoric question topic.
In such scheme, described control to run described default test script on described test agent device before, institute Method of stating also includes:
Receiving the communication list that described test equipment sends, described communication list includes the first of other terminals to be tested Mailing address.
In such scheme, after described generation test report, described method also includes:
According to described first mailing address, send end of test instruction extremely other terminals to be tested described, described with notice Other terminals to be tested terminate the test of described default test script.
In such scheme, after described generation test report, described method also includes:
Send described test report extremely described test equipment, indicate described test equipment to nullify all terminals to be tested Test process.
Embodiments provide a kind of terminal to be tested, described terminal to be tested be provided with test agent device, Including:
Receive unit, for receiving the default test script that test equipment sends;
Test cell, for when obtaining described default test script, controls to run on described test agent device Described default test script, carries out off-line test.
In above-mentioned terminal to be tested, described terminal to be tested also includes: signal generating unit;
Described signal generating unit, for described control to run on described test agent device described default test script it After, when described default test script has run, generate test report, described test report be test result be preset problem Shi Shengcheng's.
In above-mentioned terminal to be tested, described reception unit, it is additionally operable to described control and transports on described test agent device Before the described default test script of row, receiving the communication list that described test equipment sends, described communication list includes other First mailing address of terminal to be tested.
In above-mentioned terminal to be tested, described terminal to be tested also includes: transmitting element;
Described transmitting element, after described generation test report, according to described first mailing address, sends test eventually Only instruction is to other terminals to be tested described, terminates the survey of described default test script with notice other terminals to be tested described Examination.
In above-mentioned terminal to be tested, described terminal to be tested also includes: transmitting element;
Described transmitting element, after described generation test report, sends described test report extremely described test equipment, Described test equipment is indicated to nullify the test process to all terminals to be tested.
Embodiments provide a kind of method of testing and terminal to be tested, this terminal to be tested is provided with test generation Reason device, receives the default test script that test equipment sends;When obtaining default test script, control to fill in test agent Put operation and preset test script, carry out off-line test.Use above-mentioned technic relization scheme, owing to using terminal to be tested each Carry out presetting the operation of test script, substantial amounts of computing is distributed to each terminal to be tested and carries out, therefore, decrease test Workload, and owing to default test script is got by terminal to be tested, therefore, this terminal to be tested is being tested Time can operate with off-line, such that it is able to save Internet resources.
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of a kind of optional mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the communication system that the mobile terminal of the present invention is operable to;
The schematic diagram of the test system that Fig. 3 provides for the embodiment of the present invention;
The flow chart one of a kind of method of testing that Fig. 4 provides for the embodiment of the present invention;
The flowchart 2 of a kind of method of testing that Fig. 5 provides for the embodiment of the present invention;
The interaction figure one of a kind of method of testing that Fig. 6 provides for the embodiment of the present invention;
The interaction figure two of a kind of method of testing that Fig. 7 provides for the embodiment of the present invention;
The structural representation one of the terminal a kind of to be tested that Fig. 8 provides for the embodiment of the present invention;
The structural representation two of the terminal a kind of to be tested that Fig. 9 provides for the embodiment of the present invention;
The structural representation three of the terminal a kind of to be tested that Figure 10 provides for the embodiment of the present invention;
The structural representation four of the terminal a kind of to be tested that Figure 11 provides for the embodiment of the present invention;
The structural representation five of the terminal a kind of to be tested that Figure 12 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe wholely.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself Not specific meaning.Therefore, " module " can mixedly use with " parts ".
It should be noted that a kind of focus acquisition device that the embodiment of the present invention provides can be terminal, such as computer Or mobile terminal etc. can use the electronic equipment of browser.
Wherein, mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as Mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), The mobile terminal of portable media player (PMP), guider etc. and such as numeral TV, desk computer etc. Fixed 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 dynamic purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of a kind of optional mobile terminal realizing each embodiment of the present invention.
Mobile terminal 1 can include that wireless communication unit 110, audio/video (A/V) input block 120, user input list Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc. Deng.Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated. Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, its allow mobile terminal 1 and wireless communication system or Radio communication between network.Such as, wireless communication unit can include mobile communication module 112, wireless Internet module 113, at least one in short range communication module 114 and positional information module 115.
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to Words signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), 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, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Positional information module Typical case be global positioning system (GPS) module.According to current technology, GPS module calculates and defends from three or more The range information of star and correct time information and for the Information application triangulation calculated, thus according to longitude, latitude The three-dimensional current location information of degree and highly accurately calculating.Currently, for calculating the method use three of position and temporal information Satellite and by using the position and the error of temporal information that other satellite correction calculates.Additionally, GPS module energy Enough calculate velocity information by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121, phase The machine 121 static images to being obtained by image capture apparatus in Video Capture pattern or image capture mode or the image of video Data process.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can To be stored in memorizer 160 (or other storage medium) or to be transmitted via wireless communication unit 110, can be according to shifting The structure of dynamic terminal provides two or more cameras 121.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1, (such as, mobile terminal 1 open or close state), The position of mobile terminal 1, user are for the presence or absence of contact (that is, touch input) of mobile terminal 1, the orientation of mobile terminal 1, shifting The acceleration or deceleration of dynamic terminal 1 moves and direction etc., and generates the order or letter being used for controlling the operation of mobile terminal 1 Number.Such as, when mobile terminal 1 is embodied as sliding-type mobile phone, it is to engage that sensing unit 140 can sense this sliding-type number On or off is closed.It addition, sensing unit 140 can detect whether whether power subsystem 190 provide electric power or interface unit 170 Couple with external device (ED).Sensing unit 140 can include that this is retouched by proximity transducer 141 by combining touch screen below State.
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 1, the interface that can pass through.Such as, outward Part device can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) port, Video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses the various letters of mobile terminal 1 Cease and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc. can be included. It addition, the device (hereinafter referred to as " identification device ") with identification module can be to take the form of smart card, therefore, device is identified Can be connected with mobile terminal 1 via port or other attachment means.Interface unit 170 may be used for receiving from external device (ED) Input (such as, data message, electric power etc.) and the input received is transferred in mobile terminal 1 one or more Element or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 1 is connected with external base, interface unit 170 can serve as allowing electric power by it There is provided the path of mobile terminal 1 from base or can serve as allowing the various command signals from base input to be transmitted by it Path to mobile terminal.May serve as identifying that mobile terminal is the most accurate from various command signals or the electric power of base input Really it is arranged on the signal on base.Output unit 150 is configured to provide output letter with vision, audio frequency and/or tactile manner Number (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display unit 151 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1.Such as, lead to when mobile terminal 1 is in phone During words pattern, display unit 151 can show and call or other (such as, text messaging, multimedia file download that communicate Etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 1 is in video calling pattern or figure As acquisition mode time, display unit 151 can show capture image and/or the image of reception, illustrate video or image and UI or GUI of correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit 151 can serve as input equipment 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 A kind of.Some in these display may be constructed such that transparence, and to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 1 can include two or more display units (or other display device), such as, mobile Terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches defeated Enter pressure and touch input position and touch input area.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 can be connected execution memorizer 160 with by network Storage function network storage device cooperation.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that with control Device 180 separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform 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 unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implementing 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 Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 may be constructed such that utilize via frame or packet transmission data the most wired Operate with wireless communication system and satellite-based communication system.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use 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 relates to cdma communication system, but such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1, multiple base station (BS) 270, base station control Device processed (BSC) 275 and mobile switching centre (MSC) 280.MSC 280 is configured to and Public Switched Telephony Network (PSTN) 290 Form interface.MSC 280 is also structured to and can be couple to the BSC 275 of BS 270 via back haul link and form interface.Return If journey circuit can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS 270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction Each subregion that line covers is radially away from BS 270.Or, each subregion can be by for two of diversity reception or more Multiple antennas covers.Each BS 270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency Spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single BSC 275 and at least one BS 270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS 270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 1 operated by broadcsting transmitter (BT) 295. In fig. 2 it is shown that several global positioning systems (GPS) satellite 300, in the multiple mobile terminals 1 in satellite 300 help location extremely Few one.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful Location information.As the GPS module of the positional information module 115 shown in Fig. 1 be generally configured to coordinate with satellite 300 with Obtain the location information wanted.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use movement can be followed the tracks of Other technology of the position of terminal.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb Transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse link from various mobile terminals 1 Signal.Mobile terminal 1 generally participates in call, information receiving and transmitting communicates with other type of.Each reverse strand that specific BS270 receives Road signal is processed in specific BS 270.The data obtained are forwarded to the BSC 275 being correlated with.BSC provides call money Source distribution and the mobile management function of the coordination of soft switching process included between BS 270.The number that BSC 275 also will receive According to being routed to MSC 280, it provides the extra route service for forming interface with PSTN 290.Similarly, PSTN 290 Forming interface with MSC 280, MSC Yu BSC 275 forms interface, and BSC 275 correspondingly controls BS 270 with by forward chain Road signal is sent to mobile terminal 1.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Embodiment one
The embodiment of the present invention and other embodiments of the invention are the embodiment proposed based on test system, as it is shown on figure 3, Test system includes at least one terminal 1 to be tested, test equipment 2 and case management platform 3.
Wherein, preset test script according at least one terminal to be tested and carry out presetting the terminal of problem test;Use-case Management platform be according to user in terminal to be tested, the actions such as the certain operations at the UI interface of tested application are generated pre- The management equipment of the default test script of rhetoric question topic test;Test equipment obtains test case (test by case management platform Script).
Embodiments provide a kind of method of testing, be applied in a terminal to be tested, in this terminal to be tested Being provided with test agent device, as shown in Figure 4, the method may include that
The default test script that S101, reception test equipment send.
It should be noted that the terminal to be tested in the embodiment of the present invention can be the electronic equipment such as mobile phone, panel computer.
In embodiments of the present invention, terminal to be tested receives the default test script that test equipment sends, this test equipment For prior art is used for carrying out the equipment of terminal test to be tested, such as, terminal (desktop computer) or server etc..
It should be noted that the default test script in the embodiment of the present invention can with tester the most voluntarily The test case write or for case management platform from according to user on terminal to be tested to the UI interface of tested application Automatically the editor such as operation carries out presetting test script with default problem.
Concrete, default test script is that the process of editor automatically can be: test equipment receives tester tested In the interfaces windows of application, the clicking operation that window object is triggered, and by the Hook mechanism function call to the event of click Intercept and capture, it is thus achieved that click on the coordinate parameters that event is corresponding.Then, this test equipment searches the window pair of respective coordinates parameter As, obtain the image parameter of window object, and generate test case (test script) according to image parameter.The survey that finally will generate Example on probation is handed down to test equipment, so that the communication interface that test equipment leads between equipment to be tested is sent to end to be tested End performs this test case, and window object is carried out hit testing etc..
It should be noted that the terminal to be tested in the embodiment of the present invention can be at least one, each terminal to be tested The process of a kind of method of testing that all provides for the embodiment of the present invention of test process.
Further, the transmission of data can be carried out between each terminal to be tested and test equipment by networking.
S102, when obtaining default test script, control on test agent device, run this default test script, enter Row off-line test.
Terminal to be tested is after receiving the default test script that test equipment sends, when terminal to be tested detects When obtaining default test script, owing to being provided with test agent device in terminal to be tested, therefore, terminal to be tested can be controlled System on this test agent device, run this default test script, this default test script in terminal to be tested, in It is that this terminal to be tested is achieved that the process carrying out off-line test.
It should be noted that the test agent device in the embodiment of the present invention can be can to carry out in test equipment testing The structure of part or device, it is achieved test function.By arranging test agent dress in terminal to be tested in the embodiment of the present invention Put and itself can carry out testing process in this terminal to be tested.
Further, as it is shown in figure 5, the embodiment of the present invention provide a kind of method of testing also include: S103, S102 it After, a kind of method of testing that the embodiment of the present invention provides also includes: S104 and S105.S103-S105 is specific as follows:
The communication list that S103, reception test equipment send, this communication list includes the first of other terminals to be tested Mailing address.
It should be noted that owing to the terminal to be tested in the embodiment of the present invention and test equipment are that network is connected, can To carry out the mutual of information or data by network, therefore, when carrying out test process, terminal to be tested can also pass through network Obtaining from test equipment or receive the communication list relevant with at least one terminal to be tested, at least one terminal to be tested is This time terminal all to be tested in test.
Optionally, the communication list in the embodiment of the present invention can include the facility information and at least of terminal to be tested First mailing address of other terminals to be tested in individual terminal to be tested.
Optionally, the first communication in the embodiment of the present invention can be RIL list from list.
Optionally, the first mailing address can be mutual internet protocol address (IP address, IInternet Protocol Address), physical address (MAC Address, Medium Access Control) etc..
It should be noted that the embodiment of the present invention is not intended to the execution sequence of S103, S103, after test proceeds by, protects Card step before S105 performs.
S104, when default test script has run, generate test report, this test report be test result be default Generate during problem.
Terminal control to be tested runs on test agent device presets test script, and after carrying out off-line test, this is treated Test terminal may can test out default problem off-line test when, it is also possible to can not test default problem, this In bright embodiment, terminal the most to be tested when default test script has run and has tested out default problem, this end to be tested End generates test report.
It should be noted that test is preset problem and is generated as a example by during default test script in the embodiment of the present invention, After terminal control to be tested has run default test script on test agent device, test result can be obtained, this test Result may be for testing out default problem, it is also possible to for not testing out default problem.Terminal to be tested is by test result and presets Problem is mated, if can match, terminal to be tested then generates test report, and this test report ensures this time to be successfully tested; If failing to match, this terminal to be tested does not the most generate test report.
S105, according to the first mailing address, send end of test and instruct to other terminals to be tested, to notify that other are to be measured Examination terminal terminates presetting the test of test script.
Terminal to be tested generates test report and characterizes this time test is successful, or the UI interface in terminal to be tested sets The effect that realizes put is to reach it is contemplated that therefore, and after this terminal to be tested generates test report, this terminal to be tested just may be used With the first mailing address according to aforementioned other terminals to be tested got, send end of test by network and instruct to other Terminal to be tested, the instruction of this end of test is for notifying that other terminals to be tested terminate presetting the test of test script.
It should be noted that in the embodiment of the present invention, at least one terminal to be tested carries out identical default problem simultaneously Test, once has a terminal test to be tested successfully this default problem, and therefore, once a terminal test to be tested becomes Merit, this terminal to be tested just can notify that other terminals to be tested need not be attacked again and carry out testing of this default problem again.
It is understood that the embodiment of the present invention is owing to using terminal to be tested each to carry out presetting the fortune of test script OK, substantial amounts of computing is distributed to each terminal to be tested and carries out, therefore, decrease the workload of test, and due to default survey Training is the most got by terminal to be tested, and therefore, this terminal to be tested can operate with off-line when testing, Such that it is able to saving Internet resources.
Embodiment two
Embodiments providing a kind of method of testing, as shown in Figure 6, the method may include that
S201, at least one terminal to be tested receive the default test script that test equipment sends, this each end to be tested Test agent device it is provided with on end.
It should be noted that the embodiment of the present invention can be at least one terminal to be tested carries out a test simultaneously, Each terminal to be tested can be the electronic equipment such as mobile phone, panel computer.
In embodiments of the present invention, each terminal to be tested receives the default test script that test equipment sends, this test Equipment is for carrying out the equipment of terminal test to be tested in prior art, such as, and terminal (desktop computer) or server etc..
It should be noted that the default test script in the embodiment of the present invention can with tester the most voluntarily The test case write or for case management platform from according to user UI circle to tested application on each terminal to be tested Automatically the editor such as the operation in face carries out presetting test script with default problem.
Concrete, default test script is that the process of editor automatically can be: test equipment receives tester tested In the interfaces windows of application, the clicking operation that window object is triggered, and by the Hook mechanism function call to the event of click Intercept and capture, it is thus achieved that click on the coordinate parameters that event is corresponding.Then, this test equipment searches the window pair of respective coordinates parameter As, obtain the image parameter of window object, and generate test case (test script) according to image parameter.The survey that finally will generate Example on probation is handed down to test equipment, so that the communication interface that test equipment leads between equipment to be tested is sent to each to be measured Examination terminal performs this test case, and window object is carried out hit testing etc..
It should be noted that a kind of test side that the test process of each terminal to be tested provides for the embodiment of the present invention The process of method.
Further, the transmission of data can be carried out between each terminal to be tested and test equipment by networking.
S202, when at least one terminal to be tested obtains default test script, this at least one terminal control to be tested System runs this default test script on test agent device, carries out off-line test.
Terminal each to be tested at least one terminal to be tested is receiving the default test script that test equipment sends Afterwards, when terminal to be tested detects and obtained default test script, owing to being provided with survey in each terminal to be tested Examination agent apparatus, therefore, each terminal to be tested can control to run this default test script on this test agent device, should Default test script is in terminal to be tested, and then, this each terminal to be tested is achieved that and carries out off-line test Process.
It should be noted that the test agent device in the embodiment of the present invention can be can to carry out in test equipment testing The structure of part or device, it is achieved test function.By arranging test agent dress in terminal to be tested in the embodiment of the present invention Put and itself can carry out testing process in this terminal to be tested.
S203, when presetting test script in a terminal to be tested and having run, this terminal to be tested generates survey Examination report, this test report be test result be preset problem time generate.
At least one terminal control to be tested run on test agent device preset test script, carry out off-line test it After, a terminal to be tested in this at least one terminal to be tested may can test out pre-rhetoric question off-line test when Topic, it is also possible to can not test default problem, in the embodiment of the present invention, terminal the most to be tested has been run at default test script When becoming and test out default problem, this terminal to be tested generates test report.
It should be noted that test is preset problem and is generated as a example by during default test script in the embodiment of the present invention, After a terminal control to be tested has run default test script on test agent device, test result can be obtained, should Test result may be for testing out default problem, it is also possible to for not testing out default problem.Test is tied by one terminal to be tested Fruit mates with default problem, if can match, this terminal to be tested then generates test report, and this test report ensures This is successfully tested;If failing to match, this terminal to be tested does not the most generate test report.
S204, at least one terminal to be tested receive the communication list that test equipment sends, and this communication list includes this First mailing address of other terminals to be tested at least one terminal to be tested.
It should be noted that owing to the terminal to be tested of at least one in the embodiment of the present invention and test equipment are that network connects Connect, the mutual of information or data, therefore, when carrying out test process, any one end to be tested can be carried out by network End from the acquisition of test equipment or can also receive the communication list relevant with at least one terminal to be tested, at least by network One terminal to be tested is the terminal all to be tested in this time test.
Optionally, the communication list in the embodiment of the present invention can include the facility information and at least of terminal to be tested First mailing address of other terminals to be tested in individual terminal to be tested.
Optionally, the first communication in the embodiment of the present invention can be RIL list from list.
Optionally, the first mailing address can be IP address, MAC Address etc..
It should be noted that the embodiment of the present invention is not intended to the execution sequence of S204, S204, after test proceeds by, protects Card step before S205 performs.
S205, a terminal to be tested, according to the first mailing address, send end of test and instruct to other terminals to be tested.
It is successful that one terminal to be tested generate test report to characterize this time test, or in a terminal to be tested What UI interface was arranged realizes effect is to reach it is contemplated that therefore, and after this terminal to be tested generates test report, this is one years old Individual terminal to be tested just can be sent by network survey according to the first mailing address of aforementioned other terminals to be tested got Examination command for stopping to other terminals to be tested, the instruction of this end of test to be used for notifying that other terminals to be tested terminate presetting test foot This test.
It should be noted that in the embodiment of the present invention, at least one terminal to be tested carries out identical default problem simultaneously Test, once has a terminal test to be tested successfully this default problem, and therefore, once a terminal test to be tested becomes Merit, this terminal to be tested just can notify that other terminals to be tested need not be attacked again and carry out testing of this default problem again.
It is understood that the embodiment of the present invention is owing to using terminal to be tested each to carry out presetting the fortune of test script OK, substantial amounts of computing is distributed to each terminal to be tested and carries out, therefore, decrease the workload of test, and due to default survey Training is the most got by terminal to be tested, and therefore, this terminal to be tested can operate with off-line when testing, Such that it is able to saving Internet resources.
S206, other terminals to be tested terminate presetting the test of test script according to end of test instruction.
One terminal to be tested sends end of test and instructs after other terminals to be tested, characterizes at least one to be tested Having needed test terminal in terminal is successfully tested, and therefore, other terminals to be tested avoid the need for the most this time testing, Then, other terminals to be tested terminate presetting the test of test script according to end of test instruction.
The embodiment of the present invention additionally provides a kind of method of testing, as it is shown in fig. 7, the method may include that
S301, at least one terminal to be tested receive the default test script that test equipment sends, this each end to be tested Test agent device it is provided with on end.
Describing in detail of this step is consistent with the description of S201, and here is omitted.
S302, when at least one terminal to be tested obtains described default test script, this at least one end to be tested End controls to run this default test script on test agent device, carries out off-line test.
Describing in detail of this step is consistent with the description of S202, and here is omitted.
S303, when presetting test script in a terminal to be tested and having run, this terminal to be tested generates survey Examination report, this test report be test result be preset problem time generate.
Describing in detail of this step is consistent with the description of S203, and here is omitted.
S304, a terminal to be tested send test report to testing equipment.
It is successful that one terminal to be tested generate test report to characterize this time test, or in a terminal to be tested What UI interface was arranged realizes effect is to reach it is contemplated that therefore, and after this terminal to be tested generates test report, this is one years old Individual terminal to be tested just can send test report to test equipment, to inform that this test equipment can terminate this test ?.
It should be noted that in the embodiment of the present invention, at least one terminal to be tested carries out identical default problem simultaneously Test, once has a terminal test to be tested successfully this default problem, and therefore, once a terminal test to be tested becomes Merit, this terminal to be tested just can inform that this test equipment can terminate testing of this.
S305, when test equipment receives test report, this test equipment nullify at least one terminal to be tested Test process.
One terminal to be tested sends test report to after test equipment, due to this test success, therefore, When test equipment receives test report, this test equipment nullifies the test process at least one terminal to be tested.
Finally, test result can also be shown to tester at test equipment, for rear in terminal to be tested Continuous reference.
Embodiment three
As shown in Figure 8, embodiments provide a kind of terminal to be tested 1, this terminal 1 to be tested is provided with test Agent apparatus, this terminal 1 to be tested may include that
Receive unit 10, for receiving the default test script that test equipment sends.
Test cell 11, for when obtaining described default test script, controls to transport on described test agent device The described default test script of row, carries out off-line test.
Optionally, as it is shown in figure 9, described terminal to be tested 1 also includes: signal generating unit 12.
Described signal generating unit 12, for described control to run on described test agent device described default test script it After, when described default test script has run, generate test report, described test report be test result be preset problem Shi Shengcheng's.
Optionally, described reception unit 10, it is additionally operable to described control on described test agent device, runs described presetting Before test script, receiving the communication list that described test equipment sends, described communication list includes other terminals to be tested The first mailing address.
Optionally, as shown in Figure 10, described terminal to be tested 1 also includes: transmitting element 13.
Described transmitting element 13, after described generation test report, according to described first mailing address, sends test Command for stopping, to other terminals to be tested described, terminates the survey of described default test script with notice other terminals to be tested described Examination.
Optionally, as shown in figure 11, described terminal to be tested 1 also includes: transmitting element 13.
Described transmitting element 13, after described generation test report, sends described test report to described test and sets Standby, indicate described test equipment to nullify the test process to all terminals to be tested.
As shown in figure 12, in actual applications, above-mentioned test cell 11, signal generating unit 12 all can be by being positioned at terminal to be tested On processor 14 realize, can be central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or existing Field programmable gate arrays (FPGA) etc. realize, and above-mentioned transmitting element 13 can be realized by transmitter 15, and above-mentioned reception unit 10 can be by Receptor 16 realizes, and this terminal to be tested also includes: storage medium 17, and this storage medium 17, transmitter 15, receptor 16 are permissible Being connected with processor 14 by system bus 18, wherein, storage medium 17 is used for storing executable program code, this program code Including computer-managed instruction, storage medium 17 may comprise high-speed RAM memorizer, it is also possible to also includes non-volatile memories Device, such as, at least one disk memory.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combine software and hardware Formula.And, the present invention can use can be with storage at one or more computers wherein including computer usable program code The form of the upper computer program implemented of medium (including but not limited to disk memory and optical memory etc.).
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
The above, only presently preferred embodiments of the present invention, it is not intended to limit protection scope of the present invention.

Claims (10)

1. a method of testing, is applied in a terminal to be tested, it is characterised in that arrange in one terminal to be tested Test agent device, described method is had to include:
Receive the default test script that test equipment sends;
When obtaining described default test script, control to run described default test script on described test agent device, Carry out off-line test.
Method the most according to claim 1, it is characterised in that described control to run on described test agent device described After presetting test script, described method also includes:
When described default test script has run, generate test report, described test report be test result be pre-rhetoric question Generate during topic.
Method the most according to claim 2, it is characterised in that described control to run on described test agent device described Before presetting test script, described method also includes:
Receiving the communication list that described test equipment sends, described communication list includes the first communication of other terminals to be tested Address.
Method the most according to claim 3, it is characterised in that after described generation test report, described method also includes:
According to described first mailing address, send end of test instruction to other terminals to be tested described, with notice described other Terminal to be tested terminates the test of described default test script.
Method the most according to claim 2, it is characterised in that after described generation test report, described method also includes:
Send described test report extremely described test equipment, indicate described test equipment to nullify the test to all terminals to be tested Process.
6. a terminal to be tested, it is characterised in that be provided with test agent device in described terminal to be tested, including:
Receive unit, for receiving the default test script that test equipment sends;
Test cell, for when obtaining described default test script, controls operation on described test agent device described Preset test script, carry out off-line test.
Terminal to be tested the most according to claim 6, it is characterised in that described terminal to be tested also includes: signal generating unit;
Described signal generating unit, for described control to run described default test script on described test agent device after, when When described default test script has run, generating test report, described test report is that test result is raw when being to preset problem Become.
Terminal to be tested the most according to claim 7, it is characterised in that
Described reception unit, be additionally operable to described control to run described default test script on described test agent device before, Receiving the communication list that described test equipment sends, described communication list includes the first of other terminals to be tested communicatedly Location.
Terminal to be tested the most according to claim 8, it is characterised in that described terminal to be tested also includes: transmitting element;
Described transmitting element, after described generation test report, according to described first mailing address, sends end of test and refers to Order, to other terminals to be tested described, terminates the test of described default test script with notice other terminals to be tested described.
Terminal to be tested the most according to claim 7, it is characterised in that described terminal to be tested also includes: send single Unit;
Described transmitting element, after described generation test report, sends described test report to described test equipment, instruction Described test equipment nullifies the test process to all terminals to be tested.
CN201610683592.0A 2016-08-17 2016-08-17 Testing method and to-be-tested terminal Pending CN106326117A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610683592.0A CN106326117A (en) 2016-08-17 2016-08-17 Testing method and to-be-tested terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610683592.0A CN106326117A (en) 2016-08-17 2016-08-17 Testing method and to-be-tested terminal

Publications (1)

Publication Number Publication Date
CN106326117A true CN106326117A (en) 2017-01-11

Family

ID=57743269

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610683592.0A Pending CN106326117A (en) 2016-08-17 2016-08-17 Testing method and to-be-tested terminal

Country Status (1)

Country Link
CN (1) CN106326117A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213676A (en) * 2018-07-06 2019-01-15 中国电力科学研究院有限公司 A kind of offline adjustment method and device for test script
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010025274A1 (en) * 2008-08-27 2010-03-04 Eric Sven-Johan Swildens Method and system for testing interactions between web clients and networked servers
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN103095882A (en) * 2012-12-31 2013-05-08 刘伟 Automated testing method and automated testing system for intelligent mobile terminal external field
CN105279077A (en) * 2014-06-24 2016-01-27 腾讯科技(深圳)有限公司 Method and device for automated testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010025274A1 (en) * 2008-08-27 2010-03-04 Eric Sven-Johan Swildens Method and system for testing interactions between web clients and networked servers
CN102163173A (en) * 2011-04-06 2011-08-24 北京航空航天大学 Automated testing method for distributed information system interface
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN103095882A (en) * 2012-12-31 2013-05-08 刘伟 Automated testing method and automated testing system for intelligent mobile terminal external field
CN105279077A (en) * 2014-06-24 2016-01-27 腾讯科技(深圳)有限公司 Method and device for automated testing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213676A (en) * 2018-07-06 2019-01-15 中国电力科学研究院有限公司 A kind of offline adjustment method and device for test script
CN117234951A (en) * 2023-11-13 2023-12-15 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium
CN117234951B (en) * 2023-11-13 2024-01-30 建信金融科技有限责任公司 Function test method and device of application system, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104735255B (en) Multi-screen display method and system
CN106249988A (en) A kind of display packing and terminal
CN106454965A (en) Double-card network switching method and terminal
CN104951229B (en) Screenshot method and device
CN105159579A (en) multi-touch apparatus and method based on back sensor
CN106413128A (en) Projection method and mobile terminal
CN105739998A (en) Animation debug method and mobile terminal
CN106231650A (en) A kind of method for network access and terminal
CN106453652A (en) Log file uploading method and system
CN105302864A (en) Picture loading apparatus and method according to screen resolution
CN105975052A (en) Screen switching method and device
CN109040370A (en) A kind of fingerprint identification method, terminal and computer readable storage medium
CN106686672B (en) Network connection method and terminal
CN105573916A (en) Fault detection method and mobile terminal
CN105204849A (en) Pressure test system and implementation method thereof
CN106790994A (en) The triggering method and mobile terminal of control
CN105722246A (en) Network speed superposition device and method
CN105743170A (en) Control method for parallel charging, and terminal
CN107025158B (en) Sliding operation testing method and device and terminal
CN105827531A (en) Routing access method and terminal
CN105722142A (en) Mobile terminal and multilink-based data streaming method
CN105791541A (en) Screenshot method and mobile terminal
CN105302441A (en) Screen size adjustment method and terminal device
CN106326117A (en) Testing method and to-be-tested terminal
CN104915230A (en) Application control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111