1

Have a Java/Maven project with Cucumber which reads an environment variable using System.getenv("VARNAME")

Using the latest eclipse I installed the cucumber plugin but when trying to run a single feature file, I don't seem to be able to set the environment variable as the Environment tab is missing from the run/debug configurations (see the screenshot below).

I can think of multiple workarounds, but wanted to make sure first that I am not missing something obvious.

enter image description here

Aram
  • 954
  • 10
  • 17

1 Answers1

0

I fix it with installing plugin Eclipse-Environment-Variables

  1. go to Help->Eclipse Marketplace

enter image description here

2)searching for Eclipse-Environment-Variables and installing it

enter image description here

3)going to Tab Windows ->preference

enter image description here

  1. searching for environment variables and adding them

enter image description here

https://stackoverflow.com/a/37604209/2347210

Vladi
  • 1,662
  • 19
  • 30