/** * Candybean is a next generation automation and testing framework suite. * It is a collection of components that foster test automation, execution * configuration, data abstraction, results illustration, tag-based execution, * top-down and bottom-up batches, mobile variants, test translation across * languages, plain-language testing, and web service testing. * Copyright (C) 2013 SugarCRM, Inc. <candybean@sugarcrm.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package com.sugarcrm.candybean.examples.mobile; //import static org.junit.Assert.assertTrue; // //import org.junit.After; //import org.junit.AfterClass; //import org.junit.Before; //import org.junit.BeforeClass; //import org.junit.Test; public class CalculatorTest_0001 extends AndroidSugarTest { // @BeforeClass // public static void setupOnce() throws Exception { // AndroidSugarTest.setupOnce(); // } // // @Override // @Before // public void setup() throws Exception { // super.setup(); // } // // @Test // public void test() throws Exception { // //Enter 10 in first editfield // iface.getAControl().enterText(0, "10"); // // //Enter 20 in first editfield // iface.getAControl().enterText(1, "20"); // // //Click on Multiply button // iface.getAControl().clickOnButton("Multiply"); // // //Verify that resultant of 10 x 20 // assertTrue(iface.getAControl().searchText("200")); // // } // // @Override // @After // public void cleanup() throws Exception { // super.cleanup(); // } // // @AfterClass // public static void cleanupOnce() { // AndroidSugarTest.cleanupOnce(); // } }