Java Code Examples for gherkin.formatter.model.Scenario#getDescription()
The following examples show how to use
gherkin.formatter.model.Scenario#getDescription() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GherkinKeyWordProvider.java From xframium-java with GNU General Public License v3.0 | 6 votes |
@Override public void scenario(Scenario xTest) { currentSection = Section.SCENARIOS; String tagNames = null; if ( xTest.getTags() != null && !xTest.getTags().isEmpty() ) { tagNames = ""; for ( Tag tagName : xTest.getTags() ) tagNames = tagNames + tagName.getName() + ","; tagNames = tagNames.substring( 0, tagNames.length() - 1 ); } this.currentScenario = new KeyWordTest( xTest.getName(), true, null, null, false, null, null, 0, xTest.getDescription(), tagNames, null, null, null, 0, null, null, null, null, 0, 0, TRACE.OFF.name() ); for ( KeyWordStep xStep : backgroundSteps ) this.currentScenario.addStep( xStep ); log.info( "Adding " + xTest.getName() ); scenarioList.add( currentScenario ); }
Example 2
Source File: XMLFormatter.java From xframium-java with GNU General Public License v3.0 | 6 votes |
@Override public void scenario( Scenario xTest ) { currentSection = Section.SCENARIOS; String tagNames = null; if ( xTest.getTags() != null && !xTest.getTags().isEmpty() ) { tagNames = ""; for ( Tag tagName : xTest.getTags() ) tagNames = tagNames + tagName.getName() + ","; tagNames = tagNames.substring( 0, tagNames.length() - 1 ); } this.currentScenario = new KeyWordTest( xTest.getName(), true, null, null, false, null, null, 0, xTest.getDescription(), tagNames, null, null, configProperties, 0, null, null, null, null, 0, 0, TRACE.OFF.name() ); for ( KeyWordStep xStep : backgroundSteps ) this.currentScenario.addStep( xStep ); scenarioList.add( currentScenario ); }