anchor.diff:      if defined _password ( set "exitCode=0" ) else ( set "exitCode=1" )
       endlocal & set "%~1=%_password%" & exit /b %exitCode%
   
  -
  
positive.code: rem This script launches IVA e2e tests over one or more Opencga studies in Windows env
  rem It prompts for Opencga username, password, and a comma-separated list of studies if -u (username) and -s (studies) params are not provided.
  
  
  @echo off
  setlocal EnableExtensions disabledelayedexpansion
  
  :parse
  IF "%~1"=="" GOTO endparse
  
negative.code: )
  
  
  rem echo %opencgaUser% - %opencgaPassword% - %studies%
  
  rem Iterate over studies and
  for %%a in ("%studies:,=" "%") do (
  set tmp=%%~na
  set study=!tmp::=!
  echo %%~a delayed: !study!
  rem TODO fix !study! is not expanded in the following commands
  rem (if exist mochawesome-report rmdir /S/Q mochawesome-report) && npx cypress run --env username=%opencgaUser%,password=%opencgaPassword%,study=%%~a --config videosFolder='cypress/videos/!study!',screenshotsFolder='cypress/screenshots/!study!' --headless --spec 'cypress/integration/002-login.js' & npx mochawesome-merge mochawesome-report/*.json -o mochawesome-report/cypress-combined-report.json && ^
  rem npx marge --reportFilename "!study!.html" --charts --timestamp _HH-MM_dd-mm-yyyy --reportPageTitle 'IVA !study!' --reportTitle 'IVA study: !study!' --reportDir ./report mochawesome-report/cypress-combined-report.json && (if exist mochawesome-report rmdir /S/Q mochawesome-report)
  )
  
  rem End of the process
  