-
Notifications
You must be signed in to change notification settings - Fork 66
Configuration
Anatoly Antonov edited this page Feb 20, 2017
·
6 revisions
There are standard Cukes-REST configuration items, that are usually stored in "cukes.properties" file. Some properties are mandatory, but not necessarily have to present in the config file, since they have their default values assigned.
Is it possible to override default name for properties file by creating system environment variable called "cukes.profile", containing filename.
cukes.profile = "cucumber-profile.properties"
Property | Default value | Description |
---|---|---|
cukes.auth_type | --- | If set to "BASIC", then Cukes will authenticate using "username" and "password" provided |
cukes.base_uri | http://localhost:80 | Sets Base URI for your requests to be performed to |
cukes.password | --- | Password to be used for Authentication |
cukes.plugins | --- | Comma-separated list of Plugin Classnames to load into the context |
cukes.proxy | --- | If not empty, sets absolute URL to Proxy and enables it |
cukes.relaxed_https | false | Trusts all SSL certificates, even if expired or invalid |
cukes.resources_root | src/test/resources/ | Root folder of your resources, relative to the project root |
cukes.url_encoding_enabled | false | Encodes HTTP request URL. Helps in case you have spaces in the request |
cukes.username | --- | Username to be used for Authentication |
cukes.gzip_support | true | Asks server for HTTP compression (gzip) through the Accept-Encoding header |
Property | Default value | Description |
---|---|---|
cukes.asserts.status_code.display_body | false | If status code does not match, display the body of the response |
cukes.asserts.status_code.max_size | none | Max size of body to display if cukes.asserts.status_code.display_body is enabled |
Property | Default value | Description |
---|---|---|
cukes.assertions_disabled | false | Disables all Then steps and skips assertions in Scenarios |
cukes.context_inflating_enabled | true | Applies config properties to the Global context |
cukes.loadrunner_filter_blocks_requests | false | Caches response HTTP headers and mocks with fake response body |