Skip to main content

Basic configuration for API

  • Here are some basic properties you should think about including in your custom.properties file:
src/main/resources/properties/custom.properties
# configuring your proxy settings is essential if you are sitting behind a corporate proxy server,
# no need to include this property if you're not
com.SHAFT.proxySettings=host:port

# you can configure SHAFT to automatically retry failed tests by setting this property
retryMaximumNumberOfAttempts=3

# you can disable the built-in response success check
automaticallyAssertResponseStatusCode=false

# you can also configure the following timeouts (in seconds)
apiSocketTimeout=30
apiConnectionTimeout=30
apiConnectionManagerTimeout=30
Tip

You can learn more about the different property types and the full list of supported properties by visiting the related pages.