Search⌘ K
AI Features

Execute Passing Tests in Command Prompt

Explore how to execute Selenium Java tests locally in the command prompt using Maven commands. Understand how to clean the project folder, run all tests, and interpret test results including passed, failed, and ignored counts.

Execute tests

Running Selenium tests in Command Prompt is fairly easy.

  1. Open Command Prompt.
  2. Go to the project’s root folder.
Shell
C:\>cd C:\Users\Alex\Desktop\Java Project for educative
C:\Users\Alex\Desktop\Java Project for educative>
  1. Run the dir command to see everything from the root folder.
...