CN105740153A - Cloud testing method and device - Google Patents

Cloud testing method and device Download PDF

Info

Publication number
CN105740153A
CN105740153A CN201610113443.0A CN201610113443A CN105740153A CN 105740153 A CN105740153 A CN 105740153A CN 201610113443 A CN201610113443 A CN 201610113443A CN 105740153 A CN105740153 A CN 105740153A
Authority
CN
China
Prior art keywords
test script
equipment
test
script
editing area
Prior art date
Application number
CN201610113443.0A
Other languages
Chinese (zh)
Inventor
徐祖亮
Original Assignee
网易(杭州)网络有限公司
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 网易(杭州)网络有限公司 filed Critical 网易(杭州)网络有限公司
Priority to CN201610113443.0A priority Critical patent/CN105740153A/en
Publication of CN105740153A publication Critical patent/CN105740153A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance interaction with page-structured environments, e.g. book metaphor

Abstract

The invention relates to a cloud testing method and device. The method comprises the steps of providing an equipment screen area, a tool area and an edit area on a display interface of a client; when a test script is recorded, presenting an interface content after the interface of first mobile equipment is scaled to the same size as the equipment screen area in the equipment screen area, remotely operating the first mobile equipment via the equipment screen area, synchronously generating a test script based on an operation picture of the equipment screen area, and synchronously presenting the test script in the edit area. According to the technical solution, script recording is performed on the basis of the display interface of the Web end, so that the method and the device can be applied to equipment with different resolutions, realize automatic test by playing back scripts in batch, can enhance the compatibility of the test script and can improve the testing efficiency during batch test.

Description

Cloud method of testing and device

Technical field

It relates to automatization testing technique field, particularly relate to a kind of cloud method of testing and device.

Background technology

nullIt is currently based on the correlation technique of picture script recording and playback to have sikuli (sikuli is the figure script of a kind of novelty,It it is the figure script of a kind of novelty of the research worker design of MIT,Need only there be most basic programming skill in computer user,Need not go to write out code line by line,But by the mode of screenshot capture,The program of mystery it is combined into) with the graphic element cut out,This technology is based on computer vision and increases income the testing tool of stencil matching of storehouse opencv,Test script uses python or ruby written in code,By IDE (IntegratedDevelopmentEnvironment,IDE) sectional drawing of semi-automation and automatically generating of test code can be completed,Can test when there is no app source code,And realize cross-platform test.

But this technology, there are the following problems: first, this technology is currently used primarily in the automatic test of PC end game, if being used for testing hands trip, need the remote control software (such as vncserver) by mobile phone, and mobile phone remote control software design is also unstable at present, it is far from the stablizing of primary Interface Controller.Secondly, this technology adopts the stencil matching based on pixel in image recognition, so code does not adapt to the change of screen resolution, when changing test equipment, it is necessary to again writing test code, test script can not carry out equipment compatibility test.It addition, this technology writes each operation script is required for manual sectional drawing generation script, routine operation of being close to the users not.

Also having a kind of correlation technique is that Baidu moves cloud test center MTC (MobileTestingCenter), this technology operates coordinate based on prototype and automatically generates operation script, support script text editting function, it is possible to generation script is distributed to cloud platform and carries out batch playback.

But this technology, there are the following problems: first, and this technology is based on coordinate and carries out script recording at the percentage ratio of screen, is difficult to general for different resolution equipment, and script compatibility is more weak.Secondly, this technology script, with XML file mode editor, lacks autgmentability.

Summary of the invention

For overcoming Problems existing in correlation technique, the disclosure provides a kind of cloud method of testing and device.

First aspect according to disclosure embodiment, it is provided that a kind of cloud method of testing, including:

The display interface of client provide the interface content being used for synchronizing to present the interface content of mobile equipment and pass through to present described mobile equipment carries out remote-operated device screen district, for providing the Accessorial Tools Storage of test script recording and playback instrument and for presenting and edit the editing area of test script;

When by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

In an embodiment, described long-range operation includes clicking, sliding and pull.

In an embodiment, described test script is python code.

In an embodiment, the test script that described method also includes described editing area is presented carries out edit operation.

In an embodiment, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

