Could not find load main class GridLauncher for selendroid grid

不打扰是莪最后的温柔 提交于 2019-12-11 20:28:08

问题


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.

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

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


回答1:


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 ;.

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.



来源:https://stackoverflow.com/questions/33930190/could-not-find-load-main-class-gridlauncher-for-selendroid-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!