CN106897225A - Record method, device and the electronic equipment of test script - Google Patents
Record method, device and the electronic equipment of test script Download PDFInfo
- Publication number
- CN106897225A CN106897225A CN201710108812.1A CN201710108812A CN106897225A CN 106897225 A CN106897225 A CN 106897225A CN 201710108812 A CN201710108812 A CN 201710108812A CN 106897225 A CN106897225 A CN 106897225A
- Authority
- CN
- China
- Prior art keywords
- window
- target
- embedded
- test
- target window
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The application is related to record method, device and the electronic equipment of test script, and method includes:Create and record frame;By the use of the recording frame from the window of current interface selected target region as target window;By the target window Embedded test window;Test script is generated according to the recording operation in the test window.The technical scheme of the application can improve script in automatic test and record efficiency.
Description
Technical field
The application is related to automatization testing technique field, in particular to method, device and the electricity of recording test script
Sub- equipment.
Background technology
During automatic test for the script tool of production, parameter when what user most paid close attention to is exactly script production is just
The convenience of true property and recording operation.For the APP tests of mobile phone, mobile phone screen can be synchronously projected on PC screens, grasped
Author can reach the purpose of operating handset by the interaction of mouse, by people is to the operating process scripting of mobile phone and repeatable holds
OK.In script recording process, operated with each step mouse emulation of user, synchronously automatically generate corresponding scripts, including
Record operating position, it is sometimes desirable to record corresponding operation sectional drawing, and action type (such as click, slip etc.).In script
In replayed section, connection mobile phone is loaded into script, clicks on playback.
And the desktop application for being directed to PC ends is tested, due to window, desktop application window, the recording frame window of the script tool of production
Mouth is independently present on desktop, is easy to produce in operation, when being switched between window and is blocked, it is necessary to hand mutually
Dynamic to be adjusted, this will reduce the efficiency of script recording.And, may need to specify certain several client wheel when recording script
Stream perform script is recorded, such as the situation opened separate game client, or simultaneously using simulator and clear more
Device of looking at logs in the situation of game respectively, and this will produce more frequently window circumstance of occlusion.
The content of the invention
The method that disclosure records test script so that script is recorded efficiency and improved.
Other characteristics of the invention and advantage will be apparent from by following detailed description, or partially by the present invention
Practice and acquistion.
According to an aspect of the present invention, there is provided it is a kind of record test script method, including:Create and record frame;
By the use of the recording frame from the window of current interface selected target region as target window;
By the target window Embedded test window;
Test script is generated according to the recording operation in the test window.
Some embodiments of the invention, the target window Embedded test window is included:Set up the target window
Incidence relation between mouth and the test window;Adjust the state of the target window so that the target window insertion is surveyed
The corresponding region of examination window.
Some embodiments of the invention, the incidence relation bag set up between the target window and the test window
Include:The handle of the target window is obtained, the handle is configured and is set to the testing window with by the target window
The subwindow of mouth.
Some embodiments of the invention, adjust the state of the target window so that the target window insertion is surveyed
The corresponding region of examination window includes:The coordinate system of the target window is corrected to software coordinate system from desktop coordinate system;Adjustment
The size of the target window, makes the size of the target window be matched with the corresponding region of the test window.
Some embodiments of the invention, are made using recording frame selected target region from the window of current interface
For target window includes:The control recording frame carries out automatic seeking window on the window of current interface, and response user's operation is selected
Target area is used as target window.
Some embodiments of the invention, control the recording frame that automatic seeking window bag is carried out on the window of current interface
Include:Window where the real time position of mouse is automatically selected from the window of current interface, the frame to selected window enters
Row is rendered.
Some embodiments of the invention, response user's operation selected target region includes as target window:Obtain
The target area being rendered when user operates, using the target area being rendered as target window.
Some embodiments of the invention, also include after by the target window Embedded test window, and response is used
Family operation releases the target window and is embedded in the test window, and by the coordinate system of the target window from the software coordinate
System is corrected to desktop coordinate system.
Some embodiments of the invention, methods described also includes:The target window is being embedded in the testing window
After mouthful, cancel the display recording frame;After releasing the target window and being embedded in the test window, the recording is shown
Frame.
Some embodiments of the invention, methods described also includes:By the target window Embedded test window it
Afterwards, the incidence relation between the target window and the test window is added in setting window information set, according to institute
State setting window information and be integrated into the embedded window selection list of interface generation.
Some embodiments of the invention, methods described also includes:According to user to the embedded window selection list
Operation switch the target window.
According to another aspect of the present invention, there is provided a kind of device for recording test script, it includes:
Frame creating unit is recorded, frame is recorded for creating;
Target window selectes unit, for by the use of it is described recording frame from the window of current interface selected target region as
Target window;
Window embedded unit, for by the target window Embedded test window;
Script generation unit, the recording operation for basis in the test window generates test script.
Some embodiments of the invention, the window embedded unit is used for:The target window is set up with the survey
Incidence relation between examination window;Adjust the state of the target window so that the target window Embedded test window correspondence
Region.
Some embodiments of the invention, the window embedded unit is used for:The handle of the target window is obtained, it is right
The handle is configured that the target window is set to the subwindow of the test window.
Some embodiments of the invention, the window embedded unit is used for:By the coordinate system of the target window from
Desktop coordinate system is corrected to software coordinate system;The size of the target window is adjusted, the size of the target window is matched with
The corresponding region of the test window.
Some embodiments of the invention, the selected unit of the target window is used for:The control recording frame is current
Automatic seeking window is carried out on the window at interface, response user's operation selected target region is used as target window.
Some embodiments of the invention, the selected unit of the target window is used for:From the window of current interface certainly
Window where the real time position of dynamic selection mouse, the frame to selected window is rendered.
Some embodiments of the invention, the selected unit of the target window is used for:Obtain user operate when by wash with watercolours
The target area of dye, using the target area being rendered as target window.
Some embodiments of the invention, described device also includes embedded lifting unit, for by the target window
After mouthful Embedded test window, response user's operation releases the target window and is embedded in the test window, and by the target
The coordinate system of window is corrected to desktop coordinate system from the software coordinate system.
Some embodiments of the invention, described device also includes that record frame hidden unit shows unit again with frame is recorded;
The recording frame hidden unit is used for:It is embedded in after the test window by the target window, cancels display
The recording frame;
The recording frame shows unit again to be used for:After releasing the target window and being embedded in the test window, institute is shown
State recording frame.
Some embodiments of the invention, described device also includes embedded window list cell, for by the mesh
Mark window is embedded in after the test window, the incidence relation between the target window and the test window is added to and is set
Determine in window information set, generation embedded window selection list in interface is integrated into according to the setting window information.
Some embodiments of the invention, described device also includes embedded switch unit, for according to user to described
The operation of embedded window selection list switches the target window.
According to another aspect of the present invention, there is provided a kind of electronic equipment, including:Processor;Memory, stores for processing
The instruction operated described in device control above any one of first aspect.
The technical scheme that embodiments herein is provided can include the following benefits:
The technical scheme that embodiments herein is provided can improve script in automatic test and record efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited
Invention.
Brief description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature of the invention and advantage will become more
Plus substantially.
The method that Fig. 1 shows recording test script according to an embodiment of the invention;
Fig. 2 shows application scenarios schematic diagram according to another embodiment of the present invention;
Fig. 3 shows window insertion according to an embodiment of the invention and cancels embedded flow chart;
Fig. 4 shows embedded the window's position calibration schematic diagram according to an embodiment of the invention;
Fig. 5 shows the block diagram of the device of recording test script according to an embodiment of the invention;
Fig. 6 shows electronic equipment according to an embodiment of the invention.
Specific embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be real in a variety of forms
Apply, and be not understood as limited to embodiment set forth herein;Conversely, thesing embodiments are provided so that the present invention will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively conveyed into those skilled in the art.Identical reference is represented in figure
Same or similar part, thus repetition thereof will be omitted.
Additionally, described feature, structure or characteristic can be combined in one or more implementations in any suitable manner
In example.In the following description, there is provided many details fully understand so as to be given to embodiments of the invention.However,
It will be appreciated by persons skilled in the art that it is one or more during technical scheme can be put into practice without specific detail,
Or can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known square
Method, device, realization operate to avoid fuzzy each aspect of the present invention.
Block diagram shown in accompanying drawing is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in accompanying drawing is merely illustrative, it is not necessary to including all of content and operation/step,
It is not required to be performed by described order.For example, some operation/steps can also be decomposed, and some operation/steps can be closed
And or part merge, therefore the actual order for performing is possible to be changed according to actual conditions.
The method that Fig. 1 shows recording test script according to an embodiment of the invention, the present embodiment is applicable in record
During test script processed, frequent switching window is needed to cause script to record inefficiency due to being blocked mutually between window
Situation, for example, carry out the situation of automatic test to windows desktop application.As shown in figure 1, the recording described in the present embodiment is surveyed
The method of training sheet includes:
In step s 110, create and record frame.
This step is used to create records frame, to carry out the situation of automatic test to windows desktop application, for example, carries out
Mouse is followed the trail of, and window border is drawn out using the lines of prominent color according to mouse position, to highlight current selected window.
For example created when this recording instrument start-up is tested and record frame, the control recording frame is on the window of current interface
Carry out automatic seeking window.
In an embodiment, the window where the real time position of mouse can be automatically selected from the window of current interface is right
The frame of selected window is rendered.
In the step s 120, by the use of the recording frame from the window of current interface selected target region as target window
Mouthful.
User's target window selected by recording frame is obtained, is obtained with specific reference to user's operation.For example obtain and use
The window being rendered when family operates, using the window being rendered as selected target window.
In step s 130, by the target window Embedded test window.
It should be noted that by the method for the target window Embedded test window include it is various, this step is not made to this
Limit.The incidence relation set up between the target window and the test window is for example included but is not limited to, the mesh is adjusted
Mark the state of window so that the corresponding region of the target window Embedded test window.
Wherein, the incidence relation including various, for example, can be mapping relations, set membership, fixed position relation etc..
For example can be by obtaining the identification information (such as window handle, window number or sequence number etc.) of the target window, to described
Handle is configured that the target window is set to the subwindow of the test window.
For example, the state for adjusting the target window can be realized by the following method:By the coordinate system of the target window
Software coordinate system is corrected to from desktop coordinate system, the size of the target window is adjusted, the size of the target window is matched
In the corresponding region of the test window.
In order to further enrich the function that script records instrument, the availability that the script records instrument is improved, by institute
State after target window is embedded in the test window and may also include other miscellaneous functions, for example, respond user's operation and release the mesh
Mark window is embedded in the test window, and the coordinate system of the target window is corrected into the desktop from the software coordinate system
Coordinate system.And for example, after by the target window Embedded test window, the display recording frame is cancelled;Releasing the mesh
Mark window is embedded in after the test window, shows the recording frame.Again as will be described target window and the test window it
Between incidence relation be added in setting window information set, generation embedded window in interface is integrated into according to the setting window information
Mouth selective listing.
In step S140, test script is generated according to the recording operation in the test window.
After the target window insertion selected in desktop application, can be moved with the movement of test window.The target window
Itself independence keeps constant, the operation and response of its all interactive controls with before without any difference.And in mesh
After mark window ejection, it can return to the position before insertion.
Incidence relation between the target window and the test window can be also added to setting window by the present embodiment
In information aggregate, generation embedded window selection list in interface is integrated into according to the setting window information, according to user to described
The operation of embedded window selection list switches the target window.
In addition, the present embodiment methods described may also include other beneficial functions, such as according to user to the embedded window
The operation of selective listing switches the target window.
Technical scheme described in the present embodiment records frame by being created when starting, and controls the recording frame in current interface
Window on carry out automatic seeking window, the target window is embedded in the test window by response user's operation selected target window
And the coordinate system of the target window is corrected to software coordinate system from desktop coordinate system, according to the recording in the target window
Operation generation test script, it is to avoid the window of the script tool of production, desktop application window, recording frame window are individually present what is caused
Operation inconvenience, reduces switching and manually adjusts the number of times of window, can improve script and record efficiency.
Fig. 2 shows application scenarios schematic diagram according to another embodiment of the present invention, the technical scheme described in the present embodiment
As a example by for windows desktop applications, embedded administrative mechanism is devised on the script tool of production, regard desktop application as one
Each and every one independent " equipment ", the script tool of production of the prior art, desktop application window and recording three windows of window are closed
And get up, same independent window is integrated into, user can be by the recording quick selected target desktop application window of frame, Jin Eryi
Key is embedded in specified window.
User can be with the area-of-interest of a key selected target desktop application (i.e. mesh by the recording frame of the script tool of production
Mark region), while obtaining the window handle of the desktop application.By by the window handle of the desktop application and the script tool of production
Window handle set up set membership, reach the purpose that the window of target desktop application is embedded in script tool of production window,
And the appropriate location being positioned over desktop application in script tool of production window is changed by coordinate system.Complete operation (or
Close the script tool of production) when by releasing the set membership between desktop application and the window handle of the script tool of production, will
Desktop application ejects the script tool of production.
In the present embodiment, windows desktop applications are considered as " equipment " independent one by one by the script tool of production, by record
The area-of-interest of frame selected target desktop application processed, while the window handle of target desktop application is extracted, by window handle
Perform insertion.
When desktop application is embedded in, from the information wide high of the effective content of frame is recorded, the width letter high of area-of-interest is extracted
Breath (w, h) is used for the script tool of production, therefore after insertion is performed, you can cancel and show that recording frame (uses script production work
Tool carries out no longer needing extract real-time to record the information wide high of the effective content of frame as recorded information when script is recorded), in desktop
After ejection, record frame and show again.After so performing the insertion of desktop application window, three of the prior art solely
Vertical window is simplified to a nested window, can be greatly user-friendly.
Fig. 3 shows window insertion according to an embodiment of the invention and cancels embedded flow chart, as shown in figure 3, should
The implementation point of flow mainly has following committed step:
For area-of-interest acquisition modes:
Automatic seeking window can slide the window interested of easily selection target desktop application by mouse.
Click starts " automatic seeking window ", that is, proceed by mouse tracking, can go out green line according to mouse position real-time rendering
Frame, shows current selected frame.When green frame is just the area-of-interest of target desktop application, mouse is pressed, then record frame
Area-of-interest is set to, while the information (w, h) wide high of area-of-interest can be obtained.
Second, for the acquisition methods of window handle, including:
1. acquisition methods of the window handle of target desktop application:
In previous step, click starts " automatic seeking window ", that is, proceed by mouse tracking, can be real-time according to mouse position
Green wire frame is drawn out, current selected frame is shown.When green frame is just the area-of-interest of target desktop application, mouse is pressed
Timestamp, intended application window then can automatically be set to front most window.By the handle for obtaining current desktop front most window, you can obtain
The window handle of target desktop application.
2. acquisition methods of software (the script tool of production) window handle in itself:
Before desktop is located at when the mode a. scripts tool of production starts most, takes out desktop front most window handle and obtain final product;
The window name that mode b. passes through the script tool of production, retrieves script tool of production window handle in itself.
3rd, on the setting of window background panel zone, window insertion and method for correcting coordinate, including:
When performing the window embedding operation of desktop application, the script tool of production (calling software interface A in the following text) is according to embedded window
Size preset one piece of white space, the window handle of the window handle of desktop application and the script tool of production is set up into father and son closes
The window handle of the script tool of production (is set to father's handle that desktop quotes window handle) by system, you can realize that window is embedded in.It is embedding
Need to perform window coordinates calibration after entering, in detail such as Fig. 5:
It is embedding in the present embodiment figure 4 illustrates embedded the window's position calibration schematic diagram according to an embodiment of the invention
Enter the window's position calibration schematic diagram, those of ordinary skill in the art are two coordinate systems firstly the need of what is cleared:1. desktop coordinate
System, the origin of coordinates is the desktop upper left corner, is laterally x-axis, and longitudinal direction is y-axis, and the coordinate of window is its upper left corner in desktop on desktop
Coordinate in coordinate system;2. software coordinate system:Software coordinate system in itself is former by coordinate of the upper left corner of its effective content area
Point, is laterally x-axis, and longitudinal direction is y-axis.Subwindow position in software is set and is defined by this coordinate system.
Positions of the window B to be embedded under desktop coordinate system is (x1, y1), it is necessary to be embedded into the specified embedding of software interface A
Enter region e, wherein it is (x2, y2) to specify coordinate of the embedded region e upper left corners under software coordinate system.After performing window insertion,
Its nominal coordinate is remained within (x1, y1), but coordinate system is changed to software coordinate system from desktop coordinate system, therefore is needed
Again the nominal coordinate of window B to be embedded is set to (x2, y2), could realizes for window B to be embedded being embedded into software circle
The specified embedded region e of face A.
4th, the method on cancelling embedded window, including:
As shown in figure 4, coordinate during embedded window B insertions under desktop coordinate system is (x1, y1), soft after execution is embedded
Coordinate under part interface A coordinate system is (x2, y2).
It is that embedded window B and software interface A is released into set membership (by father's window of embedded window B to cancel embedded method
Mouth is empty), being now embedded in window B will again be ejected into desktop, but the coordinate position under desktop coordinate system will be still maintained at
(x2, y2), it is therefore desirable to which the coordinate position for resetting embedded window B is (x1, y1).
Because the script tool of production may continuously use multiple desktop applications in itself, it is therefore desirable to the multiple target desktops of management
Using.Specific implementation method includes:
The script tool of production safeguards a window information set S, and the corresponding window of inserted in table top application is performed for recording
Handle and relevant information.Data of the meeting in data acquisition system S in the script tool of production, a embedded window selection of dynamic generation
List.
There are " window 1 ", " window 2 ", " window 3 ", and currently embedded window for " window 3 " in such as embedded window list,
User selects " window 1 ", then the script tool of production is cancelled embedded " window 3 ", and according to the phase of " window 1 " in data acquisition system S
Pass information, performs the insertion of " window 1 ".So as to reach the purpose of the embedded window of quick switching.
Maintenance mode on data acquisition system S, can include information addition, information deletion, empty the aspects such as data letter conjunction.
For information addition, for example, when performing embedded by recording the selected desktop application of frame every time, by desktop application
Handle and relevant information are added in data acquisition system S.When embedded desktop application window is ejected, its corresponding handle and correlation
Information is still retained in data acquisition system S.
For information deletion, it is assumed that data acquisition system S include window A, window B, and currently embedded window be window A, when with
Family selection is when being switched to embedded window B, the script tool of production can automatic detection its window handle whether there is in system, if
Detect window B and be closed by the user (window handle of B does not exist), then by the handle and relevant information of window B from data
Deleted in set S.
For emptying data acquisition system S, for example can be when the script tool of production be closed, the desktop application that will be currently embedded in
The ejection script tool of production, while being emptied to data acquisition system S.
From the technical scheme of the present embodiment, at least there are following Advantageous Effects using such scheme:
First, number of windows when script is recorded can be simplified, when performing desktop application insertion, while extracting interested
The information (w, h) wide high in region uses for the script tool of production, and the script tool of production need not obtain correspondence letter by recording frame
Breath.Therefore cancel display after insertion is performed and record frame, recording frame is shown again after insertion is cancelled.Then desktop application window is performed
After the insertion of mouth, three independent windows of the prior art are simplified to a nested window, can be greatly user-friendly.
And secondly, the independence of embedded window can be kept.After the window insertion of desktop application, simply its parent window becomes
It is the window of the script tool of production, can be moved with the movement of script tool of production window.The independence of desktop application itself
Keep constant, the operation of its all interactive controls and response with before without any difference.And after embedded window ejection,
It can return to the position before insertion.
3rd, can realize being switched fast embedded window.By safeguarding embedded window data set, can fast carry out embedding
Enter the switching and management of window.
Fig. 5 shows the block diagram of the device of recording test script according to an embodiment of the invention, as shown in figure 5, this reality
Applying the device of the recording test script described in example includes that the selected unit 520, window of recording frame creating unit 510, target window is embedding
Enter unit 530 and script generation unit 540.
The automatic seeking window unit 510 is configured to create records frame.
The selected unit 520 of the target window is configured to be selected from the window of current interface using the recording frame
Region set the goal as target window.
The window embedded unit 530 is configured to the target window Embedded test window.
The script generation unit 540 is configured to according to the recording operation generation test pin in the test window
This.
Some embodiments of the invention, the window embedded unit 530 is used for:Set up the target window with it is described
Incidence relation between test window;Adjust the state of the target window so that the target window Embedded test window pair
The region answered.
Some embodiments of the invention, the window embedded unit 530 is used for:Obtain the sentence of the target window
Handle, is configured that the target window is set to the subwindow of the test window to the handle.
Some embodiments of the invention, the window embedded unit 530 is used for:By the coordinate system of the target window
Software coordinate system is corrected to from desktop coordinate system;The size of the target window is adjusted, the size of the target window is matched
In the corresponding region of the test window.
The selected unit 520 of the target window is used for:The control recording frame is carried out automatically on the window of current interface
Window is sought, response user's operation selected target region is used as target window.
Some embodiments of the invention, the selected unit 520 of the target window is used for:From the window of current interface
Window where automatically selecting the real time position of mouse, the frame to selected window is rendered.
Some embodiments of the invention, the selected unit 520 of the target window is used for:Obtain quilt when user operates
The target area for rendering, using the target area being rendered as target window.
Some embodiments of the invention, described device also includes embedded lifting unit (not shown in Fig. 5), for
After the target window Embedded test window, response user's operation releases the target window and is embedded in the test window,
And the coordinate system of the target window is corrected to desktop coordinate system from the software coordinate system.
Some embodiments of the invention, described device also includes recording frame hidden unit (not shown in Fig. 5) with record
Frame processed shows unit again (not shown in Fig. 5);
The recording frame hidden unit is used for, and is embedded in after the test window by the target window, cancels display
The recording frame;
The recording frame shows unit again to be used for, and after releasing the target window and being embedded in the test window, shows institute
State recording frame.
Some embodiments of the invention, described device also includes embedded window list cell (not shown in Fig. 5), uses
It is embedded in after the test window in by the target window, by associating between the target window and the test window
Relation is added in setting window information set, and the embedded window selection row of interface generation are integrated into according to the setting window information
Table.
Some embodiments of the invention, described device also includes embedded switch unit (not shown in Fig. 5), for root
Operation according to user to the embedded window selection list switches the target window.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The recording that the executable the inventive method embodiment of the device of the recording test script that the present embodiment is provided is provided is surveyed
The method of training sheet, possesses the corresponding functional module of execution method and beneficial effect.
Fig. 6 shows electronic equipment according to an embodiment of the invention, as shown in fig. 6, electronic equipment 600 may include treatment
Device 610, memory 620, transmitter 630 and receiver 640.
Memory 620 can store the instruction for the treatment of the control operation of processor 610.Memory 620 may include volatibility
Or nonvolatile memory, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM),
Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only storage (ROM) etc., the present invention
It is not limited in this respect.
Processor 610 can call the instruction control associative operation stored in memory 620.According to an embodiment, memory
620 store the instruction that following operation is controlled for processor 610:
Create and record frame;
By the use of the recording frame from the window of current interface selected target region as target window;
By the target window Embedded test window;
Test script is generated according to the recording operation in the test window.
It can be readily appreciated that memory 620 can also be stored controls other operations according to embodiments of the present invention for processor 610
Instruction, repeat no more here.
Processor 610 also can control transmitter 630 and receiver 640 and carry out signal transmitting and receiving etc..
Detailed description more than, those skilled in the art it can be readily appreciated that system according to embodiments of the present invention and
Method has one or more of the following advantages.
Embodiments in accordance with the present invention, controlling the recording frame that automatic seeking window is carried out on the window of current interface includes:
Window where the real time position of mouse is automatically selected from the window of current interface, the frame to selected window carries out wash with watercolours
Dye.
Some embodiments of the invention, response user's operation selected target window includes:Obtain when user operates
The window being rendered, using the window being rendered as selected target window.
Some embodiments of the invention, the target window is embedded in into the test window includes:Obtain the mesh
The handle of window is marked, the handle is configured, the target window is set to the subwindow of the test window.
According to some embodiments, the present invention also provides a kind of non-transitorycomputer readable storage medium, such as including referring to
The memory of order, above-mentioned instruction can be by the computing device of device completing the above method.For example, non-transitory computer-readable
Storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When depositing
Instruction in storage media by terminal computing device when so that terminal is able to carry out following methods:Create and record frame;Using institute
State recording frame from the window of current interface selected target region as target window;By the target window Embedded test window
Mouthful;Test script is generated according to the recording operation in the test window.
It will be understood by those skilled in the art that accompanying drawing is the schematic diagram of example embodiment, module or flow in accompanying drawing
Not necessarily implement the present invention necessary, therefore cannot be used for limiting the scope of the invention.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed in device according to the description of embodiment, also may be used
Uniquely it is different from one or more devices of the present embodiment with carrying out respective change.The module of above-described embodiment can be merged into
One module, it is also possible to be further split into multiple submodule.
More than it is particularly shown and described exemplary embodiment of the invention.It should be understood that public the invention is not restricted to institute
The embodiment opened, on the contrary, it is intended to cover comprising various modifications in the spirit and scope of the appended claims and wait
Effect arrangement.
Claims (16)
1. it is a kind of record test script method, it is characterised in that including:
Create and record frame;
By the use of the recording frame from the window of current interface selected target region as target window;
By the target window Embedded test window;
Test script is generated according to the recording operation in the test window.
2. the method for claim 1, it is characterised in that include the target window Embedded test window:Set up institute
State the incidence relation between target window and the test window;Adjust the state of the target window so that the target window
The corresponding region of mouth Embedded test window.
3. method as claimed in claim 2, it is characterised in that the pass set up between the target window and the test window
Connection relation includes:The handle of the target window is obtained, the handle is configured and is set to institute with by the target window
State the subwindow of test window.
4. method as claimed in claim 2, it is characterised in that the state of the adjustment target window so that the target window
The corresponding region of mouth Embedded test window includes:The coordinate system of the target window is corrected to software coordinate from desktop coordinate system
System;The size of the target window is adjusted, the size of the target window is matched with the corresponding region of the test window.
5. the method for claim 1, it is characterised in that mesh is selected from the window of current interface using the recording frame
Mark region includes as target window:The control recording frame carries out automatic seeking window on the window of current interface, responds user
Operation selected target region is used as target window.
6. method as claimed in claim 5, it is characterised in that the control recording frame carried out on the window of current interface from
It is dynamic to seek window and include:Window where the real time position of mouse is automatically selected from the window of current interface, to selected window
Frame rendered.
7. method as claimed in claim 5, it is characterised in that response user operates selected target region as target window bag
Include:The target area being rendered when user operates is obtained, using the target area being rendered as target window.
8. the method for claim 1, it is characterised in that also wrapped after by the target window Embedded test window
Include, response user's operation releases the target window and is embedded in the test window, and by the coordinate system of the target window from institute
State software coordinate system and be corrected to desktop coordinate system.
9. method as claimed in claim 8, it is characterised in that methods described also includes:The target window is being embedded in institute
State after test window, cancel the display recording frame;After releasing the target window and being embedded in the test window, display
The recording frame.
10. the method for claim 1, it is characterised in that methods described also includes:Surveyed the target window is embedded in
After examination window, the incidence relation between the target window and the test window is added to setting window information set
In, generation embedded window selection list in interface is integrated into according to the setting window information.
11. methods as claimed in claim 10, it is characterised in that methods described also includes:According to user to the embedded window
The operation of mouth selective listing switches the target window.
A kind of 12. devices for recording test script, it is characterised in that including:
Frame creating unit is recorded, frame is recorded for creating;
Target window selectes unit, for by the use of the recording frame from the window of current interface selected target region as target
Window;
Window embedded unit, for by the target window Embedded test window;
Script generation unit, the recording operation for basis in the test window generates test script.
13. devices as claimed in claim 12, it is characterised in that described device also includes being embedded in lifting unit, for inciting somebody to action
After the target window Embedded test window, response user's operation releases the target window and is embedded in the test window, and
The coordinate system of the target window is corrected to desktop coordinate system from the software coordinate system.
14. devices as claimed in claim 12, it is characterised in that described device also includes embedded window list cell, is used for
It is embedded in after the test window by the target window, by associating between the target window and the test window
System is added in setting window information set, and the embedded window selection row of interface generation are integrated into according to the setting window information
Table.
15. devices as claimed in claim 14, it is characterised in that described device also includes embedded switch unit, for basis
Operation of the user to the embedded window selection list switches the target window.
16. a kind of electronic equipment, it is characterised in that including:Processor;Memory, stores for processor control as weighed
Profit requires the instruction operated described in any one of 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710108812.1A CN106897225A (en) | 2017-02-27 | 2017-02-27 | Record method, device and the electronic equipment of test script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710108812.1A CN106897225A (en) | 2017-02-27 | 2017-02-27 | Record method, device and the electronic equipment of test script |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106897225A true CN106897225A (en) | 2017-06-27 |
Family
ID=59185005
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710108812.1A Pending CN106897225A (en) | 2017-02-27 | 2017-02-27 | Record method, device and the electronic equipment of test script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897225A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710526A (en) * | 2018-12-24 | 2019-05-03 | 北京云测信息技术有限公司 | One kind being based on cloud service automatic test script recording and playback system and method |
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 |
CN113259755A (en) * | 2021-06-15 | 2021-08-13 | 北京新唐思创教育科技有限公司 | Screen recording method, device, equipment and medium |
CN114978360A (en) * | 2022-05-10 | 2022-08-30 | 紫光计算机科技有限公司 | Automatic testing method and device for communication equipment, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150046909A1 (en) * | 2013-08-12 | 2015-02-12 | International Business Machines Corporation | System, Method, and Apparatus for Automatic Recording and Replaying of Application Executions |
CN104572428A (en) * | 2013-10-16 | 2015-04-29 | 陆璐 | Complicated control testing method based on windows operating system |
CN105183599A (en) * | 2015-09-08 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Script recording system and method |
CN105740153A (en) * | 2016-02-29 | 2016-07-06 | 网易(杭州)网络有限公司 | Cloud testing method and device |
CN106293325A (en) * | 2016-07-26 | 2017-01-04 | 网易(杭州)网络有限公司 | The method and apparatus of automatic seeking window |
-
2017
- 2017-02-27 CN CN201710108812.1A patent/CN106897225A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150046909A1 (en) * | 2013-08-12 | 2015-02-12 | International Business Machines Corporation | System, Method, and Apparatus for Automatic Recording and Replaying of Application Executions |
CN104572428A (en) * | 2013-10-16 | 2015-04-29 | 陆璐 | Complicated control testing method based on windows operating system |
CN105183599A (en) * | 2015-09-08 | 2015-12-23 | 上海斐讯数据通信技术有限公司 | Script recording system and method |
CN105740153A (en) * | 2016-02-29 | 2016-07-06 | 网易(杭州)网络有限公司 | Cloud testing method and device |
CN106293325A (en) * | 2016-07-26 | 2017-01-04 | 网易(杭州)网络有限公司 | The method and apparatus of automatic seeking window |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109710526A (en) * | 2018-12-24 | 2019-05-03 | 北京云测信息技术有限公司 | One kind being based on cloud service automatic test script recording and playback system and method |
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 |
CN113259755A (en) * | 2021-06-15 | 2021-08-13 | 北京新唐思创教育科技有限公司 | Screen recording method, device, equipment and medium |
CN113259755B (en) * | 2021-06-15 | 2021-10-12 | 北京新唐思创教育科技有限公司 | Screen recording method, device, equipment and medium |
CN114978360A (en) * | 2022-05-10 | 2022-08-30 | 紫光计算机科技有限公司 | Automatic testing method and device for communication equipment, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106897225A (en) | Record method, device and the electronic equipment of test script | |
JP3419050B2 (en) | Input device | |
CN105940365B (en) | A kind of notification information processing method, device and terminal | |
CN112134785B (en) | Information processing method, client and system in network security level protection | |
DE202015003860U1 (en) | User interfaces for messages for capturing and transferring media and location content | |
CN107819928A (en) | For managing the user interface of controllable external equipment | |
CN107688664A (en) | Chart generation method, device, computer equipment and storage medium | |
CN106603667A (en) | Screen information sharing method and device | |
JP2015084211A (en) | Information processing device, information processing system, and program | |
CN104536889A (en) | Method and system for testing user interface, use case management platform and operating terminal | |
CN102323873B (en) | In order to trigger the method and system that icon is replied in instant messaging | |
US20170242832A1 (en) | Character editing method and device for screen display device | |
CN106933450A (en) | A kind of control method and electronic equipment | |
CN107734142A (en) | A kind of photographic method, mobile terminal and server | |
CN105912185A (en) | Method and device for unloading application program, and terminal device | |
US20160261835A1 (en) | Harmonizing a projected user interface | |
CN108647351A (en) | Processing method, device, storage medium and the terminal of text image | |
CN111857532A (en) | Virtual keyboard display method and device and electronic equipment | |
CN108769638B (en) | Projection control method and device, projection equipment and storage medium | |
CN112083915A (en) | Page layout method and device, electronic equipment and storage medium | |
CN104811639B (en) | Information processing method and electronic equipment | |
US9013507B2 (en) | Previewing a graphic in an environment | |
CN105068781B (en) | Splicing display device windowing method and system | |
US10607309B2 (en) | Importing of information in a computing system | |
US20170168686A1 (en) | Method and electronic device for processing list item operation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170627 |
|
RJ01 | Rejection of invention patent application after publication |