Command Line Execution

Overview

It makes sense to run some functions from the command line, particularly those that are run numerous times on a daily basis.

The following .NET Explorer functions can be called from the command line:

Launch .NET Explorer
As with most applications, .NET Explorer can be launched from the command line. If you installed Silk Performer in the default directory, the command is C:\Program Files\Silk\Silk Performer 20.5\netexplorer.exe.
Execute animated runs for one or all test cases
You can launch .NET Explorer and have animated runs start immediately for one or all test cases in a project using a command line parameter:
  • To execute all test cases in a project, enter for example netexplorer.exe myproject.nef * at the command line.
  • To execute only the main test case in a project, enter for example netexplorer.exe myproject.nef TMain at the command line.

Write log files

When executing projects, result files (log, html, and error) are stored in project directories (.nef file directories). These files receive the same name as the .nef file, for example myproject.err, myproject.log, and myproject.html.

To define a different base name for these files, specify the log filename as an additional parameter in the command line, for example netexplorer myproject.nef * mylogfilename.

Usage

netexplorer netfile testcase | * [output]
Parameter Description
netfile .NET Explorer file (.nef)
testcase The name of the test case to execute, or * to execute all
output The directory to write reports to. If no path information is passed, the files are written to the project directory. The following result files are written: .log, .html, and .err