Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-05

fcl-web example and new testsuite website

18 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

Hi all,

Maybe you know this site:
http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with the results of the automatic testruns for each night.

I've made a new version, using the webdesign package. You can see the result here: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi

Source: http://www.freepascal.org/~joost/testsuiteweb_20100530.tgz

I don't like the layout, though. Especially not for the (single) testrun page. But I'm not a designer, so I thought that maybe someone else had a better idea...

Joost.

Reply by email

Joost van der Sluis
to Florian Klaempfl
Florian Klaempfl wrote 11 lines
Joost van der Sluis schrieb: > Hi all, > > Maybe you know this site: > http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with the > results of the automatic testruns for each night. > > I've made a new version, using the webdesign package. You can see the > result here: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi Looks like the old one ;)

Yeah, I made a perfect copy. ;)

Sigh: http://www.freepascal.org/~joost/wwwroot/testsuiteweb.cgi

Joost.

Reply by email

Leonardo M. Ramé
to Joost van der Sluis

joost, nice work. I love the filters below the header in the grid, what did you use for that? some jQuery component?

Leonardo M. Ramé
http://leonardorame.blogspot.com

Joost van der Sluis wrote 33 lines
From: Joost van der Sluis Subject: Re: [fpc-devel] fcl-web example and new testsuite website To: "FPC developers' list" Date: Sunday, May 30, 2010, 4:33 PM On Sun, 2010-05-30 at 21:22 +0200, Florian Klaempfl wrote: > Joost van der Sluis schrieb: > > Hi all, > > > > Maybe you know this site: > > http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with the > > results of the automatic testruns for each night. > > > > I've made a new version, using the webdesign package. You can see the > > result here: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi > > Looks like the old one ;) Yeah, I made a perfect copy. ;) Sigh: http://www.freepascal.org/~joost/wwwroot/testsuiteweb.cgi Joost. _______________________________________________ fpc-devel maillist  -  http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Graeme Geldenhuys
to Joost van der Sluis: Maybe you know this site: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with…
Joost van der Sluis wrote
Maybe you know this site: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with the results of the automatic testruns for each night.

Both look the same (because they are the same link).

More worrying is that not a single test run listed produced 0 errors. :-/

page. But I'm not a designer, so I thought that maybe someone else had a better idea...

I would immediately suggest tagging the various parts of the HTML output with <div id="xxx"> tags. This would allow a web designer or somebody skilled with CSS to easily improve the look with little effort. Look at the FPCUnit test output which uses XML + CSS. Or you can transform the XML via XSLT to pre-generate HTML and CSS for the final result.

Here is an example of pre-generated HTML+CSS from the XML output using XSLT processing.
http://opensoft.homeip.net/tiopf/fpcunit/index64.html

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Joost van der Sluis: Yeah, I made a perfect copy. ;) Sigh: http://www.freepascal.org/~joost/wwwroot/testsuitewe…

Op 2010-05-30 21:33, Joost van der Sluis het geskryf:

The new one looks very nice.... Some pointers on things I noted (hope you don't mind):

* once you view the details of a test run, there is not Back button or Main button to get back to the main screen.

* On the main screen I have no idea what date format is used? Maybe use the ISO 8601 (international date/time) format to stop any possible confusion.

* In your initial post you mentioned that it is tests run each night. Yet all the tests listed on the first page you see are (I think - that's if I am interpreting the date format correctly) 2003-11 and 2003-10. That's rather long ago, and I don't really see the point in keeping such a archive for daily tests runs. Surely the daily results is all you want to see, or a maximum of say last 7 days.

* Failure details. On the main screen it says the one test run caused 33 failures. I click on that row which opens the details. Page 1 or 66!
1) Maybe that could be reduced to some summary/collapsed view first.
2) How do I get a listing of only the 33 tests that failed? I don't want to scroll 66 pages looking for them.

* In the test listed below, which was a test run for 2003-10-31, there is a test result dated 2007-01-28?? See attached image. So somewhere your details query is pulling wrong data, or the data is corrupt.

