Package org.zanata.workflow

Examples of org.zanata.workflow.LoginWorkFlow


    @Feature(summary = "The user can create a project",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 144262)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    @Category(BasicAcceptanceTest.class)
    public void createABasicProject() throws Exception {
        assertThat(new LoginWorkFlow().signIn("admin", "admin").loggedInAs())
                .isEqualTo("admin")
                .as("User logs in");

        ProjectVersionsPage projectVersionsPage = new ProjectWorkFlow()
                .createNewSimpleProject("basicproject", "basicproject");
View Full Code Here


        HashMap<String, String> projectSettings = projectDefaults();
        projectSettings.put("Project ID", "descriptionproject");
        projectSettings.put("Name", "Project With Description Test");
        projectSettings.put("Description", "Project Description!");

        assertThat(new LoginWorkFlow().signIn("admin", "admin").loggedInAs())
                .isEqualTo("admin")
                .as("Admin can log in");

        ProjectBasePage projectPage =
                new ProjectWorkFlow().createNewProject(projectSettings);
View Full Code Here

                .concat(File.separator);

        if (new File(documentStorageDirectory).exists()) {
            log.warn("Document storage directory exists (cleanup incomplete)");
        }
        new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

    @Before
    public void before() {
        new ZanataRestCaller().createProjectAndVersion("doctype-test",
                "doctype-upload", "File");
        new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

                .concat(File.separator);

        if (new File(documentStorageDirectory).exists()) {
            log.warn("Document storage directory exists (cleanup incomplete)");
        }
        new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

            restCaller.createProjectAndVersion(projectSlug, iterationSlug,
                    "gettext");
            restCaller.postSourceDocResource(projectSlug, iterationSlug,
                    resource, false);
        }
        dashboard = new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

// "This test class only sets up test data on server. It's not verifying any TM features.")
public class TransMemoryTest extends ZanataTestCase {

    @Test(timeout = Constants.FIFTY_SEC)
    public void pushTransMemoryProject() {
        new LoginWorkFlow().signIn("admin", "admin");
        LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
        languageWorkFlow.addLanguageAndJoin("en-US");
        languageWorkFlow.addLanguageAndJoin("zh-CN");

        ProjectWorkFlow projectWorkFlow = new ProjectWorkFlow();
View Full Code Here

        // assertThat(exitCode, Matchers.equalTo(0));
    }

    @Test(timeout = Constants.FIFTY_SEC)
    public void pushTransMemoryProjectWithDifferentProjectName() {
        new LoginWorkFlow().signIn("admin", "admin");
        LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
        languageWorkFlow.addLanguageAndJoin("en-US");
        languageWorkFlow.addLanguageAndJoin("zh-CN");

        ProjectWorkFlow projectWorkFlow = new ProjectWorkFlow();
View Full Code Here

    private static CreateVersionGroupPage groupPage;

    @BeforeClass
    public static void loginToStart() {
        new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

    private ZanataRestCaller restCaller;

    @Before
    public void setUp() {
        dashboardPage = new LoginWorkFlow().signIn("admin", "admin");
    }
View Full Code Here

TOP

Related Classes of org.zanata.workflow.LoginWorkFlow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.