Luxoft / Twister

Twister Test Automation Framework
http://www.twistertesting.com/
Apache License 2.0
38 stars 21 forks source link

Unable to find/run shell script referenced by a Perl script #157

Closed mmajdoubi closed 9 years ago

mmajdoubi commented 9 years ago

I am trying to execute a Perl script, this Perl script (fragmentation_analyzer.plx) has reference to another shell script named pcap_path.sh. Both scripts a located in the same directory: screen shot 2014-12-17 at 11 44 10 am

After executing the Perl script, an error is generated about the shell script reference. Twister is not able the open/find the shell script referenced by the Perl script, see below for the logging

screen shot 2014-12-17 at 11 49 04 am

Is Twister able to find any referenced scripts located in the same (root) directory?

Thanks in advance M.Majdoubi

bogdanpopescu commented 9 years ago

@mmajdoubi If you use the absoulte path, it should work. Twister client has different environment, this is design intent. Another option would be to define a global variable in GUI ( Configuration->Global Parameters ) to hold the path to your reference and use it to access the reference.

mmajdoubi commented 9 years ago

ok Thanks