编译Selenium WebDriver源-降压问题

时间:2019-07-11 03:22:40

标签: selenium selenium-webdriver compiler-errors rake buck

昨天花钱编译了开源Appium工具,今天是Selenium。

在项目之间,在Windows上,我必须安装不同版本的JDK,ruby,python 2.7(我有3.6),git,ffmpeg,opencv4nodejs,nodejs,npm,choco和各种其他随机工具和公用事业。 cmake。 Bundletool。蚂蚁。

无论如何,我比以前进步了很多,但是现在最后几个小时都陷入了困境。

go.bat clean执行正常 无论go.bat <anything else>test_javatest_htmlunitbuildtest_firefox等一起使用,似乎都失败了。

但是,我无法追踪真正的错误来自几英里的耙/铲东西。

一个例子:

go.bat test_java

输出:

$ ./go.bat test_java

  

C:\ Users \ mayom \ Selenium> java -Xmx4096m -XX:MetaspaceSize = 1024m   -XX:ReservedCodeCacheSize = 512m-客户端-jar third_party / jruby / jruby-complete.jar -X-C -S rake test_java python   buckw kill python buckw build --stamp-build = detect --deep   // java / client / test / org / openqa / selenium / atoms:test开始新的Buck   守护程序...解析BUCK文件:在1.7秒内完成创建动作图:   在0.4秒内完成145/223作业1.2秒的建立// javascript / webdriver:key   建立146/223作业4.1s   // java / client / src / org / openqa / selenium / remote:remote-gen-manifest内置   147/223工作4.8秒// third_party / java / jetty:jetty-gen-manifest内置   148/223工作4.5秒   // java / client / src / org / openqa / selenium:core-gen-manifest内置149/223   工作1.9s   // java / client / src / org / openqa / selenium / remote:remote-lib-build-info   建立150/223作业1.3秒   // java / client / src / org / openqa / selenium:core-lib-build-info内置   151/223 JOBS 2.7s // third_party / java / jetty:jetty-lib-build-info内置   181/223职位1.3秒   // java / client / src / org / openqa / selenium / remote:remote-lib-build-info#class-abi   建立185/223作业1.3秒   // third_party / java / jetty:jetty-lib-build-info#class-abi内置189/223   作业0.2秒// javascript / atoms:events内置197/223作业0.8秒   // javascript / atoms:注入BUILT 198/223 JOBS 1.4s   // java / client / src / org / openqa / selenium:core-lib-build-info#class-abi   建立199/223作业0.8秒// javascript / atoms:locators建立200/223作业   0.9s // javascript / atoms:html5内置201/223作业0.5s // javascript / atoms:devices内置206/223作业0.4s   // javascript / atoms:action内置207/223作业0.2秒   // javascript / webdriver / atoms:atoms-lib仍在构建   // third_party / java / jetty:move-services(20秒)仍在构建   // javascript / atoms / fragments:execute_script(20秒)仍然   建筑物// javascript / webdriver / atoms:inputs(20秒)

     

C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ move-services__srcs> md   tmp && cd tmp && jar xf   C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ bundle-jars.jar   && del META-INF /服务/ * &&回声   org.seleniumhq.jetty9.http.Http1FieldPreEncoder
  1> META-INF \ services \ org.seleniumhq.jetty9.http.HttpFieldPreEncoder &&   罐cvf   C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ move-services \ moved-bundle.jar   *

     

参数格式不正确-“服务”。

     

STILL BUILDING // javascript / atoms / fragments:execute_script(40   秒)仍在构建// javascript / webdriver / atoms:inputs(40   秒)内置209/223作业45.2秒   // javascript / atoms / fragments:execute_script BUILT 210/223 JOBS 50.8s   // javascript / webdriver / atoms:inputs下载了0个工件,0.00   BYTES,100.0%的CACHE MISS建筑:在1m 2.4s(100%)210/223中完成   作业,20 UPDATED BUILD FAILED命令失败,退出代码为1。stderr:   参数格式不正确-“服务”。

When running <genrule>.
When building rule //third_party/java/jetty:move-services. go aborted! python buckw build --stamp-build=detect --deep
     

/// java / client / test / org / openqa / selenium / atoms:测试失败,退出   代码:1 C:/用户/mayom/selenium/rake-tasks/buck.rb:52:在block in buck_cmd' C:/Users/mayom/selenium/rake-tasks/buck.rb:36:in buck_cmd'中   C:/Users/mayom/selenium/rake-tasks/buck.rb:227:in`block in(root)'   任务:TOP => test_java =>   // java / client / test / org / openqa / selenium / atoms:test:run =>   // java / client / test / org / openqa / selenium / atoms:test(查看完整跟踪,作者:   使用--trace运行任务

如果我使用--trace运行它:

  

$ ./go.bat test_java --trace

     

C:\ Users \ mayom \ Selenium> java -Xmx4096m -XX:MetaspaceSize = 1024m   -XX:ReservedCodeCacheSize = 512m-客户端-jar third_party / jruby / jruby-complete.jar -X-C -S rake test_java --trace   解析cpp / build.desc解析cpp / iedriverserver / build.desc   javascript / build.desc解析javascript / android-atoms / build.desc   解析javascript / atoms / build.desc   javascript / atoms / fragments / build.desc解析   javascript / chrome-driver / build.desc解析   javascript / ie-driver / build.desc解析javascript / jsunit / build.desc   解析javascript / node / build.desc   javascript / remote / build.desc解析   javascript / selenium-atoms / build.desc解析   javascript / selenium-core / build.desc解析   javascript / webdriver / build.desc解析   javascript / webdriver / atoms / build.desc解析   javascript / webdriver / atoms / fragments / build.desc解析   javascript / webdriver / atoms / fragments / inject / build.desc解析   javascript / webdriver / atoms / inject / build.desc解析py / build.desc   解析rb / build.desc解析third_party / closure / build.desc解析   third_party / firebug / build.desc解析third_party / jruby / build.desc   解析third_party / js / sizzle / build.desc   third_party / js / wgxpath / build.desc   **调用test_java(first_time)   **调用// java / client / test / org / openqa / selenium / atoms:test:run(first_time)   **调用// java / client / test / org / openqa / selenium / atoms:test(first_time)   **执行// java / client / test / org / openqa / selenium / atoms:test python buckw kill python buckw build --stamp-build = detect --deep   // java / client / test / org / openqa / selenium / atoms:test开始新的Buck   守护程序...解析BUCK文件:在1.7秒内完成创建动作图:   在0.5秒内完成建立146/223作业3.9秒   // java / client / src / org / openqa / selenium / remote:remote-gen-manifest内置   147/223工作4.2秒   // java / client / src / org / openqa / selenium:core-gen-manifest内置148/223   职位4.4s // third_party / java / jetty:jetty-gen-manifest内置155/223   工作0.8秒   // java / client / src / org / openqa / selenium:core-lib-build-info#class-abi   建立179/223 JOBS 2.5s // // third_party / java / jetty:jetty-lib-build-info   内置187/223作业2.8秒   // java / client / src / org / openqa / selenium / remote:remote-lib-build-info   内置189/223作业0.8秒   // java / client / test / org / openqa / selenium / atoms:execute_script构建   191/223职位1.4秒   // third_party / java / jetty:jetty-lib-build-info#class-abi内置195/223   作业2.7s // java / client / src / org / openqa / selenium:core-lib-build-info   建立206/223作业0.7秒   // java / client / test / org / openqa / selenium / atoms:atoms_inputs内置   207/223工作1.2s   // java / client / src / org / openqa / selenium / remote:remote-lib-build-info#class-abi

     

C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ move-services__srcs> md   tmp && cd tmp && jar xf   C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ bundle-jars.jar   && del META-INF /服务/ * &&回声   org.seleniumhq.jetty9.http.Http1FieldPreEncoder
  1> META-INF \ services \ org.seleniumhq.jetty9.http.HttpFieldPreEncoder &&   罐cvf   C:\ Users \ mayom \ Selenium \ buck-out \ gen \ third_party \ java \ jetty \ move-services \ moved-bundle.jar   *

     

参数格式不正确-“服务”。

     

下载了0个工件,0.00个字节,100.0%的CACHE MISS建筑物:   在14.2秒(100%)212/223作业中完成,12个更新的构建失败命令   失败,退出代码为1。stderr:参数格式不正确-   “服务”。

When running <genrule>.
When building rule //third_party/java/jetty:move-services. Exception `RuntimeError' at
     

C:/用户/mayom/selenium/rake-tasks/buck.rb:52-python buckw构建   --stamp-build = detect --deep // java / client / test / org / openqa / selenium / atoms:测试失败并退出   代码:1处异常#<Class:#<RuntimeError:0x1ee40b5c>>' at C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 Exception#>'   C:/用户/mayom/selenium/rake-tasks/buck.rb:52-python buckw构建   --stamp-build = detect --deep // java / client / test / org / openqa / selenium / atoms:测试失败并退出   代码:1异常#<Class:#<RuntimeError:0x1ee40b5c>>' at C:/Users/mayom/selenium/rake-tasks/buck.rb:52 - python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 go aborted! python buckw build --stamp-build=detect --deep //java/client/test/org/openqa/selenium/atoms:test failed with exit code: 1 C:/Users/mayom/selenium/rake-tasks/buck.rb:52:in阻止   buck_cmd'org / jruby / RubyIO.java:4902:in popen3' uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/jruby/open3_windows.rb:74:in popen3'C:/Users/mayom/selenium/rake-tasks/buck.rb:36:in buck_cmd' C:/Users/mayom/selenium/rake-tasks/buck.rb:227:in block in(root) '   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:240:in block in execute' org/jruby/RubyArray.java:1735:in each'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:235:in execute' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:179:in block in   invoke_with_call_chain'   uri:类加载器:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:214:in   mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:201:in block in invoke_prerequisites' org/jruby/RubyArray.java:1735:in each'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:199:in   invoke_prerequisites' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:178:in封锁   invoke_with_call_chain'   uri:类加载器:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:214:in   mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:201:in block in invoke_prerequisites' org/jruby/RubyArray.java:1735:in each'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:199:in   invoke_prerequisites' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:178:in封锁   invoke_with_call_chain'   uri:类加载器:/META-INF/jruby.home/lib/ruby/stdlib/monitor.rb:214:in   mon_synchronize' uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:172:in invoke_with_call_chain'   uri:classloader:/gems/rake-10.5.0/lib/rake/task.rb:165:in invoke' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:150:in invoke_task'   uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:106:in   block in top_level' org/jruby/RubyArray.java:1735:in“   uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:106:in   block in top_level' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:115:in run_with_threads'   uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:100:in   top_level' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:78:in块   在运行中”   uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:176:in   standard_exception_handling' uri:classloader:/gems/rake-10.5.0/lib/rake/application.rb:75:in运行'   uri:classloader:/gems/rake-10.5.0/bin/rake:33:in <main>' org/jruby/RubyKernel.java:973:in load'   uri:classloader:/META-INF/jruby.home/bin/rake:1:in`'任务:TOP   => test_java => // java / client / test / org / openqa / selenium / atoms:test:run => // java / client / test / org / openqa / selenium / atoms:test

参数“服务”?我终生找不到这种抱怨的来源。感谢比我更了解瑞克/巴克等知识的人。

0 个答案:

没有答案