austgl / robotium

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

Activity is not closed/finished when an sudden popup or alert displayed at the end of testcase. Pls suggest #176

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Activity is not closed/finished when an sudden popup or alert displayed at 
the end of testcase. 
2. While navigating between screens through robotium testcase, at times it 
clicks device hardware back key without any reason. This causes scripts to stop 
in between.
3. Also i've no where used solo.goBack() methods in my tests.

What is the expected output? What do you see instead?
activity should be closed and it should come out of the application

What version of the product are you using? On what operating system?
Robotium 2.5, Win 7

Please provide any additional information below.
Below is my tearDown method:

public void tearDown() throws Exception {
        try {
            solo.finalize();            
        } catch (Throwable e) {
            e.printStackTrace();
        }
        getActivity().finish();
        super.tearDown();

    }

Original issue reported on code.google.com by alpatisu...@gmail.com on 20 Oct 2011 at 12:28

GoogleCodeExporter commented 9 years ago
Thanks for this issue. Which version of Android are you running? 

Original comment by renasr...@gmail.com on 20 Oct 2011 at 1:18

GoogleCodeExporter commented 9 years ago
AVD(Emulator) Details:
============
Target Name - Android 2.1-update1
Platform - 2.1-update1
API Level  - 7

Motorola Droid(Handset) Details:
================================
Android OS Version - 2.2.1

Let us know your feedback on this. If this issue is resolved; that would help 
us to save our time a lot. Because of this; we end up with re-running the 
suites again.

Also this occurs on both handset and emulator. Pls. let us know your resolution 
on this.

Original comment by alpatisu...@gmail.com on 21 Oct 2011 at 10:34

GoogleCodeExporter commented 9 years ago
This issue will be fixed in the next version. Should be released in a month or 
so. 

Original comment by renasr...@gmail.com on 21 Oct 2011 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by renasr...@gmail.com on 21 Oct 2011 at 4:47

GoogleCodeExporter commented 9 years ago
Thank you.

Original comment by alpatisu...@gmail.com on 22 Oct 2011 at 5:26

GoogleCodeExporter commented 9 years ago
This has been corrected in Robotium 3.0. Please note that 
finishOpenedActivities() replaces finalize().

Original comment by renasr...@gmail.com on 14 Nov 2011 at 6:30