CN107066381A - Generate method, device and the equipment of the test analysis report based on image recognition - Google Patents
Generate method, device and the equipment of the test analysis report based on image recognition Download PDFInfo
- Publication number
- CN107066381A CN107066381A CN201710109506.XA CN201710109506A CN107066381A CN 107066381 A CN107066381 A CN 107066381A CN 201710109506 A CN201710109506 A CN 201710109506A CN 107066381 A CN107066381 A CN 107066381A
- Authority
- CN
- China
- Prior art keywords
- scripting lines
- scripting
- lines
- operation information
- screenshotss
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Computational Biology (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Artificial Intelligence (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application is related to method, device and the electronic equipment of test analysis report of the generation based on image recognition, and method includes:Equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file are stored, and record the operation information of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines;If the scripting lines are normally run, the operation information includes image recognition result, if the scripting lines run-time error, and the operation information includes error code;After script operation, the operation information of the corresponding initial parameter of at least one scripting lines, the path of the screenshotss file and the scripting lines is taken out, test analysis report is generated using the corresponding initial parameter of at least one described scripting lines, the screenshotss file, the operation information.The technical scheme of the application can check the position for producing exception and image scene, quick positioning trip problem after regression test.
Description
Technical field
The application is related to automatization testing technique field, in particular to test analysis of the generation based on image recognition
Method, device and the electronic equipment of report.
Background technology
Correlation technique proposes a kind of test analysis report generation method and a kind of test analysis report generating means, can obtain
Test data is taken, all kinds of statistical items are counted, then the result correspondence of each statistical items is filled into test analysis report, it is raw
Into test analysis report document.For test process data according to unified requirement and form, extract reductive analysis and give birth to automatically
Into test analysis report document.
Above-mentioned technology is counted to test data, and statistical result is filled into report, is concluded according to unified form
Analysis generation report file.
The shortcoming of this mode is as follows:
1. the method is applied to the test of data statistics type.For the test of image type, it is difficult to obtain result images
Statistical information presented;
2. there is no any interactivity content in reporting, desired report content can not be quickly jumped to when user checks;
3. user is difficult to grasp whole testing process intuitive picture, and the richness of report information is inadequate.
The content of the invention
The method that disclosure generates the test analysis report based on image recognition, can check production after regression test
Raw abnormal position and image scene, quick positioning trip problem.
Other characteristics and advantage of the present invention will be apparent from by following detailed description, or partially by the present invention
Practice and acquistion.
There is provided a kind of method for generating the test analysis report based on image recognition, bag according to an aspect of the present invention
Include:
Equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file are stored, and record the scripting lines
Initial parameter, the operation information of the path of the screenshotss file and the scripting lines;If the scripting lines are normally run,
Then the operation information includes image recognition result, if the scripting lines run-time error, and the operation information includes wrong generation
Code;
After script operation, the corresponding initial parameter of at least one scripting lines, the road of the screenshotss file are taken out
Footpath and the operation information of the scripting lines, utilize the corresponding initial parameter of at least one described scripting lines, the screenshotss
File, operation information generation test analysis report.
According to some embodiments, initial parameter, the path of the screenshotss file and the pin of the scripting lines are recorded
The operation information of one's own profession includes:Recorded into running log the initial parameters of the scripting lines, the path of the screenshotss file, with
And the operation information of the scripting lines;
Take out the corresponding initial parameter of at least one scripting lines, the path of the screenshotss file and the script
Capable operation information includes:Taken out from the running log the corresponding initial parameter of at least one scripting lines, described section
Shield the path of file and the operation information of the scripting lines.
According to some embodiments, at least one described scripting lines include the scripting lines of executed and/or asserting for executed
Scripting lines.
According to some embodiments, the initial parameter includes sectional drawing file path and/or assists in identifying parameter.
According to some embodiments, the operation informations of the scripting lines also includes the middle anaplasia during operation of the scripting lines
Amount, wherein the intermediate variable includes identification region and operating position.
According to some embodiments, using the corresponding initial parameter of at least one described scripting lines, the screenshotss file,
The operation information generation test analysis report includes:Will the corresponding initial parameter of at least one scripting lines, described
In screenshotss file, operation information injection predetermined webpage template engine, by the predetermined webpage template engine according to specified
Form generates test analysis report.
According to some embodiments, test analysis report bag is generated according to specified format by the predetermined webpage template engine
Include:Corresponding identification region is used in the screenshotss file of at least one scripting lines by the predetermined webpage template engine
The identification information of first color is marked and rendered, and/or corresponding operating position is believed with the mark of the second color
Breath is marked and rendered.
According to some embodiments, the test analysis report includes the navigation interface of at least one scripting lines, described
Navigation interface includes icon corresponding with each scripting lines at least one described scripting lines, and the icon is used to present after being clicked
Interface after correspondingly the screenshotss file of scripting lines is rendered.
According to some embodiments, the test analysis report includes video playback window, and the video playback window is used for
The video synthesized by interface after the screenshotss file of at least one scripting lines is rendered described in playing.
According to some embodiments, the operation information also includes operation initial time and/or end of run time.
According to some embodiments, methods described also includes, and records the script information and run time of the script;
After script operation, take out the script information and the run time is filled into the test analysis report
In the corresponding variable of framework, to include the script information and the run time in the test analysis report.
According to another aspect of the present invention there is provided a kind of device for generating the test analysis report based on image recognition, its
Including:
Information recording unit, for carrying out equipment screenshotss when scripting lines are run, obtained screenshotss file is stored,
And record the operation information of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines;If described
Scripting lines are normally run, then the operation information includes image recognition result, if the scripting lines run-time error, the operation
Information includes error code;
Report generation unit, after being run in script, take out the corresponding initial parameter of at least one scripting lines,
The path of the screenshotss file and the operation information of the scripting lines, it is corresponding described using at least one described scripting lines
Initial parameter, the screenshotss file, operation information generation test analysis report.
According to some embodiments, the report generation unit is additionally operable at least one described scripting lines are corresponding described first
In beginning parameter, the screenshotss file, operation information injection predetermined webpage template engine, drawn by the predetermined webpage template
Hold up and generate test analysis report according to specified format.
According to another aspect of the present invention there is provided a kind of electronic equipment, including:Processor;Memory, is stored for handling
The instruction of the following operation of device control:
Equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file are stored, and record the scripting lines
Initial parameter, the operation information of the path of the screenshotss file and the scripting lines;If the scripting lines are normally run,
Then the operation information includes image recognition result, if the scripting lines run-time error, and the operation information includes wrong generation
Code;
After script operation, the corresponding initial parameter of at least one scripting lines, the road of the screenshotss file are taken out
Footpath and the operation information of the scripting lines, utilize the corresponding initial parameter of at least one described scripting lines, the screenshotss
File, operation information generation test analysis report.
The technical scheme that embodiments herein is provided can include the following benefits:
The technical scheme of the application can check the position for producing exception and image scene, quick positioning after regression test
Operation problem.
The technical scheme that embodiments herein is provided can be checked after regression test produces abnormal position and scene
Image, quick positioning trip problem.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited
Invention.
Brief description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature of the invention and advantage will become more
Plus substantially.
The method that Fig. 1 shows test analysis report of the generation based on image recognition according to an embodiment of the invention;
Fig. 2 shows the workflow of test analysis report of the generation based on image recognition according to an embodiment of the invention
Schematic diagram;
Fig. 3 shows that script according to an embodiment of the invention runs operation report interface schematic diagram when successfully;
Fig. 4 shows operation report interface schematic diagram during script operation failure according to an embodiment of the invention;
Fig. 5 shows operation report single step content interface schematic diagram according to an embodiment of the invention;
Fig. 6 shows the frame of the device of test analysis report of the generation based on image recognition according to an embodiment of the invention
Figure;
Fig. 7 shows electronic equipment according to an embodiment of the invention.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be real in a variety of forms
Apply, and be not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the present invention will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively conveyed into those skilled in the art.Identical reference is represented in figure
Same or similar part, thus repetition thereof will be omitted.
Implement in addition, described feature, structure or characteristic can be combined in any suitable manner one or more
In example.Embodiments of the invention are fully understood so as to provide there is provided many details in the following description.However,
It will be appreciated by persons skilled in the art that technical scheme can be put into practice without one or more in 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 side
Method, device, realization operate to avoid fuzzy each aspect of the present invention.
Block diagram shown in accompanying drawing is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or realize in heterogeneous networks and/or processor device and/or microcontroller device these functional entitys.
Flow chart shown in accompanying drawing is merely illustrative, it is not necessary to including all contents and operation/step,
It is not required to perform by described order.For example, some operation/steps can also be decomposed, and some operation/steps can be closed
And or part merge, therefore the actual order performed is possible to be changed according to actual conditions.
The method that Fig. 1 shows test analysis report of the generation based on image recognition according to an embodiment of the invention, this
Embodiment is applicable to generate the situation of the test analysis report based on image recognition in automatic test, as shown in figure 1, this reality
Applying the method for test analysis report of the generation based on image recognition described in example includes:
In step s 110, equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file is stored, and remembers
Record the operation information of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines;If the script
Row is normal to be run, then the operation information includes image recognition result, if the scripting lines run-time error, the operation information
Including error code.
It should be noted that the initial parameter includes sectional drawing file path or assists in identifying parameter, or include simultaneously
Sectional drawing file path main auxiliary identification parameter.
In the step s 120, after script operation, the corresponding initial parameter of at least one scripting lines is taken out, described
The path of screenshotss file and the operation information of the scripting lines, it is corresponding described initial using at least one described scripting lines
Parameter, the screenshotss file, operation information generation test analysis report.
Scripting lines are asserted in the scripting lines of at least one described scripting lines including executed and executed.Wherein, record
The operation information of the initial parameter of the scripting lines, the path of the screenshotss file and the scripting lines can be by operation
Recorded in daily record.In such cases, the corresponding initial parameter of at least one scripting lines, the road of the screenshotss file are taken out
The operation information of footpath and the scripting lines is then extracted from the running log.
The operation information of the scripting lines may also include the intermediate variable during operation of the scripting lines, wherein the centre
Variable includes identification region and operating position.
Those of ordinary skill in the art it should be clear that, utilize the corresponding initial ginseng of at least one described scripting lines
Several, described screenshotss file, the operation information generation test analysis report method may include it is a variety of, for example can will described at least
In the corresponding initial parameter of one scripting lines, the screenshotss file, operation information injection predetermined webpage template engine,
Test analysis report is generated according to specified format by the predetermined webpage template engine.
And the method for generating test analysis report according to specified format by the predetermined webpage template engine may also comprise
It is a variety of, it can for example be known by the predetermined webpage template engine in the screenshotss file of at least one scripting lines by corresponding
Other region is marked and rendered with the identification information of the first color, and/or by the second color of corresponding operating position
Identification information be marked and rendered.
The test analysis report according to the method generation described in the present embodiment may include at least one described scripting lines
Navigation interface, the navigation interface include icon corresponding with each scripting lines at least one described scripting lines, the icon
For the interface after the screenshotss file of correspondence scripting lines is rendered to be presented after being clicked.
Further, in order to reach that more preferable test result shows effect, the test analysis report may also include video
Broadcast window, the video playback window is closed for playing the interface after the screenshotss file of at least one scripting lines is rendered
Into video.
In order that test report covers wider content, the operation information also includes operation initial time, or operation
End time, or both include running initial time or including the end of run time.
In an embodiment, the present embodiment methods described also can record the script information and run time of the script,
After script operation, take out the script information and the run time be filled into the test analysis report framework it is corresponding
In variable, to include the script information and the run time in the test analysis report.
The present embodiment is stored obtained screenshotss file, and remember by carrying out equipment screenshotss when scripting lines are run
Record the operation information of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines.In script operation
Afterwards, surveyed using the corresponding initial parameter of at least one described scripting lines, the screenshotss file, operation information generation
Try analysis report.The position for producing exception and image scene, quick positioning trip problem can be checked after regression test.
Fig. 2 shows the workflow of test analysis report of the generation based on image recognition according to another embodiment of the present invention
How journey schematic diagram, the present embodiment provides a kind of day to solve in the automatic test based on image recognition to user
The problem of will checks mechanism.It is contemplated that allowing tester quickly to check test after the Automation regression testing based on image
During produce abnormal position and image scene, be easy to grasp the running situation in testing process, and quick positioning trip is asked
Topic.
As shown in Fig. 2 the method for test analysis report of the generation based on image recognition described in the present embodiment includes:Certainly
Parameter and operation result in the preceding parameter of script operation, operation are recorded during dynamicization test use in running log, and
The screenshotss file used when running is saved in log folder.Carried after the completion of test from the corresponding informance in running log
Corresponding information is taken out, and combines the screenshotss file generated operation Report Page (html) when running so that user can pass through
Control inside operation report carries out quick the interactive operation such as redirecting.
It can be seen from Fig. 2, there is provided from record running log file and screenshotss file during operation in the present embodiment, and
Ultimately generate the whole flow process of operation report.The flow of whole report generation is designed, is first had to first from the operation for being presented to user
Report result is started with, and analyzes report should be presented to which information of user.
In each step of image recognition class testing script running, it cuts comprising sectional drawing with equipment when running
Screen, and related recognition result, user when checking corresponding content, it is necessary to check the sectional drawing of each step of script, screenshotss,
And operation result, in addition it is also necessary to it is rapid the step of navigate to test script operation failure, and sectional drawing during operation failure and right
The equipment screenshotss answered.In addition, may need to perform substantial amounts of script step in test script, then user needs quick navigate to pair
The implementation procedure answered.In addition, certain several scripting lines may be combined the step of execution (completes some complete as a test point
The step of whole test target), test script can write one in correspondence position and assert scripting lines, for judging whether test point leads to
Cross, should be for asserting that scripting lines set up statistics directory listing in report.(assert:It is a kind of programming term, asserts and be expressed as
Some Boolean expressions, programmer believes that some specified point transition formula evaluation in a program is true, can open at any time
With with disabling assertion verification.) further, since the equipment screenshotss of each step are obtained during whole operation, for passing through one
Width width picture is browsed it can be seen that the process of whole test script operation, but preferably as video, allows user
Continuously watch effective procedure.
Being realized in the present embodiment at the preferable operation report based on image recognition, the topside position of report has test point
The navigation bar of all testing procedures is arranged at navigation bar, bottom.Failure testing point in the test point navigation bar of report with red display,
Click can be jumped at the details position of the step, and the bottom of Report Page also has navigation bar, and there is provided all steps
Running situation, wherein red is operation exception position, user clicks on corresponding operation exception step navigation controls, can also jumped
Go at the details position of the step.Fig. 3 shows that script according to an embodiment of the invention runs operation report when successfully
Interface schematic diagram, Fig. 4 shows operation report interface schematic diagram during script operation failure according to an embodiment of the invention.
As shown in Figure 3 and Figure 4, in the report result of the present embodiment, herein below is included:When script information and operation
Between, such as including test script name, test script author, script operation start and end time;Running show area, is used for
Video (gif cardons/video) synthesized by screenshotss during presentation device whole service;Test point collects navigation bar, is used for
The navigation bar of all test points is presented, it is the operation report content for jumping to correspondence scripting lines to click on corresponding entry;Single script
In capable operation report, wherein the operation report of single scripting lines includes:Sectional drawing displaying, the signal of equipment screenshotss, identification region, behaviour
Make position signal;Step navigation bar, step navigation bar clicks on corresponding navigation entry always situated in the bottom of Report Page,
Corresponding single file script operation report content can be jumped to, is available for users to and quickly carries out quickly redirecting for some step.
It is clear that the data source of operation report is in running log, sectional drawing and screenshotss file, therefore in operation pin
This when, we needed to record corresponding informance according to certain agreement.
, it is necessary to specify the file of a running log storage before operation, file, the fortune of running log information write-in are specified
The catalogue that equipment screenshotss file is deposited during row.
During operation, it is necessary first to record the information (script name, scenarist) of script and operation time started;Fortune
, it is necessary to by the initial parameters of scripting lines (sectional drawing file path, assist in identifying parameter, other specification) when performing each step in row
It recorded with equipment screenshotss file path in the correspondence position in running log, scripting lines if there is run-time error, it will eventually
Only run, and the code error that scripting lines are quoted writes the relevant position of running log, will fortune if script is normally run
Capable intermediate variable and image recognition result write-in running log correspondence position (target area identified in equipment screenshotss,
The position of facilities and equipments operation).
(last column script normal termination, or some scripting lines error script are run to during test script end of run
Terminate operation), it is necessary to which the time that script terminates operation to be added to the end of running log.
Test analysis report is generated using web page template engine (correlation technique includes many kinds, such as jinja2),
One general template is provided first, the webpage report frame key element on basis is included.When needing generation test analysis report, point
Script information and run time are not extracted from running log, and be filled into webpage report frame in dependent variable.
In the execution Step Information of each scripting lines, if the corresponding scripting lines of test script are run successfully, list is extracted respectively
Sectional drawing file, equipment screenshotss file, recognition result and operating position in individual script step, by the execution step of each scripting lines
Information is implanted sequentially in web page template engine.Web page template engine can be according to specified form, by successful script operation information
Render as shown in Figure 5.
Preferably, can in screenshotss by corresponding identification region and operating position respectively with red frame and red point mark into
Row is rendered, and is that user indicates target area position and specific equipment operation point in screenshotss.
If the corresponding scripting lines operation failure of test script, from the running log of corresponding scripting lines, is extracted
Sectional drawing file, equipment screenshotss file, the related prompt message of operation failure, and corresponding information is injected into web page template engine
In.Sectional drawing and screenshotss that corresponding step when rendering script operation failure is included, and the related suggestion content that reports an error, it is auxiliary
Help the reason for related personnel checks operation failure.
In addition, the present embodiment additionally provides a kind of method, according to the execution sequence of scripting lines, carried successively from running log
Take out all devices screenshotss, and the screenshotss sequence is generated into gif cardons (can also be video), and the gif cardons (or are regarded
Frequently it is added to) in corresponding operation Report Page, is checked for user.
So far, the basic presentation structure of the test analysis report of the present embodiment has been stated clearly:
User navigates to the information that some scripting lines is performed in operation report, including sectional drawing, equipment according to navigation is quick
Screenshotss, recognition result, if performing the scripting lines of mistake, user can also be seen that corresponding error information.User is also
Can by the page watch script running in device screen picture consecutive variations situation, clearly grasp test pin
This whole implementation procedure.
In the present embodiment, by the running log in test script and related sectional drawing screenshotss after integrated treatment, report is imported
Slide former engine, and final test analysis report is generated, possess advantages below:
First, sectional drawing, screenshotss and recognition result information are included in test script operating procedure, and shows operating position,
It is very clear to present;
Secondly, in test analysis report be provided with navigation bar, no matter script have how long, a set of report template can be shared,
The displaying of single scripting lines is constant, and the navigation keys of each scripting lines report content are provided with navigation bar, and user can utilize
Navigation bar easily carries out the positioning of script operating procedure content and redirected, and the interaction of test analysis is very convenient;
In addition, when scripting lines run failure, the corresponding button color of scripting lines is changed into red in navigation bar, user can be with
By checking the navigation bar button color of Report Page, the position of fail step in quick positioning script operation can be fast after click
Speed jumps to correspondence report content, carries out mistake and checks;
Finally, by by the equipment screenshotss sequence in running, according to execution sequence by sequence of pictures generate cardon (or
Person's video), and be shown in test analysis report to user, user is intuitively checked the whole execution of test script
Process.
Fig. 6 shows the frame of the device of test analysis report of the generation based on image recognition according to an embodiment of the invention
Figure, as shown in fig. 6, the device of test analysis report of the generation based on image recognition described in the present embodiment includes information record list
Member 610 and report generation unit 620.
The information recording unit is configured as 610, for carrying out equipment screenshotss when scripting lines are run, by obtained screenshotss
File is stored, and records the fortune of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines
Row information;If the scripting lines are normally run, the operation information includes image recognition result, if scripting lines operation is wrong
By mistake, then the operation information includes error code;
This report generation unit 620 is configured to after script is run, and takes out at least one scripting lines corresponding
The operation information of the initial parameter, the path of the screenshotss file and the scripting lines, utilizes at least one described script
The corresponding initial parameter of row, the screenshotss file, operation information generation test analysis report.
According to some embodiments, the information recording unit 610 is additionally operable to:The first of the scripting lines is recorded into running log
The operation information of beginning parameter, the path of the screenshotss file and the scripting lines;
This report generation unit 620 is additionally operable to:At least one scripting lines is taken out from the running log corresponding described
The operation information of initial parameter, the path of the screenshotss file and the scripting lines.
According to some embodiments, at least one described scripting lines include the scripting lines of executed and/or asserting for executed
Scripting lines.
According to some embodiments, the initial parameter includes sectional drawing file path and/or assists in identifying parameter.
According to some embodiments, the operation informations of the scripting lines also includes the middle anaplasia during operation of the scripting lines
Amount, wherein the intermediate variable includes identification region and operating position.
According to some embodiments, this report generation unit 620 is additionally operable to, and utilizes the corresponding institute of at least one described scripting lines
Stating initial parameter, the screenshotss file, operation information generation test analysis report includes:Will at least one described scripting lines
In the corresponding initial parameter, the screenshotss file, operation information injection predetermined webpage template engine, by described pre-
Determine web page template engine and generate test analysis report according to specified format.
According to some embodiments, this report generation unit 620 is additionally operable to, by the predetermined webpage template engine according to finger
The formula that fixes generation test analysis report includes:By the predetermined webpage template engine at least one scripting lines screenshotss
Corresponding identification region is marked and rendered with the identification information of the first color in file, and/or by corresponding behaviour
Make position to be marked and rendered with the identification information of the second color.
According to some embodiments, the test analysis report includes the navigation interface of at least one scripting lines, described
Navigation interface includes icon corresponding with each scripting lines at least one described scripting lines, and the icon is used to present after being clicked
Interface after correspondingly the screenshotss file of scripting lines is rendered.
According to some embodiments, the test analysis report includes video playback window, and the video playback window is used for
The video synthesized by interface after the screenshotss file of at least one scripting lines is rendered described in playing.
According to some embodiments, the operation information also includes operation initial time and/or end of run time.
According to some embodiments, the information recording unit 610 is additionally operable to, when recording script information and the operation of the script
Between;
This report generation unit 620 is additionally operable to, and after script operation, takes out the script information and the run time
It is filled into the corresponding variable of the framework of the test analysis report, to believe in the test analysis report comprising the script
Breath and the run time.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in relevant this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The device for test analysis report of the generation based on image recognition that the present embodiment is provided can perform above-mentioned side of the invention
The method of test analysis report of the generation that method embodiment is provided based on image recognition, possesses the corresponding function mould of execution method
Block and beneficial effect.
Fig. 7 shows electronic equipment according to an embodiment of the invention, as shown in fig. 7, electronic equipment 700 may include processing
Device 710, memory 720, transmitter 730 and receiver 740.
Memory 720 can store the instruction for the processing of the control operation of processor 710.Memory 720 may include volatibility
Or nonvolatile memory, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM),
Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only storage (ROM) etc., the present invention
It is not limited in this respect.
Processor 710 can call the instruction stored in memory 720 to control associative operation.According to an embodiment, memory
720 store and control the instruction that operates below for processor 710:
Equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file are stored, and record the scripting lines
Initial parameter, the operation information of the path of the screenshotss file and the scripting lines;If the scripting lines are normally run,
Then the operation information includes image recognition result, if the scripting lines run-time error, and the operation information includes wrong generation
Code;
After script operation, the corresponding initial parameter of at least one scripting lines, the road of the screenshotss file are taken out
Footpath and the operation information of the scripting lines, utilize the corresponding initial parameter of at least one described scripting lines, the screenshotss
File, operation information generation test analysis report.
It can be readily appreciated that memory 720, which can also be stored, controls other operations according to embodiments of the present invention for processor 710
Instruction, repeat no more here.
Processor 710 also can control transmitter 730 and receiver 740 carries out signal transmitting and receiving etc..
Detailed description more than, those skilled in the art it can be readily appreciated that system according to embodiments of the present invention and
Method has one or more of the following advantages.
Embodiments in accordance with the present invention, record the initial parameters of the scripting lines, the path of the screenshotss file, Yi Jisuo
Stating the operation information of scripting lines includes:Initial parameter, the road of the screenshotss file of the scripting lines are recorded into running log
Footpath and the operation information of the scripting lines;
Take out the corresponding initial parameter of at least one scripting lines, the path of the screenshotss file and the script
Capable operation information includes:Taken out from the running log the corresponding initial parameter of at least one scripting lines, described section
Shield the path of file and the operation information of the scripting lines.
According to some embodiments of the present invention, the corresponding initial parameter of at least one described scripting lines, described is utilized
Screenshotss file, operation information generation test analysis report include:At least one described scripting lines are corresponding described initial
In parameter, the screenshotss file, operation information injection predetermined webpage template engine, pass through the predetermined webpage template engine
Test analysis report is generated according to specified format.
According to some embodiments of the present invention, by the predetermined webpage template engine according to specified format generation test point
Analysis report includes:Known by the predetermined webpage template engine in the screenshotss file of at least one scripting lines by corresponding
Other region is marked and rendered with the identification information of the first color (such as green rectangle frame), and/or by corresponding behaviour
Make position to be marked and rendered with the identification information (such as red point) of the second color.
According to some embodiments of the present invention, the test analysis report includes navigation circle of at least one scripting lines
Face, the navigation interface includes icon corresponding with each scripting lines at least one described scripting lines, and the icon is used for by point
Interface after the screenshotss file of presentation correspondence scripting lines is rendered after hitting.
According to some embodiments of the present invention, the test analysis report includes video playback window, the video playback
Window is for playing the video synthesized by the interface after the screenshotss file of at least one scripting lines is rendered.
According to some embodiments of the present invention, in addition to, record the script information and run time of the script;
After script operation, take out the script information and the run time is filled into the test analysis report
In the corresponding variable of framework, to include the script information and the run time in the test analysis report.
According to some embodiments, the present invention also provides a kind of non-transitorycomputer readable storage medium, such as including referring to
The memory of order, above-mentioned instruction can complete the above method by the computing device of device.For example, non-transitory is computer-readable
Storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..When depositing
Instruction in storage media by the computing device of terminal when so that terminal is able to carry out following methods:By the original in script module
Production-goods source name is transformed to Resources ID;Native applications module obtains corresponding Resources by Resources ID.
It will be understood by those skilled in the art that accompanying drawing is the schematic diagram of example embodiment, module or flow in accompanying drawing
Not necessarily implement the present invention necessary, therefore cannot be used for limiting the scope of the invention.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed in device according to the description of embodiment, also may be used
To carry out respective change uniquely different from one or more devices of the present embodiment.The module of above-described embodiment can be merged into
One module, can also be further split into multiple submodule.
The exemplary embodiment of the present invention is particularly shown and described above.It should be understood that public the invention is not restricted to institute
The embodiment opened, on the contrary, it is intended to cover comprising various modifications in the spirit and scope of the appended claims and wait
Effect arrangement.
Claims (14)
1. a kind of method for generating the test analysis report based on image recognition, it is characterised in that including:
Equipment screenshotss are carried out when scripting lines are run, obtained screenshotss file is stored, and record the first of the scripting lines
The operation information of beginning parameter, the path of the screenshotss file and the scripting lines;If the scripting lines are normally run, institute
Stating operation information includes image recognition result, if the scripting lines run-time error, and the operation information includes error code;
Script operation after, take out the corresponding initial parameter of at least one scripting lines, the path of the screenshotss file, with
And the operation information of the scripting lines, using the corresponding initial parameter of at least one described scripting lines, the screenshotss file,
The operation information generates test analysis report.
2. the method as described in claim 1, it is characterised in that record the initial parameter of the scripting lines, the screenshotss file
Path and the operation informations of the scripting lines include:The initial parameter, described of the scripting lines is recorded into running log
The path of screenshotss file and the operation information of the scripting lines;
Take out the corresponding initial parameter of at least one scripting lines, the path of the screenshotss file and the scripting lines
Operation information includes:The corresponding initial parameter of at least one scripting lines, screenshotss text are taken out from the running log
The path of part and the operation information of the scripting lines.
3. the method as described in claim 1, it is characterised in that at least one described scripting lines include the scripting lines of executed
And/or scripting lines are asserted in executed.
4. the method as described in claim 1, it is characterised in that the initial parameter includes sectional drawing file path and/or auxiliary
Identification parameter.
5. the method as described in claim 1, it is characterised in that the operation information of the scripting lines also includes the scripting lines
Intermediate variable during operation, wherein the intermediate variable includes identification region and operating position.
6. the method as described in claim 1, it is characterised in that utilize the corresponding initial ginseng of at least one described scripting lines
Several, described screenshotss file, operation information generation test analysis report include:Will the corresponding institute of at least one scripting lines
State in initial parameter, the screenshotss file, operation information injection predetermined webpage template engine, pass through the predetermined webpage mould
Plate engine generates test analysis report according to specified format.
7. method as claimed in claim 6, it is characterised in that given birth to by the predetermined webpage template engine according to specified format
Include into test analysis report:Will in the screenshotss file of at least one scripting lines by the predetermined webpage template engine
Corresponding identification region is marked and rendered with the identification information of the first color, and/or corresponding operating position is used
The identification information of second color is marked and rendered.
8. method as claimed in claim 7, it is characterised in that the test analysis report includes at least one described scripting lines
Navigation interface, the navigation interface include icon corresponding with each scripting lines at least one described scripting lines, the icon
For the interface after the screenshotss file of correspondence scripting lines is rendered to be presented after being clicked.
9. method as claimed in claim 8, it is characterised in that the test analysis report includes video playback window, described
Video playback window is for playing the video synthesized by the interface after the screenshotss file of at least one scripting lines is rendered.
10. the method as described in claim 1, it is characterised in that the operation information also includes operation initial time and/or fortune
The row end time.
11. the method as described in claim 1, it is characterised in that methods described also includes, records the script information of the script
And run time;
After script operation, take out the script information and the run time is filled into the framework of the test analysis report
In corresponding variable, to include the script information and the run time in the test analysis report.
12. a kind of device for generating the test analysis report based on image recognition, it is characterised in that including:
Information recording unit, for carrying out equipment screenshotss when scripting lines are run, obtained screenshotss file is stored, and remembers
Record the operation information of initial parameter, the path of the screenshotss file and the scripting lines of the scripting lines;If the script
Row is normal to be run, then the operation information includes image recognition result, if the scripting lines run-time error, the operation information
Including error code;
Report generation unit, after being run in script, takes out the corresponding initial parameter of at least one scripting lines, described
The path of screenshotss file and the operation information of the scripting lines, it is corresponding described initial using at least one described scripting lines
Parameter, the screenshotss file, operation information generation test analysis report.
13. device as claimed in claim 12, it is characterised in that the report generation unit be additionally operable to by it is described at least one
In the corresponding initial parameter of scripting lines, the screenshotss file, operation information injection predetermined webpage template engine, pass through
The predetermined webpage template engine generates test analysis report according to specified format.
14. a kind of electronic equipment, it is characterised in that including:Processor;Memory, is stored for processor control as weighed
Profit requires the instruction of the operation described in any one of 1-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109506.XA CN107066381A (en) | 2017-02-27 | 2017-02-27 | Generate method, device and the equipment of the test analysis report based on image recognition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710109506.XA CN107066381A (en) | 2017-02-27 | 2017-02-27 | Generate method, device and the equipment of the test analysis report based on image recognition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107066381A true CN107066381A (en) | 2017-08-18 |
Family
ID=59622692
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710109506.XA Pending CN107066381A (en) | 2017-02-27 | 2017-02-27 | Generate method, device and the equipment of the test analysis report based on image recognition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066381A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165625A (en) * | 2018-09-11 | 2019-01-08 | 国网山东省电力公司莱芜供电公司 | A kind of test report intelligent generation method based on image recognition |
CN109358939A (en) * | 2018-10-08 | 2019-02-19 | 北京云测信息技术有限公司 | A kind of mobile APP carousel figure automatically selects click method |
CN109918000A (en) * | 2019-03-12 | 2019-06-21 | 苏州乐模软件科技有限公司 | Electrode patterning Fulfill testing report automatically method and generation system |
CN111209180A (en) * | 2018-11-21 | 2020-05-29 | 中国移动通信集团浙江有限公司 | Regression testing method and device based on fuzzy matching |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140157242A1 (en) * | 2012-12-05 | 2014-06-05 | The Mathworks, Inc. | Deferred evaluation and presentation of a custom diagnostic analysis |
CN105824755A (en) * | 2016-03-17 | 2016-08-03 | 厦门美图移动科技有限公司 | Automation test method, automation test device and mobile terminal |
CN106095679A (en) * | 2016-06-12 | 2016-11-09 | 南京大学 | Graphical interfaces method for generating test case based on Freehandhand-drawing identification |
-
2017
- 2017-02-27 CN CN201710109506.XA patent/CN107066381A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140157242A1 (en) * | 2012-12-05 | 2014-06-05 | The Mathworks, Inc. | Deferred evaluation and presentation of a custom diagnostic analysis |
CN105824755A (en) * | 2016-03-17 | 2016-08-03 | 厦门美图移动科技有限公司 | Automation test method, automation test device and mobile terminal |
CN106095679A (en) * | 2016-06-12 | 2016-11-09 | 南京大学 | Graphical interfaces method for generating test case based on Freehandhand-drawing identification |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109165625A (en) * | 2018-09-11 | 2019-01-08 | 国网山东省电力公司莱芜供电公司 | A kind of test report intelligent generation method based on image recognition |
CN109358939A (en) * | 2018-10-08 | 2019-02-19 | 北京云测信息技术有限公司 | A kind of mobile APP carousel figure automatically selects click method |
CN111209180A (en) * | 2018-11-21 | 2020-05-29 | 中国移动通信集团浙江有限公司 | Regression testing method and device based on fuzzy matching |
CN111209180B (en) * | 2018-11-21 | 2023-04-25 | 中国移动通信集团浙江有限公司 | Regression testing method and device based on fuzzy matching |
CN109918000A (en) * | 2019-03-12 | 2019-06-21 | 苏州乐模软件科技有限公司 | Electrode patterning Fulfill testing report automatically method and generation system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844217B (en) | Method and device for embedding point of applied control and readable storage medium | |
CN103729285B (en) | A kind of webpage test method, equipment and system | |
CN107066381A (en) | Generate method, device and the equipment of the test analysis report based on image recognition | |
US6889337B1 (en) | Method and system for screen reader regression testing | |
CN108647141A (en) | Automatic test approach, device, computer-readable medium and electronic equipment | |
US11521735B2 (en) | Delivering individualized mental health therapies via networked computing devices | |
CN111552633A (en) | Interface abnormal call testing method and device, computer equipment and storage medium | |
US20160328986A1 (en) | Systems, methods and devices for call center simulation | |
US20120035986A1 (en) | Systems and methods for the skill acquisition and demonstration of skill | |
CN109828906A (en) | UI automated testing method, device, electronic equipment and storage medium | |
CN110475140A (en) | Barrage data processing method, device, computer readable storage medium and computer equipment | |
CN111836106A (en) | Online video playing monitoring processing method and device, computer and storage medium | |
Swarts | Open-source software in the sciences: The challenge of user support | |
CN110134656A (en) | Page control method, device, computer readable storage medium and computer equipment | |
CN114502971A (en) | Electronic product testing system for providing automated product testing | |
CN109033163B (en) | Method and device for adding diary in calendar | |
CN113568621A (en) | Data processing method and device for page embedded point | |
CN112286617B (en) | Operation guidance method and device and electronic equipment | |
CN109062654A (en) | A kind of interaction type learning method and system | |
Tjahjono | Exploring the effectiveness of formal technical review factors with CSRS, a collaborative software review system | |
Yee | Extending Prerendered-Interface Voting Software to Support Accessibility and Other Ballot Features. | |
CN112667338B (en) | Business line display control method and device, electronic equipment and storage medium | |
CN111786991B (en) | Block chain-based platform authentication login method and related device | |
CN109753284B (en) | Interface creating method, device and storage medium | |
CN113221509B (en) | Automatic generation method, device and equipment of slide and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170818 |
|
RJ01 | Rejection of invention patent application after publication |