简体   繁体   English

如何解决测试中的Java硒错误?

[英]How to Solve Java selenium error in testing?

I am new in software testing and following this course from utest.com https://www.utest.com/courses/selenium-basics-part-4-create-java-project-add-recorded-test-case-run-project when following steps while the instructor was testing the code the test case worked with him and give me error as in this photo screen shot of the error 我是软件测试的新手,并且从utest.com https://www.utest.com/courses/selenium-basics-part-4-create-java-project-add-recorded-test-case-run-当教师在测试代码时按照以下步骤进行项目时,测试用例与他一起工作,并给我错误,如此错误照片的屏幕快照中所示

how can i solve it ? 我该如何解决?

请验证您的硒服务器是否已启动并在本地主机端口4444上运行。例如,检查http://localhost:4444/selenium-server/driver?cmd=getLogMessages

By looking at the screen shot attached, the error might be because of below mentioned reasons 通过查看所附的屏幕截图,该错误可能是由于以下提到的原因

1) Selenium Server Standalone file is not properly configured, make sure you use the correct version of the file that is compatible with your local system 1)Selenium Server Standalone文件未正确配置,请确保使用与本地系统兼容的文件的正确版本

2) There might be chance that the port has been occupied by some other process, make sure the port which listens to Selenium Server Standalone is free or u can forcefully assign some other port which is not occupied to Selenium Server Standalone 2)可能该端口已被其他进程占用,请确保侦听Selenium Server Standalone的端口是空闲的,或者您可以强行分配未被Selenium Server Standalone占用的其他端口

Hope this will work 希望这会起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM