public async Task Connect_SOCKET_CONNECTION_TEST()
{
try {
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Connect_SOCKET_CONNECTION_TEST");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
public async Task Disconnect_SOCKET_DISCONNECTION_TEST()
{
try {
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Disconnect_SOCKET_DISCONNECTION_TEST");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("ConnectionStateChanged_EVENT");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
int writtenLength;
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("SendData_SEND_DATA_TEST_SERVER");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateServerSocketUtil();
await BluetoothSetup.AcceptSocketUtil();
await Task.Delay(2000);
{
int writtenLength;
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("SendData_SEND_DATA_TEST_CLIENT");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("DataReceived_SERVER_EVENT");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateServerSocketUtil();
await BluetoothSetup.AcceptSocketUtil();
BluetoothSetup.Socket.DataReceived += (sender, args) =>
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("DataReceived_CLIENT_EVENT");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("SocketFd_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Address_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("ServiceUuid_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Client_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Connection_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Result_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("State_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("SocketFd_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("DataSize_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Data_READ_ONLY");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{
{
try
{
+ /* We can't occupy the precondition, if BT feature is not supported in Manual TC */
+ if (_isBluetoothSupported == false)
+ {
+ BluetoothHelper.DisplayLabel("Data_READ_ONLY_CLIENT");
+ await ManualTest.WaitForConfirm();
+ return;
+ }
+
BluetoothSetup.CreateClientSocketUtil();
if (BluetoothSetup.Client == null)
{