How can we capture the boolean (pass/fail) result of following during/after execution into a property or a variable whic can be saved?
1. An Assertion
2. Test Step
3. Test Case
1. You can use Java Script to save assertion result in property. You can code like below:
List<Assertion> assertionList =tesexec.getLastNode().getAssertions();
String detail = assertionList.get(0).getFailDetail();
or String value=assertionList.get(0).getValueToAssertPropKey();
There are multiple functions that you can use with assertion.
2. For Test Step/ Test Case result: if it will get fail, it will abort the Test Case, it will be difficult for you to capture it in property. So you can save the results using assertions and java script step. like if/else condition.
Hope that helped.
For Assertion please refer the below thread as it helped me to capture the result of an Assertion :
Retrieving data ...