Search in sources :

Example 6 with AvdManagerDialogFixture

use of com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture in project android by JetBrains.

the class BasicNativeDebuggerTest method createAVD.

private void createAVD() {
    AvdManagerDialogFixture avdManagerDialog = guiTest.ideFrame().invokeAvdManager();
    AvdEditWizardFixture avdEditWizard = avdManagerDialog.createNew();
    avdEditWizard.selectHardware().selectHardwareProfile("Nexus 5X");
    avdEditWizard.clickNext();
    avdEditWizard.getChooseSystemImageStep().selectTab("x86 Images").selectSystemImage("Nougat", "24", "x86", "Android 7.0");
    avdEditWizard.clickNext();
    avdEditWizard.getConfigureAvdOptionsStep().setAvdName(AVD_NAME).showAdvancedSettings().selectGraphicsSoftware();
    avdEditWizard.clickFinish();
    avdManagerDialog.close();
}
Also used : AvdEditWizardFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdEditWizardFixture) AvdManagerDialogFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture)

Example 7 with AvdManagerDialogFixture

use of com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture in project android by JetBrains.

the class AvdListDialogTest method testCreateAvd.

@RunIn(TestGroup.QA)
@Test
public void testCreateAvd() throws Exception {
    guiTest.importSimpleApplication();
    AvdManagerDialogFixture avdManagerDialog = guiTest.ideFrame().invokeAvdManager();
    AvdEditWizardFixture avdEditWizard = avdManagerDialog.createNew();
    avdEditWizard.selectHardware().enterSearchTerm("Nexus").selectHardwareProfile("Nexus 7");
    avdEditWizard.clickNext();
    ChooseSystemImageStepFixture chooseSystemImageStep = avdEditWizard.getChooseSystemImageStep();
    chooseSystemImageStep.selectTab("x86 Images");
    chooseSystemImageStep.selectSystemImage("Nougat", "24", "x86", "Android 7.0");
    avdEditWizard.clickNext();
    ConfigureAvdOptionsStepFixture configureAvdOptionsStep = avdEditWizard.getConfigureAvdOptionsStep();
    configureAvdOptionsStep.showAdvancedSettings();
    // check default
    configureAvdOptionsStep.requireAvdName("Nexus 7 API 24");
    configureAvdOptionsStep.setAvdName("Testsuite AVD");
    configureAvdOptionsStep.setFrontCamera("Emulated");
    avdEditWizard.clickFinish();
    guiTest.waitForBackgroundTasks();
    // Ensure the AVD was created
    avdManagerDialog.selectAvd("Testsuite AVD");
    // Then clean it up
    avdManagerDialog.deleteAvd("Testsuite AVD");
    avdManagerDialog.close();
}
Also used : AvdEditWizardFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdEditWizardFixture) AvdManagerDialogFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture) ChooseSystemImageStepFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.ChooseSystemImageStepFixture) ConfigureAvdOptionsStepFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.ConfigureAvdOptionsStepFixture) Test(org.junit.Test) RunIn(com.android.tools.idea.tests.gui.framework.RunIn)

Example 8 with AvdManagerDialogFixture

use of com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture in project android by JetBrains.

the class AvdListDialogTest method testEditAvd.

@Ignore("http://wpie20.hot.corp.google.com:8200/builders/ubuntu-studio-master-dev-uitests/builds/28/")
@Test
public void testEditAvd() throws Exception {
    guiTest.importSimpleApplication();
    makeNexus5();
    AvdManagerDialogFixture avdManagerDialog = guiTest.ideFrame().invokeAvdManager();
    AvdEditWizardFixture avdEditWizardFixture = avdManagerDialog.editAvdWithName("Nexus 5 API 24");
    ConfigureAvdOptionsStepFixture configureAvdOptionsStep = avdEditWizardFixture.getConfigureAvdOptionsStep();
    configureAvdOptionsStep.showAdvancedSettings();
    configureAvdOptionsStep.selectGraphicsHardware();
    avdEditWizardFixture.clickFinish();
    avdManagerDialog.close();
    removeNexus5();
}
Also used : AvdEditWizardFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdEditWizardFixture) AvdManagerDialogFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture) ConfigureAvdOptionsStepFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.ConfigureAvdOptionsStepFixture) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 9 with AvdManagerDialogFixture

use of com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture in project android by JetBrains.

the class LaunchAndroidApplicationTest method createAVD.

private void createAVD() {
    AvdManagerDialogFixture avdManagerDialog = guiTest.ideFrame().invokeAvdManager();
    AvdEditWizardFixture avdEditWizard = avdManagerDialog.createNew();
    avdEditWizard.selectHardware().selectHardwareProfile("Nexus 5");
    avdEditWizard.clickNext();
    avdEditWizard.getChooseSystemImageStep().selectTab("x86 Images").selectSystemImage("Nougat", "24", "x86", "Android 7.0");
    avdEditWizard.clickNext();
    avdEditWizard.getConfigureAvdOptionsStep().setAvdName(AVD_NAME);
    avdEditWizard.clickFinish();
    avdManagerDialog.close();
}
Also used : AvdEditWizardFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdEditWizardFixture) AvdManagerDialogFixture(com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture)

Aggregations

AvdManagerDialogFixture (com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdManagerDialogFixture)9 AvdEditWizardFixture (com.android.tools.idea.tests.gui.framework.fixture.avdmanager.AvdEditWizardFixture)8 ChooseSystemImageStepFixture (com.android.tools.idea.tests.gui.framework.fixture.avdmanager.ChooseSystemImageStepFixture)2 ConfigureAvdOptionsStepFixture (com.android.tools.idea.tests.gui.framework.fixture.avdmanager.ConfigureAvdOptionsStepFixture)2 Test (org.junit.Test)2 RunIn (com.android.tools.idea.tests.gui.framework.RunIn)1 MockAvdManagerConnection (com.android.tools.idea.tests.gui.framework.fixture.avdmanager.MockAvdManagerConnection)1 Ignore (org.junit.Ignore)1