Ejemplo n.º 1
0
        public Boolean make_start_test(String name)
        {
            IKmlFolder     t_name      = t_pool.getByName(name);
            IKmlPlacemark  init_start  = t_pool.getStart(t_name);
            IKmlObjectList init_points = t_name.getFeatures().getChildNodes();

            // int init_size = init_points.getLength() - 1;
            String[] att1 = t_pool.getAttByName(name);

            //  core.makeStart(name, t_name);
            //IKmlObjectList final_points = t_name.getFeatures().getChildNodes();

            // Hashtable cord1 = getCoordinates(final_start);

            Boolean gflag = true;

            try
            {
                IKmlPlacemark final_start = t_pool.getStart(t_name);
                String        final_name  = final_start.getName();
                //Case 1: compare initial name and final name of start point
                Assert.AreEqual(name, final_name);



                Console.WriteLine("     >>>>>>>>>> Passed the test for make start at GUI level <<<<<<");
            }
            catch
            {
                Console.WriteLine("    ----------> Failed the test for make start at GUI level <------");
                gflag = false;
            }
            return(gflag);
        }