Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 00c07840c26537a575742bded46212503d3e6a31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Copyright (c) 2015 Eike Stepper (Loehne, Germany) and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v20.html
 *
 * Contributors:
 *    Eike Stepper - initial API and implementation
 */
package org.eclipse.oomph.setup.installer.tests;

import org.eclipse.oomph.ui.tests.AbstractUITest;

import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;

import java.io.File;

/**
 * @author Eike Stepper
 */
@FixMethodOrder(MethodSorters.JVM)
public class InstallerTests extends AbstractUITest
{
  @Override
  public void setUp() throws Exception
  {
    super.setUp();

    File userHome = getUserHome();
    System.out.println(userHome);
  }

  @Test
  public void test1()
  {
    // SWTBotShell shell = bot.activeShell();
    //
    // // Create a project
    // bot.menu("File").menu("New").menu("Project...").click();
    // bot.shell("New Project").activate();
    // bot.tree().expandNode("General").select("Project");
    // bot.button("Next >").click();
    // bot.textWithLabel("Project name:").setText("test project");
    // bot.button("Finish").click();
    // shell.activate();

    // Widget widget = bot.widget(withId("productTree"));

    bot.treeWithId("productTree").getTreeItem("Eclipse.org").getNode("Eclipse IDE for Java Developers").select();
    bot.comboBox().setSelection("Latest (Mars)");
    // bot.toolbarButtonWithTooltip("Manage Virtual Machines...").click();
    // bot.tree().getTreeItem("System").getNode("C:\\Program Files\\Java\\jdk1.7.0_75\\jre (Current)").select();
    // bot.button("OK").click();
    bot.button("Next >").click();
    bot.button("Next >").click();
    // bot.textWithLabel("Installation folder name:").setText("java-latest2");
    bot.button("Next >").click();
    bot.button("Finish").click();
    bot.checkBox("Launch automatically").click();
  }
}

Back to the top