# coding: utf-8
import os

BUILD_CONFIG = os.environ.get('BUILD_CONFIG', 'Debug')

BASE_DIR = os.path.dirname(os.path.dirname(__file__))
AUT_PATH = r"..\TestApp.Silverlight\Bin\x86\{0}\TestApp_{0}_x86.xap".format(BUILD_CONFIG)

DESIRED_CAPABILITIES = {
    "deviceName": "Emulator 8.1",
    "app": os.path.abspath(os.path.join(BASE_DIR, AUT_PATH)),
}

@@ -25,116 +25,130 @@
 s%0A%0AB
-UILD_CONFIG = os.environ.get('BUILD_CONFIG', 'Debug')%0A%0ABASE_DIR = os.path.dirname(os.path.dirname(__file__))
+ASE_DIR = os.path.dirname(os.path.dirname(__file__))%0ACONFIG_IDENTIFIER = 'Release' if os.getenv('REMOTE_RUN') else 'Debug'
 %0AAUT
@@ -188,12 +188,8 @@
 Bin%5C
-x86%5C
 %7B0%7D%5C
@@ -204,11 +204,14 @@
 %7B0%7D_
-x86
+AnyCPU
 .xap
@@ -223,20 +223,25 @@
 mat(
-BUILD_
 CONFIG
+_IDENTIFIER
 )%0A%0AD

Fix app path for functional tests for silverlight