Shell execute error
Publié : jeu. août 04, 2016 11:42 am
Hi,
I use Squash TA V1.7.1.
When I try to execute this code I got build errors dues to "EXECUTE local .." command.
(As example "EXECUTE log.." command is working
Does anybody could help ?
Thanks,
Ivan
SETUP :
LOAD sample-resource.txt AS resource
// here we test the macro defined in shortcuts/sample_shortcut.macro. Note that none of the instructions here are case sensitive :
TEST :
# LOAD sample-dataset.xml TO XML DATASET dataset
DEFINE $(echo hello word) AS command.file
CONVERT command.file TO query.shell USING $(timeout:15000, streamlength:600) AS commandLine
EXECUTE local WITH commandLine AS result
ASSERT result DOES contain WITh $(hello word) USING $(out)
I use Squash TA V1.7.1.
When I try to execute this code I got build errors dues to "EXECUTE local .." command.
(As example "EXECUTE log.." command is working
Does anybody could help ?
Thanks,
Ivan
SETUP :
LOAD sample-resource.txt AS resource
// here we test the macro defined in shortcuts/sample_shortcut.macro. Note that none of the instructions here are case sensitive :
TEST :
# LOAD sample-dataset.xml TO XML DATASET dataset
DEFINE $(echo hello word) AS command.file
CONVERT command.file TO query.shell USING $(timeout:15000, streamlength:600) AS commandLine
EXECUTE local WITH commandLine AS result
ASSERT result DOES contain WITh $(hello word) USING $(out)