51Testing软件测试论坛

标题: 运行自动化时,报的错,实在不知道怎么解决了,没有任何头绪 [打印本页]

作者: 测试积点老人    时间: 2021-8-16 13:30
标题: 运行自动化时,报的错,实在不知道怎么解决了,没有任何头绪
报错如下
  1. D:\JDk\bin\java.exe -ea -DplatformVersion=11 -DdeviceName=3d759432 -Dfile.encoding=UTF-8 -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4\lib\idea_rt.jar=51735:C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4\bin" -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4\plugins\testng\lib\testng-plugin.jar;D:\JDk\jre\lib\charsets.jar;D:\JDk\jre\lib\deploy.jar;D:\JDk\jre\lib\ext\access-bridge-64.jar;D:\JDk\jre\lib\ext\cldrdata.jar;D:\JDk\jre\lib\ext\dnsns.jar;D:\JDk\jre\lib\ext\jaccess.jar;D:\JDk\jre\lib\ext\jfxrt.jar;D:\JDk\jre\lib\ext\localedata.jar;D:\JDk\jre\lib\ext\nashorn.jar;D:\JDk\jre\lib\ext\sunec.jar;D:\JDk\jre\lib\ext\sunjce_provider.jar;D:\JDk\jre\lib\ext\sunmscapi.jar;D:\JDk\jre\lib\ext\sunpkcs11.jar;D:\JDk\jre\lib\ext\zipfs.jar;D:\JDk\jre\lib\javaws.jar;D:\JDk\jre\lib\jce.jar;D:\JDk\jre\lib\jfr.jar;D:\JDk\jre\lib\jfxswt.jar;D:\JDk\jre\lib\jsse.jar;D:\JDk\jre\lib\management-agent.jar;D:\JDk\jre\lib\plugin.jar;D:\JDk\jre\lib\resources.jar;D:\JDk\jre\lib\rt.jar;E:\IJitem\autoapp\target\classes;C:\Program Files\apache-maven-3.8.1\repo\org\slf4j\slf4j-nop\1.7.2\slf4j-nop-1.7.2.jar;C:\Program Files\apache-maven-3.8.1\repo\org\slf4j\slf4j-api\1.7.2\slf4j-api-1.7.2.jar;C:\Program Files\apache-maven-3.8.1\repo\org\projectlombok\lombok\1.18.8\lombok-1.18.8.jar;C:\Program Files\apache-maven-3.8.1\repo\io\qameta\allure\allure-testng\2.13.0\allure-testng-2.13.0.jar;C:\Program Files\apache-maven-3.8.1\repo\io\qameta\allure\allure-java-commons\2.13.0\allure-java-commons-2.13.0.jar;C:\Program Files\apache-maven-3.8.1\repo\io\qameta\allure\allure-model\2.13.0\allure-model-2.13.0.jar;C:\Program Files\apache-maven-3.8.1\repo\com\fasterxml\jackson\core\jackson-databind\2.9.8\jackson-databind-2.9.8.jar;C:\Program Files\apache-maven-3.8.1\repo\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Program Files\apache-maven-3.8.1\repo\com\fasterxml\jackson\core\jackson-core\2.9.8\jackson-core-2.9.8.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\tika\tika-core\1.20\tika-core-1.20.jar;C:\Program Files\apache-maven-3.8.1\repo\org\jooq\joor-java-8\0.9.10\joor-java-8-0.9.10.jar;C:\Program Files\apache-maven-3.8.1\repo\org\testng\testng\6.8.7\testng-6.8.7.jar;C:\Program Files\apache-maven-3.8.1\repo\junit\junit\4.10\junit-4.10.jar;C:\Program Files\apache-maven-3.8.1\repo\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar;C:\Program Files\apache-maven-3.8.1\repo\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar;C:\Program Files\apache-maven-3.8.1\repo\com\beust\jcommander\1.27\jcommander-1.27.jar;C:\Program Files\apache-maven-3.8.1\repo\org\yaml\snakeyaml\1.12\snakeyaml-1.12.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\inject\guice\3.0\guice-3.0.jar;C:\Program Files\apache-maven-3.8.1\repo\javax\inject\javax.inject\1\javax.inject-1.jar;C:\Program Files\apache-maven-3.8.1\repo\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Program Files\apache-maven-3.8.1\repo\io\appium\java-client\7.0.0\java-client-7.0.0.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-java\3.141.59\selenium-java-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-chrome-driver\3.141.59\selenium-chrome-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-edge-driver\3.141.59\selenium-edge-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-firefox-driver\3.141.59\selenium-firefox-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-ie-driver\3.141.59\selenium-ie-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-opera-driver\3.141.59\selenium-opera-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-remote-driver\3.141.59\selenium-remote-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-safari-driver\3.141.59\selenium-safari-driver-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\net\bytebuddy\byte-buddy\1.8.15\byte-buddy-1.8.15.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\guava\guava\25.0-jre\guava-25.0-jre.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\code\findbugs\jsr305\1.3.9\jsr305-1.3.9.jar;C:\Program Files\apache-maven-3.8.1\repo\org\checkerframework\checker-compat-qual\2.0.0\checker-compat-qual-2.0.0.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\errorprone\error_prone_annotations\2.1.3\error_prone_annotations-2.1.3.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\j2objc\j2objc-annotations\1.1\j2objc-annotations-1.1.jar;C:\Program Files\apache-maven-3.8.1\repo\org\codehaus\mojo\animal-sniffer-annotations\1.14\animal-sniffer-annotations-1.14.jar;C:\Program Files\apache-maven-3.8.1\repo\com\squareup\okhttp3\okhttp\3.11.0\okhttp-3.11.0.jar;C:\Program Files\apache-maven-3.8.1\repo\com\squareup\okio\okio\1.14.0\okio-1.14.0.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-support\3.141.59\selenium-support-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\org\seleniumhq\selenium\selenium-api\3.141.59\selenium-api-3.141.59.jar;C:\Program Files\apache-maven-3.8.1\repo\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\httpcomponents\httpclient\4.5.6\httpclient-4.5.6.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\httpcomponents\httpcore\4.4.10\httpcore-4.4.10.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Program Files\apache-maven-3.8.1\repo\cglib\cglib\3.2.8\cglib-3.2.8.jar;C:\Program Files\apache-maven-3.8.1\repo\org\ow2\asm\asm\6.2.1\asm-6.2.1.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\ant\ant\1.10.3\ant-1.10.3.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\ant\ant-launcher\1.10.3\ant-launcher-1.10.3.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-validator\commons-validator\1.6\commons-validator-1.6.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-beanutils\commons-beanutils\1.9.2\commons-beanutils-1.9.2.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-digester\commons-digester\1.8.1\commons-digester-1.8.1.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;C:\Program Files\apache-maven-3.8.1\repo\org\apache\commons\commons-lang3\3.8\commons-lang3-3.8.jar;C:\Program Files\apache-maven-3.8.1\repo\commons-io\commons-io\2.6\commons-io-2.6.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-context\5.1.0.RELEASE\spring-context-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-aop\5.1.0.RELEASE\spring-aop-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-beans\5.1.0.RELEASE\spring-beans-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-core\5.1.0.RELEASE\spring-core-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-jcl\5.1.0.RELEASE\spring-jcl-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\springframework\spring-expression\5.1.0.RELEASE\spring-expression-5.1.0.RELEASE.jar;C:\Program Files\apache-maven-3.8.1\repo\org\aspectj\aspectjweaver\1.9.1\aspectjweaver-1.9.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.4\plugins\testng\lib\jcommander-1.27.jar" org.testng.RemoteTestNGStarter -usedefaultlisteners false -socket51734 @w@C:\Users\19937\AppData\Local\Temp\idea_working_dirs_testng.tmp -temp C:\Users\19937\AppData\Local\Temp\idea_testng.tmp
  2. [TestNG] Running:
  3.   C:\Users\19937\.IntelliJIdea2019.2\system\temp-testng-customsuite.xml



  4. java.lang.ExceptionInInitializerError
  5.     at com.mi.ad.common.InitDeal.writeTmp(InitDeal.java:85)
  6.     at com.mi.ad.common.InitDeal.beforeDeal(InitDeal.java:69)
  7.     at com.mi.ad.testcase.msa.PushAds.init(PushAds.java:25)
  8.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  10.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  11.     at java.lang.reflect.Method.invoke(Method.java:483)
  12.     at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
  13.     at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
  14.     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
  15.     at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)
  16.     at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
  17.     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
  18.     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
  19.     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
  20.     at org.testng.TestRunner.privateRun(TestRunner.java:767)
  21.     at org.testng.TestRunner.run(TestRunner.java:617)
  22.     at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
  23.     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
  24.     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
  25.     at org.testng.SuiteRunner.run(SuiteRunner.java:240)
  26.     at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
  27.     at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
  28.     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
  29.     at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
  30.     at org.testng.TestNG.run(TestNG.java:1057)
  31.     at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73)
  32.     at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
  33. Caused by: io.appium.java_client.service.local.InvalidServerInstanceException: Invalid server instance exception has occured: There is no installed nodes! Please install node via NPM (https://www.npmjs.com/package/appium#using-node-js) or download and install Appium app (http://appium.io/downloads.html)
  34.     at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(AppiumServiceBuilder.java:184)
  35.     at io.appium.java_client.service.local.AppiumServiceBuilder.checkAppiumJS(AppiumServiceBuilder.java:345)
  36.     at io.appium.java_client.service.local.AppiumServiceBuilder.createArgs(AppiumServiceBuilder.java:425)
  37.     at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:358)
  38.     at io.appium.java_client.service.local.AppiumDriverLocalService.buildService(AppiumDriverLocalService.java:86)
  39.     at io.appium.java_client.service.local.AppiumDriverLocalService.buildDefaultService(AppiumDriverLocalService.java:82)
  40.     at com.mi.ad.common.Common.<clinit>(Common.java:20)
  41.     ... 28 more
  42. Caused by: java.io.IOException: C:\Users\19937\AppData\Roaming\npm\node_global\node_modules
  43.     at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(AppiumServiceBuilder.java:185)
  44.     ... 34 more


  45. 测试已忽略。
  46. ===============================================
  47. Default Suite
  48. Total tests run: 1, Failures: 0, Skips: 1
  49. Configuration Failures: 1, Skips: 1
  50. ===============================================

  51. 进程已结束,退出代码 0

复制代码
[attach]133824[/attach]


作者: bellas    时间: 2021-8-17 09:36
等大神来
作者: qqq911    时间: 2021-8-17 10:35
组件安装有问题,重装下
作者: 海海豚    时间: 2021-8-17 11:17
需要下载node
作者: litingting0214    时间: 2021-8-17 13:42
没有node
作者: jingzizx    时间: 2021-8-17 18:45
初始化报错




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2