Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7832509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:15:32+00:00 2026-06-02T12:15:32+00:00

I have an Android project I want to automate. I have created a Robotium

  • 0

I have an Android project I want to automate.

I have created a Robotium project for it, and a TestCase here it is:

package com.nu.art.software.cyborg.automation.test;


import android.app.Instrumentation;
import android.content.Context;
import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.Smoke;

import com.nu.art.software.cyborg.automation.core.AutomationManager;
import com.nu.art.software.cyborg.core.ApplicationLauncher;
import com.nu.art.software.cyborg.log.Log;
import com.nu.art.software.cyborg.log.Logger;
import com.nu.art.software.cyborg.modules.automation.AutomationScenario;
import com.nu.art.software.rexml.core.ReXML;


public class TestCase
        extends ActivityInstrumentationTestCase2<ApplicationLauncher>
        implements Logger {

    private AutomationScenario automationScenario;

    private Context context;

    private Context targetContext;

    protected AutomationManager manager;

    protected final String TAG = getClass().getSimpleName();

    public TestCase() {
        super(ApplicationLauncher.class);
    }

    @Override
    public final void setUp()
            throws Exception {
        Instrumentation instrumentation = getInstrumentation();
        context = instrumentation.getContext();
        targetContext = instrumentation.getTargetContext();
        automationScenario = ReXML.getSystemReXML().deserialize(AutomationScenario.class, context.getAssets().open("user_scenario.xml"));
        manager = new AutomationManager();
        manager.setInstrumentation(instrumentation);
        manager.init();
    }

    @Smoke
//  @SmallTest
    public void runScenario()
            throws Exception {
        try {
            manager.executeScenario(automationScenario);
        } catch (Exception e) {
            logError(e);
            throw e;
        }
    }

/**  Some log methods  **/
}

The project package defined in the manifest matches the package where the TastCase lays:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.nu.art.software.cyborg.automation.test"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="7" />

    <application
        android:icon="@drawable/icon"
        android:label="@string/app_name" >
        <uses-library android:name="android.test.runner" />
    </application>

    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:targetPackage="com.nu.art.software.android.services" />

</manifest>

I’m sure it does not recognize the test because of this:

enter image description here

Is there something I’m missing?

Thanks in advance,

Adam.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:15:33+00:00Added an answer on June 2, 2026 at 12:15 pm

    Your test cases need to start with test. Example is testRunScenario().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a new android project. I want to have a action bar
I have an Android project created in Eclipse . I want to modify the
I have created a custom class for my Android project called Sounds I want
I have xml file under ASSETS dir (com.android.project\assets\xml\file.xml). I want to call a (following)
I have a Android project for SDK1.5 and now I want to convert it
I am currently working on android project where I want to have a text
I currently have an Android project in Eclipse. I created it with a target
I have downloaded an Android project. To avoid name conflicts I want to move
I have an android project and I want to use some classes from another
I have a problem that I want to reference with another android project, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.