public PCModel(string pcServerAndPort, string pcServerName, string userName, string password, string domain, string project,
                String testId, bool autoTestInstanceID, string testInstanceId, string timeslotDurationHours, string timeslotDurationMinutes,
                PCPostRunActionsRequest pcPostRunActionsRequest, bool vudsMode, string description, string addRunToTrendReport, string trendReportId,
                bool httpsProtocol, string proxyOutURL, string proxyOutUser, string proxyOutPassword)
 {
     this._pcServerAndPort = pcServerAndPort;
     this._pcServerName    = pcServerName;
     this._userName        = userName;
     //this._password = setPassword(almPassword);
     this._password                = password;
     this._domain                  = domain;
     this._project                 = project;
     this._testId                  = testId;
     this._autoTestInstance        = autoTestInstanceID;
     this._testInstanceId          = testInstanceId;
     this._pcTimeslotDuration      = new PCTimeslotDuration(timeslotDurationHours, timeslotDurationMinutes);
     this._pcPostRunActionsRequest = pcPostRunActionsRequest;
     this._vudsMode                = vudsMode;
     this._description             = description;
     this._addRunToTrendReport     = addRunToTrendReport;
     this._httpsProtocol           = httpsProtocol;
     this._trendReportId           = trendReportId;
     this._proxyOutURL             = proxyOutURL;
     this._proxyOutUser            = proxyOutUser;
     this._proxyOutPassword        = proxyOutPassword;
     this._buildParameters         = "";
 }
Esempio n. 2
0
 public PCModel(string pcServerAndPort, string pcServerName, string userName, string password, string domain, string project,
                String testId, bool autoTestInstanceID, string testInstanceId, string timeslotDurationHours, string timeslotDurationMinutes,
                PCPostRunActionsRequest pcPostRunActionsRequest, bool vudsMode, string description, string addRunToTrendReport, string trendReportId,
                bool httpsProtocol, string proxyOutURL, string proxyOutUser, string proxyOutPassword,
                string timeslotRepeat, string timeslotRepeatDelay, string timeslotRepeatAttempts)
 {
     this._pcServerAndPort = pcServerAndPort;
     this._pcServerName    = pcServerName.Replace(" ", "");
     this._userName        = userName.Replace(" ", "");
     //this._password = setPassword(almPassword);
     this._password                = password;
     this._domain                  = domain.Replace(" ", "");
     this._project                 = project.Replace(" ", "");
     this._testId                  = testId.Replace(" ", "");
     this._autoTestInstance        = autoTestInstanceID;
     this._testInstanceId          = testInstanceId;
     this._pcTimeslotDuration      = new PCTimeslotDuration(timeslotDurationHours, timeslotDurationMinutes);
     this._pcPostRunActionsRequest = pcPostRunActionsRequest;
     this._vudsMode                = vudsMode;
     this._description             = description;
     this._addRunToTrendReport     = addRunToTrendReport;
     this._httpsProtocol           = httpsProtocol;
     this._trendReportId           = trendReportId;
     this._proxyOutURL             = proxyOutURL;
     this._proxyOutUser            = proxyOutUser;
     this._proxyOutPassword        = proxyOutPassword;
     this._buildParameters         = "";
     this._timeslotRepeat          = "RepeatWithParameters".Equals(timeslotRepeat) ? timeslotRepeat : "DoNotRepeat";
     this._timeslotRepeatDelay     = verifyIntegerAndlimits(timeslotRepeatDelay, 1, 10, 1);
     this._timeslotRepeatAttempts  = verifyIntegerAndlimits(timeslotRepeatAttempts, 2, 10, 2);
 }