In an embodiment, described method also includes when initiating to move, to remotely connect second, the task that pre-set programs is tested by equipment according to the described test script generated by described Accessorial Tools Storage, remotely control described second is moved equipment and is installed and activated described pre-set programs, described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, described test script is presented at described editing area, described test script is distributed to described second and moves equipment, control described second and move the equipment described test script of execution.

In an embodiment, described method is additionally included on test script shown by described editing area and arranges playback node, when the test script that described editing area presents is played back to described playback node, suspends and plays back described test script.

In an embodiment, described method is additionally included on the display interface of client to be provided for presenting the Debugging message output area of the log information of output when test script plays back.

In an embodiment, described method also includes when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to the described test script generated by described Accessorial Tools Storage, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.

In an embodiment, described method is additionally included in replayed section and moves equipment by the display interface real time inspection the plurality of second of client runs the aggregate scheduling of playback and/or the status information of each self-operating playback.

In an embodiment, when test script is played back, SIFT jointing edge detection algorithm is used to be operated object matching.

Second aspect according to disclosure embodiment, it is provided that a kind of cloud test device, including:

Display interface creating unit, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;

Remote scripting recording elements, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

In an embodiment, described long-range operation includes clicking, sliding and pull.

In an embodiment, described test script is python code.

In an embodiment, described device also includes editor's response unit, carries out edit operation for the test script that described editing area is presented.

In an embodiment, described editor's response unit is additionally operable to, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

In an embodiment, described device also includes remote scripting playback unit, for when initiating to move, to remotely connect second, the task that pre-set programs is tested by equipment according to the described test script generated by described Accessorial Tools Storage, remotely control described second is moved equipment and is installed and activated described pre-set programs, described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, described test script is presented at described editing area, described test script is distributed to described second and moves equipment, control described second and move the equipment described test script of execution.

In an embodiment, described device also includes script debugging unit, for arranging playback node on test script shown by described editing area, when the test script that described editing area presents is played back to described playback node, suspends and plays back described test script.

In an embodiment, described display interface creating unit is additionally operable to the Debugging message output area of the log information exported when providing on the display interface of client for presenting test script playback.

In an embodiment, described device also includes batch playback unit, for when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to the described test script generated by described Accessorial Tools Storage, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.

In an embodiment, described batch playback unit is additionally operable in replayed section to be moved the aggregate scheduling of equipment operation playback and/or the status information of each self-operating playback by the display interface real time inspection the plurality of second of client.

In an embodiment, when test script is played back by described script playback unit and described batch playback unit, SIFT jointing edge detection algorithm is used to be operated object matching.

Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:

The display interface of the technical scheme sing on web end that embodiment of the disclosure carries out script recording, different resolution equipment can be suitable for, it is easy to carry out automatic test by batch playback script, the compatibility of test script can be strengthened, can be easy to when recording with playback be normalized by the graphic user interface (operation screen) of operation respectively, so that test script when playback can operation target when more accurate match is recorded, and testing efficiency can be improved when batch testing.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Accompanying drawing explanation

Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meets embodiments of the invention, and is used for explaining principles of the invention together with description.

Fig. 1 is the system architecture schematic diagram of a kind of cloud test according to an exemplary embodiment;

Fig. 2 is a kind of cloud method of testing flow chart according to an exemplary embodiment;

Fig. 3 is a kind of cloud method of testing flow chart according to an exemplary embodiment;

Fig. 4 is a kind of cloud method of testing flow chart according to an exemplary embodiment;

Fig. 5 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment;

Fig. 6 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment;

Fig. 7 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment;

Fig. 8 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment.

Detailed description of the invention

Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings.When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with in appended claims describe in detail, the present invention some in the example of consistent apparatus and method.

Embodiment one

Fig. 1 is the system architecture schematic diagram of a kind of cloud test according to an exemplary embodiment, as shown in Figure 1, method of testing described in the present embodiment based on system architecture, mobile equipment to be tested is connected with the computer of server end, all computers being connected to mobile equipment are all servers, and these server component devices clouds call to Web end.The mobile equipment being attached thereto is managed and monitors by server, and can support Android and the access of Fructus Mali pumilae equipment.Web end (i.e. user use browser end) then real-time synchronization show these equipment whether be connected with whether occupied in.Such user need not carry with equipment in the process of automatic test, only namely can be realized the remote recording playback of distinct device different platform by browser.

