plainblack.com
Username Password
search
Bookmark and Share

    

New templates to be added to 7.7.14 beta

User rogier
Date 7/8/2009 11:17 am
Views 803
Rating 0    Rate [
|
]
Previous · Next
User Message
rogier

Hi everyone,

you haven't heard from me in a while, so: time for a status report.

I just sent the first set of templates to Colin, who will take care of committing them and writing the neccessary upgrade scripts.

It consists of 29 templates for the Article, File, Folder, Image, Navigation, Layout, Poll, Search and Syndicated Content assets (more details in attached file) and will be going into 7.7.14.

Next week, I'll get the template site back up and then let's start planning where to go from here: first we need to review this set of 29; then we'll adress the other templates with this set as examples/reference.

For now: thanks to all of you for your work so far!

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl



Attached Files
Back to Top
Rate [
|
]
 
 
preaction

Is there any type of automated testing we can do on these new templates? Are there standards we want to reach like XHTML and CSS validation?

Pretty soon I'll be doing some major improvements to WebGUI's Quality Assurance, which includes as much automated testing as I can do, so any ideas you all have for what we can test about the templates will be appreciated.

Anything that a web browser can do, we can duplicate, so don't worry if your idea sounds outlandish. We can probably do it.

Thanks for all your hard work on this!



Back to Top
Rate [
|
]
 
 
rogier

Is there any type of automated testing we can do on these new templates? Are there standards we want to reach like XHTML and CSS validation?

Yes, and the Web Quality Guidelines, which also has an automated test.

Pretty soon I'll be doing some major improvements to WebGUI's Quality Assurance, which includes as much automated testing as I can do, so any ideas you all have for what we can test about the templates will be appreciated.

Anything that a web browser can do, we can duplicate, so don't worry if your idea sounds outlandish. We can probably do it.

Thanks for all your hard work on this!

I have been thinking about testing, but have not really come to any conclusions. What I can think of right now:

HTML, CSS and WebQ. Guideline validation tests with different permutations of content; by this I mean checking (for instance) an article for validation with:

  • description, but no attachments and no link
  • description, with attached image and no link
  • description, with attached image and link
  • no description, no attachments, with a link
  • ...

I don't know if this can be automated for any asset (article is an easy example) but it's would be a very thorough way to check validation.

Is this the sort of idea you're looking for? Anyway, I'll think on it some more.

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl



Back to Top
Rate [
|
]
 
 
preaction

Yes, this is exactly the ideas I'm looking for. Any other ideas, no matter how far-fetched, we'll try to work on. I want WebGUI to be locked down either before 8.x development or during 8.0.x development.

There's something called "Selenium IDE" which allows you to record your actions in a web browser and then run it as an automated test. We'll be using it shortly, so I might enlist some people to perform Selenium tests.



Back to Top
Rate [
|
]
 
 
arjan
Hi Doug,

Perhaps I'm stating a few things you knew already:
- The automated webguidelines test can be installed locally. It's
distributed under the European Union Public Licence (EUPL). Right now
it's in Dutch only, but I've just asked them to translate it and if thy
don't I will if you need it. I've attached the zip.
- You knew that a HTML validator can be installed locally?
http://validator.w3.org/source/
http://validator.w3.org/docs/install.html
And a CSS validator?
http://jigsaw.w3.org/css-validator/DOWNLOAD.html
http://lists.w3.org/Archives/Public/www-validator-css/2003Jan/0037.html
http://dev.w3.org/cvsweb/2002/css-validator/

I know Tim - in cc - is interested in working with Selenium to do
automated testing, just so you know. And I know that Diona has plans to
do something with it in her company.

Kind regards,
Arjan.


doug@plainblack.com wrote:
> preaction wrote:
>
> Yes, this is exactly the ideas I'm looking for. Any other ideas, no
> matter how far-fetched, we'll try to work on. I want WebGUI to be
> locked down either before 8.x development or during 8.0.x development.
>
> There's something called "Selenium IDE" which allows you to record
> your actions in a web browser and then run it as an automated test.
> We'll be using it shortly, so I might enlist some people to perform
> Selenium tests.
>
>
>
> http://www.webgui.org/design/template-working-group/new-templates-to-be-added-to-7_7_14-beta/3
>
> ------------------------------------------------------------------------
>
>
>
>  



Attached Files
Back to Top
Rate [
|
]
 
 
rogier

Very cool. I'll just post the ideas when they come to mind, OK? I'm just brainstorming now. Next one:

There is some code that almost all new templates have in common. This is what I'm working with (as a sort of "template for a template"):

 

<div id="[assetname]<tmpl_var assetId>" class="[assetname] [name of specific asset]">

<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>

<tmpl_if session.var.adminOn>
    <tmpl_var controls>
</tmpl_if>

<tmpl_if displayTitle>
    <h3><tmpl_var title></h3>
</tmpl_if>

<tmpl_if description>
    <div class="description">
        <tmpl_var description>
    </div>
    <!--/description-->
</tmpl_if>

...

</div>
<!--/[assetname]<tmpl_var assetId> /[assetname] [specific asset]-->

 

Other recurring code is for attachments and pagination. It would be nice to have a list of all templates where one could see if a template contains this code.

Then you can easily check new templates for consistency and find spelling mistakes (things like <div class="desrciption"> will not match).

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl



Back to Top
Rate [
|
]
 
 
arjan

Dear Doug,

I reread an earlier bugreport triggered by this discussion. The first you might perhaps read, but short summary: code puts in a non-validating stylesheet, it cannot be solved because it's part of the forms system.

Since we're redoing the forms system we should perhaps check if css files are put in the head like so:  $self->session->style->setLink($self->session->url->extras('yui/build/calendar/assets/skins/sam/calendar.css'), { rel=>"stylesheet", type=>"text/css", media=>"all" });
and solve such issues, while the forms system is still in the making.

Of course the ultimate solution for this still has to be discovered. We'll start a thread about it on the dev-list. But knowing that there's unreplacable css in the output is something to report in a test.

Kind regards,

Arjan Widlak

United Knowledge
Internet for the public sector

www.unitedknowledge.nl



Back to Top
Rate [
|
]
 
 
preaction

Yes, this is the kind of thing I'm thinking about. Though I was overruled on the full front-end testing requirement, it doesn't mean we can't do more (it's just not required, which means only those of us with brave hearts and strong backs will do it).

Being able to do sweeping tests across all templates for standard features is an excellent start (the basic tags Rogier pointed out, CSS and HTML validations).

Hopefully I'll be able to (or find someone else to) add these to smoke.plainblack.com in the coming months.



Back to Top
Rate [
|
]
 
 
rogier

I'm going to do some more thinking on possible testing tools. If you need anything, want to bounce ideas, let us know.

If you could also keep us informed about your progress (just a post here will do) that would be great too.

Thanks Doug!

 

Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl



Back to Top
Rate [
|
]
 
 
© 2012 Plain Black Corporation | All Rights Reserved