Le mardi 20 mai 2008 à 09:43 -0700, Seetha Bhat a écrit :
> Hi,
>
> I am working on an e-commerce package which is based on a 3 tier
> client server architecture. There is a VB client which basically
> interacts with web server and application server. Each client request
> hits a URL which is basically an API. We are passing some HTTP headers
> like client version, API version, basic auth, and checksum when each
> of these APIs are called.
> My questions are:
> 1. Does Webtest support these kind of headers?
Is something like code follow could solve your quest ?
<header name="User-Agent" value="Mozilla/4.0"/>
<header name="Accept-Language" value="de-ch"/>
See : http://webtest.canoo.com/webtest/manual/config.html for full
documentation about this.
> 2. If yes, how do I go about it? Do I use AntXML or Groovy?
No, just webTest if previous is right for you, no need to hack more.
> 3. I saw that some headers can be set in CONFIG . Where do we define
> CONFIG paramters? Is it in webtest.xml?
No, in config.xml. You should take a look to this video to begin with
webTest :
http://opensource.basehaus.com/webtest/screencasts/creating-a-first-webtest-project.htm
You can find examples here :
http://webtest.canoo.com/webtest/manual/samples.html
> Where do I mention that POST method should be used as the methd of
> request?
"invoke" task support "method" parameter according to
http://webtest.canoo.com/webtest/manual/invoke.html , this should be
what you need.
>
> Thanks,
> Seetha
>
Good luck.
dav.
--
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest