From 469026b4e417d313bfb4c97cc3b9f975a84abecd Mon Sep 17 00:00:00 2001 From: Aymen Bouchekoua Date: Thu, 14 Jun 2018 12:01:13 +0200 Subject: [PATCH] Locator description display in report Locator description should be displayed in report instead of key (#65) based on (#68) --- src/com/qmetry/qaf/automation/step/TestStepListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/qmetry/qaf/automation/step/TestStepListener.java b/src/com/qmetry/qaf/automation/step/TestStepListener.java index 1cc1b2c1..055192ef 100644 --- a/src/com/qmetry/qaf/automation/step/TestStepListener.java +++ b/src/com/qmetry/qaf/automation/step/TestStepListener.java @@ -276,10 +276,11 @@ private String processArgs(String description, Object... actualArgs) { private String getParam(String text) { String result = getBundle().getSubstitutor().replace(text); - ParamType ptype = ParamType.getType(result); + String value = String.valueOf(getBundle().getObject(result)); + ParamType ptype = ParamType.getType(value); if (ptype.equals(ParamType.MAP)) { @SuppressWarnings("unchecked") - Map kv = new Gson().fromJson(result, Map.class); + Map kv = new Gson().fromJson(value, Map.class); if (kv.containsKey("desc")) { result = String.valueOf(kv.get("desc")); } else if (kv.containsKey("description")) {