org.jbehave.core.steps.InstanceStepsFactory Java Examples
The following examples show how to use
org.jbehave.core.steps.InstanceStepsFactory.
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: LogSearchBackendStories.java From ambari-logsearch with Apache License 2.0 | 6 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new LogSearchDockerSteps(), new SolrSteps(), new LogSearchApiSteps(), new LogSearchConfigApiSteps()); }
Example #2
Source File: AllureJbehaveTest.java From allure-java with Apache License 2.0 | 6 votes |
private AllureResults runStories(final String... storyResources) { final AllureResultsWriterStub writer = new AllureResultsWriterStub(); final AllureLifecycle lifecycle = new AllureLifecycle(writer); final Embedder embedder = new Embedder(); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); embedder.useEmbedderControls(new EmbedderControls() .doGenerateViewAfterStories(false) .doFailOnStoryTimeout(false) .doBatch(false) .doIgnoreFailureInStories(true) .doIgnoreFailureInView(true) .doVerboseFailures(false) .doVerboseFiltering(false) ); final AllureJbehave allureJbehave = new AllureJbehave(lifecycle); embedder.useConfiguration(new MostUsefulConfiguration() .useStoryLoader(new LoadFromClasspath(this.getClass())) .useStoryReporterBuilder(new ReportlessStoryReporterBuilder(temp.toFile()) .withReporters(allureJbehave) ) .useDefaultStoryReporter(new NullStoryReporter()) ); final InjectableStepsFactory stepsFactory = new InstanceStepsFactory( embedder.configuration(), new SimpleStorySteps(), new BrokenStorySteps() ); embedder.useCandidateSteps(stepsFactory.createCandidateSteps()); final AllureLifecycle cached = Allure.getLifecycle(); try { Allure.setLifecycle(lifecycle); embedder.runStoriesAsPaths(Arrays.asList(storyResources)); } finally { Allure.setLifecycle(cached); } return writer; }
Example #3
Source File: UserRegistrationScenarios.java From user-registration-V2 with Apache License 2.0 | 5 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new UserRegistrationSteps()); }
Example #4
Source File: UserRegistrationScenarios.java From user-registration-V2 with Apache License 2.0 | 5 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new UserRegistrationSteps()); }
Example #5
Source File: Stories.java From attic-rave with Apache License 2.0 | 5 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new CommonSteps(), new PeopleSteps() ); }
Example #6
Source File: LogSearchUIStories.java From ambari-logsearch with Apache License 2.0 | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { Configuration configuration = configuration(); return new InstanceStepsFactory(configuration, new LogSearchDockerSteps(), new LogSearchUISteps(driverProvider), new WebDriverScreenshotOnFailure(driverProvider, configuration.storyReporterBuilder())); }
Example #7
Source File: Runner.java From Test-Driven-Java-Development-Second-Edition with MIT License | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new Steps()); }
Example #8
Source File: JBehaveTest.java From Test-Driven-Java-Development-Second-Edition with MIT License | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new WebSteps()); }
Example #9
Source File: AbstractSpringJBehaveStory.java From angularjs-springmvc-sample-boot with Apache License 2.0 | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), getSteps()); }
Example #10
Source File: ICanAddValues.java From chuidiang-ejemplos with GNU Lesser General Public License v3.0 | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { // varargs, can have more that one steps classes return new InstanceStepsFactory(configuration(),new AdderSteps()); }
Example #11
Source File: Stories.java From metrics-kafka with Apache License 2.0 | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new MetricsReportingSteps()); }
Example #12
Source File: AbstractStory.java From tutorials with MIT License | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), stepInstance()); }
Example #13
Source File: IncreaseStoryLiveTest.java From tutorials with MIT License | 4 votes |
@Override public InjectableStepsFactory stepsFactory() { return new InstanceStepsFactory(configuration(), new IncreaseSteps()); }