Exemplo n.º 1
0
 /// <summary>
 /// Adds a child site to the isntallation. This method will not click through any error message spans if they appear.
 /// </summary>
 /// <param name="appName">The name of the app. Used to enter a valid portal alias: (appName)/(portalAlias).</param>
 /// <param name="portalTitle">The title for the site.</param>
 /// <param name="portalAlias">The alias for the site. This will be appended to the app name.</param>
 public void AddChildPortalDontClickMsgLink(string appName, string portalTitle, string portalAlias)
 {
     AddNewSiteLink.Click();
     ChildRadioButton.Checked = true;
     System.Threading.Thread.Sleep(3000);
     SiteAliasField.Value = ("localhost/" + appName + "/" + portalAlias);
     SiteNameField.Value  = portalTitle;
     PortalTemplateSelectList.Select("Default Website");
     System.Threading.Thread.Sleep(2000);
     AdminUserNameField.Value        = TestUsers.Admin2.UserName;
     AdminFirstNameField.Value       = TestUsers.Admin2.FirstName;
     AdminLastNameField.Value        = TestUsers.Admin2.LastName;
     AdminEmailField.Value           = TestUsers.Admin2.Email;
     AdminPasswordField.Value        = TestUsers.Admin2.Password;
     AdminConfirmPasswordField.Value = TestUsers.Admin2.Password;
     CreateSiteLink.Click();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a child site to the isntallation, and clicks through the message span stating there was an error sending the emails (if it appears).
 /// </summary>
 /// <param name="appName">The name of the app. Used to enter a valid portal alias: (appName)/(portalAlias).</param>
 /// <param name="portalTitle">The title for the site.</param>
 /// <param name="portalAlias">The alias for the site. This will be appended to the app name.</param>
 public void AddChildPortal(string appName, string portalTitle, string portalAlias)
 {
     AddNewSiteLink.Click();
     ChildRadioButton.Click();
     System.Threading.Thread.Sleep(4000);
     SiteAliasField.Value = ("localhost/" + appName + "/" + portalAlias);
     SiteNameField.Value  = portalTitle;
     PortalTemplateSelectList.Refresh();
     PortalTemplateSelectList.Select("Default Website");
     System.Threading.Thread.Sleep(3000);
     AdminUserNameField.Value        = TestUsers.Admin2.UserName;
     AdminFirstNameField.Value       = TestUsers.Admin2.FirstName;
     AdminLastNameField.Value        = TestUsers.Admin2.LastName;
     AdminEmailField.Value           = TestUsers.Admin2.Email;
     AdminPasswordField.Value        = TestUsers.Admin2.Password;
     AdminConfirmPasswordField.Value = TestUsers.Admin2.Password;
     CreateSiteLink.Click();
     System.Threading.Thread.Sleep(6000);
     if (MessageSpan != null && MessageSpan.InnerHtml.Contains("There was an error"))
     {
         MessageLink.Click();
     }
 }