Package org.zanata.workflow

Examples of org.zanata.workflow.ProjectWorkFlow


    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void handleVeryLongFileNames() {
        File longFile = testFileGenerator.generateTestFileWithContent(
                testFileGenerator.longFileName(), ".txt",
                "This filename is long");
        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here


    public void emptyFile() {
        File emptyFile = testFileGenerator
                .generateTestFileWithContent("emptyFile", ".txt", "");
        assumeTrue("File is empty", emptyFile.length() == 0);

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void rejectUnsupportedValidFiletype() {
        File unsupportedFile = testFileGenerator
                .generateTestFileWithContent("testfodt", ".fodt", "<xml></xml>");

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

            tcmsTestPlanIds = { 5316 } )
    public void uploadFileTypeDocument(File testFile) throws Exception {
        String testFileName = testFile.getName();
        log.info("[uploadFile] "+testFileName);

        VersionDocumentsPage versionDocumentsPage = new ProjectWorkFlow()
                .goToProjectByName("doctype-test")
                .gotoVersion("doctype-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

        File secondFile = testFileGenerator.generateTestFileWithContent(
                "multiuploadInFilesystem2", ".txt",
                "This is another test file");
        String testFileName = firstFile.getName();

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("multi-upload")
                .gotoVersion("multi-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void removeFileFromUploadList() {
        File keptUploadFile = testFileGenerator.generateTestFileWithContent(
                "removeFileFromUploadList", ".txt", "Remove File Upload Test");

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("multi-upload")
                .gotoVersion("multi-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

        new LoginWorkFlow().signIn("admin", "admin");
        LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
        languageWorkFlow.addLanguageAndJoin("en-US");
        languageWorkFlow.addLanguageAndJoin("zh-CN");

        ProjectWorkFlow projectWorkFlow = new ProjectWorkFlow();
        ProjectBasePage projectPage =
                projectWorkFlow.createNewSimpleProject("trans-memory",
                        "trans memory test");
        projectWorkFlow.createNewProjectVersion("trans memory test", "master");

        // int exitCode = new ClientWorkFlow().mvnPush("trans-memory",
        // "-Dzanata.merge=import", "-Dzanata.projectVersion=master",
        // "-Dzanata.pushType=Both");
View Full Code Here

        new LoginWorkFlow().signIn("admin", "admin");
        LanguageWorkFlow languageWorkFlow = new LanguageWorkFlow();
        languageWorkFlow.addLanguageAndJoin("en-US");
        languageWorkFlow.addLanguageAndJoin("zh-CN");

        ProjectWorkFlow projectWorkFlow = new ProjectWorkFlow();
        ProjectBasePage projectPage =
                projectWorkFlow.createNewSimpleProject("trans-memory-v2",
                        "trans memory test v2");
        projectWorkFlow.createNewProjectVersion("trans memory test v2",
                "master");

// @formatter:off
//      int exitCode = new ClientWorkFlow().mvnPush("trans-memory",
//            "-Dzanata.projectConfig=differentProject/zanata.xml",
View Full Code Here

                "basichtml", "." + extension,
                "<html><body>Line One<p>Line Two<p>Line Three</body></html>");
        zanataRestCaller.createProjectAndVersion(extension+"-translate",
                extension, "file");

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName(extension+"-translate")
                .gotoVersion(extension)
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void translateBasicOdsFile() {
        File testfile = testFileGenerator.openTestFile("test-ods.ods");
        zanataRestCaller.createProjectAndVersion("ods-translate", "ods", "file");

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("ods-translate")
                .gotoVersion("ods")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

TOP

Related Classes of org.zanata.workflow.ProjectWorkFlow

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.