Is it possible to do something after a test has completed based on the result of that test? E.g., I want to make an api call to an app I'm writing that does visual reports of test runs. It should tell the api whether the test passed or failed.
You can execute any code when a test task is finished if you use Programming Interface to run tests.
Additionally you can create your own custom test reporter that allows to perform any actions when each test is done (see Reporter Plugin).