예제 #1
0
        public void Description()
        {
            Console.WriteLine("File : " + filepath);
            var testcase = parser.Parse(filepath, 1);

            Console.WriteLine(testcase.Description);
            ALMConvertor export = new ALMConvertor();

            File.WriteAllText("testcase.txt", testcase.Description);
            File.WriteAllText("testcaseformat.txt", export.ConvertDescriptionToString(testcase));
        }
예제 #2
0
        public void TestALMOctaneUpload()
        {
            Console.WriteLine("File : " + filepath);

            var testcase = parser.Parse(filepath, 1);

            Console.WriteLine(testcase.Description);
            File.WriteAllText("testcase.txt", testcase.Description);

            ALMConvertor        export     = new ALMConvertor();
            var                 configFile = File.ReadAllLines("Config\\config.txt");
            ALMOctaneConnection con        = new ALMOctaneConnection(
                configFile[0], configFile[1], configFile[2], configFile[3], configFile[4]);

            ALMOctaneAPI api = new ALMOctaneAPI(con)
            {
                UserId = configFile[5]
            };
            var str    = export.ConvertToString(testcase);
            var testid = api.CreateTest(testcase.Title, export.ConvertDescriptionToString(testcase));

            api.UpdateTest(testid, str);
        }