VSE transactions are classified as stateless or conversational.
Stateless transactions include no logical relationships between transactions. For example, HTTP and SOAP are stateless protocols. A stateless transaction always has a static response, regardless of what calls were made previously.
In a stateless conversation, each service call is independent of the others. For example:
Conversational transactions (conversations) are stateful. Conversations consist of:
A transaction in a conversation always depends on the context that earlier conversations create.
For example, the following stateful conversation involves using an ATM:
The first transaction in a conversation is the conversation starter. When VSE receives an incoming request, it reviews the conversation starters to determine whether the transaction means we are starting a new conversation.
Because all the transactions in a conversation are related to each other, VSE must have a way of determining this relationship. This determination is typically made by using some kind of special token such as "jsessionid" or a cookie in web transactions, or a custom identifier in message traffic.
DevTest supports the following types of conversations:
The protocol layer is responsible for identifying the unique string, which is based on different instances of the client. The string identifies server-side sessions for both recording and playback of the service image.
VSE generates the token using a string generation pattern that is stored with the conversation in the service image. After the token is generated, it operates the same as an instance-based conversation. Token-based conversations cannot be automatically inferred during recording. To specify where tokens are found, use the VS Image Recorder.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|