CP-17752: make unit tests use a generic class of policy wizard and

added support for New Policy Wizard help document.

Signed-off-by: Sharath Babu <Sharath.Babu@citrix.com>
This commit is contained in:
Sharath Babu 2016-06-13 14:53:04 +00:00
parent 32d5c15329
commit 2ad62fd48e
3 changed files with 32 additions and 4 deletions

View File

@ -657,6 +657,24 @@
<data name="NewPolicyWizard_VirtualMachinesPane" xml:space="preserve">
<value>6535</value>
</data>
<data name="NewPolicyWizardSpecific_EmailalertsPane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPolicyWizardSpecific_FinishPane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPolicyWizardSpecific_PolicyNamePane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPolicyWizardSpecific_SnapshotfrequencyPane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPolicyWizardSpecific_SnapshottypePane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPolicyWizardSpecific_VMsPane" xml:space="preserve">
<value>6551</value>
</data>
<data name="NewPoolDialog" xml:space="preserve">
<value>5100</value>
</data>

View File

@ -261,8 +261,18 @@ namespace XenAdmin.Wizards.NewPolicyWizard
protected override string WizardPaneHelpID()
{
return CurrentStepTabPage is RBACWarningPage ? FormatHelpId("Rbac") : base.WizardPaneHelpID();
if (CurrentStepTabPage is RBACWarningPage)
{
return FormatHelpId("Rbac");
}
else if (!VMGroup<T>.isVMPolicyVMPP)
{
return "NewPolicyWizardSpecific_" + CurrentStepTabPage.HelpID + "Pane";
}
return "NewPolicyWizard_" + CurrentStepTabPage.HelpID + "Pane";
}
}
}
}

View File

@ -38,9 +38,9 @@ namespace XenAdminTests.WizardTests.cowleyPolicies_xml
{
[TestFixture, Category(TestCategories.UICategoryB)]
class NewPolicyWizardTest : WizardTest<NewPolicyWizard>
class NewPolicyWizardSpecific<VMPP> : WizardTest<NewPolicyWizard>
{
public NewPolicyWizardTest()
public NewPolicyWizardSpecific()
: base(new string[] { "Policy Name", "Protected VMs", "Snapshot Type", "Snapshot Schedule","Archive Options","Email Alerts","Finish" }
, true, false)
{ }