public void CreateProject(TemplateSelectionOptions templateOptions, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { var newProject = new NewProjectController(); if (projectDetails.AddProjectToExistingSolution) { newProject.Open(projectDetails.SolutionName); } else { newProject.Open(); } TakeScreenShot("Open"); OnSelectTemplate(newProject, templateOptions); OnEnterTemplateSpecificOptions(newProject, projectDetails.ProjectName, miscOptions); OnEnterProjectDetails(newProject, projectDetails, gitOptions, miscOptions); OnClickCreate(newProject, projectDetails); FoldersToClean.Add(projectDetails.SolutionLocation); }
void TestFolderPreview(GitOptions gitOptions, bool projectWithinSolution) { var projectDetails = new ProjectDetails { ProjectName = projectName, SolutionName = solutionName, SolutionLocation = solutionLocation, ProjectInSolution = projectWithinSolution }; ctrl.Open(); OnSelectTemplate(ctrl, templateOptions); OnEnterProjectDetails(ctrl, projectDetails, gitOptions); ctrl.ValidatePreviewTree(projectDetails, gitOptions); ctrl.Close(); }
public void CreateProject(TemplateSelectionOptions templateOptions, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { var newProject = new NewProjectController(); newProject.Open(); TakeScreenShot("Open"); OnSelectTemplate(newProject, templateOptions); OnEnterTemplateSpecificOptions(newProject, projectDetails.ProjectName, miscOptions); OnEnterProjectDetails(newProject, projectDetails, gitOptions, miscOptions); OnClickCreate(newProject); }
public void CreateBuildProject(string projectName, string categoryRoot, string category, string kindRoot, string kind, Action beforeBuild) { var solutionParentDirectory = Util.CreateTmpDir(projectName); string actualSolutionDirectory = string.Empty; try { var newProject = new NewProjectController(); newProject.Open(); SelectTemplate(newProject, categoryRoot, category, kindRoot, kind); Assert.IsTrue(newProject.Next()); // Wait until the next page is displayed Session.WaitForElement(c => c.Textfield().Marked("solutionNameTextBox")); EnterProjectDetails(newProject, projectName, projectName, solutionParentDirectory); Assert.IsTrue(newProject.CreateProjectInSolutionDirectory(false)); Assert.IsTrue(newProject.UseGit(true, false)); Session.RunAndWaitForTimer(() => newProject.Next(), "Ide.Shell.SolutionOpened"); actualSolutionDirectory = GetSolutionDirectory(); beforeBuild(); Assert.IsTrue(Ide.BuildSolution()); } finally { Ide.CloseAll(); try { if (Directory.Exists(actualSolutionDirectory)) { Directory.Delete(actualSolutionDirectory, true); } } catch (IOException) { } } }
public void CreateProject (TemplateSelectionOptions templateOptions, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { PrintToTestRunner (templateOptions, projectDetails, gitOptions, miscOptions); var newProject = new NewProjectController (); if (projectDetails.AddProjectToExistingSolution) newProject.Open (projectDetails.SolutionName); else newProject.Open (); TakeScreenShot ("Open"); OnSelectTemplate (newProject, templateOptions); OnEnterTemplateSpecificOptions (newProject, projectDetails.ProjectName, miscOptions); OnEnterProjectDetails (newProject, projectDetails, gitOptions, miscOptions); OnClickCreate (newProject, projectDetails); FoldersToClean.Add (projectDetails.SolutionLocation); }
protected void IsTemplateSelected (TemplateSelectionOptions templateOptions, string addToExistingSolution = null) { var newProject = new NewProjectController (); try { newProject.WaitForOpen (); } catch (TimeoutException) { if (!string.IsNullOrEmpty (addToExistingSolution)) newProject.Open (addToExistingSolution); else newProject.Open (); } newProject.IsSelected (templateOptions); }
public void CreateProject (TemplateSelectionOptions templateOptions, ProjectDetails projectDetails, GitOptions gitOptions = null, object miscOptions = null) { var newProject = new NewProjectController (); newProject.Open (); TakeScreenShot ("Open"); OnSelectTemplate (newProject, templateOptions); OnEnterTemplateSpecificOptions (newProject, projectDetails.ProjectName, miscOptions); OnEnterProjectDetails (newProject, projectDetails, gitOptions, miscOptions); OnClickCreate (newProject); }