Creating category constants for UI test categories (#487)

* Creating a category just for core UI tests

* Grouping all of the core UI tests

* Adjusting categories so we can run in smaller batches

* Adding some of the Issues tests to categories

* Fix shared project nonsense

* Fix non-existent test category

* Testing global category for Issues
This commit is contained in:
E.Z. Hart 2016-11-15 12:39:23 -07:00 коммит произвёл Jason Smith
Родитель 7f9f2530ca
Коммит 14e21dcebd
61 изменённых файлов: 232 добавлений и 69 удалений

Просмотреть файл

@ -237,13 +237,13 @@
<BundleResource Include="test.jpg" />
</ItemGroup>
<ItemGroup>
<Reference Include="AdvancedColorPicker">
<HintPath>..\Components\advancedcolorpicker-2.0\lib\ios-unified\AdvancedColorPicker.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="AdvancedColorPicker">
<HintPath>..\Components\advancedcolorpicker-2.0\lib\ios-unified\AdvancedColorPicker.dll</HintPath>
</Reference>
<Reference Include="PLCrashReporterUnifiedBinding">
<HintPath>..\packages\Xamarin.Insights.1.12.3\lib\Xamarin.iOS10\PLCrashReporterUnifiedBinding.dll</HintPath>
</Reference>

Просмотреть файл

@ -1,12 +1,18 @@
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.Cells)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 25662, "Setting IsEnabled does not disable SwitchCell")]
public class Bugzilla25662 : TestContentPage

Просмотреть файл

@ -1,16 +1,21 @@
using System;
using System.Collections.Generic;
using Xamarin.Forms;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 26032, " ListView ItemTapped doesn't get called for the selected item ", PlatformAffected.iOS)]
public partial class Bugzilla26032 : TestContentPage

Просмотреть файл

@ -1,14 +1,19 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 26233, "Windows phone crashing when going back to page containing listview with Frame inside ViewCell")]
public class Bugzilla26233 : TestContentPage

Просмотреть файл

@ -3,13 +3,19 @@ using System.Collections.Generic;
using System.Text;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.LifeCycle)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 29363, "PushModal followed immediate by PopModal crashes")]
public class Bugzilla29363 : TestContentPage

Просмотреть файл

@ -1,14 +1,18 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.LifeCycle)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 29453, "Navigation.PopAsync(false) in Entry.Completed handler => System.ArgumentException", PlatformAffected.Android)]
public class Bugzilla29453 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,9 +1,10 @@
using System;
using Xamarin.Forms.CustomAttributes;
using System.Collections.ObjectModel;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest.iOS;
using Xamarin.UITest;
using NUnit.Framework;
@ -11,6 +12,10 @@ using NUnit.Framework;
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 31114, "iOS ContextAction leaves blank line after swiping in ListView")]
public class Bugzilla31114 : TestContentPage

Просмотреть файл

@ -1,5 +1,4 @@
using System;
using Xamarin.Forms.CustomAttributes;
using System.ComponentModel;
using System.Runtime.CompilerServices;
@ -7,13 +6,17 @@ using System.Windows.Input;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest.iOS;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[NUnit.Framework.Category(UITestCategories.MasterDetailPage)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 31602, "not possible to programmatically open master page after iPad landscape -> portrait rotation, also tests 31664")]
public class Bugzilla31602 : TestMasterDetailPage

Просмотреть файл

@ -1,15 +1,19 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.Cells)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 32040, "EntryCell.Tapped or SwitchCell.Tapped does not fire when within a TableView ")]
public class Bugzilla32040 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,19 +1,24 @@
using System;
using Xamarin.Forms.CustomAttributes;
using System.Linq.Expressions;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.Linq;
using System.Collections.Generic;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 32148, " Pull to refresh hides the first item on a list view")]
public class Bugzilla32148 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,16 +1,20 @@
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 32462, "Crash after a page disappeared if a ScrollView is in the HeaderTemplate property of a ListView", PlatformAffected.Android)]
public class Bugzilla32462 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,17 +1,21 @@
using System;
using Xamarin.Forms.CustomAttributes;
using System.Collections.ObjectModel;
using System.Linq;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 34912, "ListView.IsEnabled has no effect on iOS")]
public class Bugzilla34912 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,15 +1,19 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.BoxView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 39331, "[Android] BoxView Is InputTransparent Even When Set to False")]
public class Bugzilla39331 : TestContentPage

Просмотреть файл

@ -1,15 +1,20 @@
using System;
using Xamarin.Forms.CustomAttributes;
using System.Linq;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 39668, "Overriding ListView.CreateDefault Does Not Work on Windows", PlatformAffected.WinRT)]
public class Bugzilla39668 : TestContentPage

Просмотреть файл