http://www.freepascal.org/~joost/wwwroot/testsuiteweb.cgi?action=testrun&TestRunID=103

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
* In your initial post you mentioned that it is tests run each night. Yet all the tests listed on the first page you see are (I think - that's if I am interpreting the date format correctly) 2003-11 and 2003-10. That's rather long ago, and I don't really see the point in keeping such a archive for daily tests runs. Surely the daily results is all you want to see, or a maximum of say last 7 days.

While showing the latest testsuite results by default is a good idea (just like the current testsuite page), it is useful to have older testsuite results as well. Sometimes regressions are not fixed or noticed immediately, and in such a case it can be useful to go back further than 7 days to see where this happened. And as long as the database doesn't become prohibitively large, I don't see a problem with keeping them all.

Jonas

Reply by email

Jonas Maebe
to Graeme Geldenhuys: Both look the same (because they are the same link). More worrying is that not a single…
Graeme Geldenhuys wrote
More worrying is that not a single test run listed produced 0 errors. :-/

That's because the testsuite also contains tests for bugs that haven't been fixed yet, and for some features. And when support is added for a new platform, it seldom happens that the implementer keeps fixing bugs until all tests succeed that also succeed on other targets (e.g., one test checks support for gprof, and not everyone is interested in implementing support for that).

Jonas

Reply by email

Joost van der Sluis
to Graeme Geldenhuys: Op 2010-05-30 21:33, Joost van der Sluis het geskryf: The new one looks very nice....…
Graeme Geldenhuys wrote 10 lines
Op 2010-05-30 21:33, Joost van der Sluis het geskryf: > > Sigh: http://www.freepascal.org/~joost/wwwroot/testsuiteweb.cgi The new one looks very nice.... Some pointers on things I noted (hope you don't mind): * once you view the details of a test run, there is not Back button or Main button to get back to the main screen.

I have a really big one for that in my browser. But I'll see if that can be added.

* On the main screen I have no idea what date format is used? Maybe use the ISO 8601 (international date/time) format to stop any possible confusion.

Yeah, and the time-part is also included, so filtering on it will be difficult. Have to fix that.

Show quoted text 6 lines
* In your initial post you mentioned that it is tests run each night. Yet all the tests listed on the first page you see are (I think - that's if I am interpreting the date format correctly) 2003-11 and 2003-10. That's rather long ago, and I don't really see the point in keeping such a archive for daily tests runs. Surely the daily results is all you want to see, or a maximum of say last 7 days.

Click on the date-column header, it will sort on the date in reversed order. But that should indeed be the default.

Show quoted text 5 lines
* Failure details. On the main screen it says the one test run caused 33 failures. I click on that row which opens the details. Page 1 or 66! 1) Maybe that could be reduced to some summary/collapsed view first. 2) How do I get a listing of only the 33 tests that failed? I don't want to scroll 66 pages looking for them.

You can sort on the 'OK' column, but in that case you should filter out the skipped-tests. (Which is currently not possible)

I'll add a 'failed' column. And a way to filter tests.

* In the test listed below, which was a test run for 2003-10-31, there is a test result dated 2007-01-28?? See attached image. So somewhere your details query is pulling wrong data, or the data is corrupt.

Good question. That date is indeed wrong. (should be 8/10/03 according to the 'old' website.)

Joost.

Reply by email

Juha Manninen
to Joost van der Sluis: Yeah, I made a perfect copy. ;) Sigh: http://www.freepascal.org/~joost/wwwroot/testsuitewe…
Joost van der Sluis wrote

Looks good except for one rendering problem with my Firefox 3.5.9 on Linux, screen resolution 1280*1024.

The grid and other contents don't fit into the browser window and the browser creates scrollbars, both vertical and horizontal. However, there is another pair of scrollbars around the grid which makes it difficult to use. One pair would be enough.

Many columns in the grid are wider than its longest text. Normal HTML table would adjust its width but this is not a HTML table, this is a Javascript component jqGrid. Would it be possible to make it automatically adjust to browser window size?

Here is a screenshot:

http://koti.phnet.fi/juhamann/Lazarus/TestSuiteNew.jpg

I made the window smaller for screenshot but when it is maximized, the scrollbars need to move only little to show everything.

Regards,
Juha

Reply by email

Marco van de Voort
to Joost van der Sluis: Yeah, I made a perfect copy. ;) Sigh: http://www.freepascal.org/~joost/wwwroot/testsuitewe…

In our previous episode, Joost van der Sluis said:

Show quoted text 11 lines
> > http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi with the > > results of the automatic testruns for each night. > > > > I've made a new version, using the webdesign package. You can see the > > result here: http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi > > Looks like the old one ;) Yeah, I made a perfect copy. ;) Sigh: http://www.freepascal.org/~joost/wwwroot/testsuiteweb.cgi

- reset button that resets all choices back to nothing (default)
- I pressed pg-down to scoll the page, but had to select the grid first. Can you give focus in a webpage? If so, please put focus on the grid ( or whatever drives the scrollers)

Reply by email

ABorka
to Leonardo M. Ramé
Show quoted text 17 lines
Hi, is it possible to call actions this way?: http://host/cgi-bin/myprog/action1 instead of http://host/cgi-bin/myprog?action=action1 I thougth that the designed behavior was to call any action by its name like: http://host/cgi-bin/myprog/action1 http://host/cgi-bin/myprog/action2 But that won't work. Leonardo M. Ramé http://leonardorame.blogspot.com

Both should work. The second one should only work if the ActionVar property is set with the name of the query variable.

If the .../myprog/action1 is not working then either there is a new bug in fcl-web or something is not done properly.

What version of fpc/lazarus are you using?

AB

Reply by email

Leonardo M. Ramé
to ABorka
Show quoted text 11 lines
Both should work. The second one should only work if the ActionVar property is set with the name of the query variable. If the .../myprog/action1 is not working then either there is a new bug in fcl-web or something is not done properly. What version of fpc/lazarus are you using? AB

Both from svn trunk.

Leonardo M. Ramé
http://leonardorame.blogspot.com

Reply by email

Leonardo M. Ramé
to Leonardo M. Ramé
Show quoted text 20 lines
From: Leonardo M. Ramé Subject: Re: [fpc-devel] fcl-web actions bug? To: "FPC developers' list" Date: Monday, May 31, 2010, 6:31 PM > Both should work. The second one should only work if the > ActionVar > property is set with the name of the query variable. > > If the .../myprog/action1 is not working then either there > is a new bug > in fcl-web or something is not done properly. > > What version of fpc/lazarus are you using? > > AB Both from svn trunk.

Nevermind, after upgrading from svn it works as expected now.

Leonardo M. Ramé
http://leonardorame.blogspot.com

Reply by email