Fig. 2 is a kind of cloud method of testing flow chart according to an exemplary embodiment, the present embodiment is applicable to the situation recording test script when mobile equipment being carried out cloud test by system architecture as described in Figure 1, as in figure 2 it is shown, the cloud method of testing described in the present embodiment includes:

The present embodiment provides device screen district, Accessorial Tools Storage and editing area by step S210 on the display interface of client.

This step specifically for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script.

It should be noted that, in recording process, the script that each operation correspondence of user generates can be shown by real-time synchronization at described editing area, such as user clicks (the 50 of mobile device screen, 50) this point, this operation can carry out sectional drawing in certain region on backstage near operation coordinate points, and the content exporting editing area is then touch (icon of intercepting).Described editing area can provide editting function for the test script of the hypertext form of display, for the test script that generates for python code, the python code that recording operation is generated by described editing area presents, and function can be provided to carry out real-time edition for user to generating python code, if the sectional drawing that user is to automatically generating is unsatisfied with, the handle icon in script can also be clicked, now moving the sectional drawing that device screen district can show that this step is corresponding, then user can intercept operation region voluntarily.

Described Accessorial Tools Storage can provide more rich equipment house-keeping instruction, as started application software APP, in the screen of mobile equipment, find certain icon, etc. in device screen to be moved certain icon occur, mobile equipment exported a string character and presses the function key of mobile equipment.In recording process, user clicks " recording starts " button and starts to record, and may then pass through mobile device screen region and clicks directly on, slides, pulls and/or Accessorial Tools Storage selection operation instruction.

Wherein, described long-range operation is the operation by remotely described mobile equipment being implemented in described device screen district, for instance include operations such as clicking, slide and pull.

The present embodiment carries out pre-set programs test by step S220 when initiating to move equipment to remotely connect first by the operation of described Accessorial Tools Storage, and when being synchronously performed the task of test script recording, remotely control described first is moved equipment and is installed and activated described pre-set programs.

Owing to the present embodiment is remotely to be moved testing equipment script to record by Web end to be tested described first, therefore, first should set up the described first telecommunication moving between equipment and Web end to be tested, and remotely control described first and move equipment and be installed and activated described pre-set programs.

The present embodiment by step S230 described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content.

For the present embodiment, this step purpose is in that: on the one hand, the script of recording can be made to meet and the gui interface of device screen district same size, it is simple to carry out automatic test by batch playback script.When the mobile device remote script of different screen size is recorded, owing to all the interface of mobile equipment being zoomed to identical size before recording, the script of its recording is based on identical size.On the other hand, can be easy to when recording with playback and respectively the graphic user interface of operation is normalized, operation screen be zoomed in or out into an identical fixing length and width picture, so that test script can improve testing efficiency when batch playback.

According to the present embodiment, by making the graphic user interface of the equipment of playback test script adaptation different resolution, it is prevented effectively from carrying out automatic test, invalid operation is produced because of mating inaccurate to the interface element of graphic user interface, it is possible to accurately play back operation when recording test script when playing back test script when playing back test script.And, the present embodiment based on by record time operation graphic user interface with playback time for graphic user interface zoom to formed objects, testing efficiency can be improved when batch testing.

Namely respectively the graphic user interface of operation is normalized when recording with playback, operation screen is zoomed in or out into an identical fixing length and width picture.Although position and the size of stretching or the variant icon that may result in picture of reduced scale cannot be completely the same, but different resolution picture can be made to record and the process of playback has the distribution of similar icon.

The present embodiment moves equipment by step S240 by described device screen district and carries out remotely operation the operation screen synchronization generation test script based on described device screen district described first, synchronizes described test script is presented on described editing area.

In the present embodiment, described test script can be any type of recording script, and the present embodiment is to this and is not construed as limiting, for instance the test script described in the present embodiment can be XML file or python code.

It should be noted that XML a kind of makes it have structural markup language for labelling e-file, the effect of each labelling is required for user and is defined voluntarily.When script needs to realize a new function, such as complete a logical judgment, XML script needs the labelling with arbitration functions that artificial interpolation is new, and python code self has been provided with the logical operations function on a series of basis, ready-made storehouse of increasing income can also be loaded to realize more responsible function (such as load opencv storehouse and complete picture editing function), therefore using python code as script on Function Extension better than XML.

