Error 404 with Selenium Server - test case in a different location than test suite

140 views
Skip to first unread message

Sébastien Bonami

unread,
May 22, 2015, 1:14:37 AM5/22/15
to seleniu...@googlegroups.com
I have a test suite TestSuite.html in a folder called TestSuites and a test case TestCase.html in a folder called TestCases. These two folders are at the same level and I want to keep it that way.

So in TestSuite.html, I have this line:
<tr><td><a href="../TestCases/TestCase.html">TestCase</a></td></tr>

When running the test suite with Selenium IDE, it works. When running it with Selenium Server, it doesn't.

Here's the command running inside TestSuites folder:
java -jar C:\Selenium\selenium-server-standalone-2.45.0.jar -htmlSuite "*firefox" "http://www.google.com" "TestSuite.html" "selenium-results.html"

I get:

HTTP ERROR: 404

Not found

RequestURI=/selenium-server/TestCases/Example.html

Why is it searching for the folder TestCases inside a folder called "selenium-server?

Thanks in advance for your help.

Sébastien Bonami

unread,
May 26, 2015, 4:39:47 PM5/26/15
to seleniu...@googlegroups.com
The error I get is rather:

HTTP ERROR: 404

Not found

RequestURI=/selenium-server/TestCases/TestCase.html


To clarify, let's say that folders TestCases and TestSuites are inside a folder called Tests. So: Tests/TestCases and Tests/TestSuites

It looks like it interpolate into a folder called selenium-server instead of the Tests folder when using ../ in a test suite HTML file inside Tests/TestSuites.

Reply all
Reply to author
Forward
0 new messages