Git Product home page Git Product logo

Comments (11)

renas avatar renas commented on August 19, 2024

From [email protected] on November 17, 2010 03:27:24

What errors is it failing with? Can you paste the test cases?

Owner: renasreda

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on November 23, 2010 20:59:45

Hi,

Thanks for your response. Now I am able to run successfully.

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on November 23, 2010 23:04:38

Status: Invalid

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on January 24, 2011 18:21:58

  1. What steps will reproduce the problem?
    When we run two test methods inside the class first one is working fine but second one is failing with some errors. If you run these two methods separately working fine without having any problems.

Hi:
i also have the same problem and i have try many methods to deal with ,but it finally all fail.could you help me and tell me how to solve this problem for you?thank you!
or email to me ,i will thank you so [email protected]

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on January 24, 2011 18:22:01

  1. What steps will reproduce the problem?
    When we run two test methods inside the class first one is working fine but second one is failing with some errors. If you run these two methods separately working fine without having any problems.

Hi:
i also have the same problem and i have try many methods to deal with ,but it finally all fail.could you help me and tell me how to solve this problem for you?thank you!
or email to me ,i will thank you so [email protected]

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on June 22, 2011 12:41:25

Hi,

I'm new to android and robotium. I'm also getting the same below warning :
WARN/KeyCharacterMap(1526): No keyboard for id 0
WARN/KeyCharacterMap(1526): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

I have a set of some 5 test cases, where each runs fine individually.
When all the test cases are clubbed together, while giving keyevents, the warning is getting generated,
where I can see that I'm moving from my current activity to previous activity(BACK key event generated) and the test cases are getting failed.

I ve tried out the following options but in vain:

  1. Asserting the activity before sending keyevents
  2. run solo.enterText on UI thread
  3. Tried sending solo.sendkeys
  4. Providing enough sleep to avoid timing issue.

Can you please tell me the way to resolve the problem.
Thanks in advance !!

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on June 23, 2011 00:53:13

Are you using a teardown in your test class where you call solo.finalize()?

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on June 23, 2011 11:39:52

Yes I'm using the below teardown() method:

@OverRide
protected void tearDown() throws Exception{
try {
getActivity().finish();
this.soloExAcc.finalize();
} catch (Throwable e) {
e.printStackTrace();
}
super.tearDown();
}

In my test method, I can able to clearly see that while executing solo.enterText(0,"text") command in test2

(Note: test1 runs fine - also individual test runs fine), the below warning is getting generated:

WARN/KeyCharacterMap(1526): No keyboard for id 0
WARN/KeyCharacterMap(1526): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

and instead of a entering text, back key event is getting generated and my previous activity is brought to foreground and the test run fails.

Really appreciating your help in this..
Thanks in advance !!

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on July 25, 2011 23:03:23

Hi all
I am a junior develpoer of Android.
I also have the same problem,but after I remove solo.finalize() from tearDown,
all cases of the test class passed.The question is should I call solo.finalize in tearDown or not?

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on July 25, 2011 23:05:15

What happens when you call finalize is that all the opened activities are finished. If you do not need them to be finished then you do not need to call finalize.

from robotium.

renas avatar renas commented on August 19, 2024

From [email protected] on July 26, 2011 01:07:51

Thank you very much for your explaination !!

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.