Exemplo n.º 1
0
 /// <summary>
 /// Delete all machines which were created with the function <see cref="CreateAndSaveBendMachine(TcTestSettings, TiMachines, string, string)"/>
 /// </summary>
 /// <param name="testSettings">test settings</param>
 /// <param name="machines">machine page</param>
 public void DeleteTestMachines(TcTestSettings testSettings, TiMachines machines)
 {
     machines.Goto();
     while (machines.ResultColumn.SelectItems(testSettings.NamePrefix) > 0)
     {
         machines.Toolbar.Delete();
     }
     machines.ResultColumn.ClearSearch();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the actual release path of a specific machine.
        /// </summary>
        /// <param name="machineName">Name of the Machine.</param>
        /// <param name="machines">The machine tab.</param>
        /// <returns>The actual release path or <code>string.Empty</code> if the machine was not found.</returns>
        public string GetReleasePathOfMachine(string machineName, TiMachines machines)
        {
            string actualPath = string.Empty;

            machines.Goto();
            if (machines.ResultColumn.SelectItems(machineName) == 1)
            {
                actualPath = machines.Detail.TransferDirectory.Value;
            }

            return(actualPath);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Changes the release path of a specific machine.
        /// </summary>
        /// <param name="machineName">Name of the Machine.</param>
        /// <param name="releasePath">The new release path to set.</param>
        /// <param name="machines">The machine tab.</param>
        /// <returns><code>true</code> if path was set, <code>false</code> if the machine was not found.</returns>
        public bool ChangeReleasePathOfMachine(string machineName, string releasePath, TiMachines machines)
        {
            var machineFoundAndPathSet = false;

            machines.Goto();
            if (machines.ResultColumn.SelectItems(machineName) == 1)
            {
                machines.Detail.TransferDirectory.Value = releasePath;
                machines.Toolbar.Save();

                machineFoundAndPathSet = true;
            }

            return(machineFoundAndPathSet);
        }