Wordpress example test cases won't work / any test cases won't work

80 views
Skip to first unread message

Christian Woll

unread,
Mar 7, 2014, 6:35:34 AM3/7/14
to bot-bo...@googlegroups.com

Hello everyone,
after spending some time setting up bot-bot server and recorder, 
im facing some new issues getting the runner to run properly.

When i start the runner with the wordpress example,
it just opens and closes the dashboard while failing all tests.
Same behavior while running my own test cases i recorded with my own android project.

Maybe someone got an idea what im missing there.
Any help is appreciated :).

This is the default.properties im running:

APP_PACKAGE=org.wordpress.android
DEFAULT_ACTIVITY=Dashboard
FRAMEWORK=robotium
TESTCASE_FOLDER=wordpress
TEST_APK_FILENAME=wordpress.apk
ANDROID_VERSION=android-19

key.store=${user.home}/.android/debug.keystore
key.store.password=android
key.alias=androiddebugkey
key.alias.password=android



This is some of the output the runner is giving :

Buildfile: /Users/blablubb/Tools/bot-bot-v0.82/build.xml

  [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.

  [taskdef] Could not load definitions from resource testngtasks. It could not be found.

  [taskdef] Could not load definitions from resource org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties. It could not be found.


runner:

      [ant] Parent project doesn't contain any reference 'RELEASE_ROOT'


compile:

    [javac] Compiling 29 source files to /Users/blablubb/Tools/bot-bot-v0.82/runner/bin1

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

    [javac] Note: /Users/blablubb/Tools/bot-bot-v0.82/runner/src/org/imaginea/botbot/common/RobotiumBaseClass.java uses or overrides a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    [javac] Note: /Users/blablubb/Tools/bot-bot-v0.82/runner/src/org/imaginea/botbot/common/RobotiumBaseClass.java uses unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 1 warning

     [java] /Users/blablubb/Tools/bot-bot-v0.82/runner

     [java] {wordpress/blog=[testcases/wordpress/blog/createNewPost.csv, testcases/wordpress/blog/verifyFormatInNewPost.csv, testcases/wordpress/blog/verifymenu.csv, testcases/wordpress/blog/verifyPost.csv, testcases/wordpress/blog/verifystatusInNewPost.csv], wordpress/datadriven=[testcases/wordpress/datadriven/createNewPost_data.csv, testcases/wordpress/datadriven/createNewPost_datadriven.csv]}




-apk:

     [java] 

     [java] THIS TOOL IS DEPRECATED. See --help for more information.

     [java] 









Above makes me worry and my robo-test output ofc.






robo-test:

     [echo] Under test

     [exec] 

     [exec] test.wordpress.Blog:

     [exec] Failure in testCreateNewPost:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.androExecutor(Unknown Source)

     [exec] at test.wordpress.Blog.testCreateNewPost(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in testVerifyFormatInNewPost:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.androExecutor(Unknown Source)

     [exec] at test.wordpress.Blog.testVerifyFormatInNewPost(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in testVerifyPost:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.androExecutor(Unknown Source)

     [exec] at test.wordpress.Blog.testVerifyPost(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in testVerifymenu:

     [exec] junit.framework.AssertionFailedError: java.lang.NullPointerException

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.androExecutor(Unknown Source)

     [exec] at test.wordpress.Blog.testVerifymenu(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in testVerifystatusInNewPost:

     [exec] junit.framework.AssertionFailedError: java.lang.NullPointerException

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutor.androExecutor(Unknown Source)

     [exec] at test.wordpress.Blog.testVerifystatusInNewPost(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] test.wordpress.datadriven.CreateNewPost:

     [exec] Failure in tempFunction:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.androExecutor(Unknown Source)

     [exec] at test.wordpress.datadriven.CreateNewPost.tempFunction(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in tempFunction:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.androExecutor(Unknown Source)

     [exec] at test.wordpress.datadriven.CreateNewPost.tempFunction(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Failure in tempFunction:

     [exec] junit.framework.AssertionFailedError

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.methodInvoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.BaseKeywordDefinitions.invoker(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.RobotiumKeywordDefinition.execute(Unknown Source)

     [exec] at org.imaginea.botbot.keywords.KeywordCaller.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.execute(Unknown Source)

     [exec] at org.imaginea.botbot.common.AndroFrameworkExecutorDataDriven.androExecutor(Unknown Source)

     [exec] at test.wordpress.datadriven.CreateNewPost.tempFunction(Unknown Source)

     [exec] at java.lang.reflect.Method.invokeNative(Native Method)

     [exec] at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214)

     [exec] at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199)

     [exec] at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)

     [exec] at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)

     [exec] at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)

     [exec] at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1738)

     [exec] 

     [exec] Test results for =.F.F.F.F.F.F.F.F

     [exec] Time: 20.043

     [exec] 

     [exec] FAILURES!!!

     [exec] Tests run: 8,  Failures: 8,  Errors: 0

     [exec] 

     [exec] 

Navine M C

unread,
Dec 4, 2014, 10:33:49 AM12/4/14
to bot-bo...@googlegroups.com
Dear Christian,

Were you able to run bot-bot successfully. i am also struck with the installation. Appreciate if you can share your findings. 

Best Regards
Navine
...

Varun Menon

unread,
Dec 4, 2014, 10:43:42 AM12/4/14
to bot-bo...@googlegroups.com

Bot-bot was not able to keep up with the pace of android development because of lack of resources. If you only need runner I can try to make it work with new library. But recorder will take time.
There are libs like selendroid and appium that you can try.

-Varun

--
You received this message because you are subscribed to the Google Groups "Bot-Bot Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bot-bot-user...@googlegroups.com.
To post to this group, send email to bot-bo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bot-bot-users/851eaa0d-7ce2-47f2-a11e-4ce865af9623%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages