Difference between revisions of "Test-service-call"

From GreenVulcano Wiki
Jump to: navigation, search
(Created page with "{{GVESB}} allows you to test your service using this plugin. Use property ''encoding'' to decode the bytes of the buffer GVBuffer. The test-service-call Element is used by ...")
 
Line 4: Line 4:
  
 
The test-service-call Element is used by [[Channel]] and [[routed-call]]. Its attributes are:
 
The test-service-call Element is used by [[Channel]] and [[routed-call]]. Its attributes are:
* ''type'': call.
+
{|class="gvtable"
* ''class'': it.greenvulcano.gvesb.virtual.internal.TestServiceCall.
+
! Attribute !! Type !! Description
* ''name'': Operation name. Used in the [[Flow]] section to associate workflow nodes to VCL operations.
+
|-
* ''service'': Type of test operation
+
| type || fixed || This attribute must assume the value '''call'''.
** toupper: transforms all characters to uppercase.
+
|-
** tolower: transforms all characters to lowercase.
+
| class || fixed || This attribute must assume the value '''it.greenvulcano.gvesb.virtual.internal.TestServiceCall'''.
** echo : do not change the body.
+
|-
* ''remove-properties'': If ''true'' properties are removed from [[GVBuffer]].
+
| name || required || Operation name. Used in the [[Flow]] section to associate workflow nodes to VCL operations.
* ''exception-message'': If defined is thrown an exception of type [[VCLCallException]], with the configured message.
+
|-
* ''sleep-on-init'': Simulate a delay in creation of the operation.
+
| service || required || Type of test operation
* ''sleep-on-perform'': Simulate a delay in execution of the operation.
+
* toupper: transforms all characters to uppercase.
* ''ref-dp'': Name of [[Data Provider]] to use for output message creation. The [[Data Provider]] should return a string, as calls to testing services expect strings.
+
* tolower: transforms all characters to lowercase.
 +
* echo : do not change the body.
 +
|-
 +
| remove-properties || optional || If ''true'' properties are removed from [[GVBuffer]].
 +
|-
 +
| exception-message || optional || If defined is thrown an exception of type [[VCLCallException]], with the configured message.
 +
|-
 +
| sleep-on-init || optional || Simulate a delay in creation of the operation.
 +
|-
 +
| sleep-on-perform || optional || Simulate a delay in execution of the operation.
 +
| ref-dp || optional || Name of [[Data Provider]] to use for output message creation. The [[Data Provider]] should return a string, as calls to testing services expect strings.
 +
|}
  
 
Its subelements are:
 
Its subelements are:

Revision as of 22:49, 9 February 2012

GreenVulcano® ESB allows you to test your service using this plugin.

Use property encoding to decode the bytes of the buffer GVBuffer.

The test-service-call Element is used by Channel and routed-call. Its attributes are:

Attribute Type Description
type fixed This attribute must assume the value call.
class fixed This attribute must assume the value it.greenvulcano.gvesb.virtual.internal.TestServiceCall.
name required Operation name. Used in the Flow section to associate workflow nodes to VCL operations.
service required Type of test operation
  • toupper: transforms all characters to uppercase.
  • tolower: transforms all characters to lowercase.
  • echo : do not change the body.
remove-properties optional If true properties are removed from GVBuffer.
exception-message optional If defined is thrown an exception of type VCLCallException, with the configured message.
sleep-on-init optional Simulate a delay in creation of the operation.
sleep-on-perform optional Simulate a delay in execution of the operation. ref-dp optional Name of Data Provider to use for output message creation. The Data Provider should return a string, as calls to testing services expect strings.

Its subelements are: