Package org.telluriumsource.ft

Source Code of org.telluriumsource.ft.RTestCase

package org.telluriumsource.ft;

import org.telluriumsource.module.RListModule;
import org.telluriumsource.test.java.TelluriumMockTestNGTestCase;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

/**
* @author Jian Fang (John.Jian.Fang@gmail.com)
*
* Date: Oct 20, 2010
*/
public class RTestCase extends TelluriumMockTestNGTestCase {

       private static RListModule listUi;

       @BeforeClass
       public static void initUi() {
               registerHtmlBody("RList");
               listUi = new RListModule();

               listUi.defineUi();

               connectSeleniumServer();

               useCssSelector(true);

               useTelluriumEngine(true);

               useTrace(true);
       }

       @BeforeMethod
       public void connectUrl() {
            connect("RList");
       }

       @Test
       public void testAA() {
//              useCssSelector(false);
//
//              listUi.dump("A.AA");
//
//              String html = listUi.toHTML();
//
//              System.out.println(html);

               listUi.click("A.AA");
       }

       @Test
       public void testDD() {
//              useCssSelector(false);
//
//              listUi.dump("A.DD");
//
//              String html = listUi.toHTML();
//
//              System.out.println(html);

               listUi.click("A.DD");
       }
}
TOP

Related Classes of org.telluriumsource.ft.RTestCase

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.