Forum Discussion

try's avatar
try
New Contributor
8 years ago

I need to fetch the system environment variable in the groovy script test case.

I need to fetch the system environment variable in the groovy script test case.  I tried default context expand (#Env#windir) but does not work.

1 Reply

  • avidCoder's avatar
    avidCoder
    Super Contributor

    Try this code :-

     

    def env = System.getenv()
    log.info env