Search in sources :

Example 1 with FalconScreenshotStrategy

use of tools.fastlane.screengrab.FalconScreenshotStrategy in project Rocket by mozilla-tw.

the class SettingsScreenshot method setUp.

@Before
public void setUp() {
    new BeforeTestTask.Builder().build().execute();
    activityTestRule.launchActivity(new Intent());
    Screengrab.setDefaultScreenshotStrategy(new FalconScreenshotStrategy(activityTestRule.getActivity()));
}
Also used : Intent(android.content.Intent) FalconScreenshotStrategy(tools.fastlane.screengrab.FalconScreenshotStrategy) Before(org.junit.Before)

Example 2 with FalconScreenshotStrategy

use of tools.fastlane.screengrab.FalconScreenshotStrategy in project Rocket by mozilla-tw.

the class DownloadScreenshot method setUp.

@Before
public void setUp() {
    context = InstrumentationRegistry.getInstrumentation().getTargetContext();
    new BeforeTestTask.Builder().build().execute();
    // Start main activity
    activityRule.launchActivity(new Intent());
    Screengrab.setDefaultScreenshotStrategy(new FalconScreenshotStrategy(activityRule.getActivity()));
    sessionLoadedIdlingResource = new SessionLoadedIdlingResource(activityRule.getActivity());
}
Also used : SessionLoadedIdlingResource(org.mozilla.focus.helper.SessionLoadedIdlingResource) Intent(android.content.Intent) FalconScreenshotStrategy(tools.fastlane.screengrab.FalconScreenshotStrategy) Before(org.junit.Before)

Example 3 with FalconScreenshotStrategy

use of tools.fastlane.screengrab.FalconScreenshotStrategy in project Rocket by mozilla-tw.

the class MyShotScreenshot method setUp.

@Before
public void setUp() {
    new BeforeTestTask.Builder().build().execute();
    activityTestRule.launchActivity(new Intent());
    sessionLoadedIdlingResource = new SessionLoadedIdlingResource(activityTestRule.getActivity());
    Screengrab.setDefaultScreenshotStrategy(new FalconScreenshotStrategy(activityTestRule.getActivity()));
}
Also used : SessionLoadedIdlingResource(org.mozilla.focus.helper.SessionLoadedIdlingResource) Intent(android.content.Intent) FalconScreenshotStrategy(tools.fastlane.screengrab.FalconScreenshotStrategy) Before(org.junit.Before)

Example 4 with FalconScreenshotStrategy

use of tools.fastlane.screengrab.FalconScreenshotStrategy in project Rocket by mozilla-tw.

the class OnboardingScreenshot method setUp.

@Before
public void setUp() {
    new BeforeTestTask.Builder().setSkipFirstRun(false).build().execute();
    activityTestRule.launchActivity(new Intent());
    Screengrab.setDefaultScreenshotStrategy(new FalconScreenshotStrategy(activityTestRule.getActivity()));
}
Also used : BeforeTestTask(org.mozilla.focus.helper.BeforeTestTask) Intent(android.content.Intent) FalconScreenshotStrategy(tools.fastlane.screengrab.FalconScreenshotStrategy) Before(org.junit.Before)

Aggregations

Intent (android.content.Intent)4 Before (org.junit.Before)4 FalconScreenshotStrategy (tools.fastlane.screengrab.FalconScreenshotStrategy)4 SessionLoadedIdlingResource (org.mozilla.focus.helper.SessionLoadedIdlingResource)2 BeforeTestTask (org.mozilla.focus.helper.BeforeTestTask)1