我是自动化测试的新手。因此,不幸的是,无法在RF-Ride中运行我的自动化测试用例。 系统报告是: -没有打开的应用程序; -失败时无法运行关键字“捕获页面截图”:没有打开任何应用程序; -处理命令时发生未知的服务器端错误。原始错误:您必须包含platformName功能。
有人可以帮我解决这个麻烦吗?我想,这很容易用RF描述写出来,wtf伙计们?我很紧张。
这是我的鸦片记录:
[W3C]使用args调用AppiumDriver.createSession():[{“ PlatformVersion”:“ 8.0.0”,“ deviceName”:“ f4506817”,“ PlatformName”:“ Android”,“ appActivity”:“ kg。 megacom.megapay.MainActivity“,” appPackage“:” kg.megacom.megapay“},null,{” firstMatch“:[{” appium:deviceName“:” f4506817“,” appium:appActivity“:” kg.megacom。 megapay.MainActivity“,” appium:appPackage“:” kg.megacom.megapay“,” appium:PlatformName“:” Android“,” appium:PlatformVersion“:” 8.0.0“}]}]] [BaseDriver]事件“ newSessionRequested”记录为1561111676633(16:07:56 GMT + 0600(ЦентральнаяАзия(зима)))) [Appium]无法解析W3C功能:功能[“ PlatformName”]是标准功能,不应带有“ appium:”前缀 [Appium]尝试通过将W3C功能与JSONWP上限合并来修复 [BaseDriver]功能[“ deviceName”,“ appActivity”,“ appPackage”,“ PlatformVersion”]不是标准功能,应具有扩展名前缀 [Appium]无法解析固定的W3C功能:'platformName'不能为空。退回JSONWP协议 [BaseDriver]事件“ newSessionStarted”记录于1561111676644(16:07:56 GMT + 0600(ЦентральнаяАзия(зима))) [MJSONWP]遇到内部错误运行命令:错误:您必须包括platformName功能 AppiumDriver.getDriverAndVersionForCaps上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ lib \ appium.js:202:13) AppiumDriver.getDriverAndVersionForCaps上的[MJSONWP] [作为createSession](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ lib \ appium.js:309:66) AppiumDriver.executeCommand上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ appium-base-driver \ lib \ basedriver \ driver.js:319 :19) AppiumDriver.executeCommand上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ lib \ appium.js:471:26) [MJSONWP] at executeCommand(D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ appium-base-driver \ lib \ protocol \ protocol.js:352:34 ) asyncHandler上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ appium-base-driver \ lib \ protocol \ protocol.js:489:15 ) Layer.handle上的[MJSONWP] [作为handle_request](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ layer.js:95 :5) 接下来的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ route.js:137:13) Route.dispatch上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ route.js:112:3) Layer.handle上的[MJSONWP] [作为handle_request](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ layer.js:95 :5) D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:281:22上的[MJSONWP] Function.process_params上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:335:12) 接下来的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:275:10) 记录器中的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ morgan \ index.js:144:5) Layer.handle上的[MJSONWP] [作为handle_request](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ layer.js:95 :5) trim_prefix上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:317:13) [MJSONWP]位于D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:284:7 Function.process_params上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:335:12) 接下来的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ express \ lib \ router \ index.js:275:10) D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ body-parser \ lib \ read.js:130:5上的[MJSONWP] [MJSONWP] at invokeCallback(D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ raw-body \ index.js:224:16) 完成[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ raw-body \ index.js:213:7) IncomingMessage.onEnd上的[MJSONWP](D:\ Users \ skozhobekov \ AppData \ Local \ Programs \ appium-desktop \ resources \ app \ node_modules \ appium \ node_modules \ raw-body \ index.js:273:7) IncomingMessage.emit上的[MJSONWP](events.js:182:13) endReadableNT上的[MJSONWP](_stream_visible.js:1090:12) process._tickCallback上的[MJSONWP](内部/进程/next_tick.js:63:19) [HTTP] <-POST / wd / hub / session 500 138 ms-179 [HTTP]``