Пример #1
0
 /// <summary>
 /// Creates new test folder
 /// </summary>
 /// <param name="testFolder">TDAPIOLELib.TestFolder Object</param>
 /// <param name="newFolderName">New Folder name</param>
 /// <returns>TDAPIOLELib.TestFolder Object for new folder</returns>
 public TDAPIOLELib.TestFolder Create(TDAPIOLELib.TestFolder testFolder, String newFolderName)
 {
     TDAPIOLELib.TestFolderFactory testFolderFactory = testFolder.TestFolderFactory;
     TDAPIOLELib.TestFolder        testFolder1       = testFolderFactory.AddItem(System.DBNull.Value);
     testFolder1["AL_DESCRIPTION"] = newFolderName;
     testFolder1.Post();
     return(testFolder1);
 }
Пример #2
0
 /// <summary>
 /// Rename test plan folder
 /// </summary>
 /// <param name="testFolder">TDAPIOLELib.TestFolder Object</param>
 /// <param name="NewName">New Folder name</param>
 /// <returns>True if successfull</returns>
 public Boolean Rename(TDAPIOLELib.TestFolder testFolder, String NewName)
 {
     testFolder["AL_DESCRIPTION"] = NewName;
     testFolder.Post();
     return(true);
 }