Movatterモバイル変換


[0]ホーム

URL:


CN106897225A - Record method, device and the electronic equipment of test script - Google Patents

Record method, device and the electronic equipment of test script
Download PDF

Info

Publication number
CN106897225A
CN106897225ACN201710108812.1ACN201710108812ACN106897225ACN 106897225 ACN106897225 ACN 106897225ACN 201710108812 ACN201710108812 ACN 201710108812ACN 106897225 ACN106897225 ACN 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
Application number
CN201710108812.1A
Other languages
Chinese (zh)
Inventor
王建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co LtdfiledCriticalNetease Hangzhou Network Co Ltd
Priority to CN201710108812.1ApriorityCriticalpatent/CN106897225A/en
Publication of CN106897225ApublicationCriticalpatent/CN106897225A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

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

Record method, device and the electronic equipment of test script
Technical field
The application is related to automatization testing technique field, in particular to method, device and the electricity of recording test scriptSub- 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 justThe convenience of true property and recording operation.For the APP tests of mobile phone, mobile phone screen can be synchronously projected on PC screens, graspedAuthor 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 holdsOK.In script recording process, operated with each step mouse emulation of user, synchronously automatically generate corresponding scripts, includingRecord operating position, it is sometimes desirable to record corresponding operation sectional drawing, and action type (such as click, slip etc.).In scriptIn 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 productionMouth is independently present on desktop, is easy to produce in operation, when being switched between window and is blocked, it is necessary to hand mutuallyDynamic to be adjusted, this will reduce the efficiency of script recording.And, may need to specify certain several client wheel when recording scriptStream perform script is recorded, such as the situation opened separate game client, or simultaneously using simulator and clear moreDevice 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 inventionPractice 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 windowIncidence relation between mouth and the test window;Adjust the state of the target window so that the target window insertion is surveyedThe corresponding region of examination window.
Some embodiments of the invention, the incidence relation bag set up between the target window and the test windowInclude:The handle of the target window is obtained, the handle is configured and is set to the testing window with by the target windowThe subwindow of mouth.
Some embodiments of the invention, adjust the state of the target window so that the target window insertion is surveyedThe corresponding region of examination window includes:The coordinate system of the target window is corrected to software coordinate system from desktop coordinate system;AdjustmentThe 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 interfaceFor target window includes:The control recording frame carries out automatic seeking window on the window of current interface, and response user's operation is selectedTarget 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 interfaceInclude:Window where the real time position of mouse is automatically selected from the window of current interface, the frame to selected window entersRow is rendered.
Some embodiments of the invention, response user's operation selected target region includes as target window:ObtainThe 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 usedFamily operation releases the target window and is embedded in the test window, and by the coordinate system of the target window from the software coordinateSystem is corrected to desktop coordinate system.
Some embodiments of the invention, methods described also includes:The target window is being embedded in the testing windowAfter mouthful, cancel the display recording frame;After releasing the target window and being embedded in the test window, the recording is shownFrame.
Some embodiments of the invention, methods described also includes:By the target window Embedded test window itAfterwards, the incidence relation between the target window and the test window is added in setting window information set, according to instituteState 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 listOperation 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 asTarget 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 surveyIncidence relation between examination window;Adjust the state of the target window so that the target window Embedded test window correspondenceRegion.
Some embodiments of the invention, the window embedded unit is used for:The handle of the target window is obtained, it is rightThe 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 fromDesktop coordinate system is corrected to software coordinate system;The size of the target window is adjusted, the size of the target window is matched withThe 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 currentAutomatic 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 certainlyWindow 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 watercoloursThe 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 windowAfter mouthful Embedded test window, response user's operation releases the target window and is embedded in the test window, and by the targetThe 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 displayThe 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 shownState recording frame.
Some embodiments of the invention, described device also includes embedded window list cell, for by the meshMark window is embedded in after the test window, the incidence relation between the target window and the test window is added to and is setDetermine 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 describedThe 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 processingThe 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 limitedInvention.
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 morePlus 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 formsApply, 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 completeIt is whole, and the design of example embodiment is comprehensively conveyed into those skilled in the art.Identical reference is represented in figureSame 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 mannerIn 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 squareMethod, 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 circuitThese 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 closedAnd 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 recordDuring test script processed, frequent switching window is needed to cause script to record inefficiency due to being blocked mutually between windowSituation, 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 surveyedThe 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 outMouse 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 interfaceCarry 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 rightThe 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 windowMouthful.
User's target window selected by recording frame is obtained, is obtained with specific reference to user's operation.For example obtain and useThe 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 thisLimit.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 adjustedMark 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 describedHandle 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 windowSoftware coordinate system is corrected to from desktop coordinate system, the size of the target window is adjusted, the size of the target window is matchedIn 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 instituteState 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 meshMark window is embedded in the test window, and the coordinate system of the target window is corrected into the desktop from the software coordinate systemCoordinate system.And for example, after by the target window Embedded test window, the display recording frame is cancelled;Releasing the meshMark window is embedded in after the test window, shows the recording frame.Again as will be described target window and the test window itBetween incidence relation be added in setting window information set, generation embedded window in interface is integrated into according to the setting window informationMouth 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 windowItself independence keeps constant, the operation and response of its all interactive controls with before without any difference.And in meshAfter 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 embodimentIn information aggregate, generation embedded window selection list in interface is integrated into according to the setting window information, according to user to describedThe 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 windowThe 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 interfaceWindow on carry out automatic seeking window, the target window is embedded in the test window by response user's operation selected target windowAnd the coordinate system of the target window is corrected to software coordinate system from desktop coordinate system, according to the recording in the target windowOperation 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 causedOperation 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 embodimentAs a example by for windows desktop applications, embedded administrative mechanism is devised on the script tool of production, regard desktop application as oneEach and every one independent " equipment ", the script tool of production of the prior art, desktop application window and recording three windows of window are closedAnd get up, same independent window is integrated into, user can be by the recording quick selected target desktop application window of frame, Jin EryiKey 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 productionMark region), while obtaining the window handle of the desktop application.By by the window handle of the desktop application and the script tool of productionWindow 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 (orClose the script tool of production) when by releasing the set membership between desktop application and the window handle of the script tool of production, willDesktop 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 recordThe area-of-interest of frame selected target desktop application processed, while the window handle of target desktop application is extracted, by window handlePerform 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 extractedBreath (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 workTool 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 desktopAfter ejection, record frame and show again.After so performing the insertion of desktop application window, three of the prior art solelyVertical 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, shouldThe 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 renderingFrame, shows current selected frame.When green frame is just the area-of-interest of target desktop application, mouse is pressed, then record frameArea-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 positionGreen 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 pressedTimestamp, intended application window then can automatically be set to front most window.By the handle for obtaining current desktop front most window, you can obtainThe 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 windowSize 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 closesThe 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 embeddingNeed 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 inventionEnter 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 coordinateSystem, 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 desktopCoordinate 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 areaPoint, 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 AEnter 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 neededAgain 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 circleThe 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 embeddedCoordinate 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 methodMouth 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 managementUsing.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 recordingHandle and relevant information.Data of the meeting in data acquisition system S in the script tool of production, a embedded window selection of dynamic generationList.
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 SPass 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 applicationHandle and relevant information are added in data acquisition system S.When embedded desktop application window is ejected, its corresponding handle and correlationInformation 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 withFamily 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, ifDetect 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 dataDeleted 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 inThe 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 interestedThe 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 frameBreath.Therefore cancel display after insertion is performed and record frame, recording frame is shown again after insertion is cancelled.Then desktop application window is performedAfter 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 becomesIt 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 itselfKeep 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 embeddingEnter 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 realityApplying 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 embeddingEnter 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 frameRegion 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 windowThis.
Some embodiments of the invention, the window embedded unit 530 is used for:Set up the target window with it is describedIncidence relation between test window;Adjust the state of the target window so that the target window Embedded test window pairThe region answered.
Some embodiments of the invention, the window embedded unit 530 is used for:Obtain the sentence of the target windowHandle, 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 windowSoftware coordinate system is corrected to from desktop coordinate system;The size of the target window is adjusted, the size of the target window is matchedIn 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 interfaceWindow 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 interfaceWindow 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 operatesThe 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), forAfter 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 recordFrame 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 displayThe 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 instituteState recording frame.
Some embodiments of the invention, described device also includes embedded window list cell (not shown in Fig. 5), usesIt is embedded in after the test window in by the target window, by associating between the target window and the test windowRelation is added in setting window information set, and the embedded window selection row of interface generation are integrated into according to the setting window informationTable.
Some embodiments of the invention, described device also includes embedded switch unit (not shown in Fig. 5), for rootOperation 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 methodEmbodiment 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 surveyedThe 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 treatmentDevice 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 volatibilityOr 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 inventionIt is not limited in this respect.
Processor 610 can call the instruction control associative operation stored in memory 620.According to an embodiment, memory620 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 610Instruction, 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 andMethod 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 watercoloursDye.
Some embodiments of the invention, response user's operation selected target window includes:Obtain when user operatesThe 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 meshThe 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 toThe memory of order, above-mentioned instruction can be by the computing device of device completing the above method.For example, non-transitory computer-readableStorage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When depositingInstruction in storage media by terminal computing device when so that terminal is able to carry out following methods:Create and record frame;Using instituteState recording frame from the window of current interface selected target region as target window;By the target window Embedded test windowMouthful;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 drawingNot 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 usedUniquely 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 intoOne 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 instituteThe embodiment opened, on the contrary, it is intended to cover comprising various modifications in the spirit and scope of the appended claims and waitEffect arrangement.

Claims (16)

CN201710108812.1A2017-02-272017-02-27Record method, device and the electronic equipment of test scriptPendingCN106897225A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710108812.1ACN106897225A (en)2017-02-272017-02-27Record method, device and the electronic equipment of test script

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710108812.1ACN106897225A (en)2017-02-272017-02-27Record method, device and the electronic equipment of test script

Publications (1)

Publication NumberPublication Date
CN106897225Atrue CN106897225A (en)2017-06-27

Family

ID=59185005

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710108812.1APendingCN106897225A (en)2017-02-272017-02-27Record method, device and the electronic equipment of test script

Country Status (1)

CountryLink
CN (1)CN106897225A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109710526A (en)*2018-12-242019-05-03北京云测信息技术有限公司 A system and method for recording and playback of automated test scripts based on cloud services
CN109871172A (en)*2019-01-232019-06-11广州杰赛科技股份有限公司Mouse click method, device and readable storage medium storing program for executing in a kind of automatic test
CN113259755A (en)*2021-06-152021-08-13北京新唐思创教育科技有限公司Screen recording method, device, equipment and medium
CN114978360A (en)*2022-05-102022-08-30紫光计算机科技有限公司Automatic testing method and device for communication equipment, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20150046909A1 (en)*2013-08-122015-02-12International Business Machines CorporationSystem, Method, and Apparatus for Automatic Recording and Replaying of Application Executions
CN104572428A (en)*2013-10-162015-04-29陆璐Complicated control testing method based on windows operating system
CN105183599A (en)*2015-09-082015-12-23上海斐讯数据通信技术有限公司Script recording system and method
CN105740153A (en)*2016-02-292016-07-06网易(杭州)网络有限公司Cloud testing method and device
CN106293325A (en)*2016-07-262017-01-04网易(杭州)网络有限公司The method and apparatus of automatic seeking window

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20150046909A1 (en)*2013-08-122015-02-12International Business Machines CorporationSystem, Method, and Apparatus for Automatic Recording and Replaying of Application Executions
CN104572428A (en)*2013-10-162015-04-29陆璐Complicated control testing method based on windows operating system
CN105183599A (en)*2015-09-082015-12-23上海斐讯数据通信技术有限公司Script recording system and method
CN105740153A (en)*2016-02-292016-07-06网易(杭州)网络有限公司Cloud testing method and device
CN106293325A (en)*2016-07-262017-01-04网易(杭州)网络有限公司The method and apparatus of automatic seeking window

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109710526A (en)*2018-12-242019-05-03北京云测信息技术有限公司 A system and method for recording and playback of automated test scripts based on cloud services
CN109871172A (en)*2019-01-232019-06-11广州杰赛科技股份有限公司Mouse click method, device and readable storage medium storing program for executing in a kind of automatic test
CN113259755A (en)*2021-06-152021-08-13北京新唐思创教育科技有限公司Screen recording method, device, equipment and medium
CN113259755B (en)*2021-06-152021-10-12北京新唐思创教育科技有限公司 A screen recording method, device, equipment and medium
CN114978360A (en)*2022-05-102022-08-30紫光计算机科技有限公司Automatic testing method and device for communication equipment, electronic equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN106897225A (en)Record method, device and the electronic equipment of test script
JP3419050B2 (en) Input device
CN112134785B (en)Information processing method, client and system in network security level protection
CN109219796A (en)Digital touch on real-time video
CN103197911A (en)Method, system and device for providing speech input
DE202015009347U1 (en) User interfaces for messages for capturing and transferring media and location content
US20060053374A1 (en)Localization of activity with respect to digital data
JP2015084211A (en)Information processing device, information processing system, and program
US20170242832A1 (en)Character editing method and device for screen display device
CN112433650B (en)Project management method, device, equipment and storage medium
WO2021189706A1 (en)Writing interaction method, smart interactive display device and writing interaction system
US7007241B2 (en)Display device with a focus buoy facility
CN109145809A (en)A kind of note spectrum processing method and device and computer readable storage medium
CN108108079B (en) Icon display processing method and mobile terminal
US10122978B2 (en)Harmonizing a projected user interface
CN106933450A (en)A kind of control method and electronic equipment
WO2017140242A1 (en)Information processing method and client
CN105912185A (en)Method and device for unloading application program, and terminal device
CN109698853A (en)Long-range control method, device, equipment, system and computer readable storage medium
CN105872201A (en)Method for remotely controlling document display through intelligent terminal, intelligent terminal and computer equipment
CN116702721A (en)Method and device for adding reading effect to OFD file
US10607309B2 (en)Importing of information in a computing system
CN104811639B (en)Information processing method and electronic equipment
US9013507B2 (en)Previewing a graphic in an environment
US20170168686A1 (en)Method and electronic device for processing list item operation

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20170627

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp