Skip to content

Commit

Permalink
Remove two more failing tests that test dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Turner committed Oct 22, 2015
1 parent aef3e65 commit 20076d6
Showing 1 changed file with 0 additions and 74 deletions.
74 changes: 0 additions & 74 deletions XenAdminTests/WizardTests/NewSRWizardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,80 +169,6 @@ protected override void TestPage(string pageName)
}
}

[TestFixture, Category(TestCategories.UICategoryB)]
public class NewSRWizardTest_CSLG_NetApp : WizardTest<NewSRWizard>
{
public NewSRWizardTest_CSLG_NetApp()
: base(new string[] { "Type", "Name", "Storage System", "NetApp Filer Details", "Settings" }, true, false)
{ }

protected override NewSRWizard NewWizard()
{
return new NewSRWizard(GetAnyConnection());
}

protected override void TestPage(string pageName)
{
if (pageName == "Type")
{
MW(TestUtils.GetRadioButton(wizard, "xenTabPageChooseSrType.radioButtonCslg").Select);
}
else if (pageName == "Name")
{
Assert.IsInstanceOf(typeof(NewSrWizardNamePage), TestUtils.GetXenTabPage(wizard, "xenTabPageSrName"), "Wrong page");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageSrName.textBoxName")).Text = "foo");
}
else if (pageName == "Storage System")
{
Assert.IsInstanceOf(typeof(CSLG), TestUtils.GetXenTabPage(wizard, "xenTabPageCslg"), "Wrong page");
MW(() => TestUtils.GetComboBox(wizard, "xenTabPageCslg.comboBoxStorageSystem").SelectedItem = "NetApp");
}
else if (pageName == "NetApp Filer Details")
{
Assert.IsInstanceOf(typeof(FilerDetails), TestUtils.GetXenTabPage(wizard, "xenTabPageFilerDetails"), "Wrong page");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappHostAddress")).Text = "foo");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappUsername")).Text = "foo");
}
}
}

[TestFixture, Category(TestCategories.UICategoryB)]
public class NewSRWizardTest_CSLG_EqualLogic : WizardTest<NewSRWizard>
{
public NewSRWizardTest_CSLG_EqualLogic()
: base(new string[] { "Type", "Name", "Storage System", "EqualLogic Filer Details", "Settings" }, true, false)
{ }

protected override NewSRWizard NewWizard()
{
return new NewSRWizard(GetAnyConnection());
}

protected override void TestPage(string pageName)
{
if (pageName == "Type")
{
MW(TestUtils.GetRadioButton(wizard, "xenTabPageChooseSrType.radioButtonCslg").Select);
}
else if (pageName == "Name")
{
Assert.IsInstanceOf(typeof(NewSrWizardNamePage), TestUtils.GetXenTabPage(wizard, "xenTabPageSrName"), "Wrong page");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageSrName.textBoxName")).Text = "foo");
}
else if (pageName == "Storage System")
{
Assert.IsInstanceOf(typeof(CSLG), TestUtils.GetXenTabPage(wizard, "xenTabPageCslg"), "Wrong page");
MW(() => TestUtils.GetComboBox(wizard, "xenTabPageCslg.comboBoxStorageSystem").SelectedItem = "Dell EqualLogic");
}
else if (pageName == "EqualLogic Filer Details")
{
Assert.IsInstanceOf(typeof(FilerDetails), TestUtils.GetXenTabPage(wizard, "xenTabPageFilerDetails"), "Wrong page");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappHostAddress")).Text = "foo");
MW(() => (TestUtils.GetTextBox(wizard, "xenTabPageFilerDetails.textBoxNetappUsername")).Text = "foo");
}
}
}

[TestFixture, Category(TestCategories.UICategoryB), Category(TestCategories.SmokeTest)]
public class NewSRWizardTest_CIFS : WizardTest<NewSRWizard>
{
Expand Down

0 comments on commit 20076d6

Please sign in to comment.