[Webtest] Accepted-Language
Johannes Link
webtest@lists.canoo.com
Thu, 25 Apr 2002 13:44:50 +0200 (MEST)
Hi Dierk,
> There is currently no supported WebTest feature for setting
> request headers or analyzing response headers.
Currently we are only interested in setting request headers. I guess that
verifying them is not that important in functional tests.
> The accept-language header is currently empty.
>
> Can you post a WebTest xml snippet how you would like to see
> WebTest dealing with this?
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>
> For I know you are a testing expert, I even dare to ask for
> an acceptance test for the requested feature :-)
As your customer I provide my test in prose:
- 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"
best regards,
Johannes
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net