<Project>
<PropertyGroup>
- <TizenNETVersion>5.0.0-preview1-00454</TizenNETVersion>
+ <TizenNETVersion>5.0.0.14275</TizenNETVersion>
<TizenNETSdkVersion>1.0.1</TizenNETSdkVersion>
- <XamarinFormsVersion>2.5.0.121934</XamarinFormsVersion>
- <XamarinFormsTizenVersion>2.5.0.121934</XamarinFormsTizenVersion>
+ <XamarinFormsVersion>2.5.0.122203</XamarinFormsVersion>
+ <XamarinFormsTizenVersion>2.5.0.122203</XamarinFormsTizenVersion>
<TizenXamarinFormsExtensionVersion>2.4.0-v00014</TizenXamarinFormsExtensionVersion>
</PropertyGroup>
{
public class AttachPanelUtils
{
- private string _profile;
+ private static bool _isSupported = false;
private AttachPanel _attachPanel;
private AttachPanelUtils()
{
+ if (Information.TryGetValue<bool>("http://tizen.org/feature/attach_panel", out _isSupported) == false)
+ {
+ _isSupported = false;
+ }
}
public AttachPanel GetAttachPanel()
{
- if (CheckAPINotSupported(string.Empty, false))
+ if (CheckAPINotSupported(false))
{
return null;
}
}
- public bool CheckAPINotSupported(string methodName, bool isNeedDisplay = true)
+ public bool CheckAPINotSupported(bool isNeedDisplay = true)
{
- if (_profile == null)
- {
- if (Information.TryGetValue("http://tizen.org/feature/profile", out _profile) == false)
- {
- _profile = string.Empty;
- }
- }
-
- if (_profile != "mobile")
+ if (_isSupported == false)
{
if (isNeedDisplay)
{
[Postcondition(1, "NA")]
public static async Task ResultCallback_EVENT_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
[Postcondition(1, "NA")]
public static async Task EventChanged_EVENT_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
[Postcondition(1, "NA")]
public static async Task ResultCallback_Category_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
[Postcondition(1, "NA")]
public static async Task ResultCallback_Result_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
[Postcondition(1, "NA")]
public static async Task ResultCallback_ResultCode_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
[Postcondition(1, "NA")]
public static async Task EventChanged_EventType_TEST()
{
- if (AttachPanelUtils.Instance.CheckAPINotSupported(MethodBase.GetCurrentMethod().DeclaringType.FullName))
+ if (AttachPanelUtils.Instance.CheckAPINotSupported())
{
await ManualTest.WaitForConfirm();
return;
{
private static Conformant _conformant;
private static AttachPanel _attachPanel;
- private static string _profile = string.Empty;
- private static bool _isSupport = false;
+ private static bool _isSupported = false;
public AttachPanelTests()
{
_conformant = new Conformant(AppWindow);
_conformant.Show();
- Information.TryGetValue("http://tizen.org/feature/profile", out _profile);
-
- if (_profile == "mobile")
+ if (Information.TryGetValue<bool>("http://tizen.org/feature/attach_panel", out _isSupported) == false)
{
- _isSupport = true;
+ _isSupported = false;
}
}
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Postconditions for each TEST");
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AttachPanel_MAKE_INSTANCE_CONFORMANT()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AttachPanel_CHECK_INSTANCE_ALREADY_EXISTS_WITH_CONFORMANT()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
Assert.Throws<InvalidOperationException>(delegate
{
- AttachPanel failedAttachPanel = new AttachPanel(_conformant);
+ new AttachPanel(_conformant);
}, "AttachPanel Object Instance should be only one!");
}
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AttachPanel_CHECK_INSTANCE_ALREADY_EXISTS_WITH_EVAS_OBJECT()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
Assert.Throws<InvalidOperationException>(delegate
{
- AttachPanel failedAttachPanel = new AttachPanel((ElmSharp.EvasObject)_conformant);
+ new AttachPanel((ElmSharp.EvasObject)_conformant);
}, "AttachPanel Object Instance should be only one!");
}
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void State_PROPERTY_GET()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void Visible_PROPERTY_GET()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AddCategory_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AddCategory_RETURN_EXCEPTION()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void AddCategory_RETURN_OUT_OF_RANGE_EXCEPTION()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void RemoveCategory_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void RemoveCategory_RETURN_NO_EXCEPTION()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void RemoveCategory_RETURN_OUT_OF_RANGE_EXCEPTION()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void SetExtraData_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void SetExtraData_RETURN_EXCEPTION()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void Show_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void Hide_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void Show_Without_Animation_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
[Property("AUTHOR", "Moonkyoung Park, moon87.park@samsung.com")]
public static void Hide_Without_Animation_RETURN_TYPE()
{
- if (_isSupport == false)
+ if (_isSupported == false)
{
LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "API is not supported in this profile.");
return;
public static void SetPrecondition()
{
string result = ReadFile("/opt/usr/home/owner/share/tct/preconfigure.json");
+ if (result == null)
+ return;
+
int index = 0;
string[] resultArray = StringParser(result);
if (resultArray == null)
{
Log.Debug(Globals.LogTag, "CalendarFilter_CHECK_ArgumentException");
+ CalendarFilter filter = null;
try
{
- CalendarFilter filter = new CalendarFilter(null, 0, 0, 0);
+ filter = new CalendarFilter(null, 0, 0, 0);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "CalendarFilter method should throw ArgumentException");
}
+ finally
+ {
+ filter?.Dispose();
+ }
}
[Test]
{
Log.Debug(Globals.LogTag, "CalendarQuery_CHECK_ArgumentException");
+ CalendarQuery query = null;
try
{
- CalendarQuery query = new CalendarQuery(null);
+ query = new CalendarQuery(null);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "CalendarQuery method should throw ArgumentException");
}
+ finally
+ {
+ query?.Dispose();
+ }
}
[Test]
{
Log.Debug(Globals.LogTag, "CalendarRecord_CHECK_ArgumentException");
+ CalendarRecord record = null;
try
{
- CalendarRecord record = new CalendarRecord(null);
+ record = new CalendarRecord(null);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "CalendarRecord method should throw ArgumentException");
}
+ finally
+ {
+ record?.Dispose();
+ }
}
[Test]
Assert.IsNotNull(db, "Failed to create db");
list = db.GetAll(uri, offset, limit);
+ Assert.IsNotNull(list, "Failed to fetch");
if (list.Count > 0)
db.Delete(list);
- list?.Dispose();
+ list.Dispose();
manager?.Dispose();
}
}
finally
{
+ record?.Dispose();
list?.Dispose();
}
}
[Property("COVPARAM", "string, Uint, bool")]
public static void ContactsFilter_CHECK_ArgumentException()
{
+ ContactsFilter filter = null;
try
{
- ContactsFilter filter = new ContactsFilter(null, 0, 0, 0);
+ filter = new ContactsFilter(null, 0, 0, 0);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "ContactsFilter method should throw ArgumentException");
}
+ finally
+ {
+ filter?.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Jongkyu Koo, jk.koo@samsung.com")]
public static void ContactsQuery_CHECK_ArgumentException()
{
+ ContactsQuery query = null;
try
{
- ContactsQuery query = new ContactsQuery(null);
+ query = new ContactsQuery(null);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "ContactsQuery method should throw ArgumentException");
}
+ finally
+ {
+ query?.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Jongkyu Koo, jk.koo@samsung.com")]
public static void ContactsRecord_CHECK_ArgumentException()
{
+
+ ContactsRecord record = null;
try
{
- ContactsRecord record = new ContactsRecord(null);
+ record = new ContactsRecord(null);
Assert.True(false, "should throw ArgumentException");
}
catch (NotSupportedException)
{
Assert.True(e.GetType().Equals(typeof(ArgumentException)), "ContactsRecord method should throw ArgumentException");
}
+ finally
+ {
+ record?.Dispose();
+ }
}
[Test]
[Postcondition(1, "NA")]
public static async Task OnInvalidate_Check()
{
- if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.WearableProfile) == 0)
- {
- _testPage.UnlockUIButton();
- Assert.Pass("Not Supported");
- }
- else
+ if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.MobileProfile) == 0)
{
_navi = new Naviframe(_window)
{
var niviframe = _testPage.getNavigationPage();
if (niviframe != null)
niviframe.Pop();
-
+ }
+ else
+ {
+ _testPage.UnlockUIButton();
+ Assert.Pass("Not Supported");
}
}
}
-}
\ No newline at end of file
+}
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void Subject_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
string subject = "CSAPI_SUBJECT";
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void Body_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
string body = "CSAPI_BODY";
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void To_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
* 2. Create EmailRecipient
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailRecipient recipient = new EmailRecipient();
Assert.IsNotNull(recipient, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Category("P1")]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void Cc_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
* 2. Create EmailRecipient
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailRecipient recipient = new EmailRecipient();
Assert.IsNotNull(recipient, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Category("P1")]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void Bcc_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
* 2. Create EmailRecipient
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailRecipient recipient = new EmailRecipient();
Assert.IsNotNull(recipient, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void Attachments_PROPERTY_READ_WRITE()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create EmailMessage
* 2. Create EmailAttachment
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailAttachment attachment = new EmailAttachment();
Assert.IsNotNull(attachment, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public void EmailMessage_INIT()
{
+ EmailMessage message = null;
try
{
/* TEST CODE */
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
Assert.IsInstanceOf<EmailMessage>(message);
string subject = "CSAPI_SUBJECT";
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public async Task SendAsync_CHECK_RESULT()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create Account
* 2. Set User Text
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailRecipient recipient = new EmailRecipient();
Assert.IsNotNull(recipient, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
[Test]
[Property("AUTHOR", "Intae Jeon, intae.jeon@samsung.com")]
public async Task SendAsync_CHECK_INVALID_ARGUMENT()
{
+ EmailMessage message = null;
try
{
/** PRECONDITION
* 1. Create Account
* 2. Set User Text
*/
- EmailMessage message = new EmailMessage();
+ message = new EmailMessage();
Assert.IsNotNull(message, "Failed to create message instance");
EmailRecipient recipient = new EmailRecipient();
Assert.IsNotNull(recipient, "Failed to create recipient instance");
{
Assert.Fail(e.Message);
}
+ finally
+ {
+ message.Dispose();
+ }
}
*/
using NUnit.Framework.TUnit;
+using NUnit.Framework;
using System;
using System.IO;
string result = ReadFile("/opt/usr/home/owner/share/tct/preconfigure.json");
int index = 0;
string[] resultArray = StringParser(result);
+
+ Assert.Greater(resultArray?.Length, 0, "resultArray can not be null");
foreach (string item in resultArray)
{
switch (item)
string result = null;
string url = path;
+ StreamReader reader = null;
try
{
- StreamReader reader = File.OpenText(path);
+ reader = File.OpenText(path);
result = reader.ReadToEnd();
}
catch (Exception e)
LogUtils.Write(LogUtils.ERROR, LogUtils.TAG, "File read error : " + e.Message);
}
+ reader?.Dispose();
return result;
}
private static string[] StringParser(string TCID)
*/
SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:PreviousLanguage_Value");
obj = new SttWrapper();
+ Assert.IsNotNull(obj, "The object should not be Null");
if (obj.IsAvailable)
{
SttUiHelper.DisplayLabel("Can not test on TV / Wearable profiles.\nPlease mark pass on TV / Wearable profiles.\n(Impossible to change the language during the test on TV / Wearable profiles)");
*/
SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:Current_Value");
obj = new SttWrapper();
+ Assert.IsNotNull(obj, "The object should not be Null");
if (obj.IsAvailable)
{
SttUiHelper.DisplayLabel("Can not test on TV / Wearable profiles.\nPlease mark pass on TV / Wearable profiles.\n(Impossible to change the language during the test on TV / Wearable profiles)");
internal static string GetBasePath()
{
- if (BaseFolderPath == null)
- {
- Applications.ApplicationInfo info = new Applications.ApplicationInfo(AppId);
- BaseFolderPath = info.SharedDataPath;
- PrintLog(Type.DLogAndlogUtil, "BaseFolderPath:"+ BaseFolderPath);
- }
return BaseFolderPath;
}
}
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
/*
* TEST CODE
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
obj.DoPrepare();
await obj.WaitFlagCond(FlagType.SttStateChanged, 15, Stt.State.Ready);
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
obj.DoPrepare();
await obj.WaitFlagCond(FlagType.SttStateChanged, 15, Stt.State.Ready);
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
return;
}
}
+ finally
+ {
+ Assert.IsNotNull(obj, "Failed to create SttWrapper instance");
+ }
try
{
[Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
public static void EngineId_READ_ONLY()
{
+ SttWrapper inst = null;
try
{
/*
* PRECONDITION
* 1. Ensure Wifi or Data Network is Present
*/
- Tizen.Uix.Stt.SttClient inst = new Tizen.Uix.Stt.SttClient();
+ inst = new SttWrapper();
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+
SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:EngineId_READ_ONLY");
- List<SupportedEngine> list = (List<SupportedEngine>)inst.GetSupportedEngines();
+ List<SupportedEngine> list = (List<SupportedEngine>)inst.SttInst.GetSupportedEngines();
Assert.IsNotNull(list, "Object is Null");
Assert.IsInstanceOf<List<SupportedEngine>>(list, "Object is not of correct type");
Assert.IsTrue(list.Count > 0, "Value is not proper");
[Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
public static void EngineName_READ_ONLY()
{
+ SttWrapper inst = null;
try
{
/*
* PRECONDITION
* 1. Ensure Wifi or Data Network is Present
*/
- Tizen.Uix.Stt.SttClient inst = new Tizen.Uix.Stt.SttClient();
+ inst = new SttWrapper();
+ Assert.IsNotNull(inst, "Failed to create SttWrapper instance");
+
SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:EngineName_READ_ONLY");
- List<SupportedEngine> list = (List<SupportedEngine>)inst.GetSupportedEngines();
+ List<SupportedEngine> list = (List<SupportedEngine>)inst.SttInst.GetSupportedEngines();
Assert.IsNotNull(list, "Object is Null");
Assert.IsInstanceOf<List<SupportedEngine>>(list, "Object is not of correct type");
Assert.IsTrue(list.Count > 0, "Value is not proper");