Get status testcase after run testcase

I want to get the status of a testcase after running that testcase and write that value to an excel file
Please help me
Thank You

you need to create an after testcase KW in custom keyword