Version 2

    We can reuse the framework already developped with the modifications :

     

    define a protocol between client and server. Indeed today we need code both on client and server and we have the following interactions :

     

    1. Client deploys a porlet application

    2. Client initiates the test by rendering a specific portlet in the application

    3. Server performs a task and send a result to the client

    4. Client gets the results and check it is what it expects

    5. etc...

    6. Client terminates the test and undeploy the portlet application

     

    Any the following actions can be taken on the client side :

    • Assert server side result

    • Invoke url returned by the server side

    • Terminate test

     

    Modifications

     

    1. Define a protocol between the client and server, thus the server side tests can tell the client side what action to take and this avoid to have code on the client side (this kind of code is usually very repetitive).

    2. Remove the custom marshalling done at the portlet container level and use only the portlet rendered markup delimited by specific markers.

    3. Define the object model for the protocol

    4. Define the XML binding for the object model using JBossXB