Skip to main content

Configuration Properties

Ellithium uses various property files to configure testing behavior, logging, and reporting. These files are located in the src/main/resources/properties directory of your project.

Main Configuration

The config.properties file contains core framework settings:

# Number of retries for failed tests/scenarios
retryCountOnFailure=0

# Enable detailed logging (true/false)
loggerExtensiveTraceMode=true

# Default timeout for waiting on elements (seconds)
defaultElementWaitTimeout=60

# Default polling interval for element checks (milliseconds)
defaultElementPollingTime=50

Key Settings

PropertyDescriptionDefault
retryCountOnFailureNumber of times to retry failed tests0
loggerExtensiveTraceModeEnable detailed trace loggingtrue
defaultElementWaitTimeoutElement wait timeout in seconds60
defaultElementPollingTimePolling interval in milliseconds50

Allure Reporting Configuration

The allure.properties file controls the Allure report generation:

# Enable/disable Allure report generation
allure.generate.report=true

# Open report automatically after test execution
allure.open.afterExecution=true

# Directory for Allure results
allure.results.directory=Test-Output/Reports/Allure/allure-results

# Directory for generated Allure reports
allure.report.directory=Test-Output/Reports/Allure/allure-report

Key Settings

PropertyDescriptionDefault
allure.generate.reportEnable Allure report generationtrue
allure.open.afterExecutionAuto-open report after test runtrue
allure.results.directoryDirectory for results dataTest-Output/Reports/Allure/allure-results
allure.report.directoryDirectory for generated reportTest-Output/Reports/Allure/allure-report

Using Properties in Tests

You can access these properties in your tests through the PropertyHelper:

import Ellithium.core.utilities.PropertyHelper;

// Get a property value
String timeout = PropertyHelper.getProperty("config.properties", "defaultElementWaitTimeout");

// Set a property value
PropertyHelper.setProperty("config.properties", "retryCountOnFailure", "2");

Customizing Properties

You can override these properties for specific projects by:

  1. Creating your own property files in the same directory structure
  2. Setting system properties during test execution:
    mvn test -DdefaultElementWaitTimeout=30