Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [maxq-dev] Obese scripts

maxq
Discussion topic

Back to topic list

Re: [maxq-dev] Obese scripts

Author oliverbock
Full name Oliver Bock
Date 2004-09-27 20:54:23 PDT
Message On 28/09/2004, at 08:08, Frank Cohen wrote:
> ...At this rate MaxQ is going to outgrow a one-size-fits-all format
> for the recorded scripts. For example, I really want the logging to
> stay. I propose adding a Preferences command that allows users to
> choose recording options.

MaxQ now supports multiple script generators. Hopefully the ability to
easily create new generators will take some of the pressure off the
original generator class. (Each installed generator appears in the
File -> New menu so they are easy to use.)

Both you and Hari like the logging, but I think distinguish between two
types of logging:

1. Logging from MaxQ. MaxQ Java code uses logging to provide
information about what it is doing. These messages are useful while
debugging MaxQ and sometimes for understanding strange behaviour in
your scripts. This logging is now well supported by MaxQ and can be
turned on or suppressed using the -d and -q command line flags.

2. Logging from a script. Users need this to see what is going between
their script and the web site being tested. Currently scripts report
their own activities using the Jython "print" statement, but I guess
you and Hari would prefer it was done by some other mechanism?
Whichever mechanism that is, its output should appear in the Run
window, not on Java's stderr.

Could you or Hari provide some examples of the sort of logging you want
to do?

> 2) Add a regex way to validate http response codes.

If anyone wants to match response codes with a regular expressions then
they can just change:

   self.assertEquals("Assert number 2 failed", 200,
self.getMethod().get​StatusCode())

to (say)

  self.assert(re.match​(r'20[012]', self.getMethod().get​StatusCode()))

Is this sufficient? How would you see that the code would look?


    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

« Previous message in topic | 17 of 24 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-27 14:51:38 PDT
     Re: [maxq-dev] Obese scripts fcohen Frank Cohen 2004-09-27 15:08:32 PDT
         Re: [maxq-dev] Obese scripts fcohen Frank Cohen 2004-09-27 15:21:33 PDT
             Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-27 20:59:38 PDT
                 Re: [maxq-dev] Obese scripts fcohen Frank Cohen 2004-09-27 22:14:42 PDT
                 Re: [maxq-dev] Obese scripts bitter lee 2004-09-27 23:37:48 PDT
                     Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-29 14:32:39 PDT
                         Re: [maxq-dev] Obese scripts bitter lee 2004-09-29 18:49:38 PDT
                 Re: [maxq-dev] Obese scripts bitter lee 2004-09-27 23:38:33 PDT
                     Re: [maxq-dev] Obese scripts hdara at primavera dot com hdara at primavera dot com 2004-09-28 10:29:04 PDT
                         Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-28 14:11:22 PDT
                             Re: [maxq-dev] Obese scripts hdara at primavera dot com hdara at primavera dot com 2004-09-28 14:29:05 PDT
                                 Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-28 16:10:32 PDT
                                 Re: [maxq-dev] Obese scripts avery1701 Matt Avery 2004-09-29 07:07:51 PDT
                                     Re: [maxq-dev] Obese scripts avery1701 Matt Avery 2004-09-29 07:49:04 PDT
                                         Re: [maxq-dev] Obese scripts hdara at primavera dot com hdara at primavera dot com 2004-09-29 10:16:43 PDT
         Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-27 20:54:23 PDT
             Re: [maxq-dev] Obese scripts fcohen Frank Cohen 2004-09-27 22:10:32 PDT
                 [maxq-dev] Regular expressions in Jython? fcohen Frank Cohen 2004-09-27 22:40:49 PDT
                     Re: [maxq-dev] Regular expressions in Jython? oliverbock Oliver Bock 2004-09-28 14:08:27 PDT
                         Re: [maxq-dev] Regular expressions in Jython? fcohen Frank Cohen 2004-09-28 14:13:34 PDT
     Re: [maxq-dev] Obese scripts hdara at primavera dot com hdara at primavera dot com 2004-09-27 15:26:32 PDT
         Re: [maxq-dev] Obese scripts oliverbock Oliver Bock 2004-09-27 21:00:49 PDT
             Re: [maxq-dev] Obese scripts hdara at primavera dot com hdara at primavera dot com 2004-09-27 22:47:15 PDT
Messages per page: