From 62163beebaa5fc9742eff6ca6262b9d04743a28a Mon Sep 17 00:00:00 2001 From: Rene Robert Date: Fri, 1 Feb 2019 22:00:57 +0100 Subject: corrections and README update Issue-ID: INT-846 Change-Id: I1537e02f31e91882c8b27b0484e72b1b1641c8a4 Signed-off-by: Rene Robert --- test/postman/10_Service_Order.postman_collection.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/postman/10_Service_Order.postman_collection.json') diff --git a/test/postman/10_Service_Order.postman_collection.json b/test/postman/10_Service_Order.postman_collection.json index 0903b1a3c..1668b762c 100644 --- a/test/postman/10_Service_Order.postman_collection.json +++ b/test/postman/10_Service_Order.postman_collection.json @@ -176,7 +176,11 @@ "tests[\"service_order_id exists\"] = jsonData.id === postman.getGlobalVariable(\"auto_service_order_id\");", "tests[\"service Order state is COMPLETED\"] = jsonData.state === \"COMPLETED\";", "tests[\"Service Instance state is ACTIVE\"] = jsonData.orderItem[0].service.serviceState === \"active\";", - "postman.setGlobalVariable(\"auto_service_instance_id\", \"\"+jsonData.orderItem[0].service.id+\"\");", + "", + "if(jsonData.hasOwnProperty('orderItem.service.id')){", + " postman.setGlobalVariable(\"auto_service_instance_id\", \"\"+jsonData.orderItem.service.id+\"\");", + "}", + "postman.setGlobalVariable(\"auto_service_messageInformation\", \"\"+jsonData.orderMessage[0].messageInformation+\"\");", "" ] } -- cgit 1.2.3-korg