[Webtest] Accepted-Language

Dierk Konig webtest@lists.canoo.com
Thu, 25 Apr 2002 14:02:45 +0200


> A first brainstorming brings up two things we'd wish for:
> (1) Since the accepted language is usually stable, we'd like to have an
> attribute in the testSpec's config tag:
> <config 
>    host="localhost"
>    ...
>    accept-language="en,de_DE"
> />
> 
> (2) Generically speaking the header fields can be different for every
> request. That's why I recommend a new tag as subtag for all 
> existing tags which
> invoke a request, i.e. <invoke>, <clicklink>, <clickbutton>:
> <invoke ...>
>    <headerfield name="accept-language" value"fr"/>
> </invoke>

This would override the "config" setting, ok?

> As your customer I provide my test in prose:

great.

> - Have a multi language page with headline "This is A" for language A and
> "This is B" for language B.
> - Call the page once with accept-language="A", check that the hedaline is
> "This is A".
> - Call the page with accept-language="B,A", check that the 
> headline is "This
> is B"

Hm, may I suggest having a page that just reports the header-fields
and values (like the "SnoopServlet") via html? This would go around any 
logic that depends on the web application under test.

ok?

cheers
Mittie