找不到用于selendroid网格的加载主类GridLauncher [英] Could not find load main class GridLauncher for selendroid grid

查看:163
本文介绍了找不到用于selendroid网格的加载主类GridLauncher的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Selenium网格并行测试我的本机android应用程序.是否有任何选项可以在Selenium网格或selendroid中进行相同的操作.

I want to test my native android app parallelly using Selenium grid .Is there any option to do the same in Selenium grid or in selendroid.

我尝试了selendroid.io/scale.html中提到的步骤,遇到以下提到的错误. 错误

I tried steps mentioned in selendroid.io/scale.html and i encounter below mentioned error. Error

D:\ mobile-test \ selendroid网格> java -Dfile.encoding = UTF-8 -cp "selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone-2.45.0.jar" org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher-角色集线器-主机 127.0.0.1 -port 4444错误:无法找到或加载主类org.openqa.grid.selenium.GridLauncher

D:\mobile-test\selendroid grid>java -Dfile.encoding=UTF-8 -cp "selendroid-grid-plugin-0.17.0.jar:selenium-server-standalone-2.45.0.jar" org.openqa.grid.selenium.GridLauncher -capabilityMatcher io.selendroid.grid.SelendroidCapabilityMatcher -role hub -host 127.0.0.1 -port 4444 Error: Could not find or load main class org.openqa.grid.selenium.GridLauncher

推荐答案

问题与Jar文件分隔符有关.如果您使用的是 Mac/Unix ,请使用路径分隔符作为冒号:.如果您正在使用Windows,则将路径分隔符用作分号;.

Issue is with Jar file separator. If you are working on Mac/Unix use path separator as colon :. If you are working on Windows then use path separator as semicolon ;.

确切用法在 Selendroid Scaling 中给出.但是很容易错过.使用错误的路径分隔符不会导致任何直接错误,但最终会导致ClassNotFoundError或类似错误.

The exact usage is given on Selendroid Scaling. But it is very easy to miss out. You will not get any direct error for using wrong path separator but will end up getting ClassNotFoundError or similar.

这篇关于找不到用于selendroid网格的加载主类GridLauncher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