sangmingming / robotium

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

Failing to run for the second time #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.We write the test case in XML format as below and the equilaent command in 
robotium call is made. 
eg.
set login mylogin@gmail.com  
set password mypassword
click ok
2. we will be looping the above set with different values of login and 
password. 
3. For the first set its working fine and for the next set its throwing error 
as below 

08-23 21:06:13.642: DEBUG/Inside If(10085): enterText
08-23 21:06:13.642: DEBUG/Inside try(10085): enterText
08-23 21:06:14.442: DEBUG/Function(10085): invocation of %s failed: 
%s%nenterTextnull
08-23 21:06:14.442: DEBUG/FUNCTION(10085): enterText
08-23 21:06:14.442: DEBUG/Inside If(10085): enterText
08-23 21:06:14.442: DEBUG/Inside try(10085): enterText
08-23 21:06:15.052: WARN/ActivityManager(142): Duplicate finish request for 
HistoryRecord{473c8f88 com.android.sampleApp/.AppLogin}
08-23 21:06:15.662: WARN/PrintK(142): [KEYPADLED] KeyPad LED: ON
08-23 21:06:15.662: WARN/WindowManager(142): Permission denied: injecting key 
event from pid 10085 uid 10103 to window Window{470cc120 
com.dell.launcher/com.dell.launcher.Launcher paused=false} owned by uid 10011
08-23 21:06:16.162: WARN/WindowManager(142): Permission denied: injecting key 
event from pid 10085 uid 10103 to window Window{470cc120 
com.dell.launcher/com.dell.launcher.Launcher paused=false} owned by uid 10011

What is the expected output? What do you see instead?
Expect to run the test case. The same set of function and code works in 
simulator and in samsung galaxy ace, but fails in dell venue. 

What version of the product are you using? On what operating system?
robotium-solo-2.4 and android 2.2 in Mac and Windows 

Please provide any additional information below.

public void setUp() throws Exception {
solo = new Solo(getInstrumentation(), getActivity());
}

public void testInit() 
     {
TestEngine objTest = new TestEngine();
objTest.Run();
}

The TestEngine contains code for reading the xml and executing the commands 
using solo. 

Original issue reported on code.google.com by krudayak...@gmail.com on 23 Aug 2011 at 4:22

GoogleCodeExporter commented 9 years ago
It must be a vendor specific issue. If it is working on the emulator there is 
nothing that can be done to make it work on the dell phone.

Original comment by renasr...@gmail.com on 26 Aug 2011 at 9:52