Skip to content

Commit

Permalink
Locator description display in report
Browse files Browse the repository at this point in the history
Locator description should be displayed in report instead of key (qaf-tm#65)

based on (qaf-tm#68)
  • Loading branch information
NightFox7 authored Jun 14, 2018
1 parent a876610 commit 469026b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/com/qmetry/qaf/automation/step/TestStepListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> kv = new Gson().fromJson(result, Map.class);
Map<String, Object> kv = new Gson().fromJson(value, Map.class);
if (kv.containsKey("desc")) {
result = String.valueOf(kv.get("desc"));
} else if (kv.containsKey("description")) {
Expand Down

0 comments on commit 469026b

Please sign in to comment.