testrunner.properties

The testrunner.properties file contains the settings required for DASKALOS TestRunner to run correctly. It provides some settings and links to additional settings files used for configuring and running the automation tests.

We will cover each section of the file and at the end of the section will have a full file listing.

# Root path for the files
AutomationRoot=~/daskalos/automation/
TestRunnerRoot=[AutomationRoot]testrunner/
WebDriverRoot=[TestRunnerRoot]webdriver/

The root path section contains the location where TestRunner can find the folders and files required for the test execution.

  • AutomationRoot – is the root location where all the other folders are based on
  • TestRunnerRoot – is the location where TestRunner.jar file is located as well as most of the configuration files
  • WebDriverRoot – is the location of the web driver files used for interfacing with the different web browsers

The next section sets and configures the web driver that will be used by TestRunner. In this sample, TestRunner supports test execution on the local system and by connecting to a selenium server.

# 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

In this file, and by default, TestRunner is configured to execute the automation tests on the local system.

  • WebDriverVersion – specifies the version number of the DASKALOS TestRunner web driver to be loaded (driver name specified in other section)
  • SeleniumHubAddress – this is the web address and port where the Selenium server is running

The next section “Run local system” are the settings for running on the local system. To have TestRunner execute the test case on the selenium server, the lines in the this section should be pre-fixed with the ‘#’ to comment them out, and the lines in the following section have the ‘#’ removed.

  • WebDriverName – the full name of the DASKALOS TestRunner web driver jar file
  • WebDriverClass – the name of the DASKALOS TestRunner class to use for the execution of the test cases

 

The next section contains the list of the remaining files for configuring TestRunner.

ActionsFile=[TestRunnerRoot]actions.properties
ReportFile=[TestRunnerRoot]reportplugins.properties
ResultsFolder=[TestRunnerRoot]results/
ReportsToRun=reportdetail,reportjunit
TestCaseParserFile=[TestRunnerRoot]testcaseparser.properties
WebBrowserSettingsFile=[TestRunnerRoot]webdriversettings.properties
  • ActionFile – location of the file that contains all predefined automation actions
  • ReportFile – location of the reporting configuration file
  • ResultsFolder – location where the reports will be created
  • ReportToRun – a list of the types of reports to be run
  • TestCaseParserFile – the configuration file used to read and parse the test case file
  • WebBrowserSettingsFile – location of the web browser configuration settings file

 

The complete file:

# 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