panyasan wrote:
> Hi Thomas,
>
> these are great ideas and could be implemented in my - admittedly hacky -
> approach! I agree that the request should be part of the data and that one
> file should contain more than one request. I don't think I'll be able to do
> this this week, but it will be coming!
No worries!
> Probably we need a "Record", "Pause",
> "Discard" and "Save" Button for the recording of the requests, then.
>
That sounds very good. I could see using the interactive console to e.g.
send a couple of requests to the server, covering the equivalence
classes of all potential requests, save to file, and then use file
tooling to insert additional generate requests that vary over some
parameter, to get a real range coverage of the test cases.
> As to a more comprehensive solution - I fully agree with you that something
> more stable is needed. My solution was simply to be a quick-and-dirty way to
> create interactive demos without a server backend. So I think that both
> appraoches target different use cases.
>
I totally agree.
By way of saying this I want to add a bit of the scenarios I have in
mind. What I like to see possible (and is already partly supported with
the current implementation) is the possibility to utilize it in unit
tests. Given a - however fabricated - mockup data file of Rpc requests I
want to do the following from my test code:
a) switch to mockup mode (currently "on"), invoke my client applications
classes so they end up doing Rpc requests that match the pre-fabricated
ones, and are answered from the mock data; this is to offline unit-test
the *client* classes
b) in an entirely different test, switch to no mockup mode ("off"), read
the *request* data from the mockup file, create corresponding Rpc
requests and directly fire them against the server backend (ie.
re-running the request), then *compare* the returned result against the
*response* section of the mockup data; this is to mass unit-test the
*server* backend
T.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel