Added When enum which tells if TakeScreenshot event is fired before or after test
Added TestResult to ResourceMetaData