checkResultWithAlert