I have a problem that XLT does not consider the dev.properties file when executing tests via an Ant task and the ScriptTestCaseSuite.inside a JUnit batchtest.
Trying to load property file ‘file:///opt/jenkins/jobs/test-job/workspace/test-project/config/default.properties’.
Loading properties from file: file:///opt/jenkins/jobs/test-job/workspace/test-project/config/default.properties
Trying to load property file ‘file:///opt/jenkins/jobs/test-job/workspace/test-project/config/project.properties’.
Loading properties from file: file:///opt/jenkins/jobs/test-job/workspace/test-project/config/project.properties
Trying to load property file ‘file:///opt/jenkins/jobs/test-job/workspace/test-project/config/test.properties’.
Loading properties from file: file:///opt/jenkins/jobs/test-job/workspace/test-project/config/test.properties
In this dev.properties file I have set
xlt.webDriver = firefox
xlt.webDriver.window.width = 1680
xlt.webDriver.window.height = 1050
xlt.webDriver.reuseDriver = true
com.xceptance.xlt.browser = FF
com.xceptance.xlt.loadStaticContent = true
com.xceptance.xlt.js.debugger.enabled = false
com.xceptance.xlt.cssEnabled = true
com.xceptance.xlt.css.download.images = always
com.xceptance.xlt.output2disk = always
However, during the test run those settings are not set but instead it uses the ones defined in default.properties.
How do I know which properties file to update so that the settings above are applied during test execution.
I don’t think that the default.properties file is the proper place for that.
In the documentation I could not find an answer for that case:
“The file dev.properties contains development mode
settings. Use this file to modify the configuration so that it suits
your needs during test case development, that is when you create and
debug test cases from within your IDE.
It’s read in development mode only, but not during load testing.”
Executing these tests via Ant is a one time execution per job run and not a load test. That’s why I thought that the dev.properties file would be used.
I also have another issue but first I want to solve this. Maybe the additional information which will be present will help me understand the cause of that other problem.