TestRunner Properties File
The TestRunner Properties File serves as the global configuration file for the DASKALOS TestRunner, providing a centralized location to manage various settings and parameters that control the behavior of the test execution. This file follows the standard Java properties file format, using a simple key=value
structure to define configuration settings.
The properties file allows you to define a wide range of configurations, including default values, test parameters, and dynamic data placeholders. To manage dynamic values that need to be resolved at runtime, placeholders are enclosed within square brackets [ ]
. These placeholders can be replaced with actual values during the test execution, either from predefined data files or parameters provided at the start of the test.
This flexibility makes the properties file an essential tool for managing global settings and customizing the test runner to suit various testing needs. By using a central configuration file, you can easily adjust parameters for different test environments, data sets, or test configurations without modifying the actual test cases, ensuring a streamlined and efficient testing process.
NOTE::
The following sample is from a Linux system. The path names will be different for other operating systems.
# Root path for the files AutomationRoot=~/daskalos/automation/ TestRunnerRoot=[AutomationRoot]testrunner/ WebDriverRoot=[TestRunnerRoot]webdriver/ # Set the WebDriver to be used # The name specified is the name of the properties file to be loaded # WebDriverVersion=0.0.1 SeleniumHubAddress=http://192.168.1.202:4444 # Run local system #WebDriverName=SelectWebDriverLocal-0.0.1.jar #WebDriverClass=SelectWebDriverLocal # Selenium Server WebDriverName=SelectWebDriverSelenium-0.0.1.jar WebDriverClass=SelectWebDriverSelenium # Name of the file with the action -> jar reference ActionsFile=[TestRunnerRoot]actions.properties ReportFile=[TestRunnerRoot]reportplugins.properties ResultsFolder=[TestRunnerRoot]results/ ReportsToRun=reportdetail,reportjunit #TestReader=[TestRunnerRoot]testreader.properties TestCaseParserFile=[TestRunnerRoot]testcaseparser.properties # WebBrowserSettingsFile WebBrowserSettingsFile=[TestRunnerRoot]webdriversettings.properties
The TestRunner Properties File is organized into specific sections, each serving a different purpose to configure the DASKALOS TestRunner. These sections help define important parameters for the test execution, making it easier to manage and customize your testing environment.
-
Folder Location for Configuration Files and Plugins: This section specifies the directory paths for the configuration files and any additional plugins that might be used in the test runner. It helps keep the testing environment organized by pointing to the locations of necessary files.
-
Running Tests Locally or on a Selenium Hub: This section defines whether tests should be executed locally on the test machine or through a remote Selenium hub. This allows you to easily switch between local and distributed testing setups, providing flexibility in your test execution.
-
JAR Files for Test Actions: This section lists the names of the JAR files that are used for the actions specified in the test case. If new actions are created, they can be added to this section. Additionally, this section allows you to override built-in actions with custom ones, providing flexibility to extend and customize test functionality.
-
WebBrowserSettings: This section contains the definitions for the supported environments and browsers used for testing. It allows you to configure different browser profiles and test environments, ensuring that tests are executed in the correct browser configurations.
By organizing the properties file into these clear sections, the DASKALOS TestRunner allows you to easily configure, maintain, and customize your testing environment. Each section is designed to simplify test management and provide a flexible testing infrastructure.