Android and Junit reports Test run failed: No test results

by Conny » Fri, 16 Jul 2010 21:31:11 GMT


Sponsored Links
 Sorry people I am getting the reputation of solving my own issues :).

Fixed it. I just put in a default constructor and removed moved the
initializing of myActivity to the setup. It worked.

package com.sears.android.test;


import com.my.android.myActivity;

import android.app.Activity;
import android.test.ActivityInstrumentationTestCase2;

public class TestCartView extends
                ActivityInstrumentationTestCase2<myActivity> {

        Activity myActivity ;
        public TestCartView() {
                super("com.my.android.myActivity", myActivity.class);
        }
        public TestCartView(String pkg, Class<myActivity> activityClass) {
                super(pkg, activityClass);
        }

        protected void setUp() throws Exception {
                super.setUp() ;
                myActivity = super.getActivity() ;
        }

        public void testSomethingSilly() {
                assertNotNull(myActivity) ;
        }


        public void testSomethingSillier() {
                assertNotNull(myActivity) ;
        }

        protected void tearDown() throws Exception {
                super.tearDown();
        }

}





--



Android and Junit reports Test run failed: No test results

by Conny » Sat, 17 Jul 2010 01:34:53 GMT


 One more piece of information that is helpful here.

ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass)
This constructor is deprecated. use
ActivityInstrumentationTestCase2(Class) instead
 ActivityInstrumentationTestCase2(Class<T> activityClass)
Creates an ActivityInstrumentationTestCase2.

Some examples use
ActivityInstrumentationTestCase2(String pkg, Class<T> activityClass)

Regards
Conny





--


Sponsored Links


Other Threads

1. apple group

welcome to apple group

https://groups.google.com/group/ap_ple

-- 

2. Need to rotate Activity in 3D.

Hi Experts, need help to rotate an Activity in 3D not a view or
FlipView only works on the Views but I need to rotate a whole activity
in 3D to display a second activity appearing once the 1st Activity
rotates around z-Axis. I have tried with
overridePendingTransition(R.anim.anim_in, R.anim.anim_out);  but it's
giving me the rotation on the XY plane not the 3D. Please help me out.
Lots of thanks to all of you in Advance.

-- 

3. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keyStatus/com.keyStatus.keyStatus}: java.lang.SecurityException: No active admin owned by uid 10031 for poli

4. Folder Lock

5. NFC, TAG_DISCOVORED intent is only send via startActivity()

6. Broadcast Messages about MEDIA_BUTTON also when screen is off

7. SMS-receive, Bug in HTC Desire Z or in Android 2.2