Solved : Error when running from Execution button

SYMPTOM: Usually when users perform an Execution process via "Execute button" when powershell terminal is selected, it leads to an error:


The token '&&' is not a valid statement separator in this version.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine

ISSUE : The execute button is not supported with powershell terminal hence user gets an error. This issue is from VSCode. Attached screenshot for reference.


  • Open Terminal in QAS.
  • Click on the drop-down for terminal selection and select the option 'Select Default Shell'.

  • In the pop-up dialogue box that opens select Command Prompt.

  • Now hit the 'Execute button' and the Test Recorder will execute.


If you don't want to switch from powershell mode then you can perform the execution task by running the 'mvn clean test' command on the terminal console. 

Note :

  • For new users, since QMetry Automation Studio version 1.37.2 the powershell option has been removed from the terminal. CMD will be a default terminal for new users.
  • For existing users, they need to set the default terminal to CMD manually using above steps.