CN107491385B - 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
CN107491385B
CN107491385B CN201610420682.0A CN201610420682A CN107491385B CN 107491385 B CN107491385 B CN 107491385B CN 201610420682 A CN201610420682 A CN 201610420682A CN 107491385 B CN107491385 B CN 107491385B
Authority
CN
China
Prior art keywords
key frame
software
unit
tested software
test
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.)
Active
Application number
CN201610420682.0A
Other languages
Chinese (zh)
Other versions
CN107491385A (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 methods that screen is recorded in software test procedure, including:With independent process, tested software described in the portal monitoring by 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 easy to operate, and the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more acurrate.

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 fields, and in particular to the method and dress of screen are recorded in a kind of software test procedure It sets.
Background technology
The various applications (APP) developed by developer and other non-software programs using class are used reaching the standard grade It is required for being tested before.
Because tester and developer are not usually a people, thus tester after test is gone wrong, need by Problem feeds back to developer, is adjusted by developer and is changed.
Current tester typically uses that " program error (bug) list word is retouched to the mode of developer's feedback problem State "+the mode of the operation screen of bug " record reproduction ".Current screen of recording can be there are two types of mode, and one is the cameras of terminal Record screen, it is another then be terminal record screen software record shield.
The problems such as usually cumbersome and recording quality generally existing " reflective " and " unintelligible ", is shielded in the camera record of terminal.Eventually Record screen software record screen in end needs additional installation record screen software, operation also cumbersome.
Disadvantages mentioned above one is made troubles to tester, and two understand not enough tool to be likely to result in developer to bug Body and where inconvenient orientation problem.
Invention content
To solve in the prior art, software test record screen is cumbersome, and the problem of position inaccurate, and the present invention is implemented The method that screen is provided in a kind of software test procedure of example offer.Tested software can be monitored by the plug-in unit of independent process, obtained The record screen picture of key frame of problems, the record screen picture that this scheme obtains is easy to operate, and obtained record screen picture Quality it is high, wherein the positioning of key frame of problems is also more acurrate.The embodiment of the present invention also provides corresponding devices.
First aspect present invention provides a kind of method that screen is recorded in software test procedure, including:
With independent process, tested software described in the portal monitoring by tested software;
Obtain the key frame being selected in the tested software, and label information corresponding with the key frame, institute It is to test out frame of problems to state selected key frame;
By the selected key frame, and label information corresponding with key frame synthesis record screen picture.
Second aspect of the present invention provides the device that screen is recorded in a kind of software test procedure, including:
Monitoring unit is used for independent process, tested software described in the portal monitoring by tested software;
Acquiring unit, for obtaining the key frame being selected in the tested software that the monitoring unit monitors, Yi Jiyu The corresponding label information of the key frame, the selected key frame are to test out frame of problems;
Synthesis unit, the selected key frame for obtaining the acquiring unit, and it is corresponding with the key frame Label information synthesis record screen picture.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, and the embodiment of the present invention provides Software test procedure in record the method and device of screen.Tested software can be monitored by the plug-in unit of independent process, be deposited In the record screen picture of the key frame of problem, the record screen picture that this scheme obtains is easy to operate, and obtained record screen picture Quality is high, wherein the positioning of key frame of problems is also more acurrate.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is an embodiment schematic diagram of a kind of method for recording screen in the embodiment of the present invention in software test procedure;
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 an a kind of embodiment schematic diagram of the device for recording screen in the embodiment of the present invention in software test procedure;
Fig. 8 is a kind of another embodiment schematic diagram for the device for recording screen in the embodiment of the present invention in software test procedure;
Fig. 9 is a kind of another embodiment schematic diagram for the device for recording screen in the embodiment of the present invention in software test procedure;
Figure 10 is an embodiment schematic diagram of test equipment in the embodiment of the present invention.
Specific implementation mode
The embodiment of the present invention provides 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 to be surveyed, the record screen picture of key frame of problems is obtained, the record screen picture that this scheme obtains is easy to operate, and And the quality of obtained record screen picture is high, wherein the positioning of key frame of problems is also more acurrate.The embodiment of the present invention also carries Corresponding device is supplied.It is described in detail separately below.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Content in embodiment to facilitate the understanding of the present invention is done below for the noun involved by the embodiment of the present invention Lower simple introduction.
Developer:Refer to the staff for being responsible for software development and application and development.
Tester:After referring to that developer develops new software or new opplication, be responsible for test these new softwares or The staff of person's new opplication.
Tested software:It refers to what developer developed, needs the software tested at tester.
The entrance of tested software:Developer is referred in design software, one be related in tested software Entrance, in embodiments of the present invention, which, which is used to shield monitoring plug-in unit for record, provides a monitor window.
Record screen monitoring plug-in unit:It is an independent process, for being monitored to the tested software currently tested, when After getting erroneous frame, record screen operation is carried out in time.
Selected key frame:It refers to being found by tester, and is that tester thinks frame of problems.
Abnormal log:The daily record recorded when referring to being abnormal during the test.
It is the introduction to the related names involved by the embodiment of the present invention above, illustrates below in conjunction with the accompanying drawings of the invention real Apply the embodiment for the method for recording screen in example in software test procedure.
Refering to fig. 1, the embodiment that the method for screen is recorded in the software test procedure that the embodiment of the present invention is provided includes:
101, with independent process, tested software described in the portal monitoring by tested software.
Record screen monitoring plug-in unit is with independent process, by the portal monitoring of the tested software tested software, accordingly even when There is what failure or tested software collapse in tested software, will not influence record screen monitoring plug-in unit, thus may be used To accomplish that any problem has occurred in tested software, record screen monitoring plug-in unit can monitor, improve the accuracy of monitoring.
102, the key frame being selected in the tested software, and label corresponding with key frame letter are obtained Breath, the selected key frame are to test out frame of problems.
Software test is to run the tested software by tester, the problem of then determining its, and the present invention is real Apply in example, tester find tested software the problem of after, can be marked on key frame of problems, record Screen monitoring plug-in unit can monitor the key frame that tester chooses and the label that tester 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 tests the tested software for developing staff development before test equipment, work as hair After existing frame of problems, as shown in figure 3, the key frame of problems can be marked in developer, as shown in figure 3, Tester has found the key frame frame that there is mistake at three, is indicated with " X " in Fig. 3 on the test interface of the tested software Correctly, indicate mistake with " M ", have at three " MMM " in Fig. 3, then this at three " MMM " be in the presence of wrong key frame.
After tester has found the key frame of this " MMM " at three, this key frame at three is chosen, then key frame at three to this It is marked, the mode of tester's font-weight is marked in figure 3, in fact, the mode labelled can have Many kinds, for example, Fig. 4 and Fig. 5 are respectively the schematic diagram of other two kinds of markings.
As shown in figure 4, tester can outline selected key frame with oval marks.As shown in figure 5, in Fig. 4 institutes On the interface basis shown, the sequence for the key frame that the further side mark for being also possible that tester at interface is selected Number, certainly, it further can also be that tester goes out everywhere the substantially problem for the key frame being selected with verbal description.
Certainly, the mode to make marks to key frame can there are many kinds of, be not limited in the embodiment of the present invention it is cited in These types, it should be noted that the label of the marked effect of key frame can be understood as to be of the invention real as long as can start Apply the mark mode in example.
103, by the selected key frame, and label information corresponding with key frame synthesis record screen picture.
In embodiments of the present invention, Fig. 3 to interface shown in fig. 5 can be the record screen picture after synthesis to the step, from In these record screen pictures then developer does for various problems it is seen where problem and targetedly adjusts and repair Change.
Certainly, record screen picture is not limited to Fig. 3 to Fig. 5 these typess, can also be other forms, for example, record screen picture is also It can include only key frame of problems, not include the information of other tested softwares that there is no problem, record as shown in FIG. 6 Screen picture includes the serial number of key frame of problems, problem describes and the location information of the key frame.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, and the embodiment of the present invention provides Software test procedure in record the method for screen.Tested software can be monitored by the plug-in unit of independent process, obtain that there are problems Key frame record screen picture, the record screen picture that this scheme obtains is easy to operate, and the quality of obtained record screen picture is high, The positioning of key frame wherein of problems is also more acurrate.
Optionally, on the basis of the above embodiments, the side of screen is recorded in software test procedure provided in an embodiment of the present invention In another embodiment of method, the method can also include:
During the test, the abnormal log when tested software is abnormal during the test is captured;
It is described by the selected key frame, and label information corresponding with key frame synthesis record screen picture it Afterwards, the method 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 abnormal or collapse, collapse at any time during the test Also belong to one kind in exception.Abnormal log when being therefore abnormal will record the exception, therefore the abnormal log is to dividing Analysing the tested software has critically important value, in this way, when screen picture is recorded in output, goes back output abnormality daily record, is conducive to improve The accuracy of tested software positioning problems.
Optionally, on the basis of the above embodiments, the side of screen is recorded in software test procedure provided in an embodiment of the present invention It is described to obtain the key frame being selected in the tested software and corresponding with the key frame in another embodiment of method Label information before, the method can also include:
When monitoring to have in the tested software key frame selected, and there is label to input for the key frame, Then determine the key frame that the key frame is selected.
In the embodiment of the present invention, from the perspective of tester, after tester has found key frame of problems, just Can to the key frame using Fig. 3 to mode shown in fig. 5 or other can be marked with mark mode, for monitoring the quilt For the record screen monitoring plug-in unit of test software, when tester chooses key frame of problems, which monitors plug-in unit just It can monitor, when tester has gone up label on the key frame chosen, illustrate that the frame is exactly depositing of thinking of tester In the key frame of mistake, if not marking, record screen monitoring plug-in unit not can determine whether the key frame that the frame is selected.
Optionally, on the basis of the above embodiments, the side of screen is recorded in software test procedure provided in an embodiment of the present invention In another embodiment of method, it is described during the test, capture when the tested software is abnormal during the test Abnormal log may include:
During the test, interface function obtains the included daily record process object example of operating system when passing through operation;
By calling daily record process described in the log acquisition of the daily record process object example to be recorded when being abnormal Abnormal log.
In the embodiment of the present invention, the abnormal log for capturing tested software is during the test, to pass through daily record process pair It is captured as example.It is caught the exception daily record by daily record process object example, the accuracy of abnormal log capture can be improved.
Optionally, on the basis of the above embodiments, the side of screen is recorded in software test procedure provided in an embodiment of the present invention In another embodiment of method, the method can also include:
When monitoring the tested software collapse, daily record when capture is collapsed.
In the embodiment of the present invention, because daily record when tested software is collapsed is extremely important to the analysis of tested software, institute With during monitoring the tested software, if finding, the tested software is collapsed, just daily record when capture collapse in time, favorably In the accuracy that raising tested software is perfect.
More than, to after the test process of tested software, tester can export record screen figure to developer The bug of piece, abnormal log and manual record is mono-.
Record screen picture can be the picture of gif formats, and the journal file of abnormal log can be txt formats.
It is the description of the method to recording screen in software test procedure above, software test in the embodiment of the present invention is described below The embodiment of the device 20 of screen is recorded in the 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, the embodiment that the device 20 of screen is recorded in software test procedure provided in an embodiment of the present invention includes:
Monitoring unit 201 is used for independent process, tested software described in the portal monitoring by tested software;
Acquiring unit 202, for obtaining the key frame being selected in the tested software that the monitoring unit 201 monitors, And label information corresponding with the key frame, the selected key frame are to test out frame of problems;
Synthesis unit 203, the selected key frame for obtaining the acquiring unit 202, and with the key The corresponding label information synthesis record screen picture of frame.
In the embodiment of the present invention, monitoring unit 201 is tested with independent process described in the portal monitoring by tested software Try software;Acquiring unit 202 obtains the key frame being selected in the tested software that the monitoring unit 201 monitors, Yi Jiyu The corresponding label information of the key frame, the selected key frame are to test out frame of problems;Synthesis unit 203 will The selected key frame that the acquiring unit 202 obtains, 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, provided in an embodiment of the present invention soft The device of screen is recorded in part test process.Tested software can be monitored by the plug-in unit of independent process, obtain pass of problems The record screen picture of key frame, the record screen picture that this scheme obtains is easy to operate, and the quality of obtained record screen picture is high, wherein The positioning of key frame of problems is also more acurrate.
Optionally, on the basis of the embodiment of device 20 of screen is recorded in above-mentioned software test procedure, refering to Fig. 8, this hair In another embodiment for the device 20 for recording screen in the software test procedure that bright embodiment provides, described device further includes capturing unit 204 and output unit 205,
The capturing unit 204, for during the test, capturing the described tested of the monitoring of the monitoring unit 201 Abnormal log when software is abnormal during the test;
The output unit 205, for after the synthesis unit 203 synthesizes the record screen picture, exporting the record screen The abnormal log that picture and the capturing unit 204 capture.
In the embodiment of the present invention, tested software is likely to occur abnormal or collapse, collapse at any time during the test Also belong to one kind in exception.Abnormal log when being therefore abnormal will record the exception, therefore the abnormal log is to dividing Analysing the tested software has critically important value, in this way, when screen picture is recorded in output, goes back output abnormality daily record, is conducive to improve The accuracy of tested software positioning problems.
Optionally, on the basis of the embodiment of device 20 of screen is recorded in above-mentioned software test procedure, refering to Fig. 9, this hair In another embodiment for the device 20 for recording screen in the software test procedure that bright embodiment provides, described device further includes determination unit 206,
The determination unit 206 monitors there is key frame quilt in the tested software for working as the monitoring unit 201 It chooses, and there is label to input for the key frame, it is determined that the key frame is the key frame being selected.
In the embodiment of the present invention, from the perspective of tester, after tester has found key frame of problems, just Can to the key frame using Fig. 3 to mode shown in fig. 5 or other can be marked with mark mode, for monitoring the quilt For the record screen monitoring plug-in unit of test software, when tester chooses key frame of problems, which monitors plug-in unit just It can monitor, when tester has gone up label on the key frame chosen, illustrate that the frame is exactly depositing of thinking of tester In the key frame of mistake, if not marking, record screen monitoring plug-in unit not can determine whether the key frame that the frame is selected.
Optionally, on the basis of Fig. 8 corresponding embodiments, screen is recorded in software test procedure provided in an embodiment of the present invention Device 20 another embodiment in,
The capturing unit 204 is used for:
During the test, interface function obtains the included daily record process object example of operating system when passing through operation;
By calling daily record process described in the log acquisition of the daily record process object example to be recorded when being abnormal Abnormal log.
In the embodiment of the present invention, the abnormal log for capturing tested software is during the test, to pass through daily record process pair It is captured as example.It is caught the exception daily record by daily record process object example, the accuracy of abnormal log capture can be improved.
Optionally, on the basis of Fig. 8 corresponding embodiments, screen is recorded in software test procedure provided in an embodiment of the present invention Device 20 another embodiment in,
The capturing unit 204 is additionally operable to, when the monitoring unit 201 monitors the tested software collapse, catch Obtain daily record when collapse.
In the embodiment of the present invention, because daily record when tested software is collapsed is extremely important to the analysis of tested software, institute With during monitoring the tested software, if finding, the tested software is collapsed, just daily record when capture collapse in time, favorably In the accuracy that raising tested software is perfect.
The embodiment that the device 20 of screen is recorded in software test procedure described above can be refering to fig. 1 to the parts Fig. 6 Description is understood that it is no longer repeated at this place.
Can be realized above by test equipment to record the device of screen in software test procedure, with reference to Figure 10 explanation by Test equipment realizes the process of each function of the above-mentioned device for search results ranking.
Figure 10 is the structural schematic diagram of test equipment 30 provided in an embodiment of the present invention.The test equipment 30 includes processing Device 310, memory 350 and input-output apparatus 330, input-output apparatus 330 may include keyboard, mouse and display etc. Equipment.Memory 350 may include read-only memory and random access memory, and to processor 310 provide operational order and Data.The a part of of memory 350 can also include nonvolatile RAM (NVRAM).
In some embodiments, memory 350 stores following element, executable modules or data structures, or Their subset of person or their superset:
In embodiments of the present invention, by calling the operational order of the storage of memory 350, (operational order is storable in behaviour Make in system),
With independent process, tested software described in the portal monitoring by tested software;
Obtain the key frame being selected in the tested software, and label information corresponding with the key frame, institute It is to test out frame of problems to state selected key frame;
By the selected key frame, and label information corresponding with key frame synthesis record screen picture.
With in the prior art, software test record screen is cumbersome, and position inaccurate is compared, and the embodiment of the present invention provides Software test procedure in record the method for screen.Tested software can be monitored by the plug-in unit of independent process, obtain that there are problems Key frame record screen picture, the record screen picture that this scheme obtains is easy to operate, and the quality of obtained record screen picture is high, The positioning of key frame wherein of problems is also more acurrate.
Processor 310 controls the operation of test equipment 30, and processor 310 can also be known as CPU (Central Processing Unit, central processing unit).Memory 350 may include read-only memory and random access memory, and Instruction and data is provided to processor 310.The a part of of memory 350 can also include nonvolatile RAM (NVRAM).The various components of test equipment 30 are coupled by bus system 320 in specific application, wherein total linear system System 320 can also include power bus, controlling bus and status signal bus in addition etc. in addition to including data/address bus.But in order to For the sake of clear explanation, various buses are all designated as bus system 320 in figure.
The method that the embodiments of the present invention disclose can be applied in processor 310, or be realized by processor 310. Processor 310 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 310 or the instruction of software form.Above-mentioned processing Device 310 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.May be implemented or Person executes disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be microprocessor or Person's processor can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be straight Connect and be presented as that hardware decoding processor executes completion, or in decoding processor hardware and software module combination executed At.Software module can be located at random access memory, and flash memory, read-only memory, programmable read only memory or electrically-erasable can In the storage medium of this fields such as programmable memory, register maturation.The storage medium is located at memory 350, and processor 310 is read Information in access to memory 350, in conjunction with the step of its hardware completion above method.
Optionally, processor 310 is additionally operable to:
During the test, the abnormal log when tested software is abnormal during the test is captured;
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 abnormal or collapse, collapse at any time during the test Also belong to one kind in exception.Abnormal log when being therefore abnormal will record the exception, therefore the abnormal log is to dividing Analysing the tested software has critically important value, in this way, when screen picture is recorded in output, goes back output abnormality daily record, is conducive to improve The accuracy of tested software positioning problems.
Optionally, processor 310 is additionally operable to:When monitoring to have in the tested software key frame selected, and needle There is label to input the key frame, it is determined that the key frame is the key frame being selected.
In the embodiment of the present invention, from the perspective of tester, after tester has found key frame of problems, just Can to the key frame using Fig. 3 to mode shown in fig. 5 or other can be marked with mark mode, for monitoring the quilt For the record screen monitoring plug-in unit of test software, when tester chooses key frame of problems, which monitors plug-in unit just It can monitor, when tester has gone up label on the key frame chosen, illustrate that the frame is exactly depositing of thinking of tester In the key frame of mistake, if not marking, record screen monitoring plug-in unit not can determine whether the key frame that the frame is selected.
Optionally, processor 310 is used for:
During the test, interface function obtains the included daily record process object example of operating system when passing through operation;
By calling daily record process described in the log acquisition of the daily record process object example to be recorded when being abnormal Abnormal log.
In the embodiment of the present invention, the abnormal log for capturing tested software is during the test, to pass through daily record process pair It is captured as example.It is caught the exception daily record by daily record process object example, the accuracy of abnormal log capture can be improved.
Optionally, processor 310 is additionally operable to:When monitoring the tested software collapse, daily record when capture is collapsed.
In the embodiment of the present invention, because daily record when tested software is collapsed is extremely important to the analysis of tested software, institute With during monitoring the tested software, if finding, the tested software is collapsed, just daily record when capture collapse in time, favorably In the accuracy that raising tested software is perfect.
Above test equipment 30 can be refering to fig. 1 to the parts Fig. 6 description understood that this place, which is not done, excessively to be repeated
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:ROM, RAM, disk or CD etc..
It is provided for the embodiments of the invention the method for recording screen in software test procedure above and device has carried out in detail It introduces, principle and implementation of the present invention are described for specific case used herein, the explanation of above example It is merely used to help understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to this The thought of invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as limitation of the present invention.

Claims (10)

1. a kind of method for recording screen in software test procedure, which is characterized in that including:
With the plug-in unit of independent process, tested software described in the portal monitoring by tested software;
Obtain the key frame being selected in the tested software, and label information corresponding with the key frame, the quilt The key frame chosen is to test out frame of problems;
By the selected key frame, and label information corresponding with key frame synthesis record screen picture.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
During the test, the abnormal log when tested software is abnormal during the test is captured;
It is described to record the selected key frame, and label information corresponding with key frame synthesis after shielding picture, The method further includes:
Export the record screen picture and the abnormal log.
3. method according to claim 1 or 2, which is characterized in that be selected in the acquisition tested software Before key frame, and label information corresponding with the key frame, the method further includes:
When monitoring to have in the tested software key frame selected, and there is label to input for the key frame, then really The fixed key frame is the key frame being selected.
4. according to the method described in claim 2, it is characterized in that, it is described during the test, capture the tested software Abnormal log when being abnormal during the test, including:
During the test, interface function obtains the included daily record process object example of operating system when passing through operation;
By calling the exception that daily record process is recorded when being abnormal described in the log acquisition of the daily record process object example Daily record.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
When monitoring the tested software collapse, daily record when capture is collapsed.
6. recording the device of screen in a kind of software test procedure, which is characterized in that including:
Monitoring unit is used for the plug-in unit of independent process, tested software described in the portal monitoring by tested software;
Acquiring unit, the key frame being selected in the tested software for obtaining monitoring unit monitoring, and with it is described The corresponding label information of key frame, the selected key frame are to test out frame of problems;
Synthesis unit, the selected key frame for obtaining the acquiring unit, and mark corresponding with the key frame Remember information synthesis record screen picture.
7. device according to claim 6, which is characterized in that described device further includes capturing unit and output unit,
The capturing unit, the tested software for during the test, capturing the monitoring unit monitoring are being tested Abnormal log when being abnormal in the process;
The output unit shields picture and described for after the synthesis unit synthesizes record screen picture, exporting the record The abnormal log of capturing unit capture.
8. the device described according to claim 6 or 7, which is characterized in that described device further includes determination unit,
The determination unit monitors have key frame to be selected in the tested software for working as the monitoring unit, and There is label to input for the key frame, it is determined that the key frame is the key frame being selected.
9. device according to claim 7, which is characterized in that
The capturing unit is used for:
During the test, interface function obtains the included daily record process object example of operating system when passing through operation;
By calling the exception that daily record process is recorded when being abnormal described in the log acquisition of the daily record process object example Daily record.
10. device according to claim 7, which is characterized in that
The capturing unit is additionally operable to when the monitoring unit monitors the tested software collapse, when capture is collapsed Daily record.
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 CN107491385A (en) 2017-12-19
CN107491385B true 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)