If script adopts python code, script can be made semantically closer to language used in everyday.Python is script inherently, therefore is also easier to write with the shell script of python written in code calling, from technological layer, script adopt python code than adopt XML can be more easy-to-use and convenient.

In the process recorded, user can according to oneself needing script is modified, for instance the icon of acquiescence is less satisfied, it is possible to clicks the icon in editing area, then can show the mobile phone picture operating correspondence that needs are revised in mobile phone screen district, then the icon of operation be carried out sectional drawing again.Being python code additionally, due to the script generated, user can also add some personalized functions according to python grammer, for instance allows program halt a period of time, self-defined log information and some parameter in mobile phone is carried out verification etc..After amendment and recording all complete, record flow process and terminate.

In an exemplary embodiment, described editing area can receive the edit operation to the test script presented.Such as, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

The display interface of the technical scheme sing on web end of the present embodiment carries out script recording, different resolution equipment can be suitable for, it is easy to carry out automatic test by batch playback script, the compatibility of test script can be strengthened, can be easy to when recording with playback be normalized by the graphic user interface of operation respectively, so that test script when playback can operation target when more accurate match is recorded, and testing efficiency can be improved when batch testing.

Embodiment two

Fig. 3 is a kind of cloud method of testing flow chart according to an exemplary embodiment, as it is shown on figure 3, the cloud method of testing described in the present embodiment includes:

The present embodiment provides device screen district, Accessorial Tools Storage and editing area by step S310 on the display interface of client.

The present embodiment carries out pre-set programs test by step S320 when initiating to move equipment to remotely connect first by the operation of described Accessorial Tools Storage, and when being synchronously performed the task of test script recording, remotely control described first is moved equipment and is installed and activated described pre-set programs.

The present embodiment by step S330 described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content.

The present embodiment moves equipment by step S340 by described device screen district and carries out remotely operation the operation screen synchronization generation test script based on described device screen district described first, synchronizes described test script is presented on described editing area.

The step S310-S340 of the present embodiment is identical with the step S210-S240 of a upper embodiment, and therefore not to repeat here.

The present embodiment is by step S350 when moving, to remotely connect second, the task that pre-set programs is tested by equipment according to the described test script recorded by the initiation of described Accessorial Tools Storage, and remotely control described second is moved equipment and is installed and activated described pre-set programs.

It should be noted that, described in the present embodiment, first moves equipment and moves equipment there is no substantive difference with described second, all it is connected to the mobile equipment of the computer of server end, simply the present embodiment is easy to the convenience of narration, the mobile equipment being used for remote recording test script is called that first moves equipment, the mobile equipment carrying out test automatically by playing back the test script recorded is called that second moves equipment.

The present embodiment by step S360 described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, present described test script at described editing area.

In an exemplary embodiment, editing area described in the present embodiment may also allow for receiving and arranges playback node on shown test script, when the test script that described editing area presents is played back to described playback node, suspends and plays back described test script.So, user can select to continue playback and still terminate playback when script runs to playback node, so can reach the effect to mobile equipment game remote debugging.

In an exemplary embodiment, the Debugging message output area of the log information exported when the display interface of client described in the present embodiment may also provide for presenting test script playback, for Debugging message output area output journal information when script plays back.

Above step S350-S370 is applicable to the situation by playing back to perform test automatically on second mobile terminal through the step S320-S340 test script recorded.Those of ordinary skill in the art it should be explicitly made clear at this point, also the second mobile terminal of batch can be tested automatically with execution according to the batch playback on multiple second mobile terminals of above-mentioned test script.

For this situation, may also include that when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to the described test script recorded by described Accessorial Tools Storage in an exemplary embodiment, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.

In an exemplary embodiment, in replayed section, move equipment by the display interface real time inspection the plurality of second of client run the aggregate scheduling of playback and/or the status information of each self-operating playback.

When test script is played back, existing many algorithms can being used to be operated object matching, the present embodiment is in this no limit, for instance SIFT jointing edge detection algorithm can be used to be operated object matching.

Described test script is distributed to described second by step S270 and moves equipment by the present embodiment, controls described second and moves the equipment described test script of execution

The technical scheme of the present embodiment is on the basis of previous embodiment, add and remotely control to be tested second and move equipment and move, first, the test script recorded on equipment carry out the operating procedure of automatic test by playing back, realize respectively the graphic user interface of operation being zoomed to formed objects when recording with playback, so that test script when playback can operation target when more accurate match is recorded, and testing efficiency can be improved when batch testing.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Embodiment three

Fig. 4 is a kind of cloud method of testing flow chart according to an exemplary embodiment, and as shown in Figure 4, the cloud method of testing described in the present embodiment includes:

The present embodiment provides device screen district, Accessorial Tools Storage and editing area by step S410 on the display interface of client.

The present embodiment by step S420 when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first and move equipment and be installed and activated described pre-set programs.

The present embodiment by step S430 described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content.

The present embodiment moves equipment by step S440 by described device screen district and carries out remotely operation the operation screen synchronization generation test script based on described device screen district described first, synchronizes described test script is presented on described editing area.

The step S410-S440 of the present embodiment is identical with the step S210-S240 of a upper embodiment, and therefore not to repeat here.

The present embodiment when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested according to described test script by equipment by described Accessorial Tools Storage by step S450, is remotely controlled the plurality of second based on concurrent tasks mechanism respectively by equipment cloud and moves equipment and be installed and activated described pre-set programs.

Such as, equipment can be moved especially by the display interface real time inspection of client the plurality of second in replayed section and run the aggregate scheduling of playback and/or the status information of each self-operating playback.

When test script is carried out playing back in batches by this step, existing many algorithms can being used to be operated object matching, the present embodiment is in this no limit, for instance SIFT jointing edge detection algorithm can be used to be operated object matching.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Embodiment four

Fig. 5 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment, as it is shown in figure 5, the cloud test device described in the present embodiment includes display interface creating unit 510 and remote scripting recording elements 520.

Described display interface creating unit 510, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;

Described remote scripting recording elements 520, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

In an exemplary embodiment, described long-range operation includes clicking, sliding and pull.

In an exemplary embodiment, described test script is python code.

About the device in above-described embodiment, the concrete mode that wherein unit performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.

The cloud method of testing that cloud test device can perform the embodiment of the present invention one and embodiment two provides that the present embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Embodiment five

Fig. 6 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment, and as shown in Figure 6, the cloud test device described in the present embodiment includes display interface creating unit 610, remote scripting recording elements 620 and editor's response unit 630:

Described display interface creating unit 610, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;

Described remote scripting recording elements 620, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

Described editor's response unit 630, carries out edit operation for the test script that described editing area is presented.

In an exemplary embodiment, described long-range operation includes clicking, sliding and pull.

In an exemplary embodiment, described test script is python code.

In an exemplary embodiment, when described editor's response unit 630 receives clicking operation for the handle icon in the script of described editing area, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

About the device in above-described embodiment, the concrete mode that wherein unit performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.

The cloud method of testing that cloud test device can perform the embodiment of the present invention one and embodiment two provides that the present embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Embodiment six

Fig. 7 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment, as it is shown in fig. 7, the cloud test device described in the present embodiment includes display interface creating unit 710, remote scripting recording elements 720, editor's response list 730, script debugging unit 740 and remote scripting playback unit 750.

Described display interface creating unit 710, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;

Described remote scripting recording elements 720, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

Described editor's response single 730, receives the edit operation to the test script presented for described editing area.

It should be noted that the editor described in the present embodiment responds single 730 for selectable unit.

Described script debugging unit 740, receives for described editing area and arranges playback node on shown test script, when the test script that described editing area presents is played back to described playback node, suspends and plays back described test script.

It should be noted that the script debugging unit 740 described in the present embodiment is selectable unit.

Described remote scripting playback unit 750, for when initiating to move, to remotely connect second, the task that pre-set programs is tested by equipment according to the test script recorded by described Accessorial Tools Storage, remotely control described second is moved equipment and is installed and activated described pre-set programs, described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, described test script is presented at described editing area, described test script is distributed to described second and moves equipment, control described second and move the equipment described test script of execution.

In an exemplary embodiment, described long-range operation includes clicking, sliding and pull.

In an exemplary embodiment, described test script is python code.

In an exemplary embodiment, when described editor's response unit 730 receives clicking operation for the handle icon in the script of described editing area, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

In an exemplary embodiment, described display interface creating unit 710 is additionally operable to the Debugging message output area of the log information exported when providing on the display interface of client for presenting test script playback.

In an exemplary embodiment, described remote scripting playback unit 750 uses SIFT jointing edge detection algorithm to be operated object matching.

About the device in above-described embodiment, the concrete mode that wherein unit performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.

The cloud method of testing that cloud test device can perform the embodiment of the present invention one and embodiment two provides that the present embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Embodiment seven

Fig. 8 is a kind of cloud test apparatus structure block diagram according to an exemplary embodiment, as shown in Figure 8, the cloud test device described in the present embodiment includes display interface creating unit 810, remote scripting recording elements 820, editor's response unit 830 and batch playback unit 840.

Described display interface creating unit 810, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;

Described remote scripting recording elements 820, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.

Described editor's response unit 830, receives the edit operation to the test script presented for described editing area.

It should be noted that the editor described in the present embodiment responds single 830 for selectable unit.

Described batch playback unit 840, for when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to test script by described Accessorial Tools Storage, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.

In an exemplary embodiment, described long-range operation includes clicking, sliding and pull.

In an exemplary embodiment, described test script is python code.

In an exemplary embodiment, described editor's response unit 830 is additionally operable to, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.

In an exemplary embodiment, described batch playback unit 840 is additionally operable in replayed section to be moved the aggregate scheduling of equipment operation playback and/or the status information of each self-operating playback by the display interface real time inspection the plurality of second of client.

In an exemplary embodiment, described batch playback unit 840 uses SIFT jointing edge detection algorithm to be operated object matching.

About the device in above-described embodiment, the concrete mode that wherein unit performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.

The cloud method of testing that cloud test device can perform the embodiment of the present invention one and embodiment two provides that the present embodiment provides, possesses the corresponding functional module of execution method and beneficial effect.

It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.

Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiment of the present invention.The application is intended to any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented known general knowledge in the art of the disclosure or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the present invention and spirit are pointed out by claim below.

It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (22)

