Example #1
0
        private void clickRunButton(object sender, EventArgs e)
        {
            FeedbackListener f = new FeedbackListener();

            f.doneLabel        = doneLabel;
            f.progressBar      = progressBar1;
            f.monitor          = monitor;
            doneLabel.Text     = "";
            progressBar1.Value = 0;
            runButton.Enabled  = false;

            if (testSuite.Text == "XSLT Test Suite")
            {
                XsltTestSuiteDriver driver = new XsltTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, testNamePattern.Text });
            }
            else if (testSuite.Text == "XQuery Test Suite")
            {
                XQueryTestSuiteDriver driver = new XQueryTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, resultsDirectory.Text, testNamePattern.Text });
            }
            else if (testSuite.Text == "XML Schema Test Suite")
            {
                SchemaTestSuiteDriver driver = new SchemaTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, "-g:" + testNamePattern.Text });
            }
            doneLabel.Text    = "Done!";
            runButton.Enabled = true;
        }
Example #2
0
        private void clickRunButton(object sender, EventArgs e)
        {
            FeedbackListener f = new FeedbackListener();

            f.doneLabel        = doneLabel;
            f.progressBar      = progressBar1;
            f.monitor          = monitor;
            doneLabel.Text     = "";
            progressBar1.Value = 0;
            runButton.Enabled  = false;

            if (testSuite.Text == "XSLT Test Suite")
            {
                XsltTestSuiteDriver driver = new XsltTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, testNamePattern.Text });
            }
            else if (testSuite.Text == "XQuery Test Suite")
            {
                XQueryTestSuiteDriver driver = new XQueryTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, resultsDirectory.Text, testNamePattern.Text });
            }
            else if (testSuite.Text == "XML Schema Test Suite")
            {
                SchemaTestSuiteDriver driver = new SchemaTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, "-g:" + testNamePattern.Text });
            }
            else if (testSuite.Text == "FO Test Suite")
            {
                RegistryKey regKey = Registry.CurrentUser;
                regKey = regKey.CreateSubKey("Software\\Saxonica\\Saxon.Net\\TestRunner");
                regKey.SetValue("TestCaseName", testNamePattern.Text);
                regKey.SetValue("TestSetName", testSetNamePattern.Text);
                string debugStr    = (debugCheckBox.Checked ? "-debug" : "");
                string bytecodeStr = (byteCodeCheckBox.Checked ? "on" : "off");
                bytecodeStr = (byteCodeCheckBox.Checked && debugCheckBox.Checked ? "debug" : bytecodeStr);
                FOTestSuiteDriver driver = new FOTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, resultsDirectory.Text, (testNamePattern.TextLength > 0 ? "-t:" + testNamePattern.Text: ""), (testSetNamePattern.TextLength > 0 ? "-s:" + testSetNamePattern.Text : ""), debugStr, "-bytecode:" + bytecodeStr });
            }
            doneLabel.Text    = "Done!";
            runButton.Enabled = true;
        }
Example #3
0
        private void clickRunButton(object sender, EventArgs e)
        {
            FeedbackListener f = new FeedbackListener();
            f.doneLabel = doneLabel;
            f.progressBar = progressBar1;
            f.monitor = monitor;
            doneLabel.Text = "";
            progressBar1.Value = 0;
            runButton.Enabled = false;

            if (testSuite.Text == "XSLT Test Suite") {
                XsltTestSuiteDriver driver = new XsltTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[]{testSourceDirectory.Text, testNamePattern.Text});
            }
            else if (testSuite.Text == "XQuery Test Suite")
            {
                XQueryTestSuiteDriver driver = new XQueryTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, resultsDirectory.Text, testNamePattern.Text });
            }
            else if (testSuite.Text == "XML Schema Test Suite")
            {
                SchemaTestSuiteDriver driver = new SchemaTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, "-g:" + testNamePattern.Text });
            }
            else if (testSuite.Text == "FO Test Suite")
            {
                RegistryKey regKey = Registry.CurrentUser;
                regKey = regKey.CreateSubKey("Software\\Saxonica\\Saxon.Net\\TestRunner");
                regKey.SetValue("TestCaseName", testNamePattern.Text);
                regKey.SetValue("TestSetName", testSetNamePattern.Text);
                string debugStr = (debugCheckBox.Checked ? "-debug" : "");
                string bytecodeStr = (byteCodeCheckBox.Checked ? "on" : "off");
                bytecodeStr = (byteCodeCheckBox.Checked && debugCheckBox.Checked ? "debug" : bytecodeStr);
                FOTestSuiteDriver driver = new FOTestSuiteDriver();
                driver.setFeedbackListener(f);
                driver.go(
                    new String[] { testSourceDirectory.Text, resultsDirectory.Text, (testNamePattern.TextLength > 0 ? "-t:"+testNamePattern.Text: ""), (testSetNamePattern.TextLength > 0 ? "-s:"+testSetNamePattern.Text : ""), debugStr, "-bytecode:"+bytecodeStr });
            }
            doneLabel.Text = "Done!";
            runButton.Enabled = true;
        }