Closed GoogleCodeExporter closed 9 years ago
this is the code:
package com.example.city;
import com.jayway.android.robotium.solo.Solo;
import java.util.Random;
import android.test.ActivityInstrumentationTestCase2;
@SuppressWarnings("unchecked")
public class MainActivity extends ActivityInstrumentationTestCase2{
private static final String TARGET_PACKAGE_ID="com.rcs.city1tap";
private static final String
LAUNCHER_ACTIVITY_FULL_CLASSNAME="com.rcs.city1tap.HomeSplash";
private static Class launcherActivityClass;
static{
try
{
launcherActivityClass=Class.forName(LAUNCHER_ACTIVITY_FULL_CLASSNAME);
} catch (ClassNotFoundException e){
throw new RuntimeException(e);
}
}
public MainActivity()throws ClassNotFoundException{
super(launcherActivityClass);
}
private Solo solo;
@Override
protected void setUp() throws Exception
{
solo = new Solo(getInstrumentation(),getActivity());
}
public void testDisplayBlackBox() {
solo.sleep(6000);
solo.clickOnButton(2);
String name = "name" + Math.random();
String surn = "surn" + Math.random();
solo.goBack();
solo.clickOnMenuItem("Logout");
}
@Override
public void tearDown() throws Exception {
solo.finishOpenedActivities();
}
}
Original comment by luca.c...@gmail.com
on 2 May 2013 at 4:27
It happens sometime when running on the emulator. Try to run on a real device
instead.
Original comment by renasr...@gmail.com
on 2 May 2013 at 6:08
Following the Rena's comments, if this error still comes on real device, please
send the apk. We will see it.
Regards,
-Navees
Original comment by luckynav...@gmail.com
on 2 May 2013 at 6:11
[deleted comment]
happens on device and emulator
Original comment by luca.c...@gmail.com
on 2 May 2013 at 6:22
[deleted comment]
[deleted comment]
[deleted comment]
i cannot send the APK, seems to big ..
Which can be the root causes? i try everything but i cannot resolve, the APK
under test is under development, has bugs, but we can open it without any
problems, can depends on some bug of the APK?
thanks
Original comment by luca.c...@gmail.com
on 3 May 2013 at 8:10
i put all the log:
05-03 14:35:23.296: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90
total_time_up:98.000000
05-03 14:35:23.346: E/MP-Decision(1861): num online cores: 3 reqd : 4 available
: 4 rq_depth:4.000000 hotplug_avg_load_dw: 194
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140
total_time_up:0.000000
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90
total_time_up:0.000000
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:3 core_idx:3 Nw:3.500000 Tw:90
total_time_up:145.000000
05-03 14:35:23.587: E/installd(219): ECS_ECS: * do_linklib pkg
[com.example.city]
05-03 14:35:23.587: E/installd(219): ECS_ECS: do_linklib Normal package
05-03 14:35:23.587: E/installd(219): ECS_ECS: Restting the data Path to -data-
ret [0]
05-03 14:35:23.587: E/installd(219): ECS_ECS: * do_dexopt pkg
[/data/app/com.example.city-1.apk]
05-03 14:35:23.587: E/installd(219): ECS_ECS: do_dexopt Normal package
05-03 14:35:23.907: E/installd(219): ECS_ECS: Restting the data Path to -data-
ret [0]
05-03 14:35:23.997: E/installd(219): ECS_ECS: * do_move_dex pkg
[/data/app/com.example.city-1.apk]
05-03 14:35:23.997: E/installd(219): ECS_ECS: do_move_dex Normal package
05-03 14:35:23.997: E/installd(219): ECS_ECS: Restting the data Path to -data-
ret [0]
05-03 14:35:24.047: E/MP-Decision(1861): num online cores: 4 reqd : 3 available
: 4 rq_depth:1.100000 hotplug_avg_load_dw: 111
05-03 14:35:24.047: E/MP-Decision(1861): DOWN cpu:3 core_idx:3 Ns:3.100000
Ts:240 total_time_down:245.000000
05-03 14:35:24.197: E/MP-Decision(1861): num online cores: 3 reqd : 4 available
: 4 rq_depth:5.300000 hotplug_avg_load_dw: 122
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140
total_time_up:0.000000
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90
total_time_up:0.000000
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:3 core_idx:3 Nw:3.500000 Tw:90
total_time_up:98.000000
05-03 14:35:24.548: E/AppsCustomizePagedView(4204): Widget
ComponentInfo{com.sec.android.widgetapp.easyfavoritescontactswidget/com.sec.andr
oid.widgetapp.easyfavoritescontactswidget.SeniorFavoriteWidgetProviderLarge}
can not fit on this device (750, 1650)
05-03 14:35:24.748: E/AppsCustomizePagedView(4204): Widget
ComponentInfo{com.sec.android.widgetapp.ap.yahoostock.stockclock/com.sec.android
.widgetapp.ap.yahoostock.stockclock.StockClock_Integration} can not fit on this
device (1053, 660)
05-03 14:35:25.899: E/BrcmNfcJni(11522): SecureElement::nfaHciCallback: unknown
event code=0x16 ????
05-03 14:35:26.039: E/BrcmNfcJni(11522): nfcManager_doDeselectSecureElement:
already deselected
05-03 14:35:26.039: E/BrcmNfcJni(11522): nfcManager_enableDiscovery: already
polling
05-03 14:35:26.409: E/dalvikvm(23459): Class lookup Ljava/lang/Class; attempted
with exception pending
05-03 14:35:26.449: E/dalvikvm(23459): VM aborting
05-03 14:35:26.449: A/libc(23459): Fatal signal 11 (SIGSEGV) at 0xdeadd00d
(code=1), thread 23459 (om.rcs.city1tap)
05-03 14:35:26.990: E/QcrilMsgTunnelSocket(20313):
IOExceptionjava.io.IOException: No such file or directoryReason: No such file
or directory
05-03 14:35:27.851: E/MP-Decision(1861): num online cores: 4 reqd : 2 available
: 4 rq_depth:1.300000 hotplug_avg_load_dw: 89
05-03 14:35:27.851: E/MP-Decision(1861): DOWN cpu:3 core_idx:3 Ns:3.100000
Ts:240 total_time_down:245.000000
Original comment by luca.c...@gmail.com
on 3 May 2013 at 12:37
Original issue reported on code.google.com by
luca.c...@gmail.com
on 2 May 2013 at 4:19