1. a cloud method of testing, it is characterised in that including:
The display interface of client provide the interface content being used for synchronizing to present the interface content of mobile equipment and pass through to present described mobile equipment carries out remote-operated device screen district, for providing the Accessorial Tools Storage of test script recording and playback instrument and for presenting and edit the editing area of test script;
When by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.
2. method according to claim 1, it is characterised in that described long-range operation includes clicking, sliding and pull.
3. method according to claim 1, it is characterised in that described test script is python code.
4. method according to claim 1, it is characterised in that the test script that described method also includes described editing area is presented carries out edit operation.
5. method according to claim 4, it is characterized in that, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.
6. method according to claim 1, it is characterized in that, described method also includes when initiating to move, to remotely connect second, the task that pre-set programs is tested by equipment according to described test script by described Accessorial Tools Storage, remotely control described second is moved equipment and is installed and activated described pre-set programs, described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, described test script is presented at described editing area, described test script is distributed to described second and moves equipment, control described second and move the equipment described test script of execution.
7. method according to claim 6; it is characterized in that; described method is additionally included on test script shown by described editing area and arranges playback node, when the test script that described editing area presents is played back to described playback node, suspends and plays back described test script.
8. method according to claim 6, it is characterised in that described method is additionally included on the display interface of client to be provided for presenting the Debugging message output area of the log information of output when test script plays back.
9. method according to claim 1, it is characterized in that, described method also includes when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to described test script by described Accessorial Tools Storage, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.
10. method according to claim 9, it is characterised in that described method is additionally included in replayed section and moves equipment by the display interface real time inspection the plurality of second of client runs the aggregate scheduling of playback and/or the status information of each self-operating playback.
11. according to the method described in any one of claim 7-10, it is characterised in that when test script is played back, use SIFT jointing edge detection algorithm to be operated object matching.
12. a cloud test device, it is characterised in that including:
Display interface creating unit, for provide on the display interface of client for synchronize to present interface content that the interface content of mobile equipment and passing through presents described mobile equipment is carried out remote-operated device screen district, for provide test script to record and playback instrument Accessorial Tools Storage and for presenting and edit the editing area of test script;
Remote scripting recording elements, for when by described Accessorial Tools Storage initiate to move remotely connect first equipment carry out pre-set programs test and be synchronously performed task that test script is recorded time, remotely control described first is moved equipment and is installed and activated described pre-set programs, described device screen district present described first interface moving equipment is zoomed to described device screen district formed objects after interface content, move equipment by described device screen district to described first and carry out remotely operation the operation screen synchronization generation test script based on described device screen district, synchronize described test script is presented on described editing area.
13. device according to claim 12, it is characterised in that described long-range operation includes clicking, sliding and pull.
14. device according to claim 12, it is characterised in that described test script is python code.
15. device according to claim 12, it is characterised in that described device also includes editor's response unit, carries out edit operation for the test script that described editing area is presented.
16. device according to claim 15, it is characterized in that, described editor's response unit is additionally operable to, when handle icon in the script of described editing area receives clicking operation, the sectional drawing that the step that shows described clicking operation in described device screen district is corresponding, described sectional drawing receives user and chooses the operation of icon, is replaced with by icon corresponding for clicking operation described in described test script and chooses icon described in described editing area.
17. device according to claim 12, it is characterized in that, described device also includes remote scripting playback unit, for when initiating to move, to remotely connect second, the task that pre-set programs is tested by equipment according to described test script by described Accessorial Tools Storage, remotely control described second is moved equipment and is installed and activated described pre-set programs, described device screen district present described second interface moving equipment is zoomed to described device screen district formed objects after interface content, described test script is presented at described editing area, described test script is distributed to described second and moves equipment, control described second and move the equipment described test script of execution.
18. device according to claim 17; it is characterized in that; described device also includes script debugging unit; for arranging playback node on test script shown by described editing area; when the test script that described editing area presents is played back to described playback node, suspends and play back described test script.
19. device according to claim 17, it is characterised in that described display interface creating unit is additionally operable to the Debugging message output area of the log information exported when providing on the display interface of client for presenting test script playback.
20. device according to claim 12, it is characterized in that, described device also includes batch playback unit, for when initiating to move, to remotely connect multiple second, the task that pre-set programs is tested by equipment according to described test script by described Accessorial Tools Storage, remotely control the plurality of second based on concurrent tasks mechanism respectively by equipment cloud to move equipment and be installed and activated described pre-set programs, move test script described in played back controlling the plurality of second, move equipment from the plurality of second and obtain test result and obtain test result.
21. device according to claim 20, it is characterized in that, described batch playback unit is additionally operable in replayed section to be moved the aggregate scheduling of equipment operation playback and/or the status information of each self-operating playback by the display interface real time inspection the plurality of second of client.
22. according to the device described in any one of claim 18-21, it is characterised in that when test script is played back by described script playback unit and described batch playback unit, use SIFT jointing edge detection algorithm to be operated object matching.
CN201610113443.0A 2016-02-29 2016-02-29 Cloud testing method and device CN105740153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610113443.0A CN105740153A (en) 2016-02-29 2016-02-29 Cloud testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610113443.0A CN105740153A (en) 2016-02-29 2016-02-29 Cloud testing method and device

Publications (1)

Publication Number Publication Date
CN105740153A true CN105740153A (en) 2016-07-06

Family

ID=56248817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610113443.0A CN105740153A (en) 2016-02-29 2016-02-29 Cloud testing method and device

Country Status (1)

