JUNIT Tests results

by androiduser mobile » Sat, 05 Sep 2009 01:45:00 GMT


Sponsored Links
 Hi,

How to get the junit test results from eclipse to an XML or any
logfile?

Thanks,
Android user
--~--~---------~--~----~------------~-------~--~----~



JUNIT Tests results

by Brett Chabot » Mon, 07 Sep 2009 11:23:47 GMT


 There's an "Test Run history" icon on the "Junit" results pane. Select
it and choose "Export" from the resulting menu. This will save an XML
file of the results.

Brett.

On Fri, Sep 4, 2009 at 10:44 AM, androiduser



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Can't call startActivity() - real easy, please help

Hi,

Just downloaded the new beta version. I can't launch a new activity
from my start activity. I followed the Forwarding.java example. This
is what I have:

            Intent intent = new Intent();
            intent.setClass(Forwarding.this, ForwardTarget.class);
            startActivity(intent);
            finish();

but my app always crashes on the third line (startActivity()).

Any idea why this could be? I have it setup just as in the example...

Thanks,
Mark
--~--~---------~--~----~------------~-------~--~----~

2. ACTION_PICK_ACTIVITY: anyone have this working?

I'm attempting to use ACTION_PICK_ACTIVITY. According to the docs:

"Pick an activity given an intent, returning the class selected."

So, I've used ACTION_PICK to pick a contact, which I get back in my 
onActivityResult() as an Intent.

What I can't quite figure out is how to construct the 
ACTION_PICK_ACTIVITY Intent. Again, according to the docs:

"Input: getExtra(String) field EXTRA_INTENT is an Intent used with 
queryIntentActivities(Intent, int) to determine the set of activities 
from which to pick."

If I'm reading this correctly, I need two Intents:

1. One containing the Uri of the content for which I want the user to 
pick an activity

2. One containing the Intent from #1 above as EXTRA_INTENT and having an 
action of ACTION_PICK_ACTIVITY

It's a bit mystifying why I need two rather than just one (I don't need 
EXTRA_INTENT on ACTION_PICK, so why on ACTION_PICK_ACTIVITY?). But, be 
that as it may, no matter what I try, Android 0.9 says it can't find an 
activity to handle my ACTION_PICK_ACTIVITY request, and so blows up with 
  an exception like:

android.content.ActivityNotFoundException: No Activity found to handle 
Intent { action=android.intent.action.PICK_ACTIVITY (has extras) }

Part of the problem may be that the docs *don't* say what the Uri is 
supposed to be for Intent #2. I have tried the same Uri as in Intent #1, 
and I have tried no Uri, and both have failed:

Intent i=new Intent()
                //.setData(data.getData())
                .putExtra(Intent.EXTRA_INTENT, data)
                .setAction(Intent.ACTION_PICK_ACTIVITY);

where data is the Intent I got back from ACTION_PICK.

Any idea where I'm going wrong?

Thanks!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions, & ebook formats, just $35/year

--~--~---------~--~----~------------~-------~--~----~

3. Problem with running emulator - my program won't show up

4. IPsec support in Android

5. How to upload files to Android emulator? How to prepare MediaPlayer?

6. connection to a distant socket server

7. Lotto Magic: Home Business Produces High Profits For Members