rahul7386 / robotium

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

Test classes generated through Robotium Recorder should invoke super.setUp() and super.tearDown() #597

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate a new test via Robotium Recorder
2. Examine generated code

What is the expected output? What do you see instead?
The test class overrides setUp() and tearDown(), but it fails to invoke the 
super method (from ActivityInstrumentationTestCase2) as expected.

Actual:
    @Override
    public void tearDown() throws Exception {

        solo.finishOpenedActivities();
    }

Expected:

    @Override
    public void tearDown() throws Exception {

        super.tearDown();

        solo.finishOpenedActivities();
    }

What version of the product are you using? On what operating system?
Robotium Recorder 2.0.12
Eclipse Indigo Service Release 2 (Build id: 20120216-1857)
Max OS X Mavericks (10.9.2)

Please provide any additional information below.

Obviously this is pretty easy to workaround by putting in the code by hand, but 
it takes away from the convenience, and it also adds an unfamiliar step for 
less technical users (testers, etc).

Original issue reported on code.google.com by ronald.u...@gmail.com on 23 Apr 2014 at 8:32

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. This will be fixed in 2.0.13. 

Original comment by renasr...@gmail.com on 25 Apr 2014 at 12:25

GoogleCodeExporter commented 9 years ago
Thanks again for reporting this. This has been fixed in 2.0.13. Please update 
Robotium Recorder to get the fix. 

Original comment by renasr...@gmail.com on 28 Apr 2014 at 9:18

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 28 Apr 2014 at 9:19