How to create a test condition when the data source may return "Method Invocation returned NO Data"?

How to create a test condition when the data source may return "Method Invocation returned NO Data"?

book

Article ID: KB0087935

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Resolution:
Description:
==========
Customer is using a data source which will return expected results or "Method Invocation returned NO Data". How to create the test condition in this situation?

Environment:
===========
All

Resolution:
==========
In fact, if the datasource returns no data in the rulebase, no action will be triggered no matter what the test condition is. So your test condition only need to consider the expected results.

If you want to perform some actions when it returns no data, you can implement your rulebase like this.
1) Use the data source you want to monitor. When the returned result is expected, create a post condition to mark it.
2) Use an always available data source (e.g self:getUptime()), set the test condition to monitor the post condition sent by the first data source. If the post condition does not exist, that means the first data source returns "no data".

Issue/Introduction

How to create a test condition when the data source may return "Method Invocation returned NO Data"?