# Getting Pass/Fail result after RF execution

**URL:** <https://forum.robotframework.org/t/getting-pass-fail-result-after-rf-execution/2400>\
**Category:** Robot Framework\
**Created:** [10 September 2021 16:26 UTC](https://forum.robotframework.org/t/getting-pass-fail-result-after-rf-execution/2400 "2021-09-10T16:26:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [11 September 2021 00:18 UTC](https://forum.robotframework.org/t/getting-pass-fail-result-after-rf-execution/2400/3 "2021-09-11T00:18:59Z")

</div>

Hi Brendan,

As always is the case in IT, there are many options and no right or wrong way, it’s really a matter of what works best for you.

Options you have (in order mentioned):

1. parse the robot results files (like you are doing) this is actually how I started with RFSwarm too. are you parsing the log.html or the output.xml file, the xml file is easier as you can use xml libraries to convert the xml to a dictionary that is easy to iterate.  
[Pro: can use any programming language you like / Con: need to wait till after execution then run a seperate process]

2. As @ericbjones mentioned you can create a keyword and call it as a teardown  
[Pro: same robot keywords as your test case so no need to learn anything new]

3. Use robot framework’s [listener api](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#id843) to report results as they happen (this is what RFSwarm uses now)  
[Pro: transparent to your test cases, so can be controlled at runtime if enabled or not, also can post passes to your issue tracker while next test continues to run / Con: need to write listeners in python or java]

There may also be other options but those are the ones I know.

> [@resourceful-idiot](#):
>
> I have written a pretty shameful script

Don’t be ashamed, any script that works for you is better than repetitively doing manual steps and everyone needs to start somewhere and practical exercises like this are a great way to learn programming.

Dave.

---

_[View the full topic](https://forum.robotframework.org/t/getting-pass-fail-result-after-rf-execution/2400)._
