aruba icon indicating copy to clipboard operation
aruba copied to clipboard

Cucumber step to run literal script broken on Windows

Open UltimateGeek opened this issue 7 years ago • 7 comments

Summary

On Windows, Aruba fails to run the temporary script it creates from:

When I run the following commands:
  ```
  echo foo
  ```

Expected Behavior

Then the output should contain "foo"

Current Behavior

The step fails with output:

Command "myscript" not found in PATH-variable "C:/...

Your Environment

  • Version used: 1.0.0.pre.alpha.2
  • Operating System and version: Win7

UltimateGeek avatar Dec 07 '17 18:12 UltimateGeek

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

stale[bot] avatar Feb 05 '18 18:02 stale[bot]

The problem is cmd.exe on Windows needs to be given a full or relative path to the script created.

UltimateGeek avatar Feb 06 '18 04:02 UltimateGeek

Windows support is rather experimental I'm afraid. I'll see what I can do. Which version of Aruba are you using?

mvz avatar Mar 04 '18 07:03 mvz

Version used: 1.0.0.pre.alpha.2

Thank you @mvz

UltimateGeek avatar Mar 05 '18 05:03 UltimateGeek

I see the same on 0.14.5.

MartyGentillon avatar Apr 12 '18 22:04 MartyGentillon

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

stale[bot] avatar Jun 11 '18 22:06 stale[bot]

I think the generated script should be named myscript.bat on Windows.

mvz avatar Jul 26 '21 15:07 mvz