Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa28d8ef authored by Nergi Rahardi's avatar Nergi Rahardi
Browse files

Add screen record annotation to better debug failing/flaky tests

Bug: 432227275
Test: m
Flag: EXEMPT add test annotation
Change-Id: I8cf7b19d85a853926b30e1864930bf8adb2464cd
parent e3dc46d7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.wm.shell.functional

import android.platform.test.annotations.Presubmit
import android.platform.test.rule.ScreenRecordRule
import com.android.wm.shell.scenarios.DragMoveWindowToNextDisplay
import org.junit.runner.RunWith
import org.junit.runners.BlockJUnit4ClassRunner
@@ -24,4 +25,5 @@ import org.junit.runners.BlockJUnit4ClassRunner
/* Functional test for [DragMoveWindowToNextDisplay]. */
@RunWith(BlockJUnit4ClassRunner::class)
@Presubmit
@ScreenRecordRule.ScreenRecord
class DragMoveWindowToNextDisplayTest : DragMoveWindowToNextDisplay()
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.graphics.Point
import android.hardware.display.DisplayManager
import android.platform.test.annotations.RequiresFlagsEnabled
import android.platform.test.flag.junit.DeviceFlagsValueProvider
import android.platform.test.rule.ScreenRecordRule
import android.tools.NavBar
import android.tools.Rotation
import android.tools.traces.parsers.WindowManagerStateHelper
@@ -59,6 +60,8 @@ abstract class DragMoveWindowToNextDisplay {
    val testSetupRule = Utils.testSetupRule(NavBar.MODE_GESTURAL, Rotation.ROTATION_0)
    @get:Rule(order = 2) val connectedDisplayRule = SimulatedConnectedDisplayTestRule()
    @get:Rule(order = 3) val desktopMouseRule = DesktopMouseTestRule()
    @get:Rule(order = 4)
    val screenRecordRule = ScreenRecordRule(/* keepTestLevelRecordingOnSuccess= */ false)

    @Before
    fun setup() {