shirone / nativedriver

Automatically exported from code.google.com/p/nativedriver
Apache License 2.0
0 stars 0 forks source link

Don't build test NativeDriver #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Attachments: