CN109032940A - A kind of test scene input method, device, equipment and storage medium - Google Patents
A kind of test scene input method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109032940A CN109032940A CN201810799031.6A CN201810799031A CN109032940A CN 109032940 A CN109032940 A CN 109032940A CN 201810799031 A CN201810799031 A CN 201810799031A CN 109032940 A CN109032940 A CN 109032940A
- Authority
- CN
- China
- Prior art keywords
- content
- logged
- scene
- mapping relations
- library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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/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)
- 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 present invention relates to a kind of test scene input method, device, equipment and storage mediums, which comprises retrieve and judge in scene library whether existing content to be logged: be then no longer to store the content to be logged to scene library;It is no, then by the content typing scene library to be logged.The present invention, using preset expansible scene library, simplifies scene library typing mode by retrieving to file to be logged using the method based on big data, effectively reduces the repetition scene typing of scene library, improves scene efficiency of inputting.
Description
Technical field
The invention belongs to software testing technology fields, and in particular to a kind of test scene input method, device, equipment and deposit
Storage media.
Background technique
Present software is nearly all with event triggering come control flow, and scene when event triggers just forms field
Scape, and the different trigger sequence and processing result of same event just forms flow of event.This thought in terms of software design
It can be introduced into software test, can more vivo describe scene when outgoing event triggering, be conducive to test designer and set
Test case is counted, while test case being made to be easier to understand and execute.By with scene come the function point or business to system
The description of process, so that the scene method for improving test effect becomes the important method of test software.
Current test and management tool is bad to the typing support of test scene, and each typing requires to select corresponding function
Energy module, the resource of respective modules, the movement of operation and the details description of scene, such input method labor intensive and height
The duplicate test scene of probability typing.
Summary of the invention
It is an object of the present invention to design a kind of test scene typing in view of the above-mentioned drawbacks of the prior art, providing
Method, apparatus, equipment and storage medium, to solve the above technical problems.
In a first aspect, the embodiment of the present application provides a kind of test scene input method, which comprises
Retrieve and judge in scene library whether existing content to be logged:
It is then no longer to store the content to be logged to scene library;
It is no, then by the content typing scene library to be logged.
With reference to first aspect, in the first embodiment of first aspect, the method also includes:
Mapping between mapping relations and module and resource between the module and movement for belonging to test scene content is set
Relationship forms mapping relations net;
The complete map network of personal connections that whether there is the content to be logged in scene library is judged according to the mapping relations net:
It is no, then with the content to be logged will there is the test scene content amended record of mapping relations to enter in scene library.
With reference to first aspect and the first embodiment of first aspect, in second of embodiment of first aspect,
Mapping relations between the mapping relations and module and resource being arranged between the module and movement for belonging to test scene content
Forming mapping relations net includes:
The mapping relations that multiple modules correspond to multiple movements are set;
The mapping relations that one module corresponds to multiple resources are set.
With reference to first aspect and the first embodiment of first aspect, in the third embodiment of first aspect,
The method also includes:
There is the test scene content retrieval number of mapping relations according to the content to be logged and with the content to be logged
According in library with the presence or absence of all corresponding operation details:
It is no, then the respective operations details amended record lacked is entered in scene library.
Second aspect, the embodiment of the present application provide a kind of test scene input device, and described device includes:
Retrieval unit, be configured to retrieve and judge in scene library whether existing content to be logged;
Stop unit is configured to no longer store the content to be logged to scene library;
Typing unit is configured to the content typing scene library to be logged.
In conjunction with second aspect, in the first embodiment of second aspect, described device further include:
Mapping settings unit, be configured to mapping relations that setting belongs between the module and movement of test scene content and
Mapping relations between module and resource form mapping relations net;
Map Searching unit is configured to be judged according to the mapping relations net in scene library with the presence or absence of described to be logged
The complete map network of personal connections of content;
Amended record unit is mapped, the test scene content amended record that will there are mapping relations with the content to be logged is configured to
Enter in scene library.
In conjunction with the first of second aspect and second aspect embodiment, in second of embodiment of second aspect,
The mapping settings unit includes:
First setup module is configured to that the mapping relations that multiple modules correspond to multiple movements are arranged;
Second setup module is configured to the mapping relations that one module of setting corresponds to multiple resources.
In conjunction with the first of second aspect and second aspect embodiment, in the third embodiment of second aspect,
Described device further include:
Retrieval unit is operated, is configured to that there are mapping relations according to the content to be logged and with the content to be logged
Test scene content retrieval database in the presence or absence of all corresponding operation details;
Amended record unit is operated, the respective operations details amended record for being configured to lack enters in scene library.
The third aspect, the embodiment of the present application provide a kind of equipment, comprising: one or more processors;Memory, for depositing
One or more programs are stored up, when one or more of programs are executed by one or more of processors, so that described one
A or multiple processors execute the method as described in first aspect and any embodiment of first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium for being stored with computer program, should
The method as described in first aspect and any embodiment of first aspect is realized when program is executed by processor.
The beneficial effects of the present invention are,
Test scene input method provided by the invention, using the method based on big data, by file to be logged into
Row retrieval, using preset expansible scene library, simplifies scene library typing mode, effectively reduces the repetition scene record of scene library
Enter, improves scene efficiency of inputting.
Test scene input device provided by the invention, using the method based on big data, by file to be logged into
Row retrieval, using preset expansible scene library, simplifies scene library typing mode, effectively reduces the repetition scene record of scene library
Enter, improves scene efficiency of inputting.
Equipment provided by the invention is able to carry out test scene input method provided by the invention, using based on big data
Method, using preset expansible scene library, simplify scene library typing mode by being retrieved to file to be logged, have
Effect reduces the repetition scene typing of scene library, improves scene efficiency of inputting.
The computer readable storage medium provided by the invention for being stored with computer program, when which is executed by processor
It can be realized test scene input method provided by the invention, by retrieving to file to be logged, using preset expansible
Scene library simplifies scene library typing mode, effectively reduces the repetition scene typing of scene library, improves scene typing effect
Rate.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the illustrative flow chart of test scene input method provided by the embodiments of the present application;
Fig. 2 is the illustrative flow chart of test scene input method provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiment of the present application provides a kind of test scene input method, which comprises
Retrieve and judge in scene library whether existing content to be logged:
It is then no longer to store the content to be logged to scene library;
It is no, then by the content typing scene library to be logged.
In a preferred embodiment, the method also includes:
Mapping between mapping relations and module and resource between the module and movement for belonging to test scene content is set
Relationship forms mapping relations net and (mapping relations that multiple modules correspond to multiple movements preferably, is arranged;It is corresponding that one module is set
The mapping relations of multiple resources.);
The complete map network of personal connections that whether there is the content to be logged in scene library is judged according to the mapping relations net:
It is no, then with the content to be logged will there is the test scene content amended record of mapping relations to enter in scene library.
In another preferred embodiment, the method also includes:
There is the test scene content retrieval number of mapping relations according to the content to be logged and with the content to be logged
According in library with the presence or absence of all corresponding operation details: it is no, then the respective operations details amended record lacked is entered in scene library
In order to facilitate the understanding of the present invention, below with the principle of typing test scene of the present invention, in conjunction with the embodiments middle record
The process for entering test scene is further described test scene input method provided by the invention.
Embodiment 1
Referring to FIG. 1, the present embodiment provides a kind of test scene input methods, the specific steps are as follows:
Test scene content includes module (such as: calculating, storage), movement (such as: increasing, delete, modification, inquiry), resource
(such as: host, hard disk, network), and the operation detail as made of module, movement and combination of resources.
S1, before by above-mentioned test scene content typing scene library, first retrieve and judge in scene library whether it is existing to
Typing content.
If existing same test scene content, stops typing in S2, scene library.
It, will be in content typing scene library to be logged if same test scene content is not present in S3, scene library.
Embodiment 2
S1, before by above-mentioned test scene content typing scene library, first retrieve and judge in scene library whether it is existing to
Typing content.
If existing same test scene content, stops typing in S2, scene library.
It, will be in content typing scene library to be logged if same test scene content is not present in S3, scene library.
The mapping that S4, the multiple modules of setting correspond to the mapping relations of multiple movements and a module corresponds to multiple resources is closed
System forms the mapping relations net between test scene content three.
S5, the complete map network of personal connections that whether there is content to be logged in scene library is judged according to mapping relations net: if not
There are the complete map networks of personal connections of content to be logged, then the test scene content amended record that will have mapping relations with content to be logged
Enter in scene library.
There is the test scene content retrieval number of mapping relations according to the content to be logged and with the content to be logged
According to whether there is all corresponding operation details in library, if scene library does not include whole respective operations details, pair that will lack
Operation detail amended record is answered to enter in scene library.
For example, user is by module, movement and resource full dose typing:
(1) operation detail is shown if module to be logged, movement and resource are with having record exact matching in scene library,
If operation detail is existing, then typing is abandoned;The typing operation detail if operation detail is not present, and by the module of typing, dynamic
Make, resource is associated with operation detail by ID.
(2) if having record matching in module to be logged and scene library, movement, resource are mismatched, then will movement, resource point
Corresponding region in other typing scene library, then typing operation detail, and by the module of typing, movement, resource and operation
Details are associated with by ID.
It (3), then will money if module to be logged, movement and resource are mismatched with having record matching, resource in scene library
Corresponding position in source typing scene library, then typing operation detail, and by the module of typing, movement, resource and operation detail
It is associated with by ID.
(4) it if module to be logged is mismatched with having record in scene library, by module typing scene library, then executes
(2) and the method for (3).
If user typing movement, resource part test scene content:
(1) if having record matching in resource to be logged, movement and scene library, automatically according to three's mapping relations net
It matches existing module and shows operation detail, the typing operation detail if without repeating.
(2) such as resource matched, resource mismatch, then Auto-matching has module, and will act corresponding in typing scene library
The module of typing, movement, resource and operation detail are simultaneously associated with by position, typing operation detail by ID.
(3) such as resource mismatches, then typing resource, and according to three's mapping relations net recording module, executes the side in (2)
Method.
The embodiment of the present application provides a kind of test scene input device, and described device includes:
Retrieval unit, be configured to retrieve and judge in scene library whether existing content to be logged;
Stop unit is configured to no longer store the content to be logged to scene library;
Typing unit is configured to the content typing scene library to be logged.
In a preferred embodiment, described device further include:
Mapping settings unit, be configured to mapping relations that setting belongs between the module and movement of test scene content and
Mapping relations between module and resource form mapping relations net;
Map Searching unit is configured to be judged according to the mapping relations net in scene library with the presence or absence of described to be logged
The complete map network of personal connections of content;
Amended record unit is mapped, the test scene content amended record that will there are mapping relations with the content to be logged is configured to
Enter in scene library.
Wherein, the mapping settings unit includes:
First setup module is configured to that the mapping relations that multiple modules correspond to multiple movements are arranged;
Second setup module is configured to the mapping relations that one module of setting corresponds to multiple resources.
In another preferred embodiment, described device further include:
Retrieval unit is operated, is configured to that there are mapping relations according to the content to be logged and with the content to be logged
Test scene content retrieval database in the presence or absence of all corresponding operation details;
Amended record unit is operated, the respective operations details amended record for being configured to lack enters in scene library.
The embodiment of the present application provides a kind of equipment, comprising: one or more processors;Memory, for store one or
Multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of
Processor executes method provided by the embodiments of the present application.
The embodiment of the present application provides a kind of computer readable storage medium for being stored with computer program, which is characterized in that
The program realizes method provided by the embodiments of the present application when being executed by processor.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field
What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and
Retouching, should all be within the scope of the present invention.
Claims (10)
1. a kind of test scene input method, which is characterized in that the described method includes:
Retrieve and judge in scene library whether existing content to be logged:
It is then no longer to store the content to be logged to scene library;
It is no, then by the content typing scene library to be logged.
2. the method according to claim 1, wherein the method also includes:
Mapping relations between mapping relations and module and resource between the module and movement for belonging to test scene content are set
Form mapping relations net;
The complete map network of personal connections that whether there is the content to be logged in scene library is judged according to the mapping relations net:
It is no, then with the content to be logged will there is the test scene content amended record of mapping relations to enter in scene library.
3. according to the method described in claim 2, it is characterized in that, described be arranged the module and movement for belonging to test scene content
Between mapping relations and module and resource between mapping relations formed mapping relations net include:
The mapping relations that multiple modules correspond to multiple movements are set;
The mapping relations that one module corresponds to multiple resources are set.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
There is the test scene content retrieval database of mapping relations according to the content to be logged and with the content to be logged
In with the presence or absence of all corresponding operation details:
It is no, then the respective operations details amended record lacked is entered in scene library.
5. a kind of test scene input device, which is characterized in that described device includes:
Retrieval unit, be configured to retrieve and judge in scene library whether existing content to be logged;
Stop unit is configured to no longer store the content to be logged to scene library;
Typing unit is configured to the content typing scene library to be logged.
6. device according to claim 5, which is characterized in that described device further include:
Mapping settings unit is configured to mapping relations and module that setting belongs between the module and movement of test scene content
Mapping relations between resource form mapping relations net;
Map Searching unit is configured to be judged according to the mapping relations net in scene library with the presence or absence of the content to be logged
Complete map network of personal connections;
Amended record unit is mapped, the test scene content amended record admission that will there are mapping relations with the content to be logged is configured to
In scape library.
7. device according to claim 6, which is characterized in that the mapping settings unit includes:
First setup module is configured to that the mapping relations that multiple modules correspond to multiple movements are arranged;
Second setup module is configured to the mapping relations that one module of setting corresponds to multiple resources.
8. device according to claim 6, which is characterized in that described device further include:
Retrieval unit is operated, the survey according to the content to be logged and with the content to be logged with mapping relations is configured to
With the presence or absence of all corresponding operation details in the scape content retrieval database of examination hall;
Amended record unit is operated, the respective operations details amended record for being configured to lack enters in scene library.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors
Execute such as method of any of claims 1-4.
10. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor
Shi Shixian method for example of any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810799031.6A CN109032940B (en) | 2018-07-19 | 2018-07-19 | Test scene input method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810799031.6A CN109032940B (en) | 2018-07-19 | 2018-07-19 | Test scene input method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109032940A true CN109032940A (en) | 2018-12-18 |
CN109032940B CN109032940B (en) | 2021-04-09 |
Family
ID=64644551
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810799031.6A Active CN109032940B (en) | 2018-07-19 | 2018-07-19 | Test scene input method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109032940B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347255A (en) * | 2019-07-03 | 2019-10-18 | 死海旅游度假有限公司 | A kind of body feeling interaction system based on 3D dynamic Simulation Techniques |
CN114399164A (en) * | 2021-12-17 | 2022-04-26 | 东风柳州汽车有限公司 | Automobile configuration demand analysis method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053903A (en) * | 2009-10-30 | 2011-05-11 | 国际商业机器公司 | Method and system for storing and querying scene data for on-line operation programs |
US20120163658A1 (en) * | 2010-12-23 | 2012-06-28 | Canon Kabushiki Kaisha | Temporal-Correlations-Based Mode Connection |
CN108039989A (en) * | 2017-12-05 | 2018-05-15 | 海尔优家智能科技(北京)有限公司 | A kind of method, apparatus of Scene case, storage medium and computer equipment |
-
2018
- 2018-07-19 CN CN201810799031.6A patent/CN109032940B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053903A (en) * | 2009-10-30 | 2011-05-11 | 国际商业机器公司 | Method and system for storing and querying scene data for on-line operation programs |
US20120163658A1 (en) * | 2010-12-23 | 2012-06-28 | Canon Kabushiki Kaisha | Temporal-Correlations-Based Mode Connection |
CN108039989A (en) * | 2017-12-05 | 2018-05-15 | 海尔优家智能科技(北京)有限公司 | A kind of method, apparatus of Scene case, storage medium and computer equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347255A (en) * | 2019-07-03 | 2019-10-18 | 死海旅游度假有限公司 | A kind of body feeling interaction system based on 3D dynamic Simulation Techniques |
CN110347255B (en) * | 2019-07-03 | 2023-06-13 | 灶灶科技有限公司 | Somatosensory interaction system based on 3D dynamic simulation technology |
CN114399164A (en) * | 2021-12-17 | 2022-04-26 | 东风柳州汽车有限公司 | Automobile configuration demand analysis method |
CN114399164B (en) * | 2021-12-17 | 2024-04-09 | 东风柳州汽车有限公司 | Automobile configuration demand analysis method |
Also Published As
Publication number | Publication date |
---|---|
CN109032940B (en) | 2021-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11176128B2 (en) | Multiple access path selection by machine learning | |
CN109582667A (en) | A kind of multiple database mixing storage method and system based on power regulation big data | |
CN104573130B (en) | The entity resolution method and device calculated based on colony | |
CN102968374B (en) | A kind of data warehouse method of testing | |
CN110088749A (en) | Automated ontology generates | |
CN110990447B (en) | Data exploration method, device, equipment and storage medium | |
CN103577440A (en) | Data processing method and device in non-relational database | |
CN107818120A (en) | Data processing method and device based on big data | |
CN106569896B (en) | A kind of data distribution and method for parallel processing and system | |
CN104239377A (en) | Platform-crossing data retrieval method and device | |
CN110245145A (en) | Structure synchronization method and apparatus of the relevant database to Hadoop database | |
CN107122238B (en) | Efficient iterative Mechanism Design method based on Hadoop cloud Computational frame | |
Jayathilake et al. | A study into the capabilities of NoSQL databases in handling a highly heterogeneous tree | |
Gupta et al. | Faster as well as early measurements from big data predictive analytics model | |
CN110505495A (en) | Multimedia resource takes out frame method, device, server and storage medium | |
CN109690571A (en) | Group echo system and method based on study | |
CN103248511B (en) | A kind of analysis methods, devices and systems of single-point service feature | |
US11321318B2 (en) | Dynamic access paths | |
CN109032940A (en) | A kind of test scene input method, device, equipment and storage medium | |
CN104965846B (en) | Visual human's method for building up in MapReduce platform | |
CN110134511A (en) | A kind of shared storage optimization method of OpenTSDB | |
CN110334119A (en) | A kind of data correlation processing method, device, equipment and medium | |
CN110309214A (en) | A kind of instruction executing method and its equipment, storage medium, server | |
US11645283B2 (en) | Predictive query processing | |
CN107894942A (en) | The monitoring method and device of tables of data visit capacity |
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 |