FBCapabilities.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 <Foundation/Foundation.h>
  10. /** Whether to use alternative elements visivility detection method */
  11. extern NSString* const FB_CAP_USE_TEST_MANAGER_FOR_VISIBLITY_DETECTION;
  12. /** Set the maximum amount of characters that could be typed within a minute (60 by default) */
  13. extern NSString* const FB_CAP_MAX_TYPING_FREQUENCY;
  14. /** this setting was needed for some legacy stuff */
  15. extern NSString* const FB_CAP_USE_SINGLETON_TEST_MANAGER;
  16. /** Whether to disable screneshots that XCTest automaticallly creates after each step */
  17. extern NSString* const FB_CAP_DISABLE_AUTOMATIC_SCREENSHOTS;
  18. /** Whether to terminate the application under test after the session ends */
  19. extern NSString* const FB_CAP_SHOULD_TERMINATE_APP;
  20. /** The maximum amount of seconds to wait for the event loop to become idle */
  21. extern NSString* const FB_CAP_EVENT_LOOP_IDLE_DELAY_SEC;
  22. /** Bundle identifier of the application to run the test for */
  23. extern NSString* const FB_CAP_BUNDLE_ID;
  24. /**
  25. Usually an URL used as initial link to run Mobile Safari, but could be any other deep link.
  26. This might also work together with `FB_CAP_BUNLDE_ID`, which tells XCTest to open
  27. the given deep link in the particular app.
  28. Only works since iOS 16.4
  29. */
  30. extern NSString* const FB_CAP_INITIAL_URL;
  31. /** Whether to enforrce (re)start of the application under test on session startup */
  32. extern NSString* const FB_CAP_FORCE_APP_LAUNCH;
  33. /** Whether to wait for quiescence before starting interaction with apps laucnhes in scope of the test session */
  34. extern NSString* const FB_CAP_SHOULD_WAIT_FOR_QUIESCENCE;
  35. /** Array of command line arguments to be passed to the application under test */
  36. extern NSString* const FB_CAP_ARGUMENTS;
  37. /** Dictionary of environment variables to be passed to the application under test */
  38. extern NSString* const FB_CAP_ENVIRNOMENT;
  39. /** Whether to use native XCTest caching strategy */
  40. extern NSString* const FB_CAP_USE_NATIVE_CACHING_STRATEGY;
  41. /** Whether to enforce software keyboard presence on simulator */
  42. extern NSString* const FB_CAP_FORCE_SIMULATOR_SOFTWARE_KEYBOARD_PRESENCE;
  43. /** Sets the application state change timeout for the initial app startup */
  44. extern NSString* const FB_CAP_APP_LAUNCH_STATE_TIMEOUT_SEC;