> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# apexTestRun

> Runs Apex Test cases. Target Properties Property Name Property Code Required Description Salesforce Account Code FDSF ACCOUNT CODE Yes Salesforce Acco

Runs Apex Test cases.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Salesforce Account Code</td><td>`FDSF_ACCOUNT_CODE`</td><td>Yes</td><td>Salesforce Account with all the required properties like User, Password, Client Id, etc.</td></tr><tr><td>Salesforce Cli Path</td><td>`FDSF_CLI_PATH`</td><td>No</td><td>The Salesforce CLI Path. (Eg: C:\Program Files\Salesforce CLI\bin)</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Salesforce Account Code</td><td>`FDSF_INP_ACCOUNT_CODE`</td><td>No</td><td>Salesforce Account Code</td></tr><tr><td>Apex Test Class Names</td><td>`FDSF_INP_APEX_TEST_CLASSNAMES`</td><td>No</td><td>Comma-separated list of Apex test class names to run.</td></tr><tr><td>Apex Test Suite Names</td><td>`FDSF_INP_APEX_TEST_SUITENAMES`</td><td>No</td><td>Comma-separated list of Apex test suite names to run.</td></tr><tr><td>Apex Test Names</td><td>`FDSF_INP_APEX_TESTNAMES`</td><td>No</td><td>Comma-separated list of Apex test class names or IDs and test methods, if applicable, to run.</td></tr><tr><td>Apex Test Level</td><td>`FDSF_INP_APEX_TEST_LEVEL`</td><td>No</td><td>The permissible values for the Test Level to run are RunLocalTests, RunAllTestsInOrg, RunSpecifiedTests.</td></tr></tbody></table>

# Outputs

<table><colgroup><col /><col /><col /></colgroup><tbody><tr><th>**Output Name**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>`FDSF_OUT_TESTPERCENTAGE`</td><td>No</td><td>Test Pass Percentage</td></tr></tbody></table>

# Artifacts

This operation doesn’t consume or produce any artifacts.

# Endpoint Selection

This operation will select all available endpoints associated to the Target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
