public static TestPage GetInstance()
{
-
lock (lockObject)
{
if (instance == null)
_prevBtn.IsEnabled = false;
_nextBtn.IsEnabled = false;
}
-
}
public void UnlockUIButton()
};
_currentTCInfo = new List<TestcaseDescription>();
-
for (int i = 0; i < lenght; i++)
{
_currentTCInfo.Add(new TestcaseDescription(""));
{
if (ManualTest.IsWearable())
{
+ if (String.IsNullOrEmpty(page.Title))
+ {
+ NavigationPage.SetHasNavigationBar(page, false);
+ }
WearableTemplate.TestPage.GetInstance().ExecuteTC(page);
}
else
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_mActivityIndicator,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Blue.WithLuminosity(0.9),
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_mActivityIndicator,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Blue.WithLuminosity(0.9),
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_mActivityIndicator,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Blue.WithLuminosity(0.9),
};
}
}
-}
\ No newline at end of file
+}
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_mBoxView,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_mBoxView,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
[Precondition(1, "NA")]
[Step(1, "Run TC")]
- [Step(2, "Focus EntryCell")]
- [Step(3, "Input any sentence")]
- [Step(4, "Click Aign Start Button")]
- [Step(5, "Click Aign Center Button")]
- [Step(6, "Click Aign End Button")]
- [Step(7, "Click Pass if alignment of text has been changed, Fail otherwaise")]
+ [Step(2, "Click Aign Start Button")]
+ [Step(3, "Click Aign Center Button")]
+ [Step(4, "Click Aign End Button")]
+ [Step(5, "Click Pass if alignment of text has been changed, Fail otherwaise")]
[Postcondition(1, "NA")]
public async Task HorizontalTextAlignment_UILK()
{
};
_testPage.ExecuteTC(page);
+
await ManualTest.WaitForConfirm();
}
[Step(1, "Run TC")]
[Step(2, "Click Change placeholder text button")]
[Step(3, "Observe")]
- [Step(4, "Click Back Button")]
- [Step(5, "Click Pass if Placeholder text has been changed, Fail otherwaise")]
+ [Step(4, "Click Pass if Placeholder text has been changed, Fail otherwaise")]
[Postcondition(1, "NA")]
public async Task Placeholder_UILK()
{
[Property("AUTHOR", "Md.Elme Focruzzaman Razi, ef.razi@samsung.com")]
[Precondition(1, "NA")]
[Step(1, "Run TC")]
- [Step(2, "Focus EntryCell")]
- [Step(3, "Input any sentence")]
- [Step(4, "Click Aign Start Button")]
- [Step(5, "Click Aign Center Button")]
- [Step(6, "Click Aign End Button")]
- [Step(7, "Click Pass if alignment of text has been changed, Fail otherwaise")]
+ [Step(2, "Click Aign Start Button")]
+ [Step(3, "Click Aign Center Button")]
+ [Step(4, "Click Aign End Button")]
+ [Step(5, "Click Pass if alignment of text has been changed, Fail otherwaise")]
[Postcondition(1, "NA")]
public async Task XAlign_UILK()
{
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Label nameLabel = new Label()
{
TextColor = Color.Yellow,
- HorizontalOptions = LayoutOptions.Center,
+ HorizontalOptions = LayoutOptions.Center,
HorizontalTextAlignment = TextAlignment.Center
};
nameLabel.SetBinding(Label.TextProperty, "Name");
{
View = new StackLayout
{
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
View = new StackLayout
{
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Value = 1.00
};
- if ( Device.Idiom == TargetIdiom.Unsupported)
+ if (Device.Idiom == TargetIdiom.Unsupported)
{
sliderRowSpacing.Minimum = 0;
sliderRowSpacing.Maximum = 20;
using System.Threading.Tasks;
using Xamarin.Forms.Platform.Tizen;
using WT = WearableTemplate;
+
using Common = NUnit.Framework;
namespace Xamarin.Forms.Core.UnitTests
{
_navigationPage = Common.TestPage.GetInstance().getNavigationPage();
}
-
}
[TearDown]
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
simpleLayout,
- new Label
- {
- Text=text,
- TextColor=Color.White,
- HorizontalOptions = LayoutOptions.Center
- },
_listview,
},
BackgroundColor = Color.Navy
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
Children =
{
_slider2,
- labelDisplay,
_listview,
},
BackgroundColor = Color.Blue,
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
{
Label nameLabel = new Label()
{
- Margin = new Thickness(100, 0, 0, 0),
TextColor = Color.Black,
BackgroundColor = Color.White,
HorizontalOptions = LayoutOptions.Center,
View = new StackLayout
{
Padding = new Thickness(0, 5),
- Orientation = StackOrientation.Horizontal,
Children =
{
new StackLayout
_testPage.ExecuteTC(new ContentPage()
{
Content = mainUI,
- Title = "BackgoundColor Test"
});
await ManualTest.WaitForConfirm();
}