用例
我有一个包含10个测试用例的测试套件,在执行第一个测试用例之后,会自动调用AppiumDriver.deleteSession,导致其他测试用例失败。
[调试] [ADB]正在运行 'C:\ Users \ panmishr \ AppData \ Local \ Android \ Sdk \ platform-tool s \ adb.exe' 带参数:[“ -P”,5037,“-s”,“ D1AGAD57A1402916”,“ shell”,“ ls”,“-la”,“ / da ta / local / tmp / screenshot.png“] [调试] [ADB]正在运行 'C:\ Users \ panmishr \ AppData \ Local \ Android \ Sdk \ platform-tool s \ adb.exe' 带有args:[“-P”,5037,“-s”,“ D1AGAD57A1402916”,“ pull”,“ / data / local / tmp /screenshot.png","C:\Users\panmishr\AppData\Local\Temp\appium11909-24724-2 pg5mc.z3oye.png“] [调试] [MJSONWP]响应客户端 driver.getScreenshot()结果:“ iVBO Rw0KGgoAAAANSUhEUgAAAtAAAAUACAYAAABuzmU9AACAAElEQVR4AezBC3CVZ5348e / zvO854RxySMIJ l7Q5FkmbFuvSgLVLsFZLtmovKLotXnBNvE2Hup1xSMeZdZy9zLju7DjJrrO1jFvdFkdqS6uWldq1GnoT 6A0KtBUbLiWcFEpIStKEN5fzPs / v77uds + afTeAACSTd5 / NR8kc4juM4juM4jlMQjeM4juM4juM4BdM4 juM4juM4jlMwjeM4juM4juM4BdM4juM4juM4jlMwjeM4juM4juM4BdM4juM4juM4jlMwjeM4juM4juM4 BfNxCiIivPrqq + zatYvBwUFOl1KKeDxOTU0N1dXVKKVwHMdxHMdxph6fSWBoaIjBwUE8zyOZTDIZ7d + / n3 / 7t38jDEPOxtNPP83Xv / 51Lr74Ys4lay1aaxzHcaaSIAiIJJNJHOdcEBF27dpFTU0N4 + 3WW2 / lZH7w gx / gTA0 + 58HQ0BAdHR309vbS399PpKenh1QqhdaaRCJBKpVi5syZJJNJJoOf / vSnhGHI2crlctx33338 7d / + LefSSy + 9RBAE1NTUkEgkcBzHiWzdupV169axdOlS6uvrOZ + CIGDXrl3s3LmT1tZWgiBguGQySXV1 NTU1NVxxxRUkk0nOtyAI2Lt3L9lslmw2SmyyKyxKyxKyxMKYKYKYXMK x / jVr37F4OAgI1VWVlJfX09lZSWRdevW8cwzz / DXf / 3XXH755fT29vKNb3yDka655ho + / OEP8y // 8i / 0 9vaSp7Xm + 9 // PlNRGIbs2LGDBx54gJqaGsabiDCcUgoRIaKUwpk6fM4hYwzt7e0cO3aM3t5eSkpKyOvq 6iIej5NIJOjv76erq4u2tjZmzZrFvHnziMfjnE + vv / 464 + Xw4cOcK8eOHWPWrFlUVVXxve99j9 / 85jf8 5V / + Je95z3tQSuE4zv9t27ZtI7J161Yi9fX1nGtBELB582ZaWloIgoCx ... [HTTP] <- GET / wd / hub / session / b4b377e8-3d86-45c6-baf7-0203230e0440 / screenshot 2 00 1590毫秒-324102 [HTTP]->删除 / wd / hub / session / b4b377e8-3d86-45c6-baf7-0203230e0440 {} [调试] [MJSONWP]使用args调用AppiumDriver.deleteSession(): [“ b4b377e8-3d8 6-45c6-baf7-0203230e0440”] [调试] [BaseDriver]事件 'quitSessionRequested'登录于1547032613008(16:46:53 GMT + 0530 (印度标准时间))[Appium]删除会话 来自我们的主要专家列表的b4b377e8-3d86-45c6-baf7-0203230e0440 [debug] [UiAutomator2]删除UiAutomator2会话[debug] [UiAutomator2]删除UiAutomator2服务器会话
Appium版本:1.7.1 节点版本:8.9.4 Npm版本:5.6.0
在这方面的任何建议或牵头都会有所帮助