Example Title |
Copy Code
|
---|---|
private void PurgeRun() { //Purge runs from open test sets that did not pass ITestSetFactory tsFact; IRunFactory runFact; ITDFilter tsFilter, runFilter; IList oList; int keepLast, dateUnit, unitCnt; bool stepsOnly; //Set filter for open test sets. tsFact = (TestSetFactory)tdConnection.TestSetFactory; tsFilter = tsFact.Filter; tsFilter["CY_STATUS"] = "Open"; //Set filter for runs that did not pass. runFact = (RunFactory)tdConnection.RunFactory; runFilter = runFact.Filter; runFilter["RN_STATUS"] = "Not Completed";//"Not Passed"; keepLast = 0; //Keep none dateUnit = 1; //Days unitCnt = 0; //0 days indicates runs from today and back stepsOnly = false; // Purge runs, not just steps tdConnection.PurgeRuns2(tsFilter.Text, runFilter.Text, keepLast, dateUnit, unitCnt, stepsOnly); } |