public void TCAdmin27_VerifyExportedAllUsersDataTest() { selectAllUsersOption = TestData.GetData("TCAdmin27_SelectAllUsersOption"); userIdValue = TestData.GetData("TCAdmin27_UserIdValue"); AdminFunctions objAdminFunctions = new AdminFunctions(TestProgressLogger); AdminCommonFunctions objAdminCommonFunctions = new AdminCommonFunctions(TestProgressLogger); AdminUsersPage objAdminUsersPage = new AdminUsersPage(TestProgressLogger); GenericUtils genericUtils = new GenericUtils(TestProgressLogger); try { TestProgressLogger.StartTest(); // This method is used to Delete all files from the Folder genericUtils.DeleteAllFiles(); // Login as admin -> Click on "Users" menu button -> Users Tab objAdminUsersPage.SelectAdminUserTab(); // Verify the "All users" exported csv file in the Admin UI Assert.True(objAdminUsersPage.VerifyExportAllusers(selectAllUsersOption, userIdValue)); } catch (NoSuchElementException ex) { TestProgressLogger.TakeScreenshot(); TestProgressLogger.LogCheckPoint(ex.Message + ex.StackTrace); TestProgressLogger.LogError(String.Format(LogMessage.VerifyAllUsersExportedCSVFileFailed), ex); throw ex; } catch (Exception e) { TestProgressLogger.TakeScreenshot(); TestProgressLogger.LogCheckPoint(e.Message + e.StackTrace); TestProgressLogger.LogError(String.Format(LogMessage.VerifyAllUsersExportedCSVFileFailed), e); throw e; } finally { objAdminCommonFunctions.UserMenuBtn(); objAdminFunctions.AdminLogOut(); TestProgressLogger.EndTest(); } }