Hi all!
I'm trying to write test demo NativeDriver?, but when i build, it have on
error.
This is my code:
import com.google.android.testing.nativedriver.client.AndroidNativeDriver?;
import
com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder?;
import com.google.android.testing.nativedriver.client.AndroidNativeElement?;
import org.openqa.selenium.;
import junit.framework.;
//import android.test.InstrumentationTestCase?;
public class TestNativeOSs extends TestCase? {
public void test(){
AndroidNativeDriver? driver = new AndroidNativeDriverBuilder?()
.withDefaultServer() .build();
driver.startActivity("com.google.android.testing.nativedriver.simplelayouts
.TextValueActivity?");
AndroidNativeElement? b = driver.findElement(By.id("@+id/
EditText01?"));
b.sendKeys("1");
driver.navigate().back();
}
}
And this is error: java.lang.NoClassDefFoundError?:
com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder? at
com.google.android.testing.nativedriver.simplelayouts.test.TestNativeOSs.te
st(TestNativeOSs.java: 12) at java.lang.reflect.Method.invokeNative(Native
Method) at android.test.AndroidTestRunner?.runTest(AndroidTestRunner?.java:169)
at android.test.AndroidTestRunner?.runTest(AndroidTestRunner?.java:154) at
android.test.InstrumentationTestRunner?.onStart(InstrumentationTestRunner?.ja
va: 520) at android.app.Instrumentation
$InstrumentationThread?.run(Instrumentation.java:1447)
I don't fix an error. Please help me!
Thanks and Regards,
Duy
Original issue reported on code.google.com by duynguye...@gmail.com on 21 Sep 2011 at 8:48
Original issue reported on code.google.com by
duynguye...@gmail.com
on 21 Sep 2011 at 8:48Attachments: