51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1176|回复: 5
打印 上一主题 下一主题

运行自动化时,报的错,实在不知道怎么解决了,没有任何头绪

[复制链接]
  • TA的每日心情
    无聊
    昨天 09:47
  • 签到天数: 528 天

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2021-8-16 13:30:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    报错如下
    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

    复制代码

    附件: 您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    擦汗
    昨天 14:30
  • 签到天数: 752 天

    连续签到: 1 天

    [LV.10]测试总司令

    2#
    发表于 2021-8-17 09:36:25 | 只看该作者
    等大神来
    回复

    使用道具 举报

  • TA的每日心情
    慵懒
    2 小时前
  • 签到天数: 1518 天

    连续签到: 2 天

    [LV.Master]测试大本营

    3#
    发表于 2021-8-17 10:35:18 | 只看该作者
    组件安装有问题,重装下
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    3 小时前
  • 签到天数: 1803 天

    连续签到: 2 天

    [LV.Master]测试大本营

    4#
    发表于 2021-8-17 11:17:32 | 只看该作者
    需要下载node
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    3 小时前
  • 签到天数: 993 天

    连续签到: 2 天

    [LV.10]测试总司令

    5#
    发表于 2021-8-17 13:42:24 | 只看该作者
    没有node
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    5 小时前
  • 签到天数: 2814 天

    连续签到: 2 天

    [LV.Master]测试大本营

    6#
    发表于 2021-8-17 18:45:09 | 只看该作者
    初始化报错
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-11-19 12:38 , Processed in 0.071044 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表