Examples of PythonTestScript


Examples of com.qspin.qtaste.ui.tools.PythonTestScript

                }
                // generate doc if necessary
                NonWrappingTextPane tsPane = getTcSourceTextPane();
                if (tsPane != null) {
                    File tsFile = new File(tsPane.getFileName());
                    PythonTestScript pScript = new PythonTestScript(tsFile, getTestSuiteDirectory());
                    if (pScript.isDocSynchronized()) {
                        return;
                    }
                    // re-generate the doc
                    parent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                    pScript.generateDoc();
                    HTMLDocumentLoader loader = new HTMLDocumentLoader();
                    HTMLDocument doc;
                    try {
                        File tcDoc = pScript.getTestcaseDoc();
                        if (tcDoc != null) {
                            doc = loader.loadDocument(tcDoc.toURI().toURL());
                            setTestCaseInfo(doc);
                        } else {
                            setTestCaseInfo(null);
View Full Code Here

Examples of com.qspin.qtaste.ui.tools.PythonTestScript

                File testcaseRequirement = fn.getPythonTestScript().getTestcaseRequirements();
                if (testcaseRequirement != null) {
                    setTestCaseRequirement(testcaseRequirement, false);
                }
                //  regenerate the doc if file date of script > file date of doc
                PythonTestScript script = fn.getPythonTestScript();
                boolean generateDoc =  testCasePane.isDocTabSelected() && !script.isDocSynchronized();
               
                if (generateDoc) {                 
                    testCasePane.parent.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                    script.generateDoc();
                    // Generate the documentation
                  setTestCaseDoc(script.getTestcaseDoc(), false);
                    testCasePane.parent.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
                }
                else
                  // update the screen with the doc of the selected test script
                  setTestCaseDoc(script.getTestcaseDoc(), false);
                // Get the user preferences to display the testcase tab
                GUIConfiguration guiConfiguration = GUIConfiguration.getInstance();
                String testCaseTabOnSelect = "none"; // default
                if (guiConfiguration.containsKey(TEST_CASE_TAB_ON_SELECT_PROPERTY)) {
                    testCaseTabOnSelect = guiConfiguration.getString(TEST_CASE_TAB_ON_SELECT_PROPERTY).toLowerCase();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.