CN108228460A - A kind of visual testing scenario generation method and system - Google Patents
A kind of visual testing scenario generation method and system Download PDFInfo
- Publication number
- CN108228460A CN108228460A CN201810009010.XA CN201810009010A CN108228460A CN 108228460 A CN108228460 A CN 108228460A CN 201810009010 A CN201810009010 A CN 201810009010A CN 108228460 A CN108228460 A CN 108228460A
- Authority
- CN
- China
- Prior art keywords
- test
- testing procedure
- sectional drawing
- script
- testing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
-
- 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/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of visual testing scenario generation method and systems.Method includes row test case, and according to the operational effect sectional drawing of testing procedure gradually recording step, test result, testing procedure and operational effect sectional drawing are bound.System includes test cell, for implementation of test cases;Sectional drawing unit, for according to the operational effect sectional drawing of testing procedure gradually recording step;Binding unit, for test result and testing procedure binding operational effect sectional drawing.The present invention carries out sectional drawing processing to test process, can realize the visualization record to testing procedure, and the improvement for the later stage provides advantage.
Description
Technical field
The present invention relates to code tester technical field more particularly to a kind of visual testing scenario generation method and systems.
Background technology
At present tester carries out the function of code manual test, can all go on use-case one by one, test is used
Example, which has passed through, just to be write in the use-case result by having represented that use-case execution passes through, and is had failed, is failure.The process of test only has
Tester knows, it is impossible to comprehensively testing process visualized reproduction be come out, it is impossible to ensure that can test quick complete
The problem of can not being reappeared when ensureing the proof of high quality in the case of, and test, is proved;Function Test Automation
Functional test personnel is then needed to record script or to write manually, pros and cons are that recording cannot flexibly try out that there is still a need for repair manually
Change, writing script manually then needs to take much time to debug.
Invention content
To solve the above-mentioned problems, the present invention provides a kind of visual testing scenario generation method and system.
On the one hand the technical solution adopted by the present invention is a kind of visual testing scenario generation method, including:Perform test
Use-case, according to the operational effect sectional drawing of testing procedure gradually recording step, by test result, testing procedure and operational effect sectional drawing into
Row binding.
Preferably, the test result of the testing procedure includes:Test is normally and test is abnormal, wherein, work as testing procedure
Test result it is abnormal for test, then it is abnormal step to mark the step, and by before abnormal step the step of is isolated to form the
One automatic test script.
Preferably, when the test result of testing procedure is all correctly, then retains original testing procedure to form second
Automatic test script.
Preferably, the test result when testing procedure is further included all correctly, then arbitrarily to combine the original test
Step is to form the automatic test script of third;Mark the described first automatic test script, the second automatic test script and third certainly
Dynamic test script is use-case test script.
Preferably, it further includes and binds the test case and the use-case test script.
Preferably, it further includes and judges whether use-case test script corresponding with test case, exist and then use the foot
This implementation of test cases there is no preset testing procedure implementation of test cases is then used, marks the preset testing procedure to be
Original testing procedure.
On the one hand the technical solution adopted by the present invention generates system for a kind of visual testing script, which is characterized in that packet
It includes:
Test cell, for implementation of test cases;Sectional drawing unit, for according to testing procedure gradually recording step operation imitate
Fruit sectional drawing;Binding unit, for test result and testing procedure binding operational effect sectional drawing.
Beneficial effects of the present invention are to carry out sectional drawing processing to test process, can realize the visualization note to testing procedure
Record, the improvement for the later stage provide advantage.
Description of the drawings
Fig. 1 show the schematic diagram of the initial testing flow based on the embodiment of the present invention;
Fig. 2 show the schematic diagram of the second test flow based on the embodiment of the present invention.
Specific embodiment
The present invention will be described with reference to embodiments.
Embodiment based on invention, a kind of visual testing scenario generation method, including:Implementation of test cases, according to test
The operational effect sectional drawing of step gradually recording step, test result, testing procedure and operational effect sectional drawing are bound.
The test result of the testing procedure includes:Test is normally and test is abnormal, wherein, when the test knot of testing procedure
Fruit is abnormal for test, then it is abnormal step to mark the step, and by before abnormal step the step of is isolated automatic is surveyed with forming first
Training sheet.
When the test result of testing procedure is tested automatically all correctly, then to retain original testing procedure with forming second
Script.
Method further includes the test result when testing procedure all correctly, then arbitrarily to combine the original testing procedure
To form the automatic test script of third;The described first automatic test script, the second automatic test script and third is marked to survey automatically
Training sheet is use-case test script.
Method, which further includes, binds the test case and the use-case test script.
Method, which further includes, judges whether use-case test script corresponding with test case, exists, is held using the script
Row test case, there is no preset testing procedure implementation of test cases is then used, it is original to mark the preset testing procedure
Testing procedure.
Embodiment based on invention, a kind of visual testing script generate system, including:Test cell, for performing survey
Example on probation;Sectional drawing unit, for according to the operational effect sectional drawing of testing procedure gradually recording step;Binding unit is tied for testing
Fruit and testing procedure binding operational effect sectional drawing.
Initial testing flow as shown in Figure 1.
Judge whether automatic test script (i.e. use-case test script);
Not then using original code implementation of test cases, while use-case step record is opened, use sectional drawing script root
Test case sectional drawing is generated according to the positioning of step element and record name;
Judge that use-case is to export corresponding use-case sectional drawing or production GIF cardons whether by test;
Since test passes through, then it is feasible to illustrate step (i.e. code), then can generate corresponding automatic test script,
I.e. the automatic test script of third (can also be freely combined, according to being sequentially generated pair for combination according to the test result of picture
The automatic test script of automatic test script i.e. second answered);
By third, two automatic test scripts and corresponding test case binding for follow-up test.
Second test flow as shown in Figure 2.
Judge whether automatic test script (i.e. use-case test script);
Have, detect whether original test script completely (can be tested, can test, illustrate automatically automatically
Sectional drawing script can use, it is impossible to then need to carry out manual sectional drawing), it is to perform use-case test, is not to manually perform use-case
It tests (error procedure then manual sectional drawing occur when running to);
Judge that use-case is to export corresponding use-case sectional drawing or production GIF cardons, not being then will be abnormal whether by test
The step of before step, is isolated to form the first automatic test script, while position abnormal step, detect corresponding bug and repair
It is multiple, re-start second test.
Embodiment is further improved, and sectional drawing script is as follows:
(1) the sectional drawing generation automation automated test frame selenium of code (i.e. sectional drawing script) based on existing mainstream,
First the browser supported is encapsulated, selection different browsers is facilitated to perform automatized script code.For sectional drawing, obtain
Picture name information format corresponding to it is element term (element positioning), example:Cloud example list (//i [4]/ul//i [3]/
a);
(2) system is successively read the title of picture and is stored into data by the use-case of execution or the use-case sequence of combination picture
In dictionary, selection obtains the absolute fix in bracket, and setting Chinese is abbreviated as variable name and fills out definition selenium absolute path sides
In method, example:Ysllb=driver.find_element_xpath (" //i [4]/ul//i [3]/a ");
(3) ysllb.click () is generated if clicking operation is performed, is generated if move operations are performed
ActionChains(driver).move_to_element(ysllb).perform()。
The present invention can automatically save tested step sectional drawing when implementation of test cases and automatic identification is clicked
Element positioning and name be referred to as the step sectional drawing title (facilitate subsequent test-based examination and automate code it is quick
Generation), its sectional drawing is finally merged into a figure or GIF Dynamic Graphs are conveniently checked.Improve the test quality of institute's test case
And visualization, the use-case that can not reappear is proposed facts proved that;Can the test case be quickly generated according to the title of interception picture
Automatic test script can also be combined into the automatized script of other test cases according to picture, allow the test for being ignorant of code
Personnel can also be combined into required test script according to picture.
The above, only presently preferred embodiments of the present invention, the invention is not limited in the above embodiment, as long as
It reaches the technique effect of the present invention with identical means, should all belong to the scope of protection of the present invention.In the protection model of the present invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.
Claims (7)
1. a kind of visual testing scenario generation method, which is characterized in that including:
Implementation of test cases, according to the operational effect sectional drawing of testing procedure gradually recording step, by test result, testing procedure and fortune
Row effect sectional drawing is bound.
2. a kind of visual testing scenario generation method according to claim 1, which is characterized in that the testing procedure
Test result includes:
Test is normally and test is abnormal, wherein,
When the test result of testing procedure is abnormal for test, then it is abnormal step to mark the step, by the step before abnormal step
It is rapid to be isolated to form the first automatic test script.
3. a kind of visual testing scenario generation method according to claim 2, which is characterized in that when the survey of testing procedure
Test result is all correct, then retains original testing procedure to form the second automatic test script.
4. a kind of visual testing scenario generation method according to claim 3, which is characterized in that further include and work as test step
Rapid test result is all correct, then arbitrarily combines the original testing procedure to form the automatic test script of third;
The described first automatic test script, the second automatic test script and the automatic test script of third is marked to test foot for use-case
This.
5. a kind of visual testing scenario generation method according to claim 4, which is characterized in that further include described in binding
Test case and the use-case test script.
6. a kind of visual testing scenario generation method according to claim 5, which is characterized in that further include and judge whether
In the presence of use-case test script corresponding with test case, exist then using the script implementation of test cases, there is no then using pre-
If testing procedure implementation of test cases, mark the preset testing procedure be original testing procedure.
7. a kind of visual testing script generates system, which is characterized in that including:
Test cell, for implementation of test cases;
Sectional drawing unit, for according to the operational effect sectional drawing of testing procedure gradually recording step;
Binding unit, for test result and testing procedure binding operational effect sectional drawing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810009010.XA CN108228460A (en) | 2018-01-04 | 2018-01-04 | A kind of visual testing scenario generation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810009010.XA CN108228460A (en) | 2018-01-04 | 2018-01-04 | A kind of visual testing scenario generation method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108228460A true CN108228460A (en) | 2018-06-29 |
Family
ID=62642957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810009010.XA Pending CN108228460A (en) | 2018-01-04 | 2018-01-04 | A kind of visual testing scenario generation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108228460A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113110909A (en) * | 2021-04-20 | 2021-07-13 | 肇庆小鹏汽车有限公司 | Vehicle instrument testing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055473A (en) * | 2016-05-23 | 2016-10-26 | 乐视控股(北京)有限公司 | Test method and apparatus |
CN106528395A (en) * | 2015-09-09 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Test case generation method and apparatus |
US9727447B1 (en) * | 2015-01-16 | 2017-08-08 | Amdocs Software Systems Limited | System, method, and computer program for automated exploratory testing |
-
2018
- 2018-01-04 CN CN201810009010.XA patent/CN108228460A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9727447B1 (en) * | 2015-01-16 | 2017-08-08 | Amdocs Software Systems Limited | System, method, and computer program for automated exploratory testing |
CN106528395A (en) * | 2015-09-09 | 2017-03-22 | 阿里巴巴集团控股有限公司 | Test case generation method and apparatus |
CN106055473A (en) * | 2016-05-23 | 2016-10-26 | 乐视控股(北京)有限公司 | Test method and apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113110909A (en) * | 2021-04-20 | 2021-07-13 | 肇庆小鹏汽车有限公司 | Vehicle instrument testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9032371B2 (en) | Method and apparatus for automatic diagnosis of software failures | |
CN104123219B (en) | Method and device for testing software | |
TWI510915B (en) | Computer automated test system and test methods, recording media and program products | |
US8464222B2 (en) | Method, apparatus or software for identifying dependencies between components for a given build of a componentised product | |
US10162742B2 (en) | System and method for end to end performance response time measurement based on graphic recognition | |
CN108763076A (en) | A kind of Software Automatic Testing Method, device, equipment and medium | |
US9384117B2 (en) | Machine and methods for evaluating failing software programs | |
US10459830B2 (en) | Executable code abnormality detection | |
CN108804305A (en) | A kind of method and device of automatic test | |
CN109947637B (en) | Automatic testing method, device, equipment and medium for webpage compatibility | |
CN108536593A (en) | CS Framework Softwares automated testing method based on UI and system | |
US20080307391A1 (en) | Acquiring coverage data from a script | |
CN110377347A (en) | A kind of automatic inspection method and system of Redfish setting BIOS option | |
CN109656643A (en) | More browser compatibility test methods, storage medium, electronic equipment and system | |
US20190278645A1 (en) | Log post-processor for identifying root causes of device failure during automated testing | |
CN107193730A (en) | A kind of interface test method of automation | |
CN107704389B (en) | Page testing method and device | |
CN111124894B (en) | Code coverage rate processing method and device and computer equipment | |
CN116955097A (en) | Test flow display method and device and test flow display system | |
CN108228460A (en) | A kind of visual testing scenario generation method and system | |
US10229029B2 (en) | Embedded instruction sets for use in testing and error simulation of computing programs | |
CN108334446A (en) | A kind of method of calibration of web page template, device and computer readable storage medium | |
CN112035300A (en) | Server BMC automatic test system, method, storage medium and electronic device | |
US10481969B2 (en) | Configurable system wide tests | |
CN107688539A (en) | A kind of BMC Web test systems |
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: 20180629 |
|
RJ01 | Rejection of invention patent application after publication |