Including or excluding test cases during execution
TestDriver allows you to list individual test cases within a test script
for inclusion or exclusion when the script is run.
The following example shows you how to run a single individual test case
from a test script:
-
Identify the test case ID. (In this example, it is 8981)
-
Edit the .driver
file
-
List your selected test case in a <testCasesList>
tag within the <testExecuteScript>
tag, as shown:
<executeOnSymbian>
<testExecuteScript PCPath="${epocroot}\epoc32\release\${platform}\${build}\z\systemtest\ST_Http_v6Cases.script" SymbianPath="c:\systemtest\ST_Http_v6Cases.script"/>
<testCasesList operator="include">
<testCase target="8981"/>
</testCasesList>
</testExecuteScript>
</executeOnSymbian>
Note: The operator attribute of the
<testCasesList>
tag is used to specify whether to
include or exclude the listed test cases from
execution.
-
Save the .driver
file and run the test.