|
From: Daniel M. <dan...@hp...> - 2007-04-04 23:49:49
|
On Wednesday 04 April 2007 3:23 pm, Daniel Miles wrote:
> On Wednesday 04 April 2007 2:57 pm, Bryan Gartner wrote:
> > > tests.patch contains what I hope will be the first and the most crude
> > > unit-test using the CGI::Test cpan module.
> >
> > This is an excellent find and would have saved me many hours of
> > walking the WebUI looking for issues. BTW, is there any chance
> > you might consider making this a somewhat self generated script,
> > in that it could use the SystemDesigner libraries to read the
> > various config files, and then create a script to ensure the
> > WebUI elements are present (and that the resulting image/profile/retrofit
> > script are as expected?
>
> I'm glad you asked that question, I've already gone half-way there in a
> revision to the test script (patch attached, along with a shell script to
> invoke it). It uses the LinuxCOE.pm module to get the SIM directory,
> $db->def('SIM'). I think it should be quite easy to write a script that
> checks for the web UI elements and determines pass/fail based on all the
> various config files. It's not exactly what you were asking for, but I
> suspect it will serve the same purpose. Let me work up an example of what
> I'm talking about and it might be more clear.
Ok, I created and attached a starter for something that I think might do what
you were asking about.
|