Problem with launch.json arguments

Can you pass global variables when running testcases through console?
-v variable:value works most of the time, but I need to pass also a global values sometimes.

For some reason, some variables need to be set up with set global variable keyword, in order to register.

When you define a variable from command line, it is defined as global.
You, are probably modifying the variable value, during test run.

Another way to use “global” variables, is to set them as environment variables.

1 Like