Ejemplo n.º 1
0
        private void Configure()
        {
            var properties = new JavaProperties(Properties);

            properties.Save(PropertiesFileName);
            Log.Info("Hercules process configured with properties:\n{properties}", properties);
        }
Ejemplo n.º 2
0
        public void TestQcTestRunFromAPIRunner()
        {
            string         file1 = "c:\\stam1.ini";
            JavaProperties props = new JavaProperties();

            props["TestSet1"]    = "Aaron\\Amit";
            props["almServer"]   = "http://vmsoa22:8080/qcbin";
            props["almUser"]     = "******";
            props["almPassword"] = "";
            props["almDomain"]   = "Default";
            props["almProject"]  = "Aaron";
            props["almRunMode"]  = "RUN_LOCAL";
            props["almTimeout"]  = "-1";
            props["almRunHost"]  = "";
            props.Save(file1, "");
            Launcher runner = new Launcher("false", file1, TestStorageType.Alm);

            runner.Run();
        }
        public void TestQcTestSetFolderFromAPIRunner()
        {
            string file1 = "c:\\stam1.ini";
            JavaProperties props = new JavaProperties();
            props["TestSet1"] = "Aaron\\";
            props["TestSet2"] = "Tomer";
            props["almServer"] = "http://vmsoa22:8080/qcbin";
            props["almUser"] = "******";
            props["almPassword"] = "";
            props["almDomain"] = "Default";
            props["almProject"] = "Aaron";
            props["almRunMode"] = "RUN_LOCAL";
            props["almTimeout"] = "-1";
            props["almRunHost"] = "";
            props.Save(file1, "");
            Launcher runner = new Launcher("false", file1, TestStorageType.Alm);

            runner.Run();
        }