Changes for page Docker-based Testing
Last modified by Vincent Massol on 2024/03/12 17:22
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -156,11 +156,9 @@ 156 156 157 157 = Test Resources = 158 158 159 - 159 +You might need test resources to be used in interaction with the wiki (e.g. to upload an attachment). Any test resources placed in ##src/test/resources## is made automatically available to the browser container by mounting the dedicated volume mapped to ##target/test-classes##. Then, in your test, you can use the dedicated method to get access to the files located in ##target/test-classes##. 160 160 161 -You might need a test resources to be used in interaction with the wiki (e.g. to upload an attachment). 162 -Any test resources placed in ~{~{src/test/resources}} is made automatically available to the browser container by mounting a dedicated volume. 163 -Then in your test, you have to be careful to use the dedicated method to get access to your resource: 161 +For example: 164 164 165 165 {{code language="java"}} 166 166 String resourceDirPath = testConfiguration.getBrowser().getTestResourcesPath();