-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathProjectSteps.java
More file actions
36 lines (27 loc) · 936 Bytes
/
ProjectSteps.java
File metadata and controls
36 lines (27 loc) · 936 Bytes
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
package steps;
import org.jbehave.scenario.annotations.AfterScenario;
import org.jbehave.scenario.annotations.BeforeScenario;
import org.jbehave.scenario.annotations.Given;
import org.jbehave.scenario.annotations.When;
import org.jbehave.scenario.steps.Steps;
import pageobjects.PackageExplorer;
import pageobjects.Workbench;
import domain.WorkingProject;
public class ProjectSteps extends Steps {
@BeforeScenario
public void closeWelcome() throws Exception {
Workbench.closeWelcomeView();
}
@Given("I have a new project")
public void createNewProject() throws Exception{
WorkingProject.create();
}
@When("I right click the project on the Package Explorer and select \"$menuItem\"")
public void rightClick(String menuItem) throws Exception {
PackageExplorer.rightClick(WorkingProject.project(), menuItem);
}
@AfterScenario()
public void removeProject() throws Exception{
// WorkingProject.delete();
}
}