@ -3,13 +3,18 @@ using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.BoxView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 40173, "Android BoxView/Frame not clickthrough in ListView")]
public class Bugzilla40173 : TestContentPage // or TestMasterDetailPage, etc ...
public class Bugzilla40173 : TestContentPage // or TestMasterDetailPage, etc ...
{
const string CantTouchButtonId = "CantTouchButtonId";
const string CanTouchButtonId = "CanTouchButtonId";

Просмотреть файл

@ -7,12 +7,17 @@ using Xamarin.Forms.Internals;
using System.Text;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 40704, "Strange duplication of listview headers when collapsing/expanding sections")]
public class Bugzilla40704 : TestContentPage // or TestMasterDetailPage, etc ...

Просмотреть файл

@ -1,15 +1,19 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 40858, "Long clicking a text entry in a ListView header/footer cause a crash", PlatformAffected.Android)]
public class Bugzilla40858 : TestContentPage

Просмотреть файл

@ -6,12 +6,17 @@ using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using Xamarin.Forms.Core.UITests;
using Xamarin.UITest;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 42329, "ListView in Frame and FormsAppCompatActivity Memory Leak")]
public class Bugzilla42329 : TestMasterDetailPage

Просмотреть файл

@ -1,18 +1,22 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
using System.Collections.Generic;
#if UITEST
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
using NUnit.Framework;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 42364, "ListView item's contextual action menu not being closed upon swiping a TabbedPage in AppCompat")]
[Issue(IssueTracker.Bugzilla, 42364, "ListView item's contextual action menu not being closed upon swiping a TabbedPage in AppCompat")]
public class Bugzilla42354 : TestTabbedPage
{
protected override void Init()

Просмотреть файл

@ -1,10 +1,18 @@
using System;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.BoxView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 42602, "[Win] Custom BoxView Renderer Does Not Render All Its Children Elements", PlatformAffected.WinRT)]
public class Bugzilla42602 : TestContentPage

Просмотреть файл

@ -6,12 +6,17 @@ using Xamarin.Forms.CustomAttributes;
#if UITEST
using Xamarin.UITest;
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls.Issues
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 42832, "Scrolling a ListView with active ContextAction Items causes NRE", PlatformAffected.Android)]
[Issue(IssueTracker.Bugzilla, 42832, "Scrolling a ListView with active ContextAction Items causes NRE", PlatformAffected.Android)]
public class Bugzilla42832 : TestContentPage
{
ListView listview;

Просмотреть файл

@ -3,9 +3,17 @@ using System.Threading.Tasks;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.ListView)]
#endif
[Preserve(AllMembers = true)]
[Issue(IssueTracker.Bugzilla, 43214, "Setting Listview.IsRefreshing to false does not work on second \"pull\"")]
public class Bugzilla43214 : TestContentPage

Просмотреть файл

@ -1,11 +1,19 @@
using System.Diagnostics;
using System.Reflection;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
{
#if UITEST
[Category(UITestCategories.BoxView)]
#endif
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Github, 1075, "Does not update Color", PlatformAffected.Android | PlatformAffected.WinPhone)]
public class Issue1075 : ContentPage

Просмотреть файл

