I have two records which are being passed to below if else
Record1 : START SUITE: Android [ ]
Record2 : START SUITE: Android.Test the user dashboard [ ]
in the string match i am trying to differentiate these both one has Android [ ] while other is Android.
here is my conditions
if record.message ~= nil and string.match(record.message, "START SUITE: Android[ ]") then
new_record["name"] = "A"
if string.match(record.message, "START SUITE: Android.") then
getname(record.message)
new_record["name"] = "B"
end
end
Here the problem is the 1st record is coming to second condition even it don't have the Android. in the record and getting the name "B" instead of staying in 1st condition how can i resolve this?
Note: i have multiple records and getting them dynamically so that's why not adding directly Android.Test the user dashboard to the second condition to stop the entry of 1st.