Log the error and return boolean value indicating whether error occurred or not
(err error, testName string)
| 109 | |
| 110 | //Log the error and return boolean value indicating whether error occurred or not |
| 111 | func handleError(err error, testName string) bool { |
| 112 | if(nil != err) { |
| 113 | util.GetLogger().Errorw("Error occurred while invoking api for test:" +testName, "err", err) |
| 114 | return true |
| 115 | } |
| 116 | return false |
| 117 | } |
| 118 | |
| 119 | //support function to return auth token after log in |
| 120 | //TODO : if token is valid, don't call api again, error handling in invoking functions |
searching dependent graphs…