Directory structure usage

laurenthdl
Messages : 28
Inscription : mar. déc. 13, 2016 3:02 pm

Directory structure usage

Message 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
Zoé
Messages : 126
Inscription : lun. sept. 19, 2016 2:24 am

Directory structure usage

Message par Zoé »

Salut Henri-Damien,

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

Bonne journée :)
laurenthdl
Messages : 28
Inscription : mar. déc. 13, 2016 3:02 pm

Directory structure usage

Message 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.
Répondre

Revenir à « Sahi Plugin »