Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 951 Bytes

ui_test_guideline.md

File metadata and controls

15 lines (14 loc) · 951 Bytes

UI Test Guideline

  • Test method naming convention should be as follow: givenPreconditionsWhenStateUnderTestThenExpectedBehavior
  • Each test method should have related Jira link just as below:
     /**
     * @see https://****.com/browse/MLBS-881
     */
    @Test
    fun givenPreconditionsThenExpectedBehavior()
  • Emulator device's cpu/abi should be x86_64 to prevent "Process instrumentation crashed..." error when tests are running.
  • Window animation scale, Transition animation scale and Animator duration scale options should be setted as "Animation off" in the developer options to prevent crashes when the element is not found because of the animations.
  • Regression tests should be run with real-data on Prod server. All the other tests should be run with mock-data on Stage server.
  • In order to run tests on Prod server, com.trendyol.regressiontests=true parameter should be added into gradle.properties file.