How to use values method of net.serenitybdd.jbehave.Enum SerenityJBehaveSystemProperties class

Best Serenity jBehave code snippet using net.serenitybdd.jbehave.Enum SerenityJBehaveSystemProperties.values

Run Serenity jBehave automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

copy
1package net.serenitybdd.jbehave;
2
3/**
4 * Specifies system property values for the JBehave configuration.
5 */
6public enum SerenityJBehaveSystemProperties {
7
8    /**
9     * Set the JBehave ignoreFailuresInStories options.
10     */
11    IGNORE_FAILURES_IN_STORIES,
12
13    /**
14     * @deprecated use story.timeout instead
15     * How long before the JBehave stories time out (defaults to 300 seconds, or 5 minutes).
16     * Note that this applies to ALL of the JBehave stories as a whole (i.e. the total test
17     * time for all of the tests), not the individual tests.
18     */
19    STORY_TIMEOUT_IN_SECS,
20
21    /**
22     * This appears to have replaced the story.timeout.in.secs property in the JBehave API.
23     */
24    STORY_TIMEOUT,
25
26    /**
27     * JBehave meta filters expressions, separated by commas.
28     * These use the meta annotations in the JBehave stories to decide what stories to
29     * execute. See http://jbehave.org/reference/stable/meta-filtering.html for details
30     * on how the metafilter syntax works.
31     */
32    METAFILTER,
33
34    /**
35     * A regular expression that indicates which stories are included in the test run, based on the story name.
36     * Can be used to speed up tests, but must be used in conjunction with the metafilter tag.
37     */
38    STORY_FILTER,
39
40    /**
41     * If you don't restart a browser between scenarios, do you clear the session cookies? (defaults to true)
42     */
43    RESET_COOKIES_EACH_SCENARIO,
44
45    /**
46     * Reset step libraries in JBehave step definitions for each scenario.
47     * If this property is set to true (the default), any @Step-annotated member variables in JBehave step definitions
48     * will be reinitialized before each scenario.
49     */
50    RESET_STEPS_EACH_SCENARIO,
51
52
53    /**
54     * Define a directory for the .story files, inside src/test/resources. By default, this is 'stories'
55     */
56    STORY_DIRECTORY,
57
58    /**
59     * If the JBehave stories are in a JAR file, we need to provide a semi-colon separated list of packages for
60     * the test runner to look in, e.g. "/my/package;/my/other/package"
61     * If the stories are in the root package or in the "stories" folder, this is not required.
62     */
63    JBEHAVE_STORY_PACKAGES,
64
65    /**
66     * Controls the ignoreFailuresInView flag in JBehave (see http://jbehave.org/reference/stable/running-stories.html).
67     */
68    IGNORE_FAILURES_IN_VIEW,
69
70    /**
71     * The number of threads to run stories in.
72     */
73    JBEHAVE_THREADS;
74
75    public String getName() {return toString().toLowerCase().replaceAll("_",".");}
76
77}
78
79
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Most used method in Enum-SerenityJBehaveSystemProperties

Trigger values code on LambdaTest Cloud Grid

Execute automation tests with values on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)