Page 1 sur 1

Directory structure usage

Publié : lun. janv. 16, 2017 11:55 am
par laurenthdl
Hi,
I have a question with directory structure :
- suppose we have resources/dir1/dir2/filea.sah and tests/dir1/dir2/filea.ta
- I am using

===
LOAD dir1/dir2/filea.sah AS sahiParameteredTestSource
CONVERT sahiParameteredTestSource TO script.sahi(script) AS Testxxx.sahi
LOAD testfirefox.properties AS testff.file

TEST :
EXECUTE execute WITH Testxxx.sahi ON SUT USING testff.file AS XXXXX.result

But it seems not to be able to read the correct content.
Is there something I should do in order to use the correct file ?

> LOAD dir1/dir2/filea.sah AS sahiParameteredTestSource
[DEBUG] Loading SCOPE_TEST:dir1/dir2/filea.sah
[DEBUG] Not in cache: try to load it.
[INFO] URLRepository : could not load resource 'dir1/dir2/filea.sah' from repository 'file:src/squashTA/resources' : malformed url

Directory structure usage

Publié : mer. janv. 25, 2017 12:21 am
par Zoé
Salut Henri-Damien,

Quelle est l'URL complète de dir1/dir2/filea.sah ?

Bonne journée :)

Directory structure usage

Publié : mer. janv. 25, 2017 9:21 am
par laurenthdl
Hi Zoé,
about the URL of files, it is actually not a URL, but you are right ask about that since a URL is used in the sahi player.
The sahi files are in a myworkdirectory/src/squashTA/resources/dir1/dir2/file1.sah
But if I am looking at the way they are passed to sahi with firefox player, it is not with dir1/dir2/file1.sah, but dir1.dir2.file1.sah if I remember correctly.
That could be the result of a File management plugin.

Have a nice day.