Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [maxq-dev] IAgent - pluggable HTTP agents

maxq
Discussion topic

Back to topic list

Re: [maxq-dev] IAgent - pluggable HTTP agents

Author fcohen
Full name Frank Cohen
Date 2004-10-18 16:19:00 PDT
Message On Oct 18, 2004, at 3:00 PM, Oliver Bock wrote:

> On 19/10/2004, at 02:41, Frank Cohen wrote:
>> 1) I use the term "agent" in TestMaker a lot to encompass the
>> business logic in a test. The test agent embodies the behavior of an
>> archetypal user. (I talk about this a lot in my book Java Testing and
>> Design, see http://thebook.pushtotest.com) So I would prefer to call
>> the interface something other than 'agent'. How about 'connection'?
>
> In the terminology of the HTTP standard, browsers are known as "user
> agents", which is where I got the name. I felt that "browser" was too
> literal. I think "connection" it is too general---applying equally
> well to recording as playing---and is thus not very memorable. Any
> other suggestions?
>

How about host, client, consumer... (I don't feel strongly about this.)



>> 2) The interface should provide for proxy server information: proxy
>> address, port, user name, user password.
>
> Proxy information is available to implementations of IAgent (or
> whatever it will be called) via the maxq.Config class.
>

It's ok with me to put this info into the config file, but I would
prefer to have an API for it too. Also, I don't see in the current
config file a facility for proxy user name and proxy user password.


>> 3) The interface should have timing value getters. For example,
>> totaltime to make the request, set-up-time to marshall the request.
>
> Timers are not required by MaxQ or by the scripts MaxQ generates
> therefore I have not included them in the interface. If you build an
> IAgent using TOOL then you can include timers, and your scripts will
> be able to use them. The interface specifies the minimum required of
> agents, but does not limit the member functions exposed. We can do
> this because we will dynamically make the agent class the base class
> of the test.
>
> I am adamant about this because I want to allow different agents to
> provide different features without polluting the core or the
> traditional features of MaxQ. Also, I think that timing with
> sufficient granularity for use in load testing could be added to an
> extension Jython class without requiring support from the agent. When
> performing load testing you are looking to see when user response
> times increase to levels that are irritating to real users. Seconds
> are a problem, but the difference between 15 microseconds and 18 is
> irrelevant. This base class would sit in between a test class and
> PyHttpTestCase in the same way that my VerifyTest.py provides the
> facility to check returned HTML without affecting anything else.
>

No prob Oliver.

>
> Oliver
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
> For additional commands, e-mail: dev-help at maxq dot tigris dot org
>
>
---
Frank Cohen, PushToTest, http://www.PushToTest.com, phone: 408 374 7426
Author of "Java Testing and Design: From Unit Tests to Automated Web
Tests"
from Prentice Hall, details at http://thebook.pushtotest.com


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 4 of 12 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 01:14:06 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 09:41:39 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:00:14 PDT
             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:19:00 PDT
                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:33:03 PDT
                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:40:42 PDT
                         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:46:26 PDT
                             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 18:29:00 PDT
                                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 18:47:04 PDT
                                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 19:19:08 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents hdara at primavera dot com hdara at primavera dot com 2004-10-18 11:02:51 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:19:16 PDT
Messages per page: