KPSA Provtest sample. How to validate a Service Order.

KPSA Provtest sample. How to validate a Service Order.

book

Article ID: KB0088688

calendar_today

Updated On:

Products Versions
TIBCO KPSA - Mobile -
Not Applicable -

Description

Resolution:
Description:
============
The purpose is to demonstrate how TIBCO KPSA Provtest can be used to easily setup a non-regression test for a piece of the KPSA flow (stream module).

Environment:
===========
TIBCO KPSA Mobile or Broadband 3.5+

Assumption:
==========
The module being unit tested has the following logic :

- if the dataset of the Service Order contains a parameter "Profile" with value "Gold", "Silver" or "Bronze", then the message is valid and put on port "good"

- else the message is not valid and is put on port "fail"

Note: Here the module is a CommandEval Script module (cesmodule) + a Basic.ces configuration file (that contains the logic).

Resolution:
=========
Two things are needed for the unit test environment :

1). A script file to execute automatically all required commands, clobber/start a new node, load the required components specified into a kds file, and call provtest. An example is attached to this article (filename sample.tgz).

2). A Provtest XML file to specify the flow to load and the different tests to run. In the demo, one test for a valid message, one with an empty value (invalid) and one with a wrong value.

To run the demo:

1). Download the file sample.tgz and untar it in your user directory.
2). Make sure KPSA is properly installed in SW_HOME (KPSA-3.5 was used here).
3). Execute the command : ./start.ksh

Attachments:
===========
sample.tgz

Issue/Introduction

KPSA Provtest sample. How to validate a Service Order.

Attachments

KPSA Provtest sample. How to validate a Service Order. get_app