lisa.vse.request object -  Optional field/null characters are added by default
search cancel

lisa.vse.request object -  Optional field/null characters are added by default

book

Article ID: 410104

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

The VS has all of below request data as arguments in VSI and during playback getting a META match (which has Match Style=Operation) instead of a specific match because of the null values for DateIn and DateOut.

The JSON request with null values for the data are captured during recording and playback and causing issue in 10.8.4.

{
  "Name": "Test",
  "Number": "1234.123",
  "DateIn": null,
  "DateOut": null,
  "Guests": 2,
  "radius": "80",
  "desc": "Reservation"
}

 For example, the above JSON request is parsed with different arguments as below in different versions.

In 10.7.2:
{
  "Name": "Test",
  "Number": "1234.123",
  "Guests": 2,
  "radius": "80",
  "desc": "Reservation"
}
 
In 10.8.4:
{
  "Name": "Test",
  "Number": "1234.123",
  "DateIn": null,
  "DateOut": null,
  "Guests": 2,
  "radius": "80",
  "desc": "Reservation"
}

It appears null/optional data are getting added during transformation by the DevTest framework itself. This is impacting both record & playback features.

Environment

DevTest 10.8.4

Cause

The request to parse all arguments including the one's have null values are implemented in the latest versions of DevTest. With the change, now DateIn & DateOut arguments are parsed and showing during and in playback in VSE-->Inspection View.

Resolution

If the JSON request doesn't need to parse the null values, please open a support case and ask for patch patch_DE646815_10.8.4_GA.jar.

Additional Information

Steps to apply patch, this patch goes on both the Workstation and all VSE servers:

1. Stop Workstation and all VSEs.

2. Edit the local.properties file on Workstation and all VSEs.  Add this property:

lisa.json.include.null.value.keys=false

3. Download the patch and place it in the DEVTEST_HOME\lib\patches folder.  If a patches folder does not exist, create one.

4. Start the Workstation and all VSEs.