Context: Windows 7, latest Android ADT IDEs, robotium jar files, Android
Request: I created a testrobotium class, which, when executed as an android junit, should run the AUT ie application for Android. When running the testrobotium class as android junit, I get the following error in logcat:
01-24 12:17:44.708: I/TestGrouping(2235): TestCase class junit.extensions.ExceptionTestCase is missing a public constructor with no parameters or a single String parameter - skipping 01-24 12:17:44.790: I/TestRunner(2235): started: null(com.sap.esm.retail.test.InitialTest)
The code for the InitialTest class, including the constructor, is as follows:
package com.sap.esm.retail.test; import android.test.ActivityInstrumentationTestCase2; import android.util.Log; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; import com.jayway.android.robotium.solo.Solo; import com.sap.esm.retail.MobileRetailingActivity; import com.sap.esm.retail.OrderSumaryActivity; import com.sap.esm.retail.ProductDetailsActivity; import com.sap.esm.retail.ShippingDetailsActivity; import com.sap.esm.retail.R; public class InitialTest extends ActivityInstrumentationTestCase2<MobileRetailingActivity> { public Solo solo; private TextView cartNo; private ImageView Img; private String actualTot; public InitialTest(String name) throws ClassNotFoundException { super(MobileRetailingActivity.class); } protected void setUp() throws Exception { super.setUp(); solo = new Solo(getInstrumentation(),getActivity()); } protected void tearDown() throws Exception { super.tearDown(); } ...........
So there are some problems with the constructor, which I think.
Please, help.
source share