As an example, in your data driven testing, you should be using a variable to store the value of username i.e. expectedUsername.
If you get the text from your UI control (Login Name), and store that into a variable, i.e. actualUsername.
You can then do something like this,
function Test()
{
var expectedUsername = 'testgdpr2';
var actualUsername = 'testgdpr2';
aqObject.CompareProperty(expectedUsername, cmpEqual, actualUsername, true);
if (aqString.Compare(expectedUsername, actualUsername, true)) {
Log.Error("Username is different");
}
}
Using either CompareProperty or Compare methods. You should be able to do the same with keyword testing. Ensure you get the correct property value from your UI control, as it might be wText, contentText etc.