UTP SddpServerUpdated
UTP SddpServerUpdated
Configuration/Environment:
1.1.3 Init call returns success when both HashTable & Initialisation Success
Throttling Manger initilization succeeds Returns true with
appropriate Logs.
1.2.2
1.2.3
2.1.2 It checks for OrigAddr whether it is Numeric or Accordingly Sets the flag.
Alphanumeric.
2.1.3
2.1.4
2.2.3
3.1.2 It applies the throttling using app_Id contained in If throttling not exceeded,
AppShmDetails to check whether throttling limit exceeded continues for further
or not. processing
3.1.3 It validates the password present in AppShmDetails with if success continues for
that of the decoded URL password. further processing
3.1.4 Formats the SMSRequest Structure using all decoded continues further by
parameters populating SMSRequest
structure with appropriate
logs
3.1.5 It writes the SMSRequest structure to Validation queue Returns True with
"MSG_VAL_REQ_QUEUE_RCV " with SessionId as appropriate logs
Message Type.
3.1.6
3.1.7
3.2.2 If user is inactive or throttling limit for the application Returns false with
exceeded, then it produces a error message "Incorrect appropriate logs. Produces
User/ Inactive User" & drops the request.. Error message along with
error code.
3.2.3 If password is not valid then it produces a error message Returns false with
"Invalid Password" & drops the request. appropriate logs. Produces
Error message along with
error code.
4.2.3
xtReqHandler
e: Init
r.
Observation Remarks
Success
OK
Success
OK
Produces Logs & traces
for successful
initialization.
OK
Observation Remarks
Generating error Logs &
traces.
e: DecodeTextMessage
parameters are UserName, Passwd, OrigAddr, DestAddr, Dsr,
meric.
Observation Remarks
Generating Logs &
populating decoded
parameters success.
OK
success to produce the
expected result.
OK
Observation Remarks
success to produce the
expected result.
OK
e: ProcessTextMessage
nInfo shared memory(Hash Table). Performs user validation &
e validation queue for further processing.
Observation Remarks
Populating
AppShmDetails structure.
OK
success to produce the
expected result.
OK
success to produce the
expected result.
OK
Populating SMSRequest
structure.
OK
success to write.
OK
OK
Observation Remarks
Appropriate Error
message & erroe code
displayed. Also logs are
generated.
Appropriate Error
message & erroe code
displayed. Also logs are
generated.
Appropriate Error
message & erroe code
displayed. Also logs are
generated.
Appropriate Error
message & erroe code
displayed. Also logs are
generated.
e: ReadResponse
cks for the messageId in SMSRespose structure. If found
splays Message Not Accepted.
Observation Remarks
Read Response success
OK
Message displayed.
OK
Observation Remarks
Expected result observed.
OK
Success to display the
message.
OK
Unit Test Plan Of SDDP_BinaryReqHandler
1.1.4
1.1.5
1.1.6 .
1.2.2
1.2.3
2.1.3 If Udh is not zero (0) then it processes the message as Continues with further
binary message else as normal Text message. processing
2.1.4
2.2.2
2.2.3
9
Function ID: 3 Function Name: ProcessBinaryMessage
Function Overview: This function fetches the application information from Application Info shared memory(Hash Table). Perfo
user validation & applies the throttling. If both results in success then forms the request & sends it to the validation queue for f
processing.
3.1.3 It validates the password present in AppShmDetails with if success continues for
that of the decoded URL password. further processing
3.1.4 Formats the SMSRequest Structure using all decoded continues further by
parameters populating SMSRequest
structure with
appropriate logs
3.1.5 It writes the SMSRequest structure to Validation queue Returns True with
"MSG_VAL_REQ_QUEUE_RCV " with SessionId as appropriate logs
Message Type.
3.1.6
3.1.7
3.2.2 If user is inactive or throttling limit for the application Returns false with
exceeded, then it produces a error message "Incorrect appropriate logs.
User/ Inactive User" & drops the request.. Produces Error
message along with
error code.
3.2.3 If password is not valid then it produces a error Returns false with
message "Invalid Password" & drops the request. appropriate logs.
Produces Error
message along with
error code.
4.2.3
yReqHandler
me: Init
nager.
Observation Remarks
Success
OK
Success
OK
Produces Logs &
traces for successful
initialization.
OK
OK
OK
OK
Observation Remarks
Generating error
Logs & traces.
me: DecodeBinaryMessage
est parameters are UserName, Passwd, OrigAddr,
meric or alphanumeric.It aslo checks for Udh, if udh
ats the message as Binary message.
Observation Remarks
Generating Logs &
populating decoded
parameters
success.
OK
success to produce
the expected result.
Need to be clarified.
OK
Observation Remarks
success to produce
the expected result.
OK
me: ProcessBinaryMessage
ation Info shared memory(Hash Table). Performs
equest & sends it to the validation queue for further
Observation Remarks
Populating
AppShmDetails
structure.
OK
success to produce
the expected result.
OK
success to produce
the expected result.
OK
Populating
SMSRequest
structure.
OK
success to write.
OK
OK
Observation Remarks
Appropriate Error
message & erroe
code displayed.
Also logs are
generated.
Appropriate Error
message & erroe
code displayed.
Also logs are
generated.
Appropriate Error
message & erroe
code displayed.
Also logs are
generated.
Appropriate Error
message & erroe
code displayed.
Also logs are
generated.
me: ReadResponse
checks for the messageId in SMSRespose
ccepted. Otherwise displays Message Not
Observation Remarks
Read Response
success
OK
Message displayed.
OK
Observation Remarks
Expected result
observed.
Success to display
the message.
Unit Test Plan cum Report
Function Inputs:
Function Outputs: Initializes the Application Shared memory and Throttling Shared memory .
Configuration/Environment: Variable specified in sddp.env should be set.
Positive Test Cases:
Sr. No. Description Expected Result Observation
1.1.1 Initializes the Application Shared Memory Reads Shared Memory Success
keys and creates the
shared Memory
1.1.2 Initializes the Throttling Shared Memory Reads Shared Memory Success
keys and creates the
shared Memory
1.1.3 Resets the complete Throttling shared memory Resets the values to Throttling Library
zero function should
generate logs and
traces.
the Dbmanager
ory.
Remarks
OK
OK
According to
Code no
failure logs
were
observed.
Remarks
OK
OK
ceConfg
existing files with
creates the
Remarks
OK
OK
OK
Remarks
OK
OK
OK
e
dest rule files to a backup
urrent directory
Remarks
OK
OK
OK
OK
OK
OK
Remarks
OK
n Details
tabase and populates to
Remarks
OK
Remarks
OK
ceConfg
e from database aand
ace.cfg file
Remarks
OK
OK
Remarks
e Throttle shared
nterface
Remarks
OK
OK
Remarks
OK
OK
OK
ls
rom database
Remarks
OK
OK
OK
Remarks
Shm
ory
Remarks
OK
OK
Remarks
ve structue
Remarks
OK
OK
OK
Remarks
nd depending on the
ON_DETAILS and
Remarks
OK
OK
Remarks
es
cfg files and destrule
Remarks
Remarks
onInSharedMem
nd Application Shared
ner application files
Remarks
Remarks
s
and populates application
Remarks
Remarks
es
SampleDestRule.cfg file
Remarks
Remarks
Unit Test Plan Of SDDP_Translator
Function ID: 1
Function Overview: Initializes DataBase, Hash Table, Throttle Manager and Reference Directory. Fetch all user details from
Function ID: 2
Function Overview: The function Reads Request from Listener in blocking mode
Function Inputs:
Function Outputs: Success/failure to Read Request
Configuration/Environment:
Positive Test Cases:
Sr. No. Description
2.1.1 Read Request message from Listener Queue success
Function ID: 3
Function Overview: This function checks for valid user and Operation/Message type. For SubmitSM the process reduces thro
constructs kernel structure and write message to validation queue. If write message to validation queue fails/ReduceThrottle fa
SubmitNACK to Listener. For QuerySM, CancelSM and ReplaceSM write message to Query Handler Queue.
Function Inputs:
Function Outputs: Attaches to the Application Shared memory and Client Shared memory. Creates destination rule analysis table.
1.1.3 Initializes the default destination rule object and creates the Initialization and creation Initialized and created the
default analysis table. of analysis table success. default analysis table.
4.1.2 Check and Apply application wise destination rules for the Allow/Disallow the Allowing messages for
destination received in the message. destination as configured processing.
in application wise dest Diallowing messages
rules. giving proper reason
VAL_DEST_SME_BARRE
D_ERR.
4.1.3 If no rules are found matching to the destination address received Allow/Disallow the Allowing messages for
then apply default rules. destination as configured processing.
in default dest rules.
Even if no rules matched from Default rules configured then the Diallowing messages
message will be dropped if its configured to drop. giving proper reason
VAL_DEST_SME_BARRE
D_ERR.
4.2.2
4.2.3
Configuration/Environment:
Positive Test Cases:
Sr. No. Description Expected Result Observation
6.1.1 Should allocates message ID & SCTS for each message and Process should allocate Process allocating
send SUBMIT_ACK message to the application. The process can message Id & SCTS. message Id & SCTS.
write ack to 2 different queues based on interface type, also the
structure will vary. Process should Check Checking GU/NGU and
GU/NGU and SR SR flag.
For SMPP/CIMD2 applications uses requested or not.
MSG_ASE_LSTNR_TX_RSP queue and AseResponse structure. Writing correct SUBMIT
Process should write ACK message to the
For HTTP/GUI interface uses MSG_VAL_RSP_QUEUE_RCV correct structure to the application based on
queue and SMSResponse structure. queue based on interface interface.
type.
6.1.2 Should backup the message into Database for providing Process should backup Process is backing up the
reliability. message through message by writing to
SDDP_BackupDbWriter. BackupDbWriter process.
Function Inputs:
Function Outputs: SMSRequest
Configuration/Environment:
Positive Test Cases:
7.1.2 When no client is found active then process forwards the Process should write Process is writing to the
message to the actual SMSC through SDDP_SmsForwarder. message to MSG_SMS_FWD_RCV_Q
MSG_SMS_FWD_RCV_ .
Q.
Remarks
OK
OK
OK
OK
Remarks
OK
OK
Remarks
OK
Remarks
ion based on name received.
Remarks
OK
OK
Remarks
OK
OK
OK
OK
OK
Remarks
But there is a rare
chance that this
situtaion can happen
as the message is
dropped in previous
process.
Remarks
OK
OK
OK
Remarks
Remarks
OK
OK
Remarks
OK
Remarks
OK
OK
Remarks
Remarks
OK
Remarks
Unit Test Plan Of SDDP_SmsForwarder
Function Inputs:
Function Outputs:
Configuration/Environment: env's from sddp.env must be set
Positive Test Cases:
Sr. No. Description Expected Result
1.1.1 The funcation initializes the Db object, reads the configurations Proceed for further
and creates IPC. processing if Db object
is intialized.
1.1.4 Init call returns true/false Process initializaiton
successful.
1.2.2 Failed to initialize the process when Database object is not Process should exit.
initialized when Database connection is lost.
1.2.3 Fails to initialize the Process if instance number is not configured Process Terminates
for any session
ame: Init
e object.
Observation Remarks
Initialization success.
OK
Process initializaiton
successful. OK
Observation Remarks
Process exited, giving
proper error cause.
OK
Process exiting.
OK
Process Terminated
OK
ame: DeInit
Observation Remarks
Process is doing
commit.
OK
Observation Remarks
ame: ReadSmsFwdRcvQ
ssages to ASE_MESSAGE table.
Observation Remarks
Process is reading
messages with
message type 0.
OK
Observation Remarks
ame: InsertMsgIntoDb
d.
Observation Remarks
Process is inserting.
OK
Observation Remarks
Unit Test Plan Of SDDP_BackupDbWriter
Remarks
OK
Remarks
OK
Remarks
OK
Remarks
OK
ataBase
Remarks
OK
Remarks
OK
Unit Test Plan Of SDDP_ImsiRetreiver
Function Inputs:
Function Outputs: Initializes the Dialogue Shared memory .
Configuration/Environment: Variable specified in sddp.env should be set.
Positive Test Cases:
Sr. No. Description Expected Result Observation
1.1.1 Initializes the Dialogue Shared Memory Reads Shared Creating Dialogue
Memory keys and shared memory pool
creates the and attaching to it.
shared Memory
1.2.1 If the Dialogue Shared Memory already exists Fails to create Attached to the
Shared memory existing Dialogue
and returns false shared memory.
2.1.1 memset the structure SMSRequest before reading the Success Success
message
2.1.2 Reads the message from Success Success
MSG_IMSI_RTV_REQ_RCV_Q with message type 0
using structure SMSRequest.
Negative Test Cases:
Sr. No. Description Expected Result Observation
2.2.1 If Failed to read the message from Fail/False Handle queue read
MSG_IMSI_RTV_REQ_RCV_Q error and generate
logs.
4.2.1 If failed to generate a free DialogueId ,writes the Returns false Success
message to MSG_SMS_FWD_RCV_Q
Function ID: 3.b Function Name: InsertIntoSharedMemory
Function Overview: Populates the DlgRefDir structure and inserts the same into the shared memory
Function Inputs: None
Function Outputs: Inserts the DlgRefDir structure into shared memory
Configuration/Environment: Variable specified in sddp.env should be set.
Positive Test Cases:
Sr. No. Description Expected Result Observation
5.1.1 Populates the DlgRefDir structure and inserts the Success Success
same into shared memory using function
InsertatShmIndex
5.2.1 If failed to insert into shared memory Returns false Generates Log
6.1.1 Populates the Ss7 Msg Structure and writes to ReturnsSuccess Success
MSG_PROT_REQ_QUEUE_RCV
6.2.1 If failed to write the message to Returns False Handle Q write error
MSG_PROT_REQ_QUEUE_RCV
7.1.1 Polls the DlgShared Memory and calculates the time Return Success Success
difference ,if response is timed out ,then sends the
End message to MSG_PROT_REQ_QUEUE_RCV
and forward the message to
MSG_SMS_FWD_RCV_Q
7.2.1 If failed to poll the DlgShared Memory and calculate Returns False Success
the time difference .
7.2.2 If failed to write End message to Returns False Success
MSG_PROT_REQ_QUEUE_RCV and forward the
message to MSG_SMS_FWD_RCV_Q
8.1.1 Gets the Contents of the Shared Memory at the Return Success Get the Dialogue Id
particular index from the Shared pool
8.2.1 If failed to get the Contents of the Shared Memory at Return False Generates logs.
the particular index
9.2.1 If timer exceeded and failed to clears that dialogue Return False Success
contents and write End Msg to
MSG_PROT_REQ_QUEUE_RCV and forward the
message to MSG_SMS_FWD_RCV_Q
10.1.1 Calculates the time difference between the system Returns time
time and time from shared memory difference
between system
time and time
from shared
memory
10.2.1
10.2.2
10.2.3
11.2.1 If failed to write SMS Request structure to Returns False Handle Qwrite error
MSG_SMS_FWD_RCV_Q
13.1.1 Clears the contents of shared memory at that index Returns True Success
13.2.1
13.2.2
r
Remarks
OK
Remarks
OK
romQueue
with message type 0 ,
Remarks
OK
OK
Remarks
OK
essage
inserts the same into shared
SG_PROT_REQ_QUEUE_RCV
Remarks
OK
OK
OK
Remarks
OK
OK
OK
alogueId
hmIndex()
Remarks
OK
Remarks
OK
haredMemory
ed memory
Remarks
OK
Remarks
OK
eue
RCV
Remarks
OK
Remarks
OK
onse
each dilaogue Id and if
OK
Remarks
OK
OK
patchShmIndex
Remarks
OK
Remarks
OK
Outs
ceeded then clears that
he message to
e message to
Remarks
OK
Remarks
OK
nceInSec
shared memory
Remarks
OK
Remarks
SFwdQueue
e message is tried by the
Remarks
OK
Remarks
OK
sg
articular dialogue
Remarks
OK
Remarks
OK
mIndex
Remarks
OK
Remarks
Unit Test Plan Of SDDP_AseDispatcher
1.2.1
1.2.2
1.2.3
2.1.2 Create the Gateway TX Queue using the queue keys Create gateway TX
read from ipc,cfg queue
3.2.1
3.2.2
3.2.3
4.1.4
4.2.1 Checks if validity period of msg has expired Validity period is not
less than current
time .Hence deletes
the message
(Function ID:4c)
4.2.3
4b.1.2
Negative Test Cases:
Sr. No. Description Expected Result
4b.2.1
Function ID: 4c Function Name: DeleteMsg()
Function Overview: Deletes the record from ASE_MESSAGE Table when validity expires or when the maximum retry attemp
exceeds
Function Inputs: None
Function Outputs: Delete Success/Fail
Configuration/Environment:
Positive Test Cases:
Sr. No. Description Expected Result
4c.1.1 Deletes the AseMsg according to the sequence number Deleted succefully
and status
4c.1.2
4a.1.1 Updates the next retry attempt and status Updates the retry
attempt and
status(MSG_ATTEM
PTED)
Name: GgiDispatchMgr()
bmit structure
Observation Remarks
Success
OK
Observation Remarks
Name: Init
nd creates queue
Observation Remarks
Success
OK
Success
OK
Success
OK
Observation Remarks
Name: FetchMsg()
Table dispatch to the gateway Tx Queue .
Observation Remarks
Success
OK
Success
OK
Observation Remarks
Name: DispatchMsg()
Observation Remarks
Deleting Msg as the
VP is lessthan current
time.
OK
Update Success
OK
Success
Ok
Observation Remarks
Success
OK
Success
Name: ConvertToGatewayMsg()
e to Gateway message
t.
Observation Remarks
Success
OK
Observation Remarks
Name: DeleteMsg()
alidity expires or when the maximum retry attempts
Observation Remarks
Delete Success
OK
Observation Remarks
Name: UpdateMsg()
Observation Remarks
Success
OK
Observation Remarks
Unit Test Plan Of SDDP_AseRespMgr
1.1.2 Create the Gateway RX resp Queue using the Create gateway RX Success
queue keys read from ipc,cfg Response queue
1.2.1
2.1.1 Reads responses from gateway RX response Successfully read the Success
queue gateway responses
2.1.2
2.2.1
2.2.2
2.2.3
3.1.3
3.2.1 Checks errorCode is other than NO_ERROR for Negative Respose Delete message if
negative response received NACK is of
permanent error.
3.2.3
3a.1.2 check for DSR NOT required If DSR not required Success
the update the
message with state,
msg id and delete the
message
3a.2.1 Failed to get the record for the sequence number DB_NO_RECORD_F Print Logs
passed OUND_ERR
3a.2.2 If other DB Error while getting record for the increment the retry Success
seqence no attempt
3b.1.1 Check for Permanent errors , Gets the AseMsg Gets the Success
from ASE_MESSAGE table corresponding
AseMsg for
sequence no ,
update the message
with
state(MSG_PERMAN
ENT_ERROR), blank
msg id and error
code and delete the
message
3b.1.3
3b.2.1 Failed to get the record for the sequence number DB_NO_RECORD_F Print Logs
passed OUND_ERR
3b.2.2 If other DB Error while getting record for the increment the retry Success
seqence no attempt
6.2.3
gr
Remarks
OK
OK
OK
Remarks
()
nse Queue
Remarks
OK
Remarks
sg()
Remarks
OK
OK
Remarks
OK
OK
eResp
ording DSR REQ Flag
Remarks
OK
OK
OK
Remarks
OK
OK
veResp()
Remarks
OK
OK
Remarks
OK
OK
Unit Test Plan Of SDDP_AseMsgHdlr
1.1.2 Create the Gateway Rx Queue using the Create gateway RX Success
queue keys read from ipc,cfg Msg queue
1.2.1
2.1.1 Reads DSR from gateway RX Msg queue Successfully read the Success
DSR
2.1.2
Negative Test Cases:
Sr. No. Description Expected Result Observation
2.2.1
2.2.2
2.2.3
3.1.4
3.2.1 Failed to get the AseMsg for message id Inserts into Insert Success
passed DSR_RETRY table
(Function ID: 3a) with
next retry time and
number of attempts.
3.2.2 Gets the AseMsg for message id msg gets deleted Deleting message
passed :messageState :UNDELIVERABLE from database from the AseMsg
.Receives Negative Dsr with peramnat error (Function ID: 3b) table.
3.2.3 Gets the AseMsg for message id Update the message Update Success and
passed :messageState with current time as resubmits message.
:DELETED:/EXPIRED:/REJECTED:Receive next retry time
s Negative DSR with temporary error (Function ID: 3c)
3b.2.1 Couldnot find find the record with AseMsg not found Print Logs and returns
messageID while deleting from the API.
3c.1.1 Updates the record Setting current time as Successfully updated Updating
next retry time the record NEXT_RETRY_TIME
when DSR is
requested and waits
for the DSR.
3c.1.2
3c.2.1
3c.2.2
3c.1.1 Inserts the record into DSR Retry table with Message Written to Insert success. This is
MsgID, DSR Retry time ,RX data DSR_RETRY observed when the
DSR is received
before Submit
Response.
3c.1.2
3c.2.1
3c.2.2
dlr
eue
Remarks
OK
OK
OK
OK
Remarks
Remarks
OK
Remarks
Remarks
Remarks
OK
OK
OK
Status and Msg Error
Remarks
OK
Remarks
OK
Remarks
OK
Remarks
ryTable
RX data
Remarks
OK
Remarks
Unit Test Plan Of SDDP_AseDsrRetry
1.1.2 Create the Gateway Rx Queue using the queue Create gateway RX Success
keys read from ipc,cfg Msg queue
1.2.1
2.1.1 Fetches the record from DSR_RETRY table for Succefully fetched and Success
records which has retry time less than sysdate , deleted the record from
fills in the gateway request structure and deletes DSR_RETRY table
the record from DB
2.1.2
Negative Test Cases:
Sr. No. Description Expected Result Observation
2.2.1
3.1.2 Checks for MsgId in ASE_MESSAGE Table Found MsgID in Deletes the record
ASE_MESSAGE Table from the
DSR_RETRY table
and write the DSR
to Gateway Rx
Queue.
3b.1.1 Write the message to RX queue for DSR Retry Write to RX queue Success
Success
Remarks
OK
OK
OK
Remarks
Remarks
OK
Remarks
Remarks
OK
Remarks
eue()
Remarks
OK
Remarks