React native 无法在设备或模拟器上使用Expo获得Appium(这可能吗?)
我无法让Appium在本地与Expo合作。我在网上找到了一些资料,告诉我这应该是可行的,但没有人解释怎么做。使用配置启动WebDrivero时,出现以下错误:React native 无法在设备或模拟器上使用Expo获得Appium(这可能吗?),react-native,tdd,appium,expo,React Native,Tdd,Appium,Expo,我无法让Appium在本地与Expo合作。我在网上找到了一些资料,告诉我这应该是可行的,但没有人解释怎么做。使用配置启动WebDrivero时,出现以下错误: ERROR@wdio/local runner:启动测试会话失败:TypeError:无法在runner处读取null的属性“capabilities”。run appium医生告诉我一切正常,android emulator和appium服务器通过桌面应用程序正在运行,这是我的wdio.conf.js: runner: 'local
ERROR@wdio/local runner:启动测试会话失败:TypeError:无法在runner处读取null的属性“capabilities”。run
appium医生告诉我一切正常,android emulator和appium服务器通过桌面应用程序正在运行,这是我的wdio.conf.js:
runner: 'local',
port: 4723,
path: '/',
specs: ['./tests/*.js'],
exclude: [
],
maxInstances: 10,
capabilities: [
{
automationName: 'UiAutomator2',
deviceName: 'Pixel_3a_XL_API_28', // This is name of your Simulator
platformName: 'Android',
platformVersion: '9.0', // Android version of Simulator
orientation: 'PORTRAIT',
maxInstances: 1,
app: 'appiumtest',
// absolute path to the apk goes here ^, I'm keeping it at
// root directory of this test project.
noReset: true,
newCommandTimeout: 240,
},
],
logLevel: 'info',
bail: 0,
baseUrl: 'http://localhost',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
services: ['chromedriver', 'appium'],
appium: {
},
framework: 'jasmine',
reporters: ['spec'],
jasmineNodeOpts: {
defaultTimeoutInterval: 60000,
expectationResultHandler: function(passed, assertion) {
},
},
};
``
你能分享制作驱动程序实例的代码吗?听起来好像它都丢失了这个配置文件不幸的是,我不能重新引起这个错误,因为我改变了太多以至于弄不清楚;)