I'm trying to change the location of both Testresults.html/xml and the jameleon_test_results output. So far I've set resultsDir to x/y/z (for jameleon_test_results) and edited log4j.properties so Testresults.html is put inside x/y/. All is well except for the links inside TestResults.html.
There are two types of links inside this file. Leftmost links point to detailed error reports. Rightmost links point (in the case of Selenium-based tests) to HTML dumps of webpages which were tested. Both links use the resultDir setting to create the link. And that's where the trouble starts:
TestResults.html's path is x/y/TestResults.html. A link to a HTML dump inside this file points to x/y/z/errordump.html. This results in incorrect html links, as the resource /x/y/z/error.dump.html does not exist from the perspective of x/y/TestResults.html.
I've managed to make some changes to Jameleon's HTMLLayout and other classes regarding the left-side links (by adding a 'relativeTestDoc' variable). But the right-side links are more difficult to change. From what I have found, the links to the HTML dump files are generated when creating an ErrorResult. But I haven't been able to find the piece of code that actually creates the ErrorResults and passes the new ErrorResult.errorFile value. Where can I find this so I can add a relative path property? Or do you know another method of achieving correct links in this situation?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to change the location of both Testresults.html/xml and the jameleon_test_results output. So far I've set resultsDir to x/y/z (for jameleon_test_results) and edited log4j.properties so Testresults.html is put inside x/y/. All is well except for the links inside TestResults.html.
There are two types of links inside this file. Leftmost links point to detailed error reports. Rightmost links point (in the case of Selenium-based tests) to HTML dumps of webpages which were tested. Both links use the resultDir setting to create the link. And that's where the trouble starts:
TestResults.html's path is x/y/TestResults.html. A link to a HTML dump inside this file points to x/y/z/errordump.html. This results in incorrect html links, as the resource /x/y/z/error.dump.html does not exist from the perspective of x/y/TestResults.html.
I've managed to make some changes to Jameleon's HTMLLayout and other classes regarding the left-side links (by adding a 'relativeTestDoc' variable). But the right-side links are more difficult to change. From what I have found, the links to the HTML dump files are generated when creating an ErrorResult. But I haven't been able to find the piece of code that actually creates the ErrorResults and passes the new ErrorResult.errorFile value. Where can I find this so I can add a relative path property? Or do you know another method of achieving correct links in this situation?
This area is currently in a stage of severe refactor. If you are interested in helping out, let me know.
Until then, the short is "that is not supported".