예제 #1
0
  @And("^I have a Project \"(.*?)\"$")
  public void createAProject(String projectName) {

    topMenu = newMainPage.getTopMenu();
    topMenu.createNewProject(projectName);
    nameProj = projectName;
  }
예제 #2
0
  @Given("^I have the following Project$")
  public void theFollowingProject(DataTable table) {

    for (Map<String, String> map : table.asMaps(String.class, String.class)) {
      nameProj = map.get("name");
      startDate = map.get("start date");
      endDate = map.get("end date");
    }

    topMenu = newMainPage.getTopMenu();
    topMenu.createSuccessfullyProject(nameProj, startDate, endDate);
  }