namjae / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Java Machine crashes when i try to call Robotium class from another class #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Do a Robotium Class Instance for testing a program
2.Make another class in which to call an object of RobotiumTest class

What is the expected output? 
It all works fine
What do you see instead?
Java crashes with the attached java generated report.

What version of the product are you using? On what operating system?
Robotium 1.9.0 on Windows Xpx86 with java jdk 6 update 22

Please provide any additional information below.

Original issue reported on code.google.com by AlexStar...@gmail.com on 10 Dec 2010 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
How are you trying to use it? Would it be possible for me to see some code?

Original comment by renasr...@gmail.com on 13 Dec 2010 at 7:19

GoogleCodeExporter commented 9 years ago
I can not give you any code from my actual work, but i can give you an example:

public class A extends ActivityInstrumentationTestCase2{
//This is the constructor class for Robotium, done like in your example
public void functionA(){}
}

public class B{
A a =new A;
a.functionA();
}

Original comment by AlexStar...@gmail.com on 13 Dec 2010 at 9:34

GoogleCodeExporter commented 9 years ago
Hi Alex,

Thanks for this. This is unfortunately not something that can be fixed at this 
moment. I am going to set the issue to wont fix and will open it up again when 
there is more time for fixing issues like this. 

Sincerely,
Renas 

Original comment by renasr...@gmail.com on 13 Dec 2010 at 6:12