xiaofans / robotium

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

Use of Robot java class in Robotium through error 'Test run failed: Instrumentation run failed due to 'java.lang.VerifyError' #476

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Created robot method by importing 
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
2. I need to click on the screen having specific x, y co-ordinate
3.

What is the expected output? What do you see instead?
The mouse should click on the screen of x, y co-ordinate. But running android 
junit test case through error 'Test run failed: Instrumentation run failed due 
to 'java.lang.VerifyError'

What version of the product are you using? On what operating system?
4.2.2 (APL level 17)

Please provide any additional information below.
Embedded below code in my test script:
try { 

            Robot robot = new Robot();

            robot.mouseMove(300,550);

            robot.mousePress(InputEvent.BUTTON1_MASK);
            robot.delay(2000);
            robot.mouseRelease(InputEvent.BUTTON1_MASK);

            } catch (AWTException e) { 
            e.printStackTrace(); 
            } 
Please let me know. Thanks!

Original issue reported on code.google.com by cybageus...@gmail.com on 24 Jun 2013 at 12:33

GoogleCodeExporter commented 9 years ago
This is the issue tracker for Robotium. You seem to be using java.awt.Robot

Original comment by renasr...@gmail.com on 24 Jun 2013 at 2:03