TA的每日心情 无聊 昨天 09:47
签到天数: 528 天
连续签到: 1 天
[LV.9]测试副司令
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
[TestNG] Running:
C:\Users\19937\.IntelliJIdea2019.2\system\temp-testng-customsuite.xml
java.lang.ExceptionInInitializerError
at com.mi.ad.common.InitDeal.writeTmp(InitDeal.java:85)
at com.mi.ad.common.InitDeal.beforeDeal(InitDeal.java:69)
at com.mi.ad.testcase.msa.PushAds.init(PushAds.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
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)
at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(AppiumServiceBuilder.java:184)
at io.appium.java_client.service.local.AppiumServiceBuilder.checkAppiumJS(AppiumServiceBuilder.java:345)
at io.appium.java_client.service.local.AppiumServiceBuilder.createArgs(AppiumServiceBuilder.java:425)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:358)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildService(AppiumDriverLocalService.java:86)
at io.appium.java_client.service.local.AppiumDriverLocalService.buildDefaultService(AppiumDriverLocalService.java:82)
at com.mi.ad.common.Common.<clinit>(Common.java:20)
... 28 more
Caused by: java.io.IOException: C:\Users\19937\AppData\Roaming\npm\node_global\node_modules
at io.appium.java_client.service.local.AppiumServiceBuilder.findNodeInCurrentFileSystem(AppiumServiceBuilder.java:185)
... 34 more
测试已忽略。
===============================================
Default Suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 1
===============================================
进程已结束,退出代码 0
复制代码
我来回答