As per variable scope “If a variable with the same name is declared in two different scopes, the value stored in the variable with narrowest scope will be used”.
So, when a local variable and environment variable is declared with same name it should store the local variable. But in the below test it is storing environment variable instead of local variable. I have declared the local variable as let Person_Name=‘LocalEnv’ in tests.
Is there anything I’m doing wrong or missing out here. Need help/explanation please.