@Test
 public void apiDemo() throws Exception {
   super.service.rotate(ScreenOrientation.LANDSCAPE);
   demo.chooseCostumerType(ChooseCustomerType.CustomerType.POTENTIAL_COSTUMER);
   demo.chooseChatType(ChooseChatType.ChatType.NATIVE);
   demo.findApp("Google");
   demo.startDemo("Google");
   demo.enterChat();
   super.service.rotate(ScreenOrientation.PORTRAIT);
   chat.feedPersonalInfo(
       "Asid",
       "*****@*****.**",
       "0544636220",
       ChooseCustomerType.CustomerType.POTENTIAL_COSTUMER);
   chat.sendChatMsg("Asi is the king");
   chat.ensSession();
   serve.feedServeInfo(Serve.Satisfection.SATISFIED, true, true, "*****@*****.**");
 }
/** Created by asih on 16/02/2015./ */
public class AppiumTest extends BaseTest {

  private static final String testDir = "./src/main/resources/test1/";
  private DemoActivator demo = DemoActivator.getInstance();
  private ChatActivator chat = ChatActivator.getInstance();
  private ServeActivator serve = ServeActivator.getInstance();
  private DemoValidator demoValid = DemoValidator.getInstance();

  //    static int pnum =0;

  //    @Before
  //    public void setUp() throws Exception {
  //        super.setUp(AppiumDrivers.ANDROID, ConfigItemsRouter.ConfigType.LECreate, testDir);
  //    }

  @Test
  public void apiDemo() throws Exception {
    super.service.rotate(ScreenOrientation.LANDSCAPE);
    demo.chooseCostumerType(ChooseCustomerType.CustomerType.POTENTIAL_COSTUMER);
    demo.chooseChatType(ChooseChatType.ChatType.NATIVE);
    demo.findApp("Google");
    demo.startDemo("Google");
    demo.enterChat();
    super.service.rotate(ScreenOrientation.PORTRAIT);
    chat.feedPersonalInfo(
        "Asid",
        "*****@*****.**",
        "0544636220",
        ChooseCustomerType.CustomerType.POTENTIAL_COSTUMER);
    chat.sendChatMsg("Asi is the king");
    chat.ensSession();
    serve.feedServeInfo(Serve.Satisfection.SATISFIED, true, true, "*****@*****.**");
  }

  @After
  public void tearDown() throws Exception {
    super.getRouter().tearDown(DriverType.APPIUM);
  }

  @AfterClass
  public static void after() throws Exception {
    //        BaseTest.after(DriverType.APPIUM);
  }
}