开发者

selenium tests aplication path problem test not run on selected url

开发者 https://www.devze.com 2023-01-15 20:06 出处:网络
I try to start my selenium test using command line but test are fired to http://mycomputer and not to http://mycomputer/myapplication

I try to start my selenium test using command line but test are fired to http://mycomputer and not to http://mycomputer/myapplication

D:\projectsnet\Production\MyWebTests\tools\selenium-server>java -jar selenium-
server.jar -Dhttp.proxyHost=mycomputer -Dhttp.proxyport=4444 -htmlSuite "*firefox" "ht
tp://mycomputer/myapplication/" "D:\mypathtotestssuites\0001-testsuite.html" "c:\temp\result.html"

In test cases I have got lin开发者_运维问答k

<link rel="selenium.base" href="http://mycomputer/myapplication/" />


This is by design.

If you are doing development against http://mycomputer/myapplication/ then I would recommend that you do http://mycomputer as your baseURL and then add

open | /myapplication/

To the top of your tests.

0

精彩评论

暂无评论...
验证码 换一张
取 消