@ -4,6 +4,7 @@ using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
@ -35,7 +36,7 @@ namespace Xamarin.Forms.Controls
#if UITEST
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[UiTest (typeof(Label), "TextColor")]
public void Issue181TestsLabelShouldHaveRedText ()
{

Просмотреть файл

@ -1,12 +1,12 @@
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
@ -75,7 +75,7 @@ namespace Xamarin.Forms.Controls
#if UITEST
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public void Issue342DelayedLoadTestsImageLoads ()
{
RunningApp.Screenshot ("Should not crash");

Просмотреть файл

@ -4,6 +4,7 @@ using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
@ -29,7 +30,7 @@ namespace Xamarin.Forms.Controls
#if UITEST
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public void Issue488TestsLongTextRotation ()
{
RunningApp.WaitForElement (q => q.Marked ("I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text. I am a long bit of text."));

Просмотреть файл

@ -1,12 +1,12 @@
using System;
using System.Linq;
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;
#if UITEST
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.Forms.Core.UITests;
#endif
namespace Xamarin.Forms.Controls
@ -45,7 +45,7 @@ namespace Xamarin.Forms.Controls
#if UITEST
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public void Issue764TestsKeyboardDismissedForEnter ()
{
Assert.Inconclusive ("Needs test");

Просмотреть файл

@ -6,6 +6,12 @@ using Xamarin.UITest;
using NUnit.Framework;
#endif
// Apply the default category of "Issues" to all of the tests in this assembly
// We use this as a catch-all for tests which haven't been individually categorized
#if UITEST
[assembly: NUnit.Framework.Category("Issues")]
#endif
namespace Xamarin.Forms.Controls
{
[Preserve(AllMembers = true)]

Просмотреть файл

@ -4,7 +4,7 @@ using NUnit.Framework;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("DisplayAlert")]
[Category(UITestCategories.DisplayAlert)]
internal class DisplayAlertUITestsAndroid : BaseTestFixture
{

Просмотреть файл

@ -143,6 +143,9 @@
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\Tests\WebViewUITests.cs">
<Link>Tests\WebViewUITests.cs</Link>
</Compile>
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\UITestCategories.cs">
<Link>UITestCategories.cs</Link>
</Compile>
<Compile Include="PlatformQueries.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\Remotes\RemoteFactory.cs">

Просмотреть файл

@ -156,6 +156,9 @@
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\Tests\WebViewUITests.cs">
<Link>Tests\WebViewUITests.cs</Link>
</Compile>
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\UITestCategories.cs">
<Link>UITestCategories.cs</Link>
</Compile>
<Compile Include="..\Xamarin.Forms.Core.iOS.UITests\Utilities\AppExtensions.cs">
<Link>Utilities\AppExtensions.cs</Link>
</Compile>

Просмотреть файл

@ -7,7 +7,7 @@ using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("ActionSheet")]
[Category(UITestCategories.ActionSheet)]
internal class ActionSheetUITests : BaseTestFixture
{
AppRect screenSize;

Просмотреть файл

@ -10,7 +10,7 @@ using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("ActivityIndicator")]
[Category(UITestCategories.ActivityIndicator)]
internal class ActivityIndicatorUITests : _ViewUITests
{
public ActivityIndicatorUITests ()

Просмотреть файл

@ -3,10 +3,9 @@ using NUnit.Framework;
namespace Xamarin.Forms.Core.UITests
{
[Category ("Lifecycle")]
[Category(UITestCategories.LifeCycle)]
internal class AppearingUITests : BaseTestFixture
{
public AppearingUITests ()
{
ShouldResetPerFixture = false;

Просмотреть файл

@ -7,7 +7,7 @@ using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("AutomationID")]
[Category(UITestCategories.AutomationId)]
internal class AutomationIDUITests : BaseTestFixture
{
protected override void NavigateToGallery ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("BoxView")]
[Category(UITestCategories.BoxView)]
internal class BoxViewUITests : _ViewUITests
{
public BoxViewUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Button")]
[Category(UITestCategories.Button)]
internal class ButtonUITests : _ViewUITests
{
public ButtonUITests ()

Просмотреть файл

@ -10,7 +10,7 @@ using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Cells")]
[Category(UITestCategories.Cells)]
internal class ContextActionsListUITests : BaseTestFixture
{
@ -84,7 +84,7 @@ namespace Xamarin.Forms.Core.UITests
}
[TestFixture]
[Category ("Cells")]
[Category(UITestCategories.Cells)]
internal class ContextActionsTableUITests : BaseTestFixture
{
public ContextActionsTableUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("DatePicker")]
[Category(UITestCategories.DatePicker)]
internal class DatePickerUITests : _ViewUITests
{
public DatePickerUITests ()

Просмотреть файл

@ -6,7 +6,7 @@ using System.Threading;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("DisplayAlert")]
[Category(UITestCategories.DisplayAlert)]
internal class DisplayAlertUITests : BaseTestFixture
{

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Editor")]
[Category(UITestCategories.Editor)]
internal class EditorUITests : _ViewUITests
{
public EditorUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Entry")]
[Category(UITestCategories.Entry)]
internal class EntryUITests : _ViewUITests
{
public EntryUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Frame")]
[Category(UITestCategories.Frame)]
internal class FrameUITests : _ViewUITests
{
public FrameUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Image")]
[Category(UITestCategories.Image)]
internal class ImageUITests : _ViewUITests
{
public ImageUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Label")]
[Category(UITestCategories.Label)]
internal class LabelUITests : _ViewUITests
{
public LabelUITests ()

Просмотреть файл

@ -13,7 +13,7 @@ using Xamarin.UITest.Queries;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category("Cells")]
[Category(UITestCategories.Cells)]
internal class CellsGalleryTests : BaseTestFixture
{
// TODO find a way to test individula elements of cells

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Picker")]
[Category(UITestCategories.Picker)]
internal class PickerUITests : _ViewUITests
{
public PickerUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("ProgressBar")]
[Category(UITestCategories.ProgressBar)]
internal class ProgressBarUITests : _ViewUITests
{
public ProgressBarUITests ()

Просмотреть файл

@ -25,7 +25,7 @@ namespace Xamarin.Forms.Core.UITests
}
[TestFixture]
[Category ("RootGallery")]
[Category(UITestCategories.RootGallery)]
internal class RootGalleryUITests : BaseTestFixture
{
IEnumerable<RootPageModel> rootPages;

Просмотреть файл

@ -4,7 +4,7 @@ using Xamarin.UITest;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("ScrollView")]
[Category(UITestCategories.ScrollView)]
internal class ScrollViewGalleryTests : BaseTestFixture
{
public ScrollViewGalleryTests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("SearchBar")]
[Category(UITestCategories.SearchBar)]
internal class SearchBarUITests : _ViewUITests
{
public SearchBarUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Slider")]
[Category(UITestCategories.Slider)]
internal class SliderUITests : _ViewUITests
{
public SliderUITests ()

Просмотреть файл

@ -17,7 +17,8 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Stepper")]
[Category(UITestCategories.Stepper)]
internal class StepperUITests : _ViewUITests
{
public StepperUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("Switch")]
[Category(UITestCategories.Switch)]
internal class SwitchUITests : _ViewUITests
{
public SwitchUITests ()

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("TimePicker")]
[Category(UITestCategories.TimePicker)]
internal class TimePickerUITests : _ViewUITests
{
public TimePickerUITests ()

Просмотреть файл

@ -7,7 +7,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("ToolbarItem")]
[Category(UITestCategories.ToolbarItem)]
internal class ToolbarItemTests : BaseTestFixture
{
string btn1Id = "tb1";

Просмотреть файл

@ -213,7 +213,7 @@ namespace Xamarin.Forms.Core.UITests
[Test]
[UiTest (typeof (VisualElement), "TranslationX")]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public virtual void _TranslationX ()
{
var remote = new ViewContainerRemote (App, Test.VisualElement.TranslationX, PlatformViewType);
@ -222,7 +222,7 @@ namespace Xamarin.Forms.Core.UITests
[Test]
[UiTest (typeof (VisualElement), "TranslationY")]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public virtual void _TranslationY ()
{
var remote = new ViewContainerRemote (App, Test.VisualElement.TranslationY, PlatformViewType);

Просмотреть файл

@ -17,7 +17,7 @@ using Xamarin.UITest.iOS;
namespace Xamarin.Forms.Core.UITests
{
[TestFixture]
[Category ("WebView")]
[Category(UITestCategories.WebView)]
internal class WebViewUITests : _ViewUITests
{
public WebViewUITests ()
@ -29,15 +29,15 @@ namespace Xamarin.Forms.Core.UITests
{
App.NavigateToGallery (GalleryQueries.WebViewGallery);
}
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
public override void _IsEnabled ()
{
Assert.Inconclusive ("Does not make sense for WebView");
}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _IsVisible () {}
@ -51,38 +51,38 @@ namespace Xamarin.Forms.Core.UITests
public override void _IsFocused () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _Opacity () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _Rotation () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _RotationX () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _RotationY () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _TranslationX () {}
[Test]
[Category ("ManualReview")]
[Category(UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _TranslationY () {}
[Test]
[Category ("ManualReview")]
[Category (UITestCategories.ManualReview)]
[Ignore("Keep empty test from failing in Test Cloud")]
public override void _Scale () {}

Просмотреть файл

@ -0,0 +1,35 @@
namespace Xamarin.Forms.Core.UITests
{
internal static class UITestCategories
{
public const string ActionSheet = "ActionSheet";
public const string ActivityIndicator = "ActivityIndicator";
public const string AutomationId = "AutomationID";
public const string BoxView = "BoxView";
public const string Button = "Button";
public const string Cells = "Cells";
public const string DatePicker = "DatePicker";
public const string DisplayAlert = "DisplayAlert";
public const string Editor = "Editor";
public const string Entry = "Entry";
public const string Frame = "Frame";
public const string Image = "Image";
public const string Label = "Label";
public const string ListView = "ListView";
public const string LifeCycle = "Lifecycle";
public const string MasterDetailPage = "MasterDetailPage";
public const string Picker = "Picker";
public const string ProgressBar = "ProgressBar";
public const string RootGallery = "RootGallery";
public const string ScrollView = "ScrollView";
public const string SearchBar = "SearchBar";
public const string Slider = "Slider";
public const string Stepper = "Stepper";
public const string Switch = "Switch";
public const string TimePicker = "TimePicker";
public const string ToolbarItem = "ToolbarItem";
public const string WebView = "WebView";
public const string ManualReview = "ManualReview";
}
}

Просмотреть файл

@ -64,6 +64,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="BaseTestFixture.cs" />
<Compile Include="UITestCategories.cs" />
<Compile Include="PlatformQueries.cs" />
<Compile Include="Remotes\BaseViewContainerRemote.cs" />
<Compile Include="Remotes\EventViewContainerRemote.cs" />

Просмотреть файл

@ -655,6 +655,7 @@
&lt;Entry DisplayName="Other Members" /&gt;&#xD;
&lt;/TypePattern&gt;&#xD;
&lt;/Patterns&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=UI/@EntryIndexedValue">UI</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=WP8/@EntryIndexedValue">WP8</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=API/@EntryIndexedValue">API</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /&gt;</s:String>