WebSphere MQ Workflow 3.4 Generic C API Test / Prototyping Tool
[prev][next][parent][TOC]
FmcjStringVector - Example
Testcase
/* Example22 testcase ( FmcjStringVector...() APIs ) */
FmcjGlobalConnect
XpRc FMC_OK
End
FmcjExecutionServiceAllocate
ExecutionServiceHdl 1
XpRc FMC_OK
End
FmcjExecutionServiceLogon
ExecutionServiceHdl 1
UserId "USER2"
Password "password"
SessionMode Fmc_SM_Default
AbsentIndicator Fmc_SA_NotSet
XpRc FMC_OK
End
FmcjExecutionServiceUserSettings
ExecutionServiceHdl 1
PersonHdl 1
XpRc FMC_OK
End
FmcjPersonPersonsAuthorizedForMe
PersonHdl 1
StringVectorHdl 1
XpValue "USER1;ADMIN"
End
FmcjStringVectorSize
StringVectorHdl 1
XpValue 2
End
FmcjStringVectorFirstElement
StringVectorHdl 1
BufferLength 200
XpValue "USER1"
End
FmcjStringVectorNextElement
StringVectorHdl 1
BufferLength 200
XpValue "ADMIN"
End
/* ----some demo manipulations ----------------- */
FmcjStringVectorAddElement
StringVectorHdl 1
StringValue "Test String"
End
FmcjStringVectorRemoveElement
StringVectorHdl 1
StringValue "USER1"
End
FmcjStringVectorSize
StringVectorHdl 1
XpValue 2
End
FmcjStringVectorFirstElement
StringVectorHdl 1
BufferLength 200
XpValue "ADMIN"
End
FmcjStringVectorNextElement
StringVectorHdl 1
BufferLength 200
XpValue "Test String"
End
FmcjStringVectorDeallocate
StringVectorHdl 1
XpRc FMC_OK
End
FmcjExecutionServiceLogoff
ExecutionServiceHdl 1
XpRc FMC_OK
End
FmcjPersonDeallocate
PersonHdl 1
XpRc FMC_OK
End
FmcjExecutionServiceDeallocate
ExecutionServiceHdl 1
XpRc FMC_OK
End
FmcjGlobalDisconnect
XpRc FMC_OK
End
Result
C API Test Tool for MQ Workflow v31_347 Windows 95/NT: K:\FLE\FMCTJCA1
Test case: EXAMPLE22
Fri Jul 17 09:25:12 1998
============================================================================
+++>
============================================================================
FmcjGlobalConnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceAllocate
parameter: ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceLogon
parameter: ExecutionServiceHdl = 1
parameter: UserID = USER2
parameter: Password = password
parameter: SessionMode = Fmc_SM_Default = 0
parameter: AbsentIndicator = Fmc_SA_NotSet = 0
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceUserSettings
parameter: ExecutionServiceHdl = 1
parameter: PersonHdl = 1
..........Status Report.....................................................
PersonHdl = 0x00C13890
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjPersonPersonsAuthorizedForMe
parameter: PersonHdl = 1
parameter: StringVectorHdl = 1
..........Object Names Report...............................................
vector size = 2
..........Value Report......................................................
AcValue = "USER1;ADMIN"
XpValue = "USER1;ADMIN"
+++OK+++
============================================================================
FmcjStringVectorSize
parameter: StringVectorHdl = 1
..........Value Report......................................................
AcSize = 2
XpSize = 2
+++OK+++
============================================================================
FmcjStringVectorFirstElement
parameter: StringVectorHdl = 1
parameter: BufferLength = 200
..........Value Report......................................................
AcValue = "USER1"
XpValue = "USER1"
+++OK+++
============================================================================
FmcjStringVectorNextElement
parameter: StringVectorHdl = 1
parameter: BufferLength = 200
..........Value Report......................................................
AcValue = "ADMIN"
XpValue = "ADMIN"
+++OK+++
============================================================================
FmcjStringVectorAddElement
parameter: StringVectorHdl = 1
parameter: StringValue = Test String
============================================================================
FmcjStringVectorRemoveElement
parameter: StringVectorHdl = 1
parameter: StringValue = USER1
============================================================================
FmcjStringVectorSize
parameter: StringVectorHdl = 1
..........Value Report......................................................
AcSize = 2
XpSize = 2
+++OK+++
============================================================================
FmcjStringVectorFirstElement
parameter: StringVectorHdl = 1
parameter: BufferLength = 200
..........Value Report......................................................
AcValue = "ADMIN"
XpValue = "ADMIN"
+++OK+++
============================================================================
FmcjStringVectorNextElement
parameter: StringVectorHdl = 1
parameter: BufferLength = 200
..........Value Report......................................................
AcValue = "Test String"
XpValue = "Test String"
+++OK+++
============================================================================
FmcjStringVectorDeallocate
parameter: StringVectorHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceLogoff
parameter: ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjPersonDeallocate
parameter: PersonHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceDeallocate
parameter: ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjGlobalDisconnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
====== Test case ended normally ============================================