SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SecondTest : JankTestBase() {
  2.  
  3.     @JankTest(
  4.         beforeTest = "launchApp",
  5.         expectedFrames = EXPECTED_FRAMES,
  6.         defaultIterationCount = 1
  7.     )
  8.     @GfxMonitor(processName = PACKAGE_NAME)
  9.     fun testSecond() {
  10.         for (i in 0 until INNER_LOOP) {
  11.             val appViews = UiScrollable(UiSelector().scrollable(true))
  12.             appViews.setAsVerticalList()
  13.             appViews.scrollTextIntoView("This is item 24")
  14.             appViews.scrollTextIntoView("This is item 1")
  15.         }
  16.         SystemClock.sleep(200)
  17.     }
  18.  
  19.     companion object {
  20.         private const val INNER_LOOP = 2
  21.         private const val EXPECTED_FRAMES = 450
  22.         private const val PACKAGE_NAME = "com.marcosholgado.performancetest"
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top