Get previous interface status

Hopefully add a feature that can get previous interface test status. For example, I have two interfaces, demo1 and demo2. Now demo2 wants to get demo1 test status so that can determine if needed to continuous execution or not.

By programming:
If (demo1. status === ‘Pass’) {
} else {