2025-11-20 IntegrationTest: Difference between revisions
Jump to navigation
Jump to search
(→Event) |
No edit summary |
||
| Line 1: | Line 1: | ||
= Type paramiter = | = Type paramiter = | ||
normal case | ===normal case=== | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
object: { | object: { | ||
forStageMatching: true, | forStageMatching: true, | ||
properties: {} | properties: { | ||
name:{ | |||
forStageMatching: true, | |||
value:"Tom" | |||
} | |||
} | |||
}, | }, | ||
array: { | array: { | ||
forStageMatching: true, | forStageMatching: true, | ||
useIsEqual: true, | useIsEqual: true, | ||
eventValue: [] | eventValue: [ | ||
{ | |||
"relTypeAndDirection": { | |||
"relType": { | |||
"serviceTag": "maxxCart2", | |||
"relationshipTag": "hasCartOrder" | |||
}, | |||
"relationshipDirection": "from" | |||
}, | |||
"targetObjects": [ | |||
{ | |||
"objType": { | |||
"serviceTag": "maxxCart2", | |||
"objectType": "cartOrder" | |||
} | |||
} | |||
] | |||
} | |||
] | |||
}, | }, | ||
number: { | number: { | ||
| Line 26: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Empty== | === Empty === | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
EmptyString:{ | EmptyString:{ | ||
| Line 40: | Line 63: | ||
value:{} | value:{} | ||
} | } | ||
</syntaxhighlight> | |||
=== Error === | |||
can test noRetryError | |||
<syntaxhighlight lang="JavaScript"> | |||
"errorMessage": { | |||
forStageMatching: true, | |||
"value": "Not found schema of {serviceTag:TestGraphHandler, objectType:notFoundObjType}" | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 07:48, 20 November 2025
Type paramiter
normal case
object: {
forStageMatching: true,
properties: {
name:{
forStageMatching: true,
value:"Tom"
}
}
},
array: {
forStageMatching: true,
useIsEqual: true,
eventValue: [
{
"relTypeAndDirection": {
"relType": {
"serviceTag": "maxxCart2",
"relationshipTag": "hasCartOrder"
},
"relationshipDirection": "from"
},
"targetObjects": [
{
"objType": {
"serviceTag": "maxxCart2",
"objectType": "cartOrder"
}
}
]
}
]
},
number: {
forStageMatching: true,
value: 1111
},
string: {
forStageMatching: true,
value: "hi"
},
boolean: {
forStageMatching: true,
value: true
}
Empty
EmptyString:{
value:""
},
EmptyArray:{
forStageMatching: true,
useIsEqual: true,
eventValue: []
},
EmptyObject:{
forStageMatching: true,
value:{}
}
Error
can test noRetryError
"errorMessage": {
forStageMatching: true,
"value": "Not found schema of {serviceTag:TestGraphHandler, objectType:notFoundObjType}"
}