CN107491385A - The method and device of screen is recorded in a kind of software test procedure - Google Patents

The method and device of screen is recorded in a kind of software test procedure Download PDF

Info

Publication number
CN107491385A
CN107491385A CN201610420682.0A CN201610420682A CN107491385A CN 107491385 A CN107491385 A CN 107491385A CN 201610420682 A CN201610420682 A CN 201610420682A CN 107491385 A CN107491385 A CN 107491385A
Authority
CN
China
Prior art keywords
key frame
software
record
tested software
unit
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.)
Granted
Application number
CN201610420682.0A
Other languages
Chinese (zh)
Other versions
CN107491385B (en
Inventor
张何
李洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610420682.0A priority Critical patent/CN107491385B/en
Publication of CN107491385A publication Critical patent/CN107491385A/en
Application granted granted Critical
Publication of CN107491385B publication Critical patent/CN107491385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method that screen is recorded in software test procedure, including:With independent process, pass through tested software described in the portal monitoring of tested software;The key frame being selected in the tested software, and label information corresponding with the key frame are obtained, the selected key frame is to test out frame of problems;By the selected key frame, and label information corresponding with key frame synthesis record screen picture.The method that screen is recorded in software test procedure provided in an embodiment of the present invention.Tested software can be monitored by the plug-in unit of independent process, obtain the record screen picture of key frame of problems, the record screen picture that this scheme obtains is simple to operate, and the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more accurate.

Description

The method and device of screen is recorded in a kind of software test procedure
Technical field
The present invention relates to software testing technology field, and in particular to a kind of method that screen is recorded in software test procedure And device.
Background technology
The various applications (APP) developed by developer and other non-software programs using class, Use of reaching the standard grade is required for being tested before.
Because tester and developer are not usually a people, so tester is after test is gone wrong, Need problem feeding back to developer, be adjusted by developer and changed.
Current tester typically uses " program error (bug) to the mode of developer's feedback problem The mode of single word description "+" the operation screen for recording reproduction bug ".Current screen of recording can have two Kind of mode, a kind of is the camera record screen of terminal, another then be that terminal record screen software record is shielded.
The camera record screen of terminal is generally cumbersome and records quality generally existing " reflective " and " unintelligible " The problems such as.The extra installation record screen software of terminal record screen software record screen needs, is operated also cumbersome.
Disadvantages mentioned above one is made troubles to tester, and two understand bug to be likely to result in developer Where not specific and inconvenient enough orientation problem.
The content of the invention
To solve in the prior art, software test record screen is cumbersome, and the problem of position inaccurate, this Inventive embodiments provide a kind of method that screen is recorded in software test procedure.It can be supervised by the plug-in unit of independent process Tested software is surveyed, obtains the record screen picture of key frame of problems, the record screen picture that this scheme obtains It is simple to operate, and the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more Accurately.The embodiment of the present invention additionally provides corresponding device.
First aspect present invention provides a kind of method that screen is recorded in software test procedure, including:
With independent process, pass through tested software described in the portal monitoring of tested software;
Obtain the key frame being selected in the tested software, and mark letter corresponding with the key frame Breath, the selected key frame are to test out frame of problems;
By the selected key frame, and label information corresponding with key frame synthesis record screen figure Piece.
Second aspect of the present invention provides the device that screen is recorded in a kind of software test procedure, including:
Monitoring unit, for independent process, passing through tested software described in the portal monitoring of tested software;
Acquiring unit, the key frame being selected in the tested software for obtaining monitoring unit monitoring, And label information corresponding with the key frame, the selected key frame are of problems to test out Frame;
Synthesis unit, for the selected key frame for obtaining the acquiring unit, and with the key Label information synthesis record screen picture corresponding to frame.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, the present invention is real Apply the method and device that screen is provided in the software test procedure of example offer.It can be monitored by the plug-in unit of independent process Tested software, the record screen picture of key frame of problems is obtained, the record screen picture behaviour that this scheme obtains Make the quality height for recording screen picture that is simple, and obtaining, wherein the positioning of key frame of problems is also more accurate Really.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to embodiment The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only the present invention Some embodiments, for those skilled in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is the embodiment signal for a kind of method for recording screen in the embodiment of the present invention in software test procedure Figure;
Fig. 2 is the exemplary plot in Scene of the embodiment of the present invention;
Fig. 3 is another exemplary plot in Scene of the embodiment of the present invention;
Fig. 4 is another exemplary plot in Scene of the embodiment of the present invention;
Fig. 5 is another exemplary plot in Scene of the embodiment of the present invention;
Fig. 6 is another exemplary plot in Scene of the embodiment of the present invention;
Fig. 7 is a kind of embodiment signal for the device for recording screen in the embodiment of the present invention in software test procedure Figure;
Fig. 8 is a kind of another embodiment signal for the device for recording screen in the embodiment of the present invention in software test procedure Figure;
Fig. 9 is a kind of another embodiment signal for the device for recording screen in the embodiment of the present invention in software test procedure Figure;
Figure 10 is an embodiment schematic diagram of test equipment in the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method that screen is recorded in software test procedure.Independent process can be passed through Plug-in unit monitors tested software, obtains the record screen picture of key frame of problems, the record that this scheme obtains Screen picture is simple to operate, and the quality of obtained record screen picture is high, wherein key frame of problems is determined Position is also more accurate.The embodiment of the present invention additionally provides corresponding device.It is described in detail individually below.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear Chu, it is fully described by, it is clear that described embodiment is only part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those skilled in the art are not making creative labor The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
For the ease of understanding the content in the embodiment of the present invention, below for involved by the embodiment of the present invention Noun does lower simple introduction.
Developer:Refer to being responsible for the staff of software development and application and development.
Tester:After referring to that developer develops new software or new opplication, being responsible for test, these are new The staff of software or new opplication.
Tested software:Refer to that developer develops, it is necessary to which that is tested at tester is soft Part.
The entrance of tested software:Refer to that developer in design software, is related in tested software An entrance, in embodiments of the present invention, the entrance be used for for record screen monitor plug-in unit one besel is provided Mouthful.
Record screen monitoring plug-in unit:It is an independent process, for being carried out to the tested software currently tested Monitoring, after erroneous frame is got, record screen operation is carried out in time.
Selected key frame:Refer to by tester find, and be tester think exist ask The frame of topic.
Abnormal log:The daily record recorded when referring to occurring abnormal in test process.
Above is the introduction to the related names involved by the embodiment of the present invention, illustrates this below in conjunction with the accompanying drawings The embodiment of the method for screen is recorded in inventive embodiments in software test procedure.
Refering to Fig. 1, an embodiment of the method for screen is recorded in the software test procedure that the embodiment of the present invention is provided Including:
101st, with independent process, tested software described in the portal monitoring of tested software is passed through.
Record screen monitoring plug-in unit is with independent process, by the portal monitoring of the tested software tested software, this Even if what failure, or tested software collapse occurs in sample tested software, the record screen is not interfered with yet Plug-in unit is monitored, can thus accomplish tested software there occurs any problem, record screen monitoring plug-in unit can Monitor, improve the accuracy of monitoring.
102nd, the key frame being selected in the tested software is obtained, and it is corresponding with the key frame Label information, the selected key frame are to test out frame of problems.
Software test is to run the tested software by tester, it is then determined that problem present in it, this , can be in pass of problems after tester has found problem present in tested software in inventive embodiments Marked on key frame, record screen monitoring plug-in unit can monitor the key frame that tester chooses, and tester The mark that member is done on key frame.
Fig. 2 and Fig. 3 is respectively the schematic diagram of a scenario for recording screen in the embodiment of the present invention in software test procedure.
As shown in Fig. 2 tester surveys before test equipment to the tested software for developing staff development Examination, after frame of problems is found, as shown in figure 3, developer can be to the key frame of problems It is marked, as shown in figure 3, tester on the test interface of the tested software, has found to deposit at three Represent correct with " X " in the key frame frame of mistake, Fig. 3, represent mistake with " M ", have three in Fig. 3 Locate " MMM ", then this at three " MMM " be the key frame for existing mistake.
After tester has found the key frame of this " MMM " at three, this key frame at three is chosen, it is then right This at three key frame be marked, tester is marked with the mode of font-weight in figure 3, real On border, the mode of marking can have many kinds, for example, Fig. 4 and Fig. 5 are respectively other two kinds of markings Schematic diagram.
As shown in figure 4, tester can outline selected key frame with oval marks.As shown in figure 5, On the interface basis shown in Fig. 4, the further side mark for being also possible that tester at interface The sequence number of selected key frame, certainly, it further can also be that tester is gone out respectively with word description The substantially problem of the selected key frame in place.
Certainly, the mode to be made marks to key frame can have many kinds, be not limited in the embodiment of the present invention listed In act this it is several, it is necessary to explanation, can to the mark of the marked effect of key frame as long as can start The mark mode being not understood as in the embodiment of the present invention.
103rd, by the selected key frame, and label information corresponding with key frame synthesis record Shield picture.
In embodiments of the present invention, the interface can shown in Fig. 3 to Fig. 5 is the record screen figure after synthesis to the step Piece, from these record screen pictures then developer does it is seen that where problem for various problems Targetedly adjust and change.
Certainly, record screen picture is not limited to Fig. 3 to Fig. 5 this is several, can also be other forms, for example, record Screen picture only can also include key frame of problems, not comprising other tested softwares having no problem Information, record screen picture as shown in Figure 6 include the sequence number of key frame of problems, problem description and the pass The positional information of key frame.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, the present invention is real Apply the method that screen is provided in the software test procedure of example offer.It can be monitored by the plug-in unit of independent process tested Software, the record screen picture of key frame of problems being obtained, the record screen picture that this scheme obtains is simple to operate, And the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more accurate.
Alternatively, on the basis of above-described embodiment, recorded in software test procedure provided in an embodiment of the present invention In another embodiment of the method for screen, methods described can also include:
In test process, the abnormal day when tested software occurs abnormal in test process is captured Will;
It is described to shield the selected key frame, and label information corresponding with key frame synthesis record After picture, methods described can also include:
Export the record screen picture and the abnormal log.
In the embodiment of the present invention, tested software is likely to occur exception or collapsed at any time in test process Burst, collapse falls within one kind in exception.Abnormal log when therefore occurring abnormal will record the exception, Therefore the abnormal log has critically important value to analyzing the tested software, so, screen picture is recorded in output When, output abnormality daily record is gone back, is advantageous to improve the accuracy of tested software positioning problems.
Alternatively, on the basis of above-described embodiment, recorded in software test procedure provided in an embodiment of the present invention In another embodiment of the method for screen, selected key frame in the acquisition tested software, and Before label information corresponding with the key frame, methods described can also include:
There is mark when monitoring there is key frame to be selected in the tested software, and for the key frame Input, it is determined that the key frame is selected key frame.
In the embodiment of the present invention, from the perspective of tester, tester has found key of problems , will be to the key frame by the way of shown in Fig. 3 to Fig. 5 after frame, or other can be carried out with mark mode Mark, the record screen for monitoring the tested software are chosen in tester for monitoring plug-in unit and problem be present Key frame when, the record screen monitoring plug-in unit will monitor, when tester does on the key frame that this is chosen Mark has been gone up, it is exactly the key frame for the presence mistake that tester thinks to illustrate the frame, if not marking, Then record screen monitoring plug-in unit not can determine whether the frame for selected key frame.
Alternatively, on the basis of above-described embodiment, recorded in software test procedure provided in an embodiment of the present invention It is described in test process in another embodiment of the method for screen, capture the tested software and testing Abnormal log when occurring abnormal in journey, it can include:
In test process, it is real to obtain the daily record process object that operating system carries for interface function when passing through operation Example;
By calling daily record process described in the log acquisition of the daily record process object example when occurring abnormal The abnormal log of record.
In the embodiment of the present invention, the abnormal log for capturing tested software is in test process, passes through daily record Process object example captures.Caught the exception daily record by daily record process object example, exception can be improved The degree of accuracy of daily record capture.
Alternatively, on the basis of above-described embodiment, recorded in software test procedure provided in an embodiment of the present invention In another embodiment of the method for screen, methods described can also include:
When monitoring the tested software collapse, daily record when capture is collapsed.
In the embodiment of the present invention, because analysis of daily record when tested software is collapsed to tested software is very heavy Will, so during the tested software is monitored, if finding, the tested software is collapsed, just capture in time Daily record during collapse, be advantageous to improve the perfect degree of accuracy of tested software.
More than, after terminating to the test process of tested software, tester's can exports to developer The bug of record screen picture, abnormal log and manual record is mono-.
Record screen picture can be the picture of gif forms, and the journal file of abnormal log can be txt forms.
Above is the description of the method to recording screen in software test procedure, is described below soft in the embodiment of the present invention The embodiment of the device 20 of screen is recorded in part test process.
Fig. 7 is an embodiment schematic diagram of the device 20 for recording screen in the embodiment of the present invention in software test procedure.
Refering to Fig. 7, an embodiment of the device 20 of screen is recorded in software test procedure provided in an embodiment of the present invention Including:
Monitoring unit 201, for independent process, by being tested described in the portal monitoring of tested software Software;
Acquiring unit 202, the pass being selected in the tested software monitored for obtaining the monitoring unit 201 Key frame, and label information corresponding with the key frame, the selected key frame are to test out presence The frame of problem;
Synthesis unit 203, for the selected key frame for obtaining the acquiring unit 202, and with institute State label information synthesis record screen picture corresponding to key frame.
In the embodiment of the present invention, monitoring unit 201 passes through the portal monitoring of tested software with independent process The tested software;Acquiring unit 202 is obtained in the tested software that the monitoring unit 201 monitors and is chosen In key frame, and label information corresponding with the key frame, the selected key frame is test Go out frame of problems;The selected key frame that synthesis unit 203 obtains the acquiring unit 202, with And label information synthesis record screen picture corresponding with the key frame.With in the prior art, software test record screen It is cumbersome, and position inaccurate is compared, record screen in software test procedure provided in an embodiment of the present invention Device.Tested software can be monitored by the plug-in unit of independent process, obtain the record of key frame of problems Shielding picture, the record screen picture that this scheme obtains is simple to operate, and the quality of obtained record screen picture is high, The positioning of key frame wherein of problems is also more accurate.
Alternatively, on the basis of the embodiment of device 20 that screen is recorded in above-mentioned software test procedure, refering to figure 8, it is described in another embodiment for the device 20 for recording screen in software test procedure provided in an embodiment of the present invention Device also includes capturing unit 204 and output unit 205,
The capturing unit 204, in test process, capturing the described of the monitoring of monitoring unit 201 Abnormal log when tested software occurs abnormal in test process;
The output unit 205, for after the synthesis unit 203 synthesizes the record screen picture, exporting institute State the abnormal log that record screen picture and the capturing unit 204 capture.
In the embodiment of the present invention, tested software is likely to occur exception or collapsed at any time in test process Burst, collapse falls within one kind in exception.Abnormal log when therefore occurring abnormal will record the exception, Therefore the abnormal log has critically important value to analyzing the tested software, so, screen picture is recorded in output When, output abnormality daily record is gone back, is advantageous to improve the accuracy of tested software positioning problems.
Alternatively, on the basis of the embodiment of device 20 that screen is recorded in above-mentioned software test procedure, refering to figure 9, it is described in another embodiment for the device 20 for recording screen in software test procedure provided in an embodiment of the present invention Device also includes determining unit 206,
The determining unit 206, for when the monitoring unit 201 monitor it is relevant in the tested software Key frame is selected, and has mark to input for the key frame, it is determined that the key frame is selected Key frame.
In the embodiment of the present invention, from the perspective of tester, tester has found key of problems , will be to the key frame by the way of shown in Fig. 3 to Fig. 5 after frame, or other can be carried out with mark mode Mark, the record screen for monitoring the tested software are chosen in tester for monitoring plug-in unit and problem be present Key frame when, the record screen monitoring plug-in unit will monitor, when tester does on the key frame that this is chosen Mark has been gone up, it is exactly the key frame for the presence mistake that tester thinks to illustrate the frame, if not marking, Then record screen monitoring plug-in unit not can determine whether the frame for selected key frame.
Alternatively, on the basis of embodiment corresponding to Fig. 8, software test provided in an embodiment of the present invention In another embodiment of the device 20 of Cheng Zhonglu screens,
The capturing unit 204 is used for:
In test process, it is real to obtain the daily record process object that operating system carries for interface function when passing through operation Example;
By calling daily record process described in the log acquisition of the daily record process object example when occurring abnormal The abnormal log of record.
In the embodiment of the present invention, the abnormal log for capturing tested software is in test process, passes through daily record Process object example captures.Caught the exception daily record by daily record process object example, exception can be improved The degree of accuracy of daily record capture.
Alternatively, on the basis of embodiment corresponding to Fig. 8, software test provided in an embodiment of the present invention In another embodiment of the device 20 of Cheng Zhonglu screens,
The capturing unit 204, it is additionally operable to when the monitoring unit 201 monitors the tested software collapse When, daily record when capture is collapsed.
In the embodiment of the present invention, because analysis of daily record when tested software is collapsed to tested software is very heavy Will, so during the tested software is monitored, if finding, the tested software is collapsed, just capture in time Daily record during collapse, be advantageous to improve the perfect degree of accuracy of tested software.
The embodiment of the device 20 of screen is recorded in software test procedure described above can refer to Fig. 1 to Fig. 6 Partial description is understood that it is no longer repeated at this place.
It is that the device that screen is recorded in software test procedure can be realized by test equipment above, with reference to Figure 10 Illustrate the process that each function of the above-mentioned device for search results ranking is realized by test equipment.
Figure 10 is the structural representation of test equipment 30 provided in an embodiment of the present invention.The test equipment 30 Including processor 310, memory 350 and input-output apparatus 330, input-output apparatus 330 can include The equipment such as keyboard, mouse and display.Memory 350 can include read-only storage and random access memory Device, and provide operational order and data to processor 310.The a part of of memory 350 can also be including non-easy The property lost random access memory (NVRAM).
In some embodiments, memory 350 stores following element, can perform module or data Structure, either their subset or their superset:
In embodiments of the present invention, by calling the operational order of the storage of memory 350, (operational order can Storage is in an operating system),
With independent process, pass through tested software described in the portal monitoring of tested software;
Obtain the key frame being selected in the tested software, and mark letter corresponding with the key frame Breath, the selected key frame are to test out frame of problems;
By the selected key frame, and label information corresponding with key frame synthesis record screen figure Piece.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, the present invention is real Apply the method that screen is provided in the software test procedure of example offer.It can be monitored by the plug-in unit of independent process tested Software, the record screen picture of key frame of problems being obtained, the record screen picture that this scheme obtains is simple to operate, And the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more accurate.
Processor 310 controls the operation of test equipment 30, and processor 310 can also be referred to as CPU (Central Processing Unit, CPU).Memory 350 can include read-only storage and arbitrary access Memory, and provide instruction and data to processor 310.The a part of of memory 350 can also be including non-easy The property lost random access memory (NVRAM).Each component of test equipment 30 passes through in specific application Bus system 320 is coupled, and wherein bus system 320 can also include in addition to including data/address bus Power bus, controlling bus and status signal bus in addition etc..But for the sake of clear explanation, will be each in figure Kind bus is all designated as bus system 320.
The method that the embodiments of the present invention disclose can apply in processor 310, or by processor 310 Realize.Processor 310 is probably a kind of IC chip, has the disposal ability of signal.Realizing Cheng Zhong, each step of the above method can pass through the integrated logic circuit or soft of the hardware in processor 310 The instruction of part form is completed.Above-mentioned processor 310 can be general processor, digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other can compile Journey logical device, discrete gate or transistor logic, discrete hardware components.It can realize or perform Disclosed each method, step and logic diagram in the embodiment of the present invention.General processor can be microprocessor Device or the processor can also be any conventional processors etc..Side with reference to disclosed in the embodiment of the present invention The step of method, can be embodied directly in hardware decoding processor and perform completion, or with hard in decoding processor Part and software module combination perform completion.Software module can be located at random access memory, flash memory, read-only storage This area such as device, programmable read only memory or electrically erasable programmable memory, register is ripe to deposit In storage media.The storage medium is located at memory 350, and processor 310 reads the information in memory 350, The step of above method being completed with reference to its hardware.
Alternatively, processor 310 is additionally operable to:
In test process, the abnormal day when tested software occurs abnormal in test process is captured Will;
Input-output apparatus 330 exports the record screen picture and the abnormal log.
In the embodiment of the present invention, tested software is likely to occur exception or collapsed at any time in test process Burst, collapse falls within one kind in exception.Abnormal log when therefore occurring abnormal will record the exception, Therefore the abnormal log has critically important value to analyzing the tested software, so, screen picture is recorded in output When, output abnormality daily record is gone back, is advantageous to improve the accuracy of tested software positioning problems.
Alternatively, processor 310 is additionally operable to:When monitoring there is key frame to be selected in the tested software, And there is mark to input for the key frame, it is determined that the key frame is selected key frame.
In the embodiment of the present invention, from the perspective of tester, tester has found key of problems , will be to the key frame by the way of shown in Fig. 3 to Fig. 5 after frame, or other can be carried out with mark mode Mark, the record screen for monitoring the tested software are chosen in tester for monitoring plug-in unit and problem be present Key frame when, the record screen monitoring plug-in unit will monitor, when tester does on the key frame that this is chosen Mark has been gone up, it is exactly the key frame for the presence mistake that tester thinks to illustrate the frame, if not marking, Then record screen monitoring plug-in unit not can determine whether the frame for selected key frame.
Alternatively, processor 310 is used for:
In test process, it is real to obtain the daily record process object that operating system carries for interface function when passing through operation Example;
By calling daily record process described in the log acquisition of the daily record process object example when occurring abnormal The abnormal log of record.
In the embodiment of the present invention, the abnormal log for capturing tested software is in test process, passes through daily record Process object example captures.Caught the exception daily record by daily record process object example, exception can be improved The degree of accuracy of daily record capture.
Alternatively, processor 310 is additionally operable to:When monitoring the tested software collapse, capture collapse When daily record.
In the embodiment of the present invention, because analysis of daily record when tested software is collapsed to tested software is very heavy Will, so during the tested software is monitored, if finding, the tested software is collapsed, just capture in time Daily record during collapse, be advantageous to improve the perfect degree of accuracy of tested software.
The description that test equipment 30 above can refer to Fig. 1 to Fig. 6 parts be understood that this place is not done excessively Repeat
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment Suddenly it is that by program the hardware of correlation can be instructed to complete, it is computer-readable that the program can be stored in one In storage medium, storage medium can include:ROM, RAM, disk or CD etc..
The method and device that screen is recorded in the software test procedure provided above the embodiment of the present invention are carried out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, The explanation of above example is only intended to help the method and its core concept for understanding the present invention;Meanwhile for Those of ordinary skill in the art, the thought of the foundation present invention, in specific embodiments and applications It will change, in summary, this specification content should not be construed as limiting the invention.

Claims (10)

1. the method for screen is recorded in a kind of software test procedure, it is characterised in that including:
With independent process, pass through tested software described in the portal monitoring of tested software;
Obtain the key frame being selected in the tested software, and mark letter corresponding with the key frame Breath, the selected key frame are to test out frame of problems;
By the selected key frame, and label information corresponding with key frame synthesis record screen figure Piece.
2. according to the method for claim 1, it is characterised in that methods described also includes:
In test process, the abnormal day when tested software occurs abnormal in test process is captured Will;
It is described to shield the selected key frame, and label information corresponding with key frame synthesis record After picture, methods described also includes:
Export the record screen picture and the abnormal log.
3. method according to claim 1 or 2, it is characterised in that the acquisition is described tested soft The key frame being selected in part, and before label information corresponding with the key frame, methods described is also wrapped Include:
There is mark when monitoring there is key frame to be selected in the tested software, and for the key frame Input, it is determined that the key frame is selected key frame.
4. according to the method for claim 2, it is characterised in that it is described in test process, capture institute Abnormal log when tested software occurs abnormal in test process is stated, including:
In test process, it is real to obtain the daily record process object that operating system carries for interface function when passing through operation Example;
By calling daily record process described in the log acquisition of the daily record process object example when occurring abnormal The abnormal log of record.
5. according to the method for claim 2, it is characterised in that methods described also includes:
When monitoring the tested software collapse, daily record when capture is collapsed.
6. the device of screen is recorded in a kind of software test procedure, it is characterised in that including:
Monitoring unit, for independent process, passing through tested software described in the portal monitoring of tested software;
Acquiring unit, the key frame being selected in the tested software for obtaining monitoring unit monitoring, And label information corresponding with the key frame, the selected key frame are of problems to test out Frame;
Synthesis unit, for the selected key frame for obtaining the acquiring unit, and with the key Label information synthesis record screen picture corresponding to frame.
7. device according to claim 6, it is characterised in that described device also include capturing unit and Output unit,
The capturing unit, in test process, capturing the described tested of the monitoring unit monitoring Abnormal log when software occurs abnormal in test process;
The output unit, for after the synthesis unit synthesis record screen picture, exporting the record screen Picture and the abnormal log of capturing unit capture.
8. the device according to claim 6 or 7, it is characterised in that described device also includes determining list Member,
The determining unit, for monitoring there is key frame quilt in the tested software when the monitoring unit Choose, and there is mark to input for the key frame, it is determined that the key frame is selected key frame.
9. device according to claim 7, it is characterised in that
The capturing unit is used for:
In test process, it is real to obtain the daily record process object that operating system carries for interface function when passing through operation Example;
By calling daily record process described in the log acquisition of the daily record process object example when occurring abnormal The abnormal log of record.
10. device according to claim 7, it is characterised in that
The capturing unit, it is additionally operable to, when the monitoring unit monitors the tested software collapse, catch Obtain daily record during collapse.
CN201610420682.0A 2016-06-13 2016-06-13 The method and device of screen is recorded in a kind of software test procedure Active CN107491385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610420682.0A CN107491385B (en) 2016-06-13 2016-06-13 The method and device of screen is recorded in a kind of software test procedure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610420682.0A CN107491385B (en) 2016-06-13 2016-06-13 The method and device of screen is recorded in a kind of software test procedure

Publications (2)

Publication Number Publication Date
CN107491385A true CN107491385A (en) 2017-12-19
CN107491385B CN107491385B (en) 2018-11-09

Family

ID=60642011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610420682.0A Active CN107491385B (en) 2016-06-13 2016-06-13 The method and device of screen is recorded in a kind of software test procedure

Country Status (1)

Country Link
CN (1) CN107491385B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509341A (en) * 2018-03-30 2018-09-07 北京金山安全软件有限公司 Input method software testing method and device and electronic equipment
CN109462695A (en) * 2018-11-16 2019-03-12 努比亚技术有限公司 Terminal record screen method, apparatus, mobile terminal and readable storage medium storing program for executing
CN112084117A (en) * 2020-09-27 2020-12-15 网易(杭州)网络有限公司 Test method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974061A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Play test method and system
US8893087B2 (en) * 2011-08-08 2014-11-18 Ca, Inc. Automating functionality test cases
CN105512025A (en) * 2014-12-31 2016-04-20 哈尔滨安天科技股份有限公司 Fuzz engine optimizing method and system based on simulation message
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8893087B2 (en) * 2011-08-08 2014-11-18 Ca, Inc. Automating functionality test cases
CN103974061A (en) * 2014-05-27 2014-08-06 合一网络技术(北京)有限公司 Play test method and system
CN105512025A (en) * 2014-12-31 2016-04-20 哈尔滨安天科技股份有限公司 Fuzz engine optimizing method and system based on simulation message
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509341A (en) * 2018-03-30 2018-09-07 北京金山安全软件有限公司 Input method software testing method and device and electronic equipment
CN109462695A (en) * 2018-11-16 2019-03-12 努比亚技术有限公司 Terminal record screen method, apparatus, mobile terminal and readable storage medium storing program for executing
CN109462695B (en) * 2018-11-16 2021-12-17 努比亚技术有限公司 Terminal screen recording method and device, mobile terminal and readable storage medium
CN112084117A (en) * 2020-09-27 2020-12-15 网易(杭州)网络有限公司 Test method and device
CN112084117B (en) * 2020-09-27 2023-08-08 网易(杭州)网络有限公司 Test method and device

Also Published As

Publication number Publication date
CN107491385B (en) 2018-11-09

Similar Documents

Publication Publication Date Title
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
US9317400B2 (en) Code coverage rate determination method and system
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
US8996928B2 (en) Devices for indicating a physical layer error
US20060279571A1 (en) Automated user interface testing
CN108549606A (en) interface test method and device
US20080028370A1 (en) Simultaneous viewing of multiple tool execution results
CN107491385B (en) The method and device of screen is recorded in a kind of software test procedure
KR100618319B1 (en) Error test method for mobile communication terminals
EP3251014A1 (en) Defect reporting in application testing
US20130036330A1 (en) Execution difference identification tool
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
CN108572895A (en) Automatically the stability test method of software and hardware configuration is checked under a kind of Linux
CN109685930A (en) Power components method for inspecting, device, computer equipment and storage medium
US8464103B2 (en) Generating a functional coverage model from a trace
CN107402883B (en) A kind of data test treating method and apparatus
CN107885648B (en) Method and device for generating test report
Karnane et al. Automating root-cause analysis to reduce time to find bugs by up to 50%
CN109413414B (en) silent photographing detection method based on android system
CN112181744A (en) Fault detection method, system, terminal and storage medium of converter interface
CN115129575A (en) Code coverage result generation method and device
WO2021036599A1 (en) Method and apparatus for testing set top box, set top box, and computer-readable storage medium
CN111128360B (en) Method, device and system for automatically checking medical equipment inspection parameters
CN116578438B (en) Automatic detection method and device suitable for aging transformation
CN111338872B (en) Automatic testing method and system for PCIE (peripheral component interface express) equipment parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant