<div dir="ltr">Hello list,<br><br>I&#39;ve been scratching my head on this most of today and I&#39;m still stuck, so I thought I would ask for help.<br><br>I&#39;m working on a web app to access the test results generated by our automated test system.<br>
The results are stored in folders named with the timestamp when the test completed. The folder includes various files, like the time spent on each test, the logs generated...<br>The folder structure would look something like this:<br>
<br>results<br>&nbsp; 20081002145402<br>&nbsp;&nbsp;&nbsp; logs.tar.gz<br>&nbsp;&nbsp;&nbsp; elapsedTimes.txt<br>&nbsp;&nbsp;&nbsp; info.txt<br>&nbsp; 20081002153408<br>&nbsp;&nbsp;&nbsp; logs.tar.gz<br>
&nbsp;&nbsp;&nbsp; elapsedTimes.txt<br>
&nbsp;&nbsp;&nbsp; info.txt<br><br>Currently the system we have offers a central webpage, that displays all available result (in chronological order), and when you click on a link, it opens a popup with a seaside page displaying the results. The seaside page provides links to the logs and displays the various files in a nicely formatted way.<br>
<br>What I would like to do is send each developer a permanent url (s)he can use to consult the results for that test run.<br><br>the url woudl be something like this <a href="http://mydomain.com/seaside/results/20081002145402">http://mydomain.com/seaside/results/20081002145402</a><br>
and that would open directly the seaside view for that test run.<br><br>So I started of by subclassing WADispatcher, to override #entryPointAt:. I was thinking I could intercept the string &#39;20081002145402&#39; and that way know which test run to return.<br>
I can register my dispatcher at /seaside/results and if I check WADispatcher default entryPoints it is there.<br><br>However, when I try to access this url, I get an error /seaside/results/20081002145402 doesn&#39;t exist (I don&#39;t remember the exact Seaside wording).<br>
<br>My idea was that the request would go like this:<br><br>/seaside/results/20081002145402<br>seaside -&gt; this goes to WADispatcher default<br>results -&gt; this goes to ResultsDispatcher default<br>20081002145402 -&gt; ResultsDispatcher creates on the fly the page for that test run and returns that.<br>
<br>I&#39;m sure I&#39;m missing something fairly basic to manage to get my dispatcher in the loop properly. Or I just misunderstood how this part works.<br><br>Any help is appreciated.<br><br>I&#39;m currently using Seaside 2.6 in VisualWorks. I don&#39;t plan on upgrading in the next weeks, but should upgrade over the next few months up to 2.8 (via 2.7).<br>
<br>Cheers,<br><br>Yann<br><br></div>