1. Launch NI TestStand and create a New Sequence File.
2. Go to Edit>>Sequence File Callbacks… and check the box for PostMainSequence Callback.

3. Go to the PostMainSequence callback sequence. In the Variables pane, add the following local variables:
a. Locals.TestPassed – Type: Number
b. Locals.TestFailed – Type: Number
c. Locals.Result – Type: Result

4. Add a For Each step. In the step settings:
a. Set Array to Iterate Over to:
RunState.Root.Locals.ResultList[0].TS.SequenceCall.ResultList
b. Set Current Element to:
Locals.Result

5. Inside the For Each step, add a Statement step with the following expressions:
Locals.TestPassed += (Locals.Result.Status == "Passed") ? 1 : 0,
Locals.TestFailed += (Locals.Result.Status == "Failed") ? 1 : 0
6. (Optional) After the For Each step, add a Message Popup step with the following Message Expressions:
"The pass rate is: " + Str(Locals.TestPassed/(Locals.TestPassed + Locals.TestFailed)