Changes for page Docker-based Testing

Last modified by Vincent Massol on 2024/03/12 17:22

<
From version < 14.1 >
edited by Vincent Massol
on 2018/12/16 15:39
To version < 15.1 >
edited by Vincent Massol
on 2018/12/16 19:34
>
Change comment: There is no comment for this version

Summary

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();

Get Connected