Git Product home page Git Product logo

Comments (4)

renas avatar renas commented on June 20, 2024

From [email protected] on December 14, 2010 02:02:18

Owner: renasreda
Labels: -Type-Defect Type-Other

from robotium.

renas avatar renas commented on June 20, 2024

From [email protected] on December 14, 2010 03:41:37

u should pass the solo object or u have to create solo object in your Common.java

Example:

tescase.java has your test method

msolo = Solo(getInstrumentation(), getActivity());

test1() {
Common.clickontext(solo,text);
}

Common.java should contain.

public static void clickontext(Solo solo,String text) {
solo.clickOnText(text);
}

from robotium.

renas avatar renas commented on June 20, 2024

From [email protected] on December 16, 2010 07:53:59

Please see above answer.

Status: Done

from robotium.

renas avatar renas commented on June 20, 2024

From [email protected] on November 24, 2011 02:17:20

I did write my tests as suggested by Anand. In the above scenario let's say I have created a bunch of methods in Common.java and also I created multiple classes similar to Common.java which provide different reusable functionality.
Each time I invoke a method in Common.java or other classes I am passing solo object(from testcase.java), instead is there a way to create a solo object in Common.java.
Anand did mention that this can be done but an example/suggestion would be great.

from robotium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.