CN109271311A - A kind of demand displaying method and demand displaying device - Google Patents
A kind of demand displaying method and demand displaying device Download PDFInfo
- Publication number
- CN109271311A CN109271311A CN201710586174.4A CN201710586174A CN109271311A CN 109271311 A CN109271311 A CN 109271311A CN 201710586174 A CN201710586174 A CN 201710586174A CN 109271311 A CN109271311 A CN 109271311A
- Authority
- CN
- China
- Prior art keywords
- node
- displaying
- scene
- test
- field
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Abstract
This application provides a kind of demand displaying method and demand displaying devices, improve the efficiency and accuracy of software development to guarantee the description consistency of demand scene for realizing the conversion between the different scenesization description of demand scene.The embodiment of the present application method includes: that the first displaying of display description and the first displaying describe corresponding switching button, first displaying is described as the displaying describing mode of mission requirements, and the first displaying is described as any one of scene flow chart, scene description sentence and test case;Detect the clicking operation of corresponding switching button is described to the first displaying when, first displaying description is converted into the second displaying description, the second displaying is described as being different from the one or two of the first displaying description in scene flow chart, scene description sentence and test case;Show that the second displaying describes.
Description
Technical field
This application involves computer field more particularly to a kind of demand displaying method and demand displaying devices.
Background technique
Software development originates from the development task that client proposes, industry generally determines the specific development task that client proposes
Justice is demand.For example, the store of customer requirement operator needs support wechat payment, mission requirements are exactly that " store need to be supported micro-
Letter payment ".A usual mission requirements are made of one or more demand scenes.For the software development of mission requirements, generally
Including demand analysis stage, software development phase and software test stage.
In demand analysis stage, demand analysis personnel need to carry out scene to demand using the document with fixed form
Change description, is combined in the description document of demand scene using diversified forms such as text, flow chart or surface charts and retouch demand scene
Condition, process and result premised on stating.Displaying description can also be carried out to demand using standardization demand scene description sentence,
For example, GWT (Given When Then) sentence.The premise of the field description demand scene of " Given " keyword in GWT sentence
Condition, the process of the field description demand scene of " When " keyword, the knot of the field description demand scene of " Then " keyword
Fruit.Software test stage after the software development of demand is completed, Test Engineer also need to test demand software,
Test job relies on a set of test object of reference, and industry definition test object of reference is test case, and test case generally comprises test
Condition, test process and expected results three parts.In the case where understanding errorless to same demand, the description of a demand scene
The demand data of document, demand scene description sentence and test case is homologous.
But since the description document of demand scene does not have strict regulations descriptor format and method, in addition demand analysis people
Member and tester knowledge background and experience ability it is not identical, make the description document of twin-request scene, demand scene is retouched
Predicate sentence and test case write the inaccuracy that content is multifarious, when so as to cause software development, affect the effect of exploitation
Rate.
Summary of the invention
This application provides a kind of demand displaying method and demand displaying devices, for realizing the difference of demand scene
Conversion between displaying description improves the efficiency and accuracy of software development to guarantee the description consistency of demand scene.
The application first aspect provides a kind of demand displaying method, comprising:
Show that the first displaying description and first displaying describe corresponding switching button, first displaying is retouched
The displaying describing mode for mission requirements is stated, first displaying is described as scene flow chart, scene description sentence and survey
Any one of example on probation, the scene flow chart includes precondition node, process node and result node, and the scene is retouched
Predicate sentence includes precondition field, procedure field and result field, the test case include test condition, test process and
Expected results;
Detect the clicking operation of corresponding switching button is described to first displaying when, by first scene
Change description and be converted to the second displaying description, second displaying is described as the scene flow chart, the scene description language
It is different from the one or two of first displaying description in sentence and the test case;
Show the second displaying description.
During software development, in order to facilitate the exploitation of software, need to the software development task of client's proposition
Mission requirements carry out displaying description, and a mission requirements include one or more demand scene, are described by displaying
Mode describes the demand scene in mission requirements, and displaying description can be scene flow chart, scene description sentence and test
Use-case is these three types of.Three precondition, process and result parts can be generally divided into the description of demand scene, then scene flows
It include precondition node, process node and result node in journey figure;It include precondition field, process in scene description sentence
Field and result field;It include test condition, test process and expected results in test case.It is obtained when according to mission requirements
After first displaying description, the first displaying of display description and the first displaying describe corresponding switching button, and first
Scape is described as the displaying describing mode of mission requirements, the first displaying be described as scene flow chart, scene description sentence and
Any one of test case, detect the clicking operation of corresponding switching button is described to the first displaying when, by first
Displaying description is converted to the second displaying description, and the second displaying is described as scene flow chart, scene description sentence and test
It is different from the one or two of the first displaying description in use-case, and the second displaying being converted to description is shown
Come.Compared with scene flow chart in the prior art, scene description sentence and test case require independently to write to obtain, the application
First displaying can be described to be converted to the second displaying description, the first displaying description is scene flow chart, scene description
One of sentence and test case, the second displaying are described as in scene flow chart, scene description sentence and test case not
The one or two of the first displaying description are same as, therefore, the case where a kind of displaying known describes, can convert and show
Other one or two kinds of displaying descriptions out, avoid scene flow chart, demand scene description sentence and test in the prior art
These three displayings of use-case description requires independently to write, so as to cause the different situation of content that these three displayings describe,
The description consistency for ensuring that demand scene in this way, improves the efficiency and accuracy of software development.
In conjunction with the application in a first aspect, in the application first aspect first embodiment, first displaying is described as
Scene flow chart, second displaying are described as scene description sentence and/or test case,
It is described that first displaying description is converted into the second displaying description, comprising:
The precondition node, the process node and the result node are converted into scene description sentence, it is described
The field contents of the precondition field of scene description sentence are consistent with the node content of the precondition node, the scene
The field contents of the procedure field of descriptive statement are consistent with the node content of the process node, the knot of the scene description sentence
The field contents of fruit field are consistent with the node content of the result node;
And/or
The precondition node, the process node and the result node are converted into test case, the test
The test content of the test condition of use-case is consistent with the node content of the precondition node, the test of the test case
The test content of journey is consistent with the node content of the process node, the test content of the expected results of the test case and institute
The node content for stating result node is consistent.
Assuming that the first displaying is described as scene flow chart in first aspect, then the second displaying is described as scene description
Sentence and/or test case.In the scene flow chart of display include three generic attributes node, be respectively precondition node,
Process node and result node, the node content of precondition node are used to describe the precondition of demand scene;Process node
Node content be used to describe the process of demand scene;The node content of result node is used to describe the result of demand scene.It will
First displaying description is converted to the second displaying description, substantially by precondition node, process node and result node
Be converted to scene description sentence;And/or precondition node, process node and result node are converted into test case.?
To scene description sentence in, the field contents of precondition field are consistent with the node content of precondition node, proword
The field contents of section are consistent with the node content of process node, the field contents and result section of the result field of scene description sentence
The node content of point is consistent;In obtained test case, in the test content of test condition and the node of precondition node
Hold unanimously, the test content of test process and the node content of process node are consistent, it is contemplated that the test content and result section of result
The node content of point is consistent.When specifically illustrating the first displaying and being described as scene flow chart, scene flow chart is converted to scene
The essence of descriptive statement and/or test case is to replace the node content of precondition node, process node and result node
For the field contents of precondition field, procedure field and result field in scene description sentence;And/or by precondition section
The node content of point, process node and result node replaces with test condition in test case, test process and expected results
Test content.It is thereby achieved that also can guarantee the description to demand scene while mutually conversion between different scenesization description
It is consistent.
In conjunction with the application first aspect first embodiment, in the application first aspect second embodiment, the display
First displaying description and first displaying describe before corresponding switching button, further includes:
Show that the demand flow chart of mission requirements, the demand flow chart include at least three flow chart nodes;
The scene flow chart that detection user selects from the demand flow chart, obtains the scene process of user setting
The nodal community of scenario node in figure, the nodal community are used to indicate condition node, procedure section premised on the scenario node
Point or result node.
In above-mentioned first aspect first embodiment, it has been assumed that the first displaying is described as scene flow chart, then aobvious
The scene flow chart shown be how come and scene flow chart in precondition node, process node or result node
How to be arranged, need described below, show the demand flow chart of mission requirements first, demand flow chart be according to
What mission requirements generated, include at least three flow chart nodes in demand flow chart;User is in the demand flow chart for seeing display
Afterwards, demand scene partitioning is carried out to mission requirements according to understanding, a mission requirements include one or more demand scene, are pressed
According to the demand scene of division, at least three flow chart nodes are selected as a scene flow chart in demand flow chart center, it is right
For demand displaying device, the scene flow chart that detection user selects from demand flow chart obtains the field of user setting
The nodal community of scenario node in scape flow chart, nodal community are used to indicate condition node, process node premised on scenario node
Or result node.
In conjunction with the application in a first aspect, first displaying is described as in the application first aspect third embodiment
Scene description sentence, second displaying are described as scene flow chart and/or test case,
It is described that first displaying description is converted into the second displaying description, comprising:
The precondition field, the procedure field and the result field are converted into scene flow chart, the field
The node content of the precondition node of scape flow chart is consistent with the field contents of the precondition field, the scene process
The node content of the process node of figure is consistent with the field contents of the procedure field, the result node of the scene flow chart
Node content is consistent with the field contents of the result field;
And/or
The precondition field, the procedure field and the result field are converted into test case, the test
The test content of the test condition of use-case is consistent with the field contents of the precondition field, the test of the test case
The test content of journey is consistent with the field contents of the procedure field, the test content of the expected results of the test case and institute
The field contents for stating result field are consistent.
Assuming that the first displaying is described as scene description sentence in first aspect, then the second displaying is described as scene flows
Journey figure and/or test case.It is precondition word respectively including the field of three types in the scene description sentence of display
Section, procedure field and result field, the field contents of precondition field are used to describe the precondition of demand scene;Proword
The field contents of section are used to describe the process of demand scene;The field contents of result field are used to describe the result of demand scene.
First displaying description is converted into the second displaying description, substantially by precondition field, procedure field and result word
Section is converted to scene flow chart;And/or precondition field, procedure field and result field are converted into test case.?
To scene flow chart in, the node content of precondition node is consistent with the field contents of precondition field, process node
Node content it is consistent with the field contents of procedure field, the node content of result node and the field contents one of result field
It causes;In obtained test case, the test content of test condition is consistent with the field contents of precondition field, test process
Test content it is consistent with the field contents of procedure field, it is contemplated that the test content of result and the field contents one of result field
It causes.When specifically illustrating the first displaying and being described as scene description sentence, scene description sentence be converted to scene flow chart and/or
The essence of test case is that the field contents of precondition field, procedure field and result field are replaced with scene flow chart
The node content of middle precondition node, process node and result node;And/or by precondition field, procedure field and knot
The field contents of fruit field replace with the test content of test condition in test case, test process and expected results.Therefore, real
Show between different scenesization description while mutually convert, also can guarantee that the description to demand scene is consistent.
In conjunction with the application in a first aspect, in the 4th embodiment of the application first aspect, first displaying is described as
Test case, second displaying are described as scene flow chart and/or scene description sentence,
It is described that first displaying description is converted into the second displaying description, comprising:
The test condition, the test process and the expected results are converted into scene flow chart, the scene flows
The node content of the precondition node of journey figure is consistent with the test content of the test condition, the process of the scene flow chart
The node content of node is consistent with the test content of the test condition, the node content of the result node of the scene flow chart
It is consistent with the test content of the expected results;
And/or
The test condition, the test process and the expected results are converted into scene description sentence, the scene
The field contents of the precondition field of descriptive statement are consistent with the test content of the test condition, the scene description sentence
Procedure field field contents it is consistent with the test content of the test process, the result field of the scene description sentence
Field contents are consistent with the test content of the expected results.
Assuming that the first displaying is described as test case in first aspect, then the second displaying is described as scene flow chart
And/or scene description sentence.It include test condition, test process and expected results, test condition in the test case of display
Test content be used to describe the precondition of demand scene;The test content of test process is used to describe the mistake of demand scene
Journey;The test content of expected results is used to describe the result of demand scene.First displaying description is converted into the second displaying
Test condition, test process and expected results are substantially converted to scene flow chart by description;And/or by test condition,
Test process and expected results are converted to scene description sentence.In obtained scene flow chart, the node of precondition node
Content is consistent with the test content of test condition, and the node content of process node and the test content of test process are consistent, as a result
The node content of node and the test content of expected results are consistent;In obtained scene description sentence, precondition field
Field contents are consistent with the test content of test condition, and the field contents of procedure field and the test content of test process are consistent,
The field contents of result field and the test content of expected results are consistent.It specifically illustrates the first displaying and is described as test case
When, test case is converted to scene flow chart and/or the essence of scene description sentence is, by test condition, test process and pre-
The test content of phase result replaces with the node content of precondition node, process node and result node in scene flow chart;
And/or the test content of test condition, test process and expected results is replaced with into precondition word in scene description sentence
The field contents of section, procedure field and result field.It is thereby achieved that while mutually conversion between different scenesization description,
Also it can guarantee that the description to demand scene is consistent.
In conjunction with the application first aspect, first aspect first embodiment, first aspect second embodiment, first aspect
The 4th embodiment of third embodiment or first aspect, in the 5th embodiment of the application first aspect, described in the display
After second displaying description, further includes:
When user, which modifies first displaying, to be described, modified first displaying description is shown, by the modification
The first displaying description afterwards is converted to modified second displaying description, shows that modified second displaying is retouched
It states;
Alternatively, modified second displaying description is shown when user's modification second displaying describes, it will be described
Modified second displaying description is converted to modified first displaying description, shows modified first displaying
Description.
When mission requirements change or the description of demand scene is caused to change for the reasons such as user's understanding changes, use
Family describes the first displaying or the second displaying description is modified, and when user, which modifies the first displaying, to be described, shows
Show modified first displaying description, modified first displaying description is converted into modified second displaying and is retouched
It states, shows modified second displaying description;Alternatively, showing modified the when user modifies the second displaying and describes
Modified second displaying description is converted to modified first displaying and described by two displayings description, after display modification
The first displaying description.After realizing a displaying description modification, other displaying descriptions can be repaired automatically
Change, eliminates the operating procedure that user modifies other displayings description.
The application second aspect provides a kind of demand displaying device, comprising:
Processor, display and memory, wherein the memory can be used for storing the generation that the processor executes
Code;
The display, for showing that the first displaying description and first displaying describe corresponding switching button,
First displaying is described as the displaying describing mode of mission requirements, first displaying be described as scene flow chart,
Any one of scene description sentence and test case, the scene flow chart include precondition node, process node and knot
Fruit node, the scene description sentence include precondition field, procedure field and result field, and the test case includes surveying
Strip part, test process and expected results;
The processor, for detecting the clicking operation for describing corresponding switching button to first displaying
When, first displaying description is converted into the second displaying description, second displaying is described as the scene process
It is different from the one or two of first displaying description in figure, the scene description sentence and the test case;
The display is also used to show the second displaying description.
During software development, in order to facilitate the exploitation of software, need to the software development task of client's proposition
Mission requirements carry out displaying description, and a mission requirements include one or more demand scene, are described by displaying
Mode describes the demand scene in mission requirements, and displaying description can be scene flow chart, scene description sentence and test
Use-case is these three types of.Three precondition, process and result parts can be generally divided into the description of demand scene, then scene flows
It include precondition node, process node and result node in journey figure;It include precondition field, process in scene description sentence
Field and result field;It include test condition, test process and expected results in test case.It is obtained when according to mission requirements
After first displaying description, the display of demand displaying device shows the first displaying description and the first displaying description
Corresponding switching button, the first displaying are described as the displaying describing mode of mission requirements, and the first displaying is described as scene
Any one of flow chart, scene description sentence and test case, processor detect the first displaying is described it is corresponding
When the clicking operation of switching button, the first displaying description is converted into the second displaying description, the second displaying is described as field
It is different from the one or two of the first displaying description, and display in scape flow chart, scene description sentence and test case
The second displaying being converted to description is shown.With scene flow chart in the prior art, scene description sentence and test
Use-case is required independently to write and be compared, and the application can describe the first displaying to be converted to the second displaying description, the
One displaying description is one of scene flow chart, scene description sentence and test case, and the second displaying is described as scene
It is different from the one or two of the first displaying description in flow chart, scene description sentence and test case, therefore, known one
The case where kind displaying describes can convert and show other one or two kinds of displayings descriptions, avoid in the prior art
Scene flow chart, demand scene description sentence and these three displayings of test case description require independently to write, so as to cause
The different situation of the content of these three displayings description, ensures that the description consistency of demand scene in this way, improves software and opens
The efficiency and accuracy of hair.
In conjunction with the application second aspect, in the application second aspect first embodiment, first displaying is described as
Scene flow chart, second displaying are described as scene description sentence and/or test case,
The processor is also used to be converted to the precondition node, the process node and the result node
Scene description sentence, the node of the field contents of the precondition field of the scene description sentence and the precondition node
Content is consistent, and the field contents of the procedure field of the scene description sentence are consistent with the node content of the process node, institute
The field contents for stating the result field of scene description sentence are consistent with the node content of the result node;
And/or
The processor is also used to be converted to the precondition node, the process node and the result node
Test case, the test content of the test condition of the test case is consistent with the node content of the precondition node, institute
The test content for stating the test process of test case is consistent with the node content of the process node, the expection of the test case
As a result test content is consistent with the node content of the result node.
Assuming that the first displaying is described as scene flow chart in second aspect, then the second displaying is described as scene description
Sentence and/or test case.It is precondition respectively including the node of three generic attributes in the scene flow chart that display is shown
Node, process node and result node, the node content of precondition node are used to describe the precondition of demand scene;Process
The node content of node is used to describe the process of demand scene;The node content of result node is used to describe the knot of demand scene
Fruit.First displaying description is converted to the second displaying description by processor, substantially by precondition node, process node
And result node is converted to scene description sentence;And/or precondition node, process node and result node are converted into survey
Example on probation.In obtained scene description sentence, the field contents of precondition field and the node content of precondition node
Unanimously, the field contents of procedure field and the node content of process node are consistent, the field of the result field of scene description sentence
Content is consistent with the node content of result node;In obtained test case, the test content and precondition of test condition
The node content of node is consistent, and the test content of test process and the node content of process node are consistent, it is contemplated that the test of result
Content is consistent with the node content of result node.When specifically illustrating the first displaying and being described as scene flow chart, scene process
Figure is converted to scene description sentence and/or the essence of test case is, by precondition node, process node and result node
Node content replaces with the field contents of precondition field, procedure field and result field in scene description sentence;And/or
The node content of precondition node, process node and result node is replaced with into test condition in test case, test process
And the test content of expected results.It is thereby achieved that also can guarantee while mutually conversion between different scenesization description to need
The description of scene is asked to be consistent.
In conjunction with the application second aspect first embodiment, in the application second aspect second embodiment,
The display is also used to show that the demand flow chart of mission requirements, the demand flow chart include at least three
Flow chart node;
The processor is also used to detect the scene flow chart that user selects from the demand flow chart, obtains user
The nodal community of scenario node in the scene flow chart being arranged, the nodal community are used to indicate before the scenario node is
Propose condition node, process node or result node.
In above-mentioned second aspect first embodiment, it has been assumed that the first displaying is described as scene flow chart, then aobvious
Show scene flow chart that device is shown be how to come and scene flow chart in precondition node, process node or knot
How fruit node is arranged, and needs described below, first the display demand flow chart that shows mission requirements, demand
Flow chart is generated according to mission requirements, includes at least three flow chart nodes in demand flow chart;User is seeing display
Demand flow chart after, demand scene partitioning carried out to mission requirements according to understanding, mission requirements include one or more
A demand scene selects at least three flow chart nodes as one in demand flow chart center according to the demand scene of division
Scene flow chart, for demand displaying device, processor detects the scene process that user selects from demand flow chart
Figure, obtains the nodal community of scenario node in the scene flow chart of user setting, and nodal community is used to indicate before scenario node is
Propose condition node, process node or result node.
In conjunction with the application second aspect, in the application second aspect third embodiment, first displaying is described as
Scene description sentence, second displaying are described as scene flow chart and/or test case,
The processor is also used to be converted to the precondition field, the procedure field and the result field
Scene flow chart, the field contents of the node content of the precondition node of the scene flow chart and the precondition field
Unanimously, the node content of the process node of the scene flow chart is consistent with the field contents of the procedure field, the scene
The node content of the result node of flow chart is consistent with the field contents of the result field;
And/or
The processor is also used to be converted to the precondition field, the procedure field and the result field
Test case, the test content of the test condition of the test case is consistent with the field contents of the precondition field, institute
The test content for stating the test process of test case is consistent with the field contents of the procedure field, the expection of the test case
As a result test content is consistent with the field contents of the result field.
Assuming that the first displaying is described as scene description sentence in second aspect, then the second displaying is described as scene flows
Journey figure and/or test case.It is premise item respectively including the field of three types in the scene description sentence that display is shown
Part field, procedure field and result field, the field contents of precondition field are used to describe the precondition of demand scene;It crosses
The field contents of journey field are used to describe the process of demand scene;The field contents of result field are used to describe the knot of demand scene
Fruit.First displaying description is converted to the second displaying description by processor, substantially by precondition field, procedure field
And result field is converted to scene flow chart;And/or precondition field, procedure field and result field are converted into test
Use-case.In obtained scene flow chart, the node content of precondition node is consistent with the field contents of precondition field,
The node content of process node and the field contents of procedure field are consistent, the node content of result node and the field of result field
Content is consistent;In obtained test case, the test content of test condition is consistent with the field contents of precondition field, surveys
The test content of examination process and the field contents of procedure field are consistent, it is contemplated that in the test content of result and the field of result field
Hold consistent.When specifically illustrating the first displaying and being described as scene description sentence, scene description sentence is converted to scene flow chart
And/or the essence of test case is, the field contents of precondition field, procedure field and result field are replaced with scene flows
The node content of precondition node, process node and result node in journey figure;And/or by precondition field, procedure field
And the field contents of result field replace with the test content of test condition in test case, test process and expected results.Cause
This, realizes between different scenesization description while mutually convert, also can guarantee that the description to demand scene is consistent.
In conjunction with the application second aspect, in the 4th embodiment of the application second aspect, first displaying is described as
Test case, second displaying are described as scene flow chart and/or scene description sentence,
The processor is also used to the test condition, the test process and the expected results being converted to scene
The node content of flow chart, the precondition node of the scene flow chart is consistent with the test content of the test condition, institute
The node content for stating the process node of scene flow chart is consistent with the test content of the test condition, the scene flow chart
The node content of result node is consistent with the test content of the expected results;
And/or
The processor is also used to the test condition, the test process and the expected results being converted to scene
Descriptive statement, the field contents of the precondition field of the scene description sentence and the test content one of the test condition
It causes, the field contents of the procedure field of the scene description sentence are consistent with the test content of the test process, the scene
The field contents of the result field of descriptive statement are consistent with the test content of the expected results.
Assuming that the first displaying is described as test case in second aspect, then the second displaying is described as scene flow chart
And/or scene description sentence.Include test condition, test process and expected results in the test case that display is shown, surveys
The test content of strip part is used to describe the precondition of demand scene;The test content of test process is for describing demand scene
Process;The test content of expected results is used to describe the result of demand scene.Processor is converted to the first displaying description
Test condition, test process and expected results are substantially converted to scene flow chart by the second displaying description;And/or it will
Test condition, test process and expected results are converted to scene description sentence.In obtained scene flow chart, precondition section
The node content of point is consistent with the test content of test condition, the node content of process node and the test content one of test process
It causes, the node content of result node and the test content of expected results are consistent;In obtained scene description sentence, precondition
The field contents of field and the test content of test condition are consistent, the field contents of procedure field and the test content of test process
Unanimously, the field contents of result field and the test content of expected results are consistent.The first displaying is specifically illustrated to be described as surveying
When example on probation, test case is converted to scene flow chart and/or the essence of scene description sentence is by test condition, to test
Journey and the test content of expected results replace with the node of precondition node, process node and result node in scene flow chart
Content;And/or the test content of test condition, test process and expected results is replaced with into premise item in scene description sentence
The field contents of part field, procedure field and result field.It is thereby achieved that mutually being converted between different scenesization description same
When, it also can guarantee that the description to demand scene is consistent.
In conjunction with the application second aspect, second aspect first embodiment, second aspect second embodiment, second aspect
The 4th embodiment of third embodiment or second aspect, in the 5th embodiment of the application second aspect,
The display is also used to show modified first scene when user's modification first displaying describes
Change description;
The processor is also used to the modified first displaying description being converted to modified second displaying
Description;
The display is also used to show the modified second displaying description;
Alternatively,
The display is also used to show modified second scene when user's modification second displaying describes
Change description;
The processor is also used to the modified second displaying description being converted to modified first displaying
Description;
The display is also used to show the modified first displaying description.
When mission requirements change or the description of demand scene is caused to change for the reasons such as user's understanding changes, use
Family describes the first displaying or the second displaying description is modified, and when user, which modifies the first displaying, to be described, shows
Show that device shows modified first displaying description, modified first displaying description is converted to modified the by processor
Two displayings description, display show modified second displaying description;Alternatively, when user modifies the second displaying description
When, display shows modified second displaying description, and modified second displaying description is converted to modification by processor
The first displaying description afterwards, display show modified first displaying description.Realize a displaying description modification
Later, other displaying descriptions can be modified automatically, eliminate the operating procedure that user modifies other displayings description.
The application third aspect provides a kind of demand displaying device, comprising:
Display module, for showing that the first displaying description and first displaying describe corresponding switching button, institute
The displaying describing mode that the first displaying is described as mission requirements is stated, first displaying is described as scene flow chart, field
Any one of scene describing sentence and test case, the scene flow chart include precondition node, process node and result
Node, the scene description sentence include precondition field, procedure field and result field, and the test case includes test
Condition, test process and expected results;
Processing module, for detect the clicking operation of corresponding switching button is described to first displaying when,
By first displaying description be converted to the second displaying description, second displaying be described as the scene flow chart,
It is different from the one or two of first displaying description in the scene description sentence and the test case;
The display module is also used to show the second displaying description.
During software development, in order to facilitate the exploitation of software, need to the software development task of client's proposition
Mission requirements carry out displaying description, and a mission requirements include one or more demand scene, are described by displaying
Mode describes the demand scene in mission requirements, and displaying description can be scene flow chart, scene description sentence and test
Use-case is these three types of.Three precondition, process and result parts can be generally divided into the description of demand scene, then scene flows
It include precondition node, process node and result node in journey figure;It include precondition field, process in scene description sentence
Field and result field;It include test condition, test process and expected results in test case.It is obtained when according to mission requirements
After first displaying description, the display module of demand displaying device shows that the first displaying description and the first displaying are retouched
Corresponding switching button is stated, the first displaying is described as the displaying describing mode of mission requirements, and the first displaying is described as field
Any one of scape flow chart, scene description sentence and test case, processing module are being detected to the first displaying description pair
When the clicking operation for the switching button answered, the first displaying description is converted into the second displaying description, the second displaying description
To be different from the one or two of the first displaying description in scene flow chart, scene description sentence and test case, and show
Show that module shows the second displaying being converted to description.With scene flow chart in the prior art, scene description sentence
It requires independently to write with test case and be compared, the first displaying description can be converted to the second displaying and retouched by the application
It states, the first displaying description is one of scene flow chart, scene description sentence and test case, and the second displaying is described as
It is different from the one or two of the first displaying description in scene flow chart, scene description sentence and test case, therefore,
Know the case where a kind of displaying describes, can convert and show other one or two kinds of displaying descriptions, avoid existing skill
Scene flow chart, demand scene description sentence and these three displayings of test case description require independently to write in art, thus
The different situation of the content for causing these three displayings to describe, ensures that the description consistency of demand scene in this way, improves soft
The efficiency and accuracy of part exploitation.
In conjunction with the application third aspect, in the application third aspect first embodiment, first displaying is described as
Scene flow chart, second displaying are described as scene description sentence and/or test case,
The processing module is also used to convert the precondition node, the process node and the result node
For scene description sentence, the section of the field contents of the precondition field of the scene description sentence and the precondition node
Point content is consistent, and the field contents of the procedure field of the scene description sentence are consistent with the node content of the process node,
The field contents of the result field of the scene description sentence are consistent with the node content of the result node;
And/or
The processing module is also used to convert the precondition node, the process node and the result node
For test case, the test content of the test condition of the test case is consistent with the node content of the precondition node,
The test content of the test process of the test case is consistent with the node content of the process node, the test case it is pre-
The test content of phase result is consistent with the node content of the result node.
Assuming that the first displaying is described as scene flow chart in the third aspect, then the second displaying is described as scene description
Sentence and/or test case.It is premise item respectively including the node of three generic attributes in the scene flow chart that display module is shown
Part node, process node and result node, the node content of precondition node are used to describe the precondition of demand scene;It crosses
The node content of Cheng Jiedian is used to describe the process of demand scene;The node content of result node is used to describe the knot of demand scene
Fruit.First displaying description is converted to the second displaying description by processing module, substantially by precondition node, procedure section
Point and result node are converted to scene description sentence;And/or precondition node, process node and result node are converted to
Test case.In obtained scene description sentence, in the field contents of precondition field and the node of precondition node
Hold unanimously, the field contents of procedure field and the node content of process node are consistent, the word of the result field of scene description sentence
Section content is consistent with the node content of result node;In obtained test case, the test content and premise item of test condition
The node content of part node is consistent, and the test content of test process and the node content of process node are consistent, it is contemplated that the survey of result
It is consistent with the node content of result node to try content.When specifically illustrating the first displaying and being described as scene flow chart, scene flows
Journey figure is converted to scene description sentence and/or the essence of test case is, by precondition node, process node and result node
Node content replace with the field contents of precondition field, procedure field and result field in scene description sentence;With/
Or, the node content of precondition node, process node and result node is replaced with test condition in test case, was tested
The test content of journey and expected results.It is thereby achieved that between different scenesization description while mutually convert, also can guarantee pair
The description of demand scene is consistent.
In conjunction with the application third aspect first embodiment, in the application third aspect second embodiment,
The display module is also used to show that the demand flow chart of mission requirements, the demand flow chart include at least three
A flow chart node;
The processing module is also used to detect the scene flow chart that user selects from the demand flow chart, obtains and uses
The nodal community of scenario node, the nodal community are used to indicate the scenario node and are in the scene flow chart of family setting
Precondition node, process node or result node.
In above-mentioned third aspect first embodiment, it has been assumed that the first displaying is described as scene flow chart, then aobvious
Show scene flow chart that module is shown be how to come and the precondition node in scene flow chart, process node or
How result node is arranged, and needs described below, first the display module demand flow chart that shows mission requirements,
Demand flow chart is generated according to mission requirements, includes at least three flow chart nodes in demand flow chart;User is seeing
After the demand flow chart of display, demand scene partitioning carried out to mission requirements according to understanding, mission requirements include one or
The multiple demand scenes of person select at least three flow chart node conducts in demand flow chart center according to the demand scene of division
One scene flow chart, for demand displaying device, processing module detects the field that user selects from demand flow chart
Scape flow chart, obtains the nodal community of scenario node in the scene flow chart of user setting, and nodal community is used to indicate scene section
Condition node, process node or result node premised on point.
In conjunction with the application third aspect, in the application third aspect third embodiment, first displaying is described as
Scene description sentence, second displaying are described as scene flow chart and/or test case,
The processing module is also used to convert the precondition field, the procedure field and the result field
For scene flow chart, in the field of the node content of the precondition node of the scene flow chart and the precondition field
Hold unanimously, the node content of the process node of the scene flow chart is consistent with the field contents of the procedure field, the field
The node content of the result node of scape flow chart is consistent with the field contents of the result field;
And/or
The processing module is also used to convert the precondition field, the procedure field and the result field
For test case, the test content of the test condition of the test case is consistent with the field contents of the precondition field,
The test content of the test process of the test case is consistent with the field contents of the procedure field, the test case it is pre-
The test content of phase result is consistent with the field contents of the result field.
Assuming that the first displaying is described as scene description sentence in the third aspect, then the second displaying is described as scene flows
Journey figure and/or test case.It is premise respectively including the field of three types in the scene description sentence that display module is shown
Condition field, procedure field and result field, the field contents of precondition field are used to describe the precondition of demand scene;
The field contents of procedure field are used to describe the process of demand scene;The field contents of result field are for describing demand scene
As a result.First displaying description is converted to the second displaying description by processing module, substantially by precondition field, process
Field and result field are converted to scene flow chart;And/or precondition field, procedure field and result field are converted to
Test case.In obtained scene flow chart, the node content of precondition node and the field contents of precondition field
Unanimously, the node content of process node and the field contents of procedure field are consistent, the node content and result field of result node
Field contents it is consistent;In obtained test case, the test content of test condition and the field contents of precondition field
Unanimously, the test content of test process and the field contents of procedure field are consistent, it is contemplated that the test content and result field of result
Field contents it is consistent.When specifically illustrating the first displaying and being described as scene description sentence, scene description sentence is converted to field
The essence of scape flow chart and/or test case is to replace the field contents of precondition field, procedure field and result field
For the node content of precondition node, process node and result node in scene flow chart;And/or by precondition field,
The field contents of procedure field and result field replace with the test of test condition, test process and expected results in test case
Content.It is thereby achieved that also can guarantee that the description to demand scene is one while mutually conversion between different scenesization description
It causes.
In conjunction with the application third aspect, in the 4th embodiment of the application third aspect, first displaying is described as
Test case, second displaying are described as scene flow chart and/or scene description sentence,
The processing module is also used to the test condition, the test process and the expected results being converted to field
The node content of scape flow chart, the precondition node of the scene flow chart is consistent with the test content of the test condition,
The node content of the process node of the scene flow chart is consistent with the test content of the test condition, the scene flow chart
Result node node content it is consistent with the test content of the expected results;
And/or
The processing module is also used to the test condition, the test process and the expected results being converted to field
Scene describing sentence, the field contents of the precondition field of the scene description sentence and the test content one of the test condition
It causes, the field contents of the procedure field of the scene description sentence are consistent with the test content of the test process, the scene
The field contents of the result field of descriptive statement are consistent with the test content of the expected results.
Assuming that the first displaying is described as test case in the third aspect, then the second displaying is described as scene flow chart
And/or scene description sentence.In the test case that display module is shown include test condition, test process and expected results,
The test content of test condition is used to describe the precondition of demand scene;The test content of test process is for describing demand field
The process of scape;The test content of expected results is used to describe the result of demand scene.Processing module turns the first displaying description
It is changed to the second displaying description, test condition, test process and expected results are substantially converted into scene flow chart;With/
Or, test condition, test process and expected results are converted to scene description sentence.In obtained scene flow chart, premise
The node content of condition node and the test content of test condition are consistent, the test of the node content and test process of process node
Content is consistent, and the node content of result node and the test content of expected results are consistent;It is preceding in obtained scene description sentence
The field contents for proposing condition field are consistent with the test content of test condition, the survey of the field contents and test process of procedure field
Examination content is consistent, and the field contents of result field and the test content of expected results are consistent.The first displaying is specifically illustrated to retouch
When stating as test case, test case is converted to scene flow chart and/or the essence of scene description sentence is, by test condition,
The test content of test process and expected results replaces with precondition node, process node and result node in scene flow chart
Node content;And/or the test content of test condition, test process and expected results is replaced in scene description sentence
The field contents of precondition field, procedure field and result field.It is thereby achieved that mutually turning between different scenesization description
While changing, it also can guarantee that the description to demand scene is consistent.
In conjunction with the application third aspect, third aspect first embodiment, third aspect second embodiment, the third aspect
The 4th embodiment of third embodiment or the third aspect, in the 5th embodiment of the application third aspect,
The display module is also used to show modified first when user's modification first displaying describes
Scapeization description;
The processing module is also used to the modified first displaying description being converted to modified second scene
Change description;
The display module is also used to show the modified second displaying description;
Alternatively,
The display module is also used to show modified second when user's modification second displaying describes
Scapeization description;
The processing module is also used to the modified second displaying description being converted to modified first scene
Change description;
The display module is also used to show the modified first displaying description.
When mission requirements change or the description of demand scene is caused to change for the reasons such as user's understanding changes, use
Family describes the first displaying or the second displaying description is modified, and when user, which modifies the first displaying, to be described, shows
Show that module shows modified first displaying description, after modified first displaying description is converted to modification by processing module
The second displaying description, display module show that modified second displaying describes;Alternatively, when user modifies the second displaying
When description, display module shows modified second displaying description, and processing module turns modified second displaying description
It is changed to modified first displaying description, display module shows modified first displaying description.Realize a scene
After changing description modification, other displaying descriptions can be modified automatically, eliminate user and modify other displayings description
Operating procedure.
A kind of computer readable storage medium of the application fourth aspect, including instruction, when run on a computer, make
It obtains computer and executes demand displaying method described in above-mentioned various aspects.
A kind of the 5th computer program product comprising instruction of aspect of the application, when run on a computer, so that
Computer executes demand displaying method described in above-mentioned various aspects.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to institute in embodiment and description of the prior art
Attached drawing to be used is needed to be briefly described.
Fig. 1 is one embodiment flow diagram of demand displaying method provided by the present application;
Fig. 2 is the schematic diagram of the first displaying description provided by the present application and switching button;
Fig. 3 is the schematic diagram of the first displaying provided by the present application description, the second displaying description and switching button;
Fig. 4 is another embodiment flow diagram of demand displaying method provided by the present application;
Fig. 5 is the schematic diagram of the scene flow chart of demand scene 1 provided by the present application;
Fig. 6 is the schematic diagram that scene flow chart provided by the present application is converted to scene description sentence and test case;
Fig. 7 is the schematic diagram of the scene description sentence of demand scene 1 provided by the present application;
Fig. 8 is the schematic diagram of the test case of demand scene 1 provided by the present application;
Fig. 9 is the schematic diagram of the demand flow chart of mission requirements provided by the present application;
Figure 10 is the schematic diagram of the scene flow chart of two demand scenes of mission requirements provided by the present application;
Figure 11 is the schematic diagram of the scene description sentence of two demand scenes of mission requirements provided by the present application;
Figure 12 is another embodiment flow diagram of demand displaying method provided by the present application;
Figure 13 is the further embodiment flow diagram of demand displaying method provided by the present application;
Figure 14 is one embodiment structural schematic diagram of demand displaying device provided by the present application;
Figure 15 is another example structure schematic diagram of demand displaying device provided by the present application;
Figure 16 is one embodiment modular construction schematic diagram of demand displaying device provided by the present application.
Specific embodiment
This application provides a kind of demand displaying method and demand displaying device is provided, for realizing demand scene
Different scenesization description between conversion, to guarantee the description consistency of demand scene, improve software development efficiency and
Accuracy.
Below in conjunction with the attached drawing in the application, the technical solution in the application is clearly and completely described.
The system architecture or scene of the application application are simply introduced first.
The demand displaying method and demand displaying device of the application is mainly used in field of software development.It is opened in software
In hair field, the specific software development task that client proposes generally is defined as mission requirements.For example, mobile phone manufacturer is raw
The mobile phone of production needs to have the function of intelligent intercept, and intelligent intercept be will be according to label call interceptor, then the task needs
Ask and be exactly " intelligent intercept increases the function according to label call interceptor ", software developer then according to this mission requirements by
Corresponding code is write in handset program to realize the function.And the function to be realized of mission requirements may be including more
Function is planted to implement, then this mission requirements may include multiple scenes, for example, " intelligent intercept increases mission requirements
Adding the function according to label call interceptor " the demand scene that includes has " intelligent intercept switch default is closed, and user can open "
" in guidance prompt user may accidentally intercept useful number " the two.And each demand scene is in concrete implementation process
In can generally be disassembled premised on condition, process and the part of result three describe, this description pair to demand scene
The open-and-shut mission requirements for understanding client and being proposed of energy, facilitate software development for software developer.
But at present in field of software development, typically demand analysis personnel act as client and software developer
Between connector, i.e., the mission requirements that client proposes are usually that demand analysis personnel produce description document, and description document makes
The mission requirements to convey client to software developer are combined with diversified forms such as text, flow chart or surface charts, it can also be with
The purpose (for example, GWT sentence) of reception and registration is realized by writing scene description sentence, and completes task in software developer
After the software development of demand, it is also necessary to which tester tests software by test case, to be confirmed whether to meet
The mission requirements of client, test case are also that tester writes according to the mission requirements of client, it is contemplated that Functional division is asked
Topic, the work of demand analysis personnel, software developer and tester three will not be that a people completes, then demand point
Analysis personnel, software developer and tester inevitably result in the different situation of knowledge background and experience ability
Description document, scene description sentence and test case to write content distinct, even if difference is little, it is also desirable in reception and registration
It is realized in the process by much linking up, this results in the accuracy rate of software development and efficiency is affected.
In order to solve the problems, such as the description of above-mentioned different scenesization for demand scene description it is inconsistent, the application provides
A kind of demand displaying method and demand displaying device, carry out specifically demand displaying method below by embodiment
It is bright.
Referring to Fig. 1, present applicant proposes a kind of demand displaying methods, comprising:
101, the first displaying of display description and the first displaying describe corresponding switching button;
In the present embodiment, during software development, in order to facilitate the exploitation of software, the software proposed to client is needed
The mission requirements of development task carry out displaying description, and a mission requirements include one or more demand scene, pass through field
The mode of scapeization description describes the demand scene in mission requirements, and displaying description can be scene flow chart, scene description
Sentence and test case are these three types of.Three precondition, process and result parts can be generally divided into the description of demand scene,
It include precondition node, process node and result node, the precondition section in scene flow chart so in scene flow chart
Point connection procedure node, process node connection result node, and the sequencing of process is " precondition node → process node
→ result node ";It include precondition field, procedure field and result field in scene description sentence;Include in test case
Test condition, test process and expected results.After having obtained the first displaying description according to mission requirements, first is shown
Scapeization description and the first displaying describe corresponding switching button, and the first displaying is described as the displaying description of mission requirements
Mode, the first displaying are described as any one of scene flow chart, scene description sentence and test case.It needs to illustrate
It is that the effect that the first displaying describes corresponding switching button is that triggering the first displaying description is converted to the second displaying and retouches
It states, the specific display format of switching button can be icon, can also be other forms, without limitation.As shown in Fig. 2, conversion
Button is in except the shown frame of the first displaying description, in addition to this, also be may be at the first displaying description and is shown
Within the frame shown, specifically without limitation.
102, detect the clicking operation of corresponding switching button is described to the first displaying when, the first displaying is retouched
It states and is converted to the second displaying description;
In the present embodiment, detect the clicking operation of corresponding switching button is described to the first displaying when, by first
Displaying description is converted to the second displaying description, and the second displaying is described as scene flow chart, scene description sentence and test
It is different from the one or two of the first displaying description in use-case, in this way if the first displaying is described as scene flow chart, just
Scene flow chart can be converted to scene description sentence and/or test case;If the first displaying is described as scene description language
Scene description sentence, can be converted to scene flow chart and/or test case by sentence;It is used if the first displaying is described as test
Test case, can be converted to scene flow chart and/or scene description sentence by example.
103, the second displaying of display description.
In the present embodiment, as shown in figure 3, after the first displaying description is converted to the second displaying description, display the
Two displayings description.It should be noted that user observes for convenience, the first displaying description and the second displaying description can be with
It shows, in addition to this, can also only the second displaying of display describe, without showing that the first displaying describes again simultaneously.
In the embodiment of the present application, required solely with scene flow chart in the prior art, scene description sentence and test case
Vertical write is compared, and the first displaying can be described to be converted to the second displaying description, the first displaying description is scene
One of flow chart, scene description sentence and test case, the second displaying are described as scene flow chart, scene description sentence
With the one or two for being different from the first displaying description in test case, therefore, the case where a kind of displaying known describes,
It can convert and show other one or two kinds of displaying descriptions, avoid scene flow chart, demand scene in the prior art
Descriptive statement and these three displayings of test case description require independently to write, so as to cause in these three displayings description
Hold different situations, ensures that the description consistency of demand scene in this way, improve the efficiency and accuracy of software development.
It in the embodiment shown in fig. 1, can be with according to the concrete type of the first displaying description and the second displaying description
Be divided into three kinds of situations: the first displaying is described as scene flow chart, and the second displaying is described as scene description sentence and/or test
Use-case;First displaying is described as scene description sentence, and the second displaying is described as scene flow chart and/or test case;The
One displaying is described as test case, and the second displaying is described as scene flow chart and/or scene description sentence.In each feelings
Under condition, the first displaying description is converted into the second displaying description all differences, below by embodiment to three cases above
It is described in detail respectively.
One, the first displaying is described as scene flow chart, and the second displaying is described as scene description sentence and/or test is used
Example;
Referring to Fig. 4, the application provides a kind of demand displaying method, comprising:
401, scene flow chart and the corresponding switching button of scene flow chart are shown;
In the present embodiment, in the display interfaces of demand displaying device, scene flow chart and scene flow chart pair are shown
The switching button answered, it is assumed that mission requirements are " intelligent intercept increases the function according to label call interceptor ", including demand scene 1
" strange incoming call, user locally have label " and demand scene 2 " strange incoming call, user are locally unmarked ", with demand
For scene 1, as shown in figure 5, being the scene flow chart of demand scene 1, wherein the scene section with 5 front and back connection relationships
Point, wherein third scenario node " user locally has label " is a demand scene precondition of demand scene 1, before belonging to
The node content for mentioning first scenario node of condition node is " intelligent intercept function is default setting or closing ", indicates demand
The precondition of scene 1 is that intelligent intercept function is default setting or closing;Belong in the node of the scenario node of process node
Appearance is " strange number incoming call ", indicates that the process of demand scene 1 is some strange number incoming call;Belong to the scene section of result node
There are two points, and node content is " not intercepting this incoming call " and " local label is shown in message registration " respectively, indicates demand field
Scape 1 the result is that when strange number shows local label in message registration, do not intercept the incoming call of this strange number, according to
In demand scene 1 for the sequencing of two results, it should be to show local label in message registration, or else intercept this
Therefore electricity when result node is two, needs to be attached according to sequencing.It should be noted that premise shown in fig. 5
The quantity of condition node, process node and result node is special case, in practical applications, premise item in a scene flow chart
Part node, process node and result node may have multiple, and specific quantity is without limitation.
402, when detecting the clicking operation to the corresponding switching button of scene flow chart, by the premise of scene flow chart
Condition node, process node and result node are converted to scene description sentence and/or test case;
In the present embodiment, when detecting the clicking operation to the corresponding switching button of scene flow chart, by scene process
Precondition node, process node and the result node of figure are converted to scene description sentence and/or test case, as shown in fig. 6,
Precondition field is corresponding, procedure field and process node with precondition node in the scene description sentence being converted to
Corresponding, result field is corresponding with result node;Test condition is corresponding with precondition node in the test case being converted to, and surveys
Examination process is corresponding with process node, it is contemplated that result is corresponding with result node.Under above corresponding relationship, the essence of conversion is:
In scene description sentence, the field contents of precondition field are consistent with the node content of precondition node, procedure field
Field contents it is consistent with the node content of process node, the field contents and result node of the result field of scene description sentence
Node content it is consistent;In test case, the test content of test condition is consistent with the node content of precondition node, surveys
The test content of examination process and the node content of process node are consistent, it is contemplated that in the test content of result and the node of result node
Hold consistent.As shown in fig. 7, scene description sentence is by taking GWT sentence as an example, wherein the word of " Scenario Outline " keyword
Section content representation is exactly demand scene 1 " strange number incoming call, user locally have label ", and precondition field is " Given "
The field of keyword, field contents " intelligent intercept function be default setting or closing " in scene flow chart shown in fig. 6 before
The node content for mentioning condition node is consistent;Procedure field is the field of " When " keyword, and " strange number comes field contents
Electricity " is consistent with the node content of process node;Result field be " Then " keyword field and subsequent " And " keyword
Field, field contents " shown in message registration local label " and " not intercepting this incoming call " respectively with two result nodes
Node content is consistent.It is illustrated in figure 8 the form of test case, test case _ title content is that " strange phone comes
Electricity, user locally have label " what is indicated is exactly demand scene 1;The test content of test condition is that " intelligent intercept function is default
Setting is closed ", it is consistent with the node content of precondition node in scene flow chart shown in fig. 6;Test process
Test content is " strange number incoming call ", is consistent with the node content of process node;The test content of expected results be " 1,
Local label is shown in message registration;2, this incoming call is not intercepted ", it is consistent with the node content of two result nodes.
403, scene description sentence and/or test case are shown.
In the present embodiment, be converted to after scene description sentence and/or test case, by scene description sentence and/or
Test case is shown, user is allowed intuitively to see the field contents of each field in scene description sentence, and test is used
The test content in each stage in example.The scene description sentence of display can be as shown in fig. 7, test case can be as shown in figure 8, need
It is noted that Fig. 7 and Fig. 8 are illustrating for the display format in the present embodiment for scene description sentence and test case
Bright, in the specific implementation process, the display of scene description sentence and test case can also be for his form, without limitation.
In the embodiment of the present application, when specifically illustrating the first displaying and being described as scene flow chart, the conversion of scene flow chart
Essence for scene description sentence and/or test case is, will be in the node of precondition node, process node and result node
Hold the field contents for replacing with precondition field, procedure field and result field in scene description sentence;And/or by premise
The node content of condition node, process node and result node replaces with test condition in test case, test process and expection
As a result test content.It is thereby achieved that also can guarantee while mutually conversion between different scenesization description to demand scene
Description be consistent.
In above-mentioned embodiment shown in Fig. 4, it has been assumed that the first displaying is described as scene flow chart, then the field shown
Scape flow chart be how come and scene flow chart in precondition node, process node or result node how be
It is arranged, is specifically described below by embodiment.
Optionally, in some embodiments of the present application, scene flow chart and the corresponding switching button of scene flow chart are shown
Before, further includes:
Show that the demand flow chart of mission requirements, demand flow chart include at least three flow chart nodes;
The scene flow chart that detection user selects from demand flow chart, obtains scene in the scene flow chart of user setting
The nodal community of node, nodal community are used to indicate condition node, process node or result node premised on scenario node.
In the embodiment of the present application, the demand flow chart of mission requirements is generated according to mission requirements, in demand flow chart
Including at least three flow chart nodes, it is assumed that mission requirements are " intelligent intercept increases the function according to label call interceptor ", are used
When making demand flow chart, the Liang Ge branch for analyzing the mission requirements is that " strange incoming call, user locally have mark at family
Note " and " strange incoming call, user are locally unmarked ", to condition, step and the result tool to be carried out of the two branches
Hold in vivo and refined, and finally obtain demand flow chart shown in Fig. 9, wherein the flow chart node including 701-709.With
Family carries out demand scene partitioning to mission requirements according to understanding, and a mission requirements include one or more demand scene, tool
The demand scene partitioning of body can select at least three flow chart node conducts in such a way that frame selects from demand flow chart
One scene flow chart.According to analysis, mission requirements include demand scene 1 " strange incoming call, user locally have label " and
Demand scene 2 " strange incoming call, user are locally unmarked ", detection user selected from Fig. 9 flow chart node 701,
702,703, the 704 and 705 scene flow chart as demand scene 1, select flow chart node 701,702,706,707,
708, the 709 and 705 scene flow chart as demand scene 2, it is specific as shown in Figure 10, obtain the scene flow chart of user setting
In each scenario node nodal community, the nodal community of scenario node 701 is used to indicate field in the scene flow chart of demand scene 1
Condition node premised on scape node 701, it is process node, field that the nodal community of scenario node 702, which is used to indicate scenario node 702,
It is result node that the nodal community of scape node 704 and 705, which is used to indicate scenario node 704 and 705,;The scene flows of demand scene 2
The nodal community of scenario node 701 is used to indicate condition node premised on scenario node 701, scenario node 702 and 707 in journey figure
Nodal community to be used to indicate scenario node 702 and 707 be process node, the nodal community of scenario node 708,709 and 705 is used
In instruction scenario node 708,709 and 705 be result node.
It should be noted that including two scene flow charts, two scene flows in demand flow chart shown in Fig. 10
Journey figure can also show simultaneously, also corresponding then the two scene flow charts are converted to other displayings when describing
To the situation of two demand scenes, such as when two scene flow charts shown in Fig. 10 are converted to scene description sentence simultaneously, show
The scene description sentence shown is also two, as shown in figure 11, the field contents of the field of " Scenario Outline " keyword
Be " strange incoming call, user locally have label " it is corresponding be exactly demand scene 1, " Scenario Outline " keyword
The field contents of field be " strange incoming call, user are locally unmarked " it is corresponding be exactly demand scene 2.
Two, the first displaying is described as scene description sentence, and the second displaying is described as scene flow chart and/or test is used
Example;
Figure 12 is please referred to, the application provides a kind of demand displaying method, comprising:
1201, scene description sentence and the corresponding switching button of scene description sentence are shown;
In the present embodiment, in the display interfaces of demand displaying device, scene description sentence and scene description language are shown
Sentence corresponding switching button, scene description sentence can be to be received from other equipment, is also possible to customer analysis task
What demand was write, it is assumed that mission requirements are " intelligent intercept increases the function according to label call interceptor ", are analyzed
To two demand scenes, " strange phone comes for demand scene 1 " strange incoming call, user locally have label " and demand scene 2
Electricity, user are locally unmarked ", for demand scene 1 scene description sentence by taking GWT sentence as an example, it is specific as shown in fig. 7, its
In, that the field contents of " Scenario Outline " keyword indicate is exactly demand scene 1 " strange number incoming call, Yong Huben
There is label on ground ", precondition field is the field of " Given " keyword, and procedure field is the field of " When " keyword, as a result
Field is the field of " Then " keyword and the field of subsequent " And " keyword.
1202, when detecting the clicking operation to the corresponding switching button of scene description sentence, by scene description sentence
Precondition field, procedure field and result field be converted to scene flow chart and/or test case;
In the present embodiment, when detecting the clicking operation to the corresponding switching button of scene description sentence, scene is retouched
Predicate sentence is converted to scene flow chart and/or test case, is respectively as follows: precondition field, procedure field and result field
Be converted to scene flow chart, the node content of the precondition node of scene flow chart and the field contents one of precondition field
It causes, the node content of the process node of scene flow chart and the field contents of procedure field are consistent, the result section of scene flow chart
The node content of point is consistent with the field contents of result field;And/or by precondition field, procedure field and result field
Test case is converted to, the test content of the test condition of test case is consistent with the field contents of precondition field, test
The test content of the test process of use-case and the field contents of procedure field are consistent, the test content of the expected results of test case
It is consistent with the field contents of result field.
1203, scene flow chart and/or test case are shown.
It in the present embodiment, is converted to after scene flow chart and/or test case, by scene flow chart and/or test
Use-case shows, user is allowed intuitively to see the node content of each node in scene flow chart, each in test case
The test content in stage.
In the embodiment of the present application, when specifically illustrating the first displaying and being described as scene description sentence, scene description sentence
The essence for being converted to scene flow chart and/or test case is, by the field of precondition field, procedure field and result field
Content replaces with the node content of precondition node, process node and result node in scene flow chart;And/or by premise
The field contents of condition field, procedure field and result field replace with test condition in test case, test process and expection
As a result test content.It is thereby achieved that also can guarantee while mutually conversion between different scenesization description to demand scene
Description be consistent.
Three, the first displaying is described as test case, and the second displaying is described as scene flow chart and/or scene description language
Sentence.
Figure 13 is please referred to, the application provides a kind of demand displaying method, comprising:
1301, test case and the corresponding switching button of test case are shown;
In the present embodiment, in the display interfaces of demand displaying device, show that test case and test case are corresponding
Switching button, test case can be what customer analysis mission requirements were write, be also possible to obtain by other means
It arriving, it is assumed that mission requirements are " intelligent intercept increases the function according to label call interceptor ", and analysis obtains two demand scenes,
" strange incoming call, user do not mark locally for demand scene 1 " strange incoming call, user locally have label " and demand scene 2
Note ", it is specific as shown in Figure 8, wherein the corresponding content " footpath between fields in one column of test case _ title for the test case of demand scene 1
Optical telephone incoming call, user locally have label " what is indicated is exactly demand scene 1, test content " the intelligent intercept function of test condition
For default setting or closing " what is indicated is the precondition of demand scene 1, the test content " strange number incoming call " of test process
What is indicated is the process of demand scene 1, it is contemplated that the test content of result " 1, show local mark in message registration;2, it does not intercept
This is sent a telegram here " what is indicated is the result of demand scene 1.
1302, when detecting the clicking operation to the corresponding switching button of test case, by the test-strips of test case
Part, test process and expected results are converted to scene flow chart and/or scene description sentence;
In the present embodiment, when detecting the clicking operation to the corresponding switching button of test case, test case is turned
It is changed to scene flow chart and/or scene description sentence, is respectively as follows: and test condition, test process and expected results is converted into field
The node content of scape flow chart, the precondition node of scene flow chart is consistent with the test content of test condition, scene process
The node content of the process node of figure and the test content of test condition are consistent, the node content of the result node of scene flow chart
It is consistent with the test content of expected results;And/or test condition, test process and expected results are converted into scene description language
Sentence, the field contents of the precondition field of scene description sentence are consistent with the test content of test condition, scene description sentence
Procedure field field contents it is consistent with the test content of test process, the field contents of the result field of scene description sentence
It is consistent with the test content of expected results.
1303, scene flow chart and/or scene description sentence are shown.
In the present embodiment, be converted to after scene flow chart and/or scene description sentence, by scene flow chart and/or
Scene description sentence is shown, user is allowed intuitively to see the node content of each node in scene flow chart, scene
The field contents of each field in descriptive statement.
In the embodiment of the present application, when specifically illustrating the first displaying and being described as test case, test case is converted to field
The essence of scape flow chart and/or scene description sentence is to replace the test content of test condition, test process and expected results
For the node content of precondition node, process node and result node in scene flow chart;And/or by test condition, test
Process and the test content of expected results replace with precondition field in scene description sentence, procedure field and result field
Field contents.It is thereby achieved that also can guarantee the description to demand scene while mutually conversion between different scenesization description
It is consistent.
In above embodiments, after the first displaying description is converted to the second displaying description, if one of field
Scapeization description changes, if the description consistency of demand scene is just then other displaying descriptions do not change accordingly
It cannot be guaranteed, guarantee the description consistency of demand scene therefore, it is necessary to the automatic modification between displaying description, lead to below
Embodiment is crossed to be illustrated.
Optionally, in some embodiments of the present application, after display the second displaying description, further includes:
When user, which modifies the first displaying, to be described, modified first displaying description is shown, by modified first
Displaying description is converted to modified second displaying description, shows modified second displaying description;
Alternatively, modified second displaying description is shown when user's the second displaying of modification describes, it will be modified
Second displaying description is converted to modified first displaying description, shows modified first displaying description.
In the embodiment of the present application, changes in mission requirements or the reasons such as user's understanding changes lead to demand scene
Description change when, user the first displaying describe or the second displaying description be modified, when user modification first
When displaying describes, modified first displaying description is shown, after modified first displaying description is converted to modification
The second displaying description, show modified second displaying description;Alternatively, when user's the second displaying of modification describes,
It shows modified second displaying description, modified second displaying description is converted into modified first displaying and is retouched
It states, shows modified first displaying description.After realizing a displaying description modification, other displaying descriptions can
To be modified automatically, the operating procedure that user modifies other displayings description is eliminated, further ensure that demand scene
Description consistency.
What is introduced in above embodiments is the demand displaying method of the application, and demand is discussed in detail below by embodiment
Displaying device.
Figure 14 is please referred to, the embodiment of the present application provides a kind of demand displaying device, comprising:
Processor 1402, display 1401 and memory 1403, wherein memory 1403 can be used for storage processor
1402 codes executed;
Display 1401, for showing that the first displaying describes to describe corresponding switching button with the first displaying, first
Displaying is described as the displaying describing mode of mission requirements, and the first displaying is described as scene flow chart, scene description sentence
Any one of with test case, scene flow chart includes precondition node, process node and result node, scene description language
Sentence includes precondition field, procedure field and result field, and test case includes test condition, test process and expected knot
Fruit;
Processor 1402, for detect the clicking operation of corresponding switching button is described to the first displaying when, will
First displaying description be converted to the second displaying description, the second displaying be described as scene flow chart, scene description sentence and
It is different from the one or two of the first displaying description in test case;
Display 1401 is also used to show that the second displaying describes.
In the embodiment of the present application, during software development, in order to facilitate the exploitation of software, need to propose client
The mission requirements of software development task carry out displaying description, and a mission requirements include one or more demand scene, lead to
The mode of displaying description is crossed to describe the demand scene in mission requirements, displaying description can be scene flow chart, scene
Descriptive statement and test case are these three types of.Precondition, process and result three can be generally divided into the description of demand scene
Part, then including precondition node, process node and result node in scene flow chart;Before including in scene description sentence
Mention condition field, procedure field and result field;It include test condition, test process and expected results in test case.Work as root
After having obtained the first displaying description according to mission requirements, the display 1401 of demand displaying device shows that the first displaying is retouched
It states and the first displaying describes corresponding switching button, the first displaying is described as the displaying describing mode of mission requirements,
First displaying is described as any one of scene flow chart, scene description sentence and test case, and processor 1402 is detecting
When to the clicking operation for describing corresponding switching button to the first displaying, the first displaying description is converted into the second displaying
Description, the second displaying are described as being different from the first displaying description in scene flow chart, scene description sentence and test case
One or two, and display 1401 by the second displaying being converted to description show.With prior art midfield
Scape flow chart, scene description sentence are required independently to write and be compared with test case, and the application can be by the first displaying
Description is converted to the second displaying description, and the first displaying description is in scene flow chart, scene description sentence and test case
One kind, the second displaying be described as in scene flow chart, scene description sentence and test case be different from the first displaying retouch
Therefore the one or two stated the case where a kind of displaying known describes, can be converted and show other one or two
Displaying description avoids scene flow chart, demand scene description sentence and test case these three displayings in the prior art
Description requires independently to write, and so as to cause the different situation of the content of these three displayings description, ensures that demand in this way
The description consistency of scene, improves the efficiency and accuracy of software development.
Optionally, in some embodiments of the present application, the first displaying is described as scene flow chart, the second displaying description
For scene description sentence and/or test case,
Processor 1402 is also used to precondition node, process node and result node being converted to scene description sentence,
The field contents of the precondition field of scene description sentence are consistent with the node content of precondition node, scene description sentence
Procedure field field contents it is consistent with the node content of process node, the field contents of the result field of scene description sentence
It is consistent with the node content of result node;
And/or
Processor 1402 is also used to precondition node, process node and result node being converted to test case, test
The test content of the test condition of use-case is consistent with the node content of precondition node, the test of the test process of test case
Content is consistent with the node content of process node, the test content of the expected results of test case and the node content of result node
Unanimously.
In the embodiment of the present application, the first displaying is described as scene flow chart, retouches then the second displaying is described as scene
Predicate sentence and/or test case.Including the node of three generic attributes in the scene flow chart that display 1401 is shown, before being respectively
Condition node, process node and result node are proposed, the node content of precondition node is used to describe the premise item of demand scene
Part;The node content of process node is used to describe the process of demand scene;The node content of result node is for describing demand field
The result of scape.First displaying description is converted to the second displaying description by processor 1402, substantially by precondition section
Point, process node and result node are converted to scene description sentence;And/or by precondition node, process node and result section
Point is converted to test case.In obtained scene description sentence, the field contents and precondition node of precondition field
Node content it is consistent, the field contents of procedure field and the node content of process node are consistent, the result of scene description sentence
The field contents of field and the node content of result node are consistent;In obtained test case, the test content of test condition
Consistent with the node content of precondition node, the test content of test process and the node content of process node are consistent, it is contemplated that
As a result test content is consistent with the node content of result node.It specifically illustrates the first displaying and is described as scene flow chart
When, scene flow chart is converted to scene description sentence and/or the essence of test case is, by precondition node, process node
And the node content of result node replaces with the field of precondition field, procedure field and result field in scene description sentence
Content;And/or the node content of precondition node, process node and result node is replaced with into test-strips in test case
The test content of part, test process and expected results.It is thereby achieved that while mutually conversion between different scenesization description,
Also it can guarantee that the description to demand scene is consistent.
Optionally, in some embodiments of the present application,
Display 1401 is also used to show that the demand flow chart of mission requirements, demand flow chart include at least three processes
Node of graph;
Processor 1402 is also used to detect the scene flow chart that user selects from demand flow chart, obtains user setting
Scene flow chart in scenario node nodal community, nodal community is used to indicate condition node, process premised on scenario node
Node or result node.
In the embodiment of the present application, the first displaying is described as scene flow chart, then the scene flows that display 1401 is shown
Journey figure be how come and scene flow chart in precondition node, process node or result node be how to be arranged
, need described below, first the demand flow chart that shows mission requirements of display 1401, demand flow chart be according to
What mission requirements generated, include at least three flow chart nodes in demand flow chart;User is in the demand flow chart for seeing display
Afterwards, demand scene partitioning is carried out to mission requirements according to understanding, a mission requirements include one or more demand scene, are pressed
According to the demand scene of division, at least three flow chart nodes are selected as a scene flow chart in demand flow chart center, it is right
For demand displaying device, processor 1402 detects the scene flow chart that user selects from demand flow chart, obtains and uses
The nodal community of scenario node, nodal community are used to indicate conditional sections premised on scenario node in the scene flow chart of family setting
Point, process node or result node.
Optionally, in some embodiments of the present application, the first displaying is described as scene description sentence, and the second displaying is retouched
It states as scene flow chart and/or test case,
Processor 1402 is also used to precondition field, procedure field and result field being converted to scene flow chart, field
The node content of the precondition node of scape flow chart is consistent with the field contents of precondition field, the process of scene flow chart
The node content of node and the field contents of procedure field are consistent, the node content and result word of the result node of scene flow chart
The field contents of section are consistent;
And/or
Processor 1402 is also used to precondition field, procedure field and result field being converted to test case, test
The test content of the test condition of use-case is consistent with the field contents of precondition field, the test of the test process of test case
Content is consistent with the field contents of procedure field, the test content of the expected results of test case and the field contents of result field
Unanimously.
In the embodiment of the present application, the first displaying is described as scene description sentence, then the second displaying is described as scene
Flow chart and/or test case.Including the field of three types in the scene description sentence that display 1401 is shown, it is respectively
Precondition field, procedure field and result field, the field contents of precondition field are used to describe the premise of demand scene
Condition;The field contents of procedure field are used to describe the process of demand scene;The field contents of result field are for describing demand
The result of scene.First displaying description is converted to the second displaying description by processor 1402, substantially by precondition
Field, procedure field and result field are converted to scene flow chart;And/or by precondition field, procedure field and result word
Section is converted to test case.In obtained scene flow chart, node content and the precondition field of precondition node
Field contents are consistent, and the node content of process node and the field contents of procedure field are consistent, the node content of result node with
The field contents of result field are consistent;In obtained test case, test content and the precondition field of test condition
Field contents are consistent, and the test content of test process and the field contents of procedure field are consistent, it is contemplated that the test content of result with
The field contents of result field are consistent.When specifically illustrating the first displaying and being described as scene description sentence, scene description sentence
The essence for being converted to scene flow chart and/or test case is, by the field of precondition field, procedure field and result field
Content replaces with the node content of precondition node, process node and result node in scene flow chart;And/or by premise
The field contents of condition field, procedure field and result field replace with test condition in test case, test process and expection
As a result test content.It is thereby achieved that also can guarantee while mutually conversion between different scenesization description to demand scene
Description be consistent.
Optionally, in some embodiments of the present application, the first displaying is described as test case, and the second displaying is described as
Scene flow chart and/or scene description sentence,
Processor 1402 is also used to test condition, test process and expected results being converted to scene flow chart, scene flows
The node content of the precondition node of journey figure is consistent with the test content of test condition, the section of the process node of scene flow chart
Point content is consistent with the test content of test condition, the test of the node content and expected results of the result node of scene flow chart
Content is consistent;
And/or
Processor 1402 is also used to test condition, test process and expected results being converted to scene description sentence, scene
The field contents of the precondition field of descriptive statement are consistent with the test content of test condition, the proword of scene description sentence
The field contents of section are consistent with the test content of test process, the field contents of the result field of scene description sentence and expected knot
The test content of fruit is consistent.
In the embodiment of the present application, the first displaying is described as test case, then the second displaying is described as scene process
Figure and/or scene description sentence.It include test condition, test process and expected knot in the test case that display 1401 is shown
Fruit, the test content of test condition are used to describe the precondition of demand scene;The test content of test process is needed for describing
Seek the process of scene;The test content of expected results is used to describe the result of demand scene.Processor 1402 is by the first displaying
Description is converted to the second displaying description, and test condition, test process and expected results are substantially converted to scene process
Figure;And/or test condition, test process and expected results are converted into scene description sentence.In obtained scene flow chart
In, the node content of precondition node and the test content of test condition are consistent, the node content of process node and test
The test content of journey is consistent, and the node content of result node and the test content of expected results are consistent;In obtained scene description
In sentence, the field contents of precondition field and the test content of test condition are consistent, the field contents of procedure field and survey
The test content of examination process is consistent, and the field contents of result field and the test content of expected results are consistent.Specifically illustrate
When one displaying is described as test case, test case is converted to scene flow chart and/or the essence of scene description sentence is, will
The test content of test condition, test process and expected results replaces with precondition node, process node in scene flow chart
And the node content of result node;And/or the test content of test condition, test process and expected results is replaced with into scene
The field contents of precondition field, procedure field and result field in descriptive statement.It is thereby achieved that different scenesization describe
Between while mutually convert, also can guarantee that the description to demand scene is consistent.
Optionally, in some embodiments of the present application,
Display 1401 is also used to show that modified first displaying is retouched when user's the first displaying of modification describes
It states;
Processor 1402 is also used to describe modified first displaying to be converted to modified second displaying and retouch
It states;
Display 1401 is also used to show modified second displaying description;
Alternatively,
Display 1401 is also used to show that modified second displaying is retouched when user's the second displaying of modification describes
It states;
Processor 1402 is also used to describe modified second displaying to be converted to modified first displaying and retouch
It states;
Display 1401 is also used to show modified first displaying description.
In the embodiment of the present application, changes in mission requirements or the reasons such as user's understanding changes lead to demand scene
Description change when, user the first displaying describe or the second displaying description be modified, when user modification first
When displaying describes, display 1401 shows modified first displaying description, and processor 1402 is by modified first
Scapeization description is converted to modified second displaying description, and display 1401 shows modified second displaying description;Or
Person, when user, which modifies the second displaying, to be described, display 1401 shows modified second displaying description, processor 1402
Modified second displaying description is converted into modified first displaying description, display 1401 shows modified the
One displaying description.After realizing a displaying description modification, other displaying descriptions can be modified automatically, save
User has been gone to modify the operating procedure of other displayings description.
It should be noted that in the above embodiment, the quantity of the display 1401 in Figure 14 is only one, specific
, can also be as shown in figure 15 when implementation, the particular number of display 1501 without limitation, if it is more to be directed to multiple users share
When a displaying describes, the first displaying description, switching button and the second scene can be shown simultaneously on each display
Change description;If can show a kind of field on a display when being directed to a user and describing towards a displaying
Scapeization description, for example, show the first displaying description and switching button on display 1, display 2 to display N all shows the
Two displayings description.
Above embodiments are the explanations to demand displaying device for entity apparatus, below by embodiment to functional module
The demand displaying device of change is illustrated.
Figure 16 is please referred to, the embodiment of the present application provides a kind of demand displaying device, comprising:
Display module 1601, for showing that the first displaying description and the first displaying describe corresponding switching button, the
One displaying is described as the displaying describing mode of mission requirements, and the first displaying is described as scene flow chart, scene description language
Any one of sentence and test case, scene flow chart includes precondition node, process node and result node, scene description
Sentence includes precondition field, procedure field and result field, and test case includes test condition, test process and expected knot
Fruit;
Processing module 1602, for detect the clicking operation of corresponding switching button is described to the first displaying when,
First displaying description is converted into the second displaying description, the second displaying is described as scene flow chart, scene description sentence
With the one or two for being different from the first displaying description in test case;
Display module 1601 is also used to show that the second displaying describes.
In the embodiment of the present application, it is corresponding that display module 1601 shows that the first displaying description and the first displaying describe
Switching button, the first displaying are described as the displaying describing mode of mission requirements, the first displaying be described as scene flow chart,
Any one of scene description sentence and test case, processing module 1602 describe corresponding turn to the first displaying detecting
When changing the clicking operation of button, the first displaying description is converted into the second displaying description, the second displaying is described as scene
It is different from the one or two of the first displaying description, and display module in flow chart, scene description sentence and test case
1601 show the second displaying being converted to description.With scene flow chart in the prior art, scene description sentence and
Test case is required independently to write and be compared, and the first displaying description can be converted to the second displaying and retouched by the application
It states, the first displaying description is one of scene flow chart, scene description sentence and test case, and the second displaying is described as
It is different from the one or two of the first displaying description in scene flow chart, scene description sentence and test case, therefore,
Know the case where a kind of displaying describes, can convert and show other one or two kinds of displaying descriptions, avoid existing skill
Scene flow chart, demand scene description sentence and these three displayings of test case description require independently to write in art, thus
The different situation of the content for causing these three displayings to describe, ensures that the description consistency of demand scene in this way, improves soft
The efficiency and accuracy of part exploitation.
Optionally, in some embodiments of the present application, the first displaying is described as scene flow chart, the second displaying description
For scene description sentence and/or test case,
Processing module 1602 is also used to precondition node, process node and result node being converted to scene description language
Sentence, the field contents of the precondition field of scene description sentence are consistent with the node content of precondition node, scene description
The field contents of the procedure field of sentence and the node content of process node are consistent, the field of the result field of scene description sentence
Content is consistent with the node content of result node;
And/or
Processing module 1602 is also used to precondition node, process node and result node being converted to test case, surveys
The test content of the test condition of example on probation is consistent with the node content of precondition node, the survey of the test process of test case
It is consistent with the node content of process node to try content, in the test content of the expected results of test case and the node of result node
Hold consistent.
In the embodiment of the present application, the first displaying is described as scene flow chart, retouches then the second displaying is described as scene
Predicate sentence and/or test case.Including the node of three generic attributes in the scene flow chart that display module 1601 is shown, it is respectively
Precondition node, process node and result node, the node content of precondition node are used to describe the premise of demand scene
Condition;The node content of process node is used to describe the process of demand scene;The node content of result node is for describing demand
The result of scene.First displaying description is converted to the second displaying description by processing module 1602, substantially by premise item
Part node, process node and result node are converted to scene description sentence;And/or processing module 1602 by precondition node,
Process node and result node are converted to test case.In obtained scene description sentence, in the field of precondition field
Appearance is consistent with the node content of precondition node, and the field contents of procedure field and the node content of process node are consistent, field
The field contents of the result field of scene describing sentence and the node content of result node are consistent;In obtained test case, survey
The test content of strip part is consistent with the node content of precondition node, the test content of test process and the section of process node
Point content is consistent, it is contemplated that the test content of result and the node content of result node are consistent.The first displaying is specifically illustrated to retouch
When stating as scene flow chart, scene flow chart is converted to scene description sentence and/or the essence of test case is, by precondition
The node content of node, process node and result node replace with precondition field in scene description sentence, procedure field and
The field contents of result field;And/or the node content of precondition node, process node and result node is replaced with into survey
Test condition, the test content of test process and expected results in example on probation.It is thereby achieved that phase between different scenesization description
Mutually while conversion, it also can guarantee that the description to demand scene is consistent.
Optionally, in some embodiments of the present application,
Display module 1601 is also used to show that the demand flow chart of mission requirements, demand flow chart include at least three streams
Journey node of graph;
Processing module 1602 is also used to detect the scene flow chart that user selects from demand flow chart, obtains user and sets
The nodal community of scenario node in the scene flow chart set, nodal community are used to indicate condition node, mistake premised on scenario node
Cheng Jiedian or result node.
In the embodiment of the present application, the first displaying is described as scene flow chart, then the scene that display module 1601 is shown
Flow chart be how come and scene flow chart in precondition node, process node or result node be how to set
It sets, needs described below, the demand flow chart that shows mission requirements of display module 1601, demand flow chart are first
It is generated according to mission requirements, includes at least three flow chart nodes in demand flow chart;User is in the flow of requirement for seeing display
After journey figure, demand scene partitioning is carried out to mission requirements according to understanding, a mission requirements include one or more demand field
Scape selects at least three flow chart nodes as a scene process in demand flow chart center according to the demand scene of division
Figure, for demand displaying device, processing module 1602 detects the scene flow chart that user selects from demand flow chart,
The nodal community of scenario node in the scene flow chart of user setting is obtained, nodal community is used to indicate item premised on scenario node
Part node, process node or result node.
Optionally, in some embodiments of the present application, the first displaying is described as scene description sentence, and the second displaying is retouched
It states as scene flow chart and/or test case,
Processing module 1602 is also used to precondition field, procedure field and result field being converted to scene flow chart,
The node content of the precondition node of scene flow chart is consistent with the field contents of precondition field, the mistake of scene flow chart
The node content of Cheng Jiedian and the field contents of procedure field are consistent, the node content and result of the result node of scene flow chart
The field contents of field are consistent;
And/or
Processing module 1602 is also used to precondition field, procedure field and result field being converted to test case, surveys
The test content of the test condition of example on probation is consistent with the field contents of precondition field, the survey of the test process of test case
It is consistent with the field contents of procedure field to try content, in the test content of the expected results of test case and the field of result field
Hold consistent.
In the embodiment of the present application, the first displaying is described as scene description sentence, then the second displaying is described as scene
Flow chart and/or test case.Including the field of three types in the scene description sentence that display module 1601 is shown, respectively
It is precondition field, procedure field and result field, the field contents of precondition field are for before describing demand scene
Propose condition;The field contents of procedure field are used to describe the process of demand scene;The field contents of result field are needed for describing
Seek the result of scene.First displaying description is converted to the second displaying description by processing module 1602, substantially by premise
Condition field, procedure field and result field are converted to scene flow chart;And/or by precondition field, procedure field and knot
Fruit field is converted to test case.In obtained scene flow chart, the node content and precondition word of precondition node
The field contents of section are consistent, and the node content of process node and the field contents of procedure field are consistent, in the node of result node
Hold consistent with the field contents of result field;In obtained test case, the test content and precondition word of test condition
The field contents of section are consistent, and the test content of test process and the field contents of procedure field are consistent, it is contemplated that in the test of result
Hold consistent with the field contents of result field.When specifically illustrating the first displaying and being described as scene description sentence, scene description
Sentence is converted to scene flow chart and/or the essence of test case is, by precondition field, procedure field and result field
Field contents replace with the node content of precondition node, process node and result node in scene flow chart;And/or it will
The field contents of precondition field, procedure field and result field replace with test condition in test case, test process and
The test content of expected results.It is thereby achieved that also can guarantee while mutually conversion between different scenesization description to demand
The description of scene is consistent.
Optionally, in some embodiments of the present application, the first displaying is described as test case, and the second displaying is described as
Scene flow chart and/or scene description sentence,
Processing module 1602 is also used to test condition, test process and expected results being converted to scene flow chart, scene
The node content of the precondition node of flow chart is consistent with the test content of test condition, the process node of scene flow chart
Node content is consistent with the test content of test condition, the survey of the node content and expected results of the result node of scene flow chart
It is consistent to try content;
And/or
Processing module 1602 is also used to test condition, test process and expected results being converted to scene description sentence, field
The field contents of the precondition field of scene describing sentence are consistent with the test content of test condition, the process of scene description sentence
The field contents of field and the test content of test process are consistent, the field contents of the result field of scene description sentence and expection
As a result test content is consistent.
In the embodiment of the present application, the first displaying is described as test case, then the second displaying is described as scene process
Figure and/or scene description sentence.It include test condition, test process and expection in the test case that display module 1601 is shown
As a result, the test content of test condition is used to describe the precondition of demand scene;The test content of test process is for describing
The process of demand scene;The test content of expected results is used to describe the result of demand scene.Processing module 1602 is by first
Scapeization description is converted to the second displaying description, and test condition, test process and expected results are substantially converted to scene
Flow chart;And/or test condition, test process and expected results are converted into scene description sentence.In obtained scene process
In figure, the node content of precondition node and the test content of test condition are consistent, the node content of process node and test
The test content of process is consistent, and the node content of result node and the test content of expected results are consistent;It is retouched in obtained scene
In predicate sentence, the field contents of precondition field and the test content of test condition are consistent, the field contents of procedure field with
The test content of test process is consistent, and the field contents of result field and the test content of expected results are consistent.It specifically illustrates
When first displaying is described as test case, test case is converted to scene flow chart and/or the essence of scene description sentence is,
The test content of test condition, test process and expected results is replaced with into precondition node, procedure section in scene flow chart
The node content of point and result node;And/or the test content of test condition, test process and expected results is replaced with into field
The field contents of precondition field, procedure field and result field in scene describing sentence.It is thereby achieved that different scenes are retouched
While mutually conversion between stating, it also can guarantee that the description to demand scene is consistent.
Optionally, in some embodiments of the present application,
Display module 1601 is also used to show modified first displaying when user's the first displaying of modification describes
Description;
Processing module 1602 is also used to describe modified first displaying to be converted to modified second displaying and retouch
It states;
Display module 1601 is also used to show modified second displaying description;
Alternatively,
Display module 1601 is also used to show modified second displaying when user's the second displaying of modification describes
Description;
Processing module 1602 is also used to describe modified second displaying to be converted to modified first displaying and retouch
It states;
Display module 1601 is also used to show modified first displaying description.
In the embodiment of the present application, changes in mission requirements or the reasons such as user's understanding changes lead to demand scene
Description change when, user the first displaying describe or the second displaying description be modified, when user modification first
When displaying describes, display module 1601 shows modified first displaying description, and processing module 1602 is by modified the
One displaying description is converted to modified second displaying description, and display module 1601 shows that modified second displaying is retouched
It states;Alternatively, display module 1601 shows modified second displaying description, place when user's the second displaying of modification describes
Modified second displaying description is converted to modified first displaying and described by reason module 1602, and display module 1601 is aobvious
Show modified first displaying description.After realizing displaying description modification, other displayings descriptions can be into
The automatic modification of row, eliminates the operating procedure that user modifies other displayings description.
Present invention also provides a kind of computer readable storage medium, instruction is stored in computer readable storage medium,
When run on a computer, so that computer executes demand displaying method described in above embodiments.
Present invention also provides a kind of computer program products comprising instruction, when run on a computer, so that
Computer executes demand displaying method described in above embodiments.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter
When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present application.The computer can
To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited
Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium
Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center
Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website
Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit
Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set
It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead
Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be understood that magnitude of the sequence numbers of the above procedures are not meant to execute suitable in the various embodiments of the application
Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present application
Process constitutes any restriction.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the range of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (14)
1. a kind of demand displaying method characterized by comprising
Show that the first displaying description and first displaying describe corresponding switching button, first displaying is described as
The displaying describing mode of mission requirements, first displaying are described as scene flow chart, scene description sentence and test and use
Any one of example, the scene flow chart includes precondition node, process node and result node, the scene description language
Sentence includes precondition field, procedure field and result field, and the test case includes test condition, test process and expection
As a result;
Detect the clicking operation of corresponding switching button is described to first displaying when, first displaying is retouched
State be converted to the second displaying description, second displaying be described as the scene flow chart, the scene description sentence and
It is different from the one or two of first displaying description in the test case;
Show the second displaying description.
2. described the method according to claim 1, wherein first displaying is described as scene flow chart
Second displaying is described as scene description sentence and/or test case,
It is described that first displaying description is converted into the second displaying description, comprising:
The precondition node, the process node and the result node are converted into scene description sentence, the scene
The field contents of the precondition field of descriptive statement are consistent with the node content of the precondition node, the scene description
The field contents of the procedure field of sentence are consistent with the node content of the process node, the result word of the scene description sentence
The field contents of section are consistent with the node content of the result node;
And/or
The precondition node, the process node and the result node are converted into test case, the test case
Test condition test content it is consistent with the node content of the precondition node, the test process of the test case
Test content is consistent with the node content of the process node, the test content of the expected results of the test case and the knot
The node content of fruit node is consistent.
3. according to the method described in claim 2, it is characterized in that, the first displaying of display description and first scene
Change before describing corresponding switching button, further includes:
Show that the demand flow chart of mission requirements, the demand flow chart include at least three flow chart nodes;
The scene flow chart that detection user selects from the demand flow chart, obtains in the scene flow chart of user setting
The nodal community of scenario node, the nodal community be used to indicate condition node premised on the scenario node, process node or
Person's result node.
4. the method according to claim 1, wherein first displaying is described as scene description sentence, institute
It states the second displaying and is described as scene flow chart and/or test case,
It is described that first displaying description is converted into the second displaying description, comprising:
The precondition field, the procedure field and the result field are converted into scene flow chart, the scene flows
The node content of the precondition node of journey figure is consistent with the field contents of the precondition field, the scene flow chart
The node content of process node is consistent with the field contents of the procedure field, the node of the result node of the scene flow chart
Content is consistent with the field contents of the result field;
And/or
The precondition field, the procedure field and the result field are converted into test case, the test case
Test condition test content it is consistent with the field contents of the precondition field, the test process of the test case
Test content is consistent with the field contents of the procedure field, the test content of the expected results of the test case and the knot
The field contents of fruit field are consistent.
5. the method according to claim 1, wherein first displaying is described as test case, described
Two displayings are described as scene flow chart and/or scene description sentence,
It is described that first displaying description is converted into the second displaying description, comprising:
The test condition, the test process and the expected results are converted into scene flow chart, the scene flow chart
Precondition node node content it is consistent with the test content of the test condition, the process node of the scene flow chart
Node content it is consistent with the test content of the test condition, the node content of the result node of the scene flow chart and institute
The test content for stating expected results is consistent;
And/or
The test condition, the test process and the expected results are converted into scene description sentence, the scene description
The field contents of the precondition field of sentence are consistent with the test content of the test condition, the mistake of the scene description sentence
The field contents of journey field are consistent with the test content of the test process, the field of the result field of the scene description sentence
Content is consistent with the test content of the expected results.
6. the method according to any one of claims 1 to 5, which is characterized in that display second displaying is retouched
After stating, further includes:
When user, which modifies first displaying, to be described, modified first displaying description is shown, it will be described modified
First displaying description is converted to modified second displaying description, shows the modified second displaying description;
Alternatively, modified second displaying description is shown, by the modification when user's modification second displaying describes
The second displaying description afterwards is converted to modified first displaying description, shows that modified first displaying is retouched
It states.
7. a kind of demand displaying device characterized by comprising
Processor, display and memory, wherein the memory can be used for storing the code that the processor executes;
The display, it is described for showing that the first displaying description and first displaying describe corresponding switching button
First displaying is described as the displaying describing mode of mission requirements, and first displaying is described as scene flow chart, scene
Any one of descriptive statement and test case, the scene flow chart include precondition node, process node and result section
Point, the scene description sentence include precondition field, procedure field and result field, and the test case includes test-strips
Part, test process and expected results;
The processor, for detect the clicking operation of corresponding switching button is described to first displaying when, will
The first displaying description is converted to the second displaying description, and second displaying is described as the scene flow chart, institute
State the one or two for being different from first displaying description in scene description sentence and the test case;
The display is also used to show the second displaying description.
8. device according to claim 7, which is characterized in that first displaying is described as scene flow chart, described
Second displaying is described as scene description sentence and/or test case,
The processor is also used to the precondition node, the process node and the result node being converted to scene
Descriptive statement, the node content of the field contents of the precondition field of the scene description sentence and the precondition node
Unanimously, the field contents of the procedure field of the scene description sentence are consistent with the node content of the process node, the field
The field contents of the result field of scene describing sentence are consistent with the node content of the result node;
And/or
The processor is also used to the precondition node, the process node and the result node being converted to test
Use-case, the test content of the test condition of the test case is consistent with the node content of the precondition node, the survey
The test content of the test process of example on probation is consistent with the node content of the process node, the expected results of the test case
Test content it is consistent with the node content of the result node.
9. device according to claim 8, which is characterized in that
The display is also used to show that the demand flow chart of mission requirements, the demand flow chart include at least three processes
Node of graph;
The processor is also used to detect the scene flow chart that user selects from the demand flow chart, obtains user setting
The scene flow chart in scenario node nodal community, the nodal community is used to indicate item premised on the scenario node
Part node, process node or result node.
10. device according to claim 7, which is characterized in that first displaying is described as scene description sentence, institute
It states the second displaying and is described as scene flow chart and/or test case,
The processor is also used to the precondition field, the procedure field and the result field being converted to scene
Flow chart, the field contents one of the node content of the precondition node of the scene flow chart and the precondition field
It causes, the node content of the process node of the scene flow chart is consistent with the field contents of the procedure field, the scene flows
The node content of the result node of journey figure is consistent with the field contents of the result field;
And/or
The processor is also used to the precondition field, the procedure field and the result field being converted to test
Use-case, the test content of the test condition of the test case is consistent with the field contents of the precondition field, the survey
The test content of the test process of example on probation is consistent with the field contents of the procedure field, the expected results of the test case
Test content it is consistent with the field contents of the result field.
11. device according to claim 7, which is characterized in that first displaying is described as test case, and described
Two displayings are described as scene flow chart and/or scene description sentence,
The processor is also used to the test condition, the test process and the expected results being converted to scene process
Figure, the node content of the precondition node of the scene flow chart is consistent with the test content of the test condition, the field
The node content of the process node of scape flow chart is consistent with the test content of the test condition, the result of the scene flow chart
The node content of node is consistent with the test content of the expected results;
And/or
The processor is also used to the test condition, the test process and the expected results being converted to scene description
The field contents of sentence, the precondition field of the scene description sentence are consistent with the test content of the test condition, institute
The field contents for stating the procedure field of scene description sentence are consistent with the test content of the test process, the scene description language
The field contents of the result field of sentence are consistent with the test content of the expected results.
12. device according to any one of claims 7 to 11, which is characterized in that
The display is also used to show that modified first displaying is retouched when user's modification first displaying describes
It states;
The processor is also used to the modified first displaying description being converted to modified second displaying and retouch
It states;
The display is also used to show the modified second displaying description;
Alternatively,
The display is also used to show that modified second displaying is retouched when user's modification second displaying describes
It states;
The processor is also used to the modified second displaying description being converted to modified first displaying and retouch
It states;
The display is also used to show the modified first displaying description.
13. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as
Method described in any one of claims 1 to 6.
14. a kind of computer program product comprising instruction, when run on a computer, so that computer executes such as right
It is required that method described in any one of 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710586174.4A CN109271311B (en) | 2017-07-18 | 2017-07-18 | Demand scene method and demand scene device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710586174.4A CN109271311B (en) | 2017-07-18 | 2017-07-18 | Demand scene method and demand scene device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109271311A true CN109271311A (en) | 2019-01-25 |
CN109271311B CN109271311B (en) | 2022-11-25 |
Family
ID=65152667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710586174.4A Active CN109271311B (en) | 2017-07-18 | 2017-07-18 | Demand scene method and demand scene device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271311B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040107415A1 (en) * | 2002-12-03 | 2004-06-03 | Konstantin Melamed | Web-interactive software testing management method and computer system including an integrated test case authoring tool |
CN1987817A (en) * | 2005-12-22 | 2007-06-27 | 中兴通讯股份有限公司 | Method for realizing test exemple automation operation |
CN102901896A (en) * | 2012-10-12 | 2013-01-30 | 上海晟东电力科技有限公司 | Preset automatic feeder test method for distribution network |
CN104484419A (en) * | 2014-12-17 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Test case document conversion system and test case document conversion method |
CN105426309A (en) * | 2015-11-13 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Test case automatic generation method and apparatus |
CN106126411A (en) * | 2016-06-13 | 2016-11-16 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus that tested program code is tested |
-
2017
- 2017-07-18 CN CN201710586174.4A patent/CN109271311B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040107415A1 (en) * | 2002-12-03 | 2004-06-03 | Konstantin Melamed | Web-interactive software testing management method and computer system including an integrated test case authoring tool |
CN1987817A (en) * | 2005-12-22 | 2007-06-27 | 中兴通讯股份有限公司 | Method for realizing test exemple automation operation |
CN102901896A (en) * | 2012-10-12 | 2013-01-30 | 上海晟东电力科技有限公司 | Preset automatic feeder test method for distribution network |
CN104484419A (en) * | 2014-12-17 | 2015-04-01 | 上海斐讯数据通信技术有限公司 | Test case document conversion system and test case document conversion method |
CN105426309A (en) * | 2015-11-13 | 2016-03-23 | 上海斐讯数据通信技术有限公司 | Test case automatic generation method and apparatus |
CN106126411A (en) * | 2016-06-13 | 2016-11-16 | 广州酷狗计算机科技有限公司 | A kind of method and apparatus that tested program code is tested |
Also Published As
Publication number | Publication date |
---|---|
CN109271311B (en) | 2022-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Li et al. | Topiary: a tool for prototyping location-enhanced applications | |
US8332782B1 (en) | Network visualization and navigation | |
EP3227777B1 (en) | Application launching and switching interface | |
CN107179984A (en) | A kind of interface mock methods and interface test method | |
CN106021102B (en) | The generation method and device of automatic test file | |
CN103927253A (en) | Multiple browser compatibility testing method and system | |
US11468881B2 (en) | Method and system for semantic intelligent task learning and adaptive execution | |
CN104008041B (en) | Terminal applies test method and device | |
CN104317648B (en) | A kind of method and apparatus of monitoring advertisement | |
US10922058B2 (en) | Method, system and apparatus for visual programming of interaction workflows for omni-channel customer contact centers with integrated customer relationship management | |
CN106296135A (en) | Event-prompting method, device and terminal | |
Kartakis et al. | Control smart homes easily with simple touch | |
CN110532159A (en) | Data decryptor method, apparatus, equipment and computer readable storage medium | |
CN106708528A (en) | Script generating method and device | |
WO2018150388A2 (en) | A system and method for graphical programming | |
CN105182111B (en) | A kind of performance test methods and system of mobile terminal | |
CN106294184A (en) | The graphical creation method of test scene, device and terminal unit | |
Lucci et al. | Understanding end-user development of context-dependent applications in smartphones | |
US20040158804A1 (en) | Parameter oriented graphical representation of hardware timing and triggering capabilities with contextual information | |
CN107967207A (en) | The test method and device of user interface interaction function | |
KR20090065144A (en) | System and method for testing graphic user interface of mobile application software | |
CN103530180B (en) | Method and device for switching storage space of application programs | |
CN109271311A (en) | A kind of demand displaying method and demand displaying device | |
CN103761020A (en) | Shortcut navigating method and device | |
CN107643858A (en) | A kind of information processing method, terminal and server |
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 |