Hi Denis,

it could be an idea to have saveResponse="DOM" or something like that to dump the current state of the parsed page to a file (it is html).

Concerning my other propositions I think that a small output to the log would be better than generating an html or text file for it. The purpose would be to bring help in some situations where we already look at the debug messages and it would be faster to use as well as more interesting along with the other debug information.

Marc.

Denis N. Antonioli wrote:
Hi

a very interesting proposition indeed.

But I wonder if a new step is the best solution?
A new step is easier to implement, but is it really practical in daily use?

How about overloading the exisiting configuration option saveResponse  from
its present boolean yes/no to a level-based concept, as we know it from, e.g, log4j

For example:
saveResponse=no  -> as today
saveResponse=yes -> as today
saveResponse=debug -> as today, plus according to your proposal in a 2nd file


What do you think?

    dna

On 5 déc. 05, at 11:30, Marc Guillemot wrote:

Maybe we find even more information that would be helpful and
isn't available in the log.


Yep

1- the current opened windows with their frames
giving information on the opened windows, the title and the url of the documents as well which one is considered by webtest as the current one.

E.g.:

Current windows:
* - Choose user (http://foo.com/myapp/chooseUser)
  - My great app (http://foo.com/myapp/start)
     - menu "Left menu" (http://foo.com/myapp/left)
     - main "Main content" (http://foo.com/myapp/main)

2- the forms in the current document with their controls and how they can be identified by setXxx steps:

E.g.:

Forms in http://foo.com/myapp/main:
* - loginForm (http://foo.com/myapp/doLogin)
    - username (text) can be found by name (username) or id  (loginField)
- userpasswd (password) can be found by name (userpasswd) or id (loginPasswd)
    - submit (submit) can be found by name (submit)
  - searchForm (http://foo.com/myapp/search)
    - freetext (text) can be found by name (freetext)
    - submit (submit) can be found by name (submit)

3- The same thing for links

etc

in short, a debugger for webtest ;-)

Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest



_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to