XCUIDevice+FBHealthCheck.h 839 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. */
  9. #import <XCTest/XCTest.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface XCUIDevice (FBHealthCheck)
  12. /**
  13. Checks health of XCTest by:
  14. 1) Querying application for some elements,
  15. 2) Triggering some device events.
  16. !!! Health check might modify simulator state so it should only be called in-between testing sessions
  17. @param application application used to issue queries
  18. @return YES if the operation succeeds, otherwise NO.
  19. */
  20. - (BOOL)fb_healthCheckWithApplication:(nullable XCUIApplication *)application;
  21. @end
  22. NS_ASSUME_NONNULL_END