Country Link
CN (1) CN105740153A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302524A (en) * 2016-09-26 2017-01-04 南京臻融软件科技有限公司 A kind of method manipulating far-end application software
CN106528178A (en) * 2016-12-07 2017-03-22 浙江齐治科技股份有限公司 Program automatic control method and apparatus
CN106874206A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 Method, device and electronic equipment for cross-platform automatic test
CN106874208A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 The processing method of test script, device and electronic equipment
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
CN106909507A (en) * 2017-02-27 2017-06-30 网易(杭州)网络有限公司 Method, device and electronic equipment for automatically generating test script
CN107015912A (en) * 2017-05-26 2017-08-04 网易(杭州)网络有限公司 Realize system, method, device and the electronic equipment of remote debugging
CN108654088A (en) * 2018-04-13 2018-10-16 腾讯科技(深圳)有限公司 program debugging method and device, storage medium and electronic device
CN109871172A (en) * 2019-01-23 2019-06-11 广州杰赛科技股份有限公司 Mouse click method, device and readable storage medium storing program for executing in a kind of automatic test

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
WO2014186429A1 (en) * 2013-05-15 2014-11-20 Microsoft Corporation Automatic discovery of system behavior
US20150081598A1 (en) * 2013-09-17 2015-03-19 Xamarin Inc. Generating application models based on discovery based machine learning
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
WO2014186429A1 (en) * 2013-05-15 2014-11-20 Microsoft Corporation Automatic discovery of system behavior
US20150081598A1 (en) * 2013-09-17 2015-03-19 Xamarin Inc. Generating application models based on discovery based machine learning
CN104866414A (en) * 2014-02-24 2015-08-26 腾讯科技(深圳)有限公司 Method, device and system for testing application program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WXASDF1: ""iTestin快速入门"", 《HTTPS://WENKU.BAIDU.COM/VIEW/954921BE31126EDB6F1A10C8.HTML?FROM=SEARCH》 *
枫狂雅士: ""iTestin使用教程"", 《HTTPS://WENKU.BAIDU.COM/VIEW/32489D2D7C1CFAD6185FA77E.HTML?PN=50》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302524A (en) * 2016-09-26 2017-01-04 南京臻融软件科技有限公司 A kind of method manipulating far-end application software
CN106302524B (en) * 2016-09-26 2018-08-07 南京臻融软件科技有限公司 A method of manipulation distal end application software
CN106528178A (en) * 2016-12-07 2017-03-22 浙江齐治科技股份有限公司 Program automatic control method and apparatus
CN106874206A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 Method, device and electronic equipment for cross-platform automatic test
CN106874208A (en) * 2017-02-27 2017-06-20 网易(杭州)网络有限公司 The processing method of test script, device and electronic equipment
CN106897225A (en) * 2017-02-27 2017-06-27 网易(杭州)网络有限公司 Record method, device and the electronic equipment of test script
CN106909507A (en) * 2017-02-27 2017-06-30 网易(杭州)网络有限公司 Method, device and electronic equipment for automatically generating test script
CN107015912A (en) * 2017-05-26 2017-08-04 网易(杭州)网络有限公司 Realize system, method, device and the electronic equipment of remote debugging
CN108654088A (en) * 2018-04-13 2018-10-16 腾讯科技(深圳)有限公司 program debugging method and device, storage medium and electronic device
CN109871172A (en) * 2019-01-23 2019-06-11 广州杰赛科技股份有限公司 Mouse click method, device and readable storage medium storing program for executing in a kind of automatic test

Similar Documents

Publication Publication Date Title
US9846638B2 (en) Exposing method related data calls during testing in an event driven, multichannel architecture
Nebeling et al. Interactive development of cross-device user interfaces
CN105122257B (en) Transfer function for Dynamic Announce tracker data is inserted into
JP2018535459A (en) Robotic process automation
Kaasila et al. Testdroid: automated remote UI testing on Android
Gomez et al. Reran: Timing-and touch-sensitive record and replay for android
Yeh et al. Sikuli: using GUI screenshots for search and automation
Chi et al. MixT: automatic generation of step-by-step mixed media tutorials
EP2151773B1 (en) Synchronous to asynchronous web page conversion
AU2003270997B2 (en) Active content wizard: execution of tasks and structured content
Klemmer et al. Suede: a Wizard of Oz prototyping tool for speech user interfaces
US5801687A (en) Authoring tool comprising nested state machines for use in a computer system
US8161452B2 (en) Software cinema
JP2013175242A (en) Method system and software for providing image sensor based human machine interfacing
US6453328B1 (en) Model tracking object-oriented system for collaborative data editing with non-compatible computer peripheral devices
Pongnumkul et al. Pause-and-play: automatically linking screencast video tutorials with applications
US20180246633A1 (en) Method, system and user interface for creating and displaying of presentations
US7290245B2 (en) Methods and systems for navigating deterministically through a graphical user interface
Lieberman Mondrian: a teachable graphical editor.
JP3602532B2 (en) Concurrent processor with incremental command object
US8015239B2 (en) Method and system to reduce false positives within an automated software-testing environment
US9342237B2 (en) Automated testing of gesture-based applications
US7458013B2 (en) Concurrent voice to text and sketch processing with synchronized replay
US5446842A (en) Object-oriented collaboration system
JP4117132B2 (en) Object-oriented notification framework system, method for executing the same, and method for managing the same

Legal Events

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

Application publication date: 20160706

RJ01 Rejection of invention patent application after publication