Families Citing this family (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
CN109462695B (en) * 2018-11-16 2021-12-17 努比亚技术有限公司 Terminal screen recording method and device, mobile terminal and readable storage medium
CN112084117B (en) * 2020-09-27 2023-08-08 网易(杭州)网络有限公司 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

Also Published As

Publication number Publication date
CN107491385A (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
CN109165162B (en) Test method and related equipment for vehicle-mounted system
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
US8276126B2 (en) Determining causes of software regressions based on regression and delta information
CN107967209B (en) Method for detecting error in front-end webpage code, detection equipment and server
US20110107307A1 (en) Collecting Program Runtime Information
US20140325486A1 (en) Techniques for testing software
CN107491385B (en) The method and device of screen is recorded in a kind of software test procedure
US8996928B2 (en) Devices for indicating a physical layer error
US20180004648A1 (en) Defect reporting in application testing
US9946638B1 (en) System and method for end to end performance response time measurement based on graphic recognition
CN104956339A (en) Generating software test script from video
US20130036330A1 (en) Execution difference identification tool
JP2003161761A (en) Electronic test apparatus and method for displaying data point value of electronic test
CN113778898A (en) User interface automatic testing method and device, electronic equipment and storage medium
CN112418590B (en) Printed circuit board component detection method and system
CN106294109A (en) Obtain the method and device of defect code
CN110297754A (en) A kind of test information feedback method and system
CN114663975A (en) Model training method and device, electronic equipment and storage medium
Abran et al. Harmonization issues in the updating of the ISO standards on software product quality
Karnane et al. Automating root-cause analysis to reduce time to find bugs by up to 50%
CN115129575A (en) Code coverage result generation method and device
US20160275002A1 (en) Image capture in application lifecycle management for documentation and support
TW201413447A (en) System and method for displaying test status and marking abnormalities
CN111128360B (en) Method, device and system for automatically checking medical equipment inspection 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