Discussion posts and replies are publicly visible
The username which you entered is not exist. please try to use another username.
username is the which we use to login into the environment?
thank you
If you know for sure that the value you're going to pass is a User object, then use the correct rule input datatype. If you're not sure (for example, the data might be read from a database table which doesn't support the Appian User datatype and thus would have to be stored as Text) then you'd use Text as your rule input datatype. You'd then need to firstly check that the value passed is an actual User in your Appian environment before running any user-oriented functions on it. Note that fn!user() will automatically try to cast the value passed to it to type User so you don't need to run fn!touser() on the value if you already know it's a valid User.
thanks for the detailed explanation, finally got it
can you share a documentation page on how to write test cases?
https://docs.appian.com/suite/help/22.2/Expression_Rule_Testing.html
(note: this is public documentation and is searchable)
can you tell me the difference between assertion output and actual output?
Expected result versus actual result.
okay ..while writing the test cases, we give test inputs, and specify the asserted(expected) output in the value right?
also mention the type of expected output
Yes...but typically you'd try a set of values in Ad Hoc mode, and then convert that to a Test Case when you were happy with it. The Test Case will automatically pick the Type for you.