我正在尝试为Alljoyn 15.09a构建认证apk。我从https://git.allseenalliance.org/gerrit/compliance/tests克隆了来源,并按照AllJoyn™验证测试用户指南第5章的说明进行操作。它在validation-tests-suites中有错误。错误消息是:
Failed tests:
ConfigTestSuiteTest.test_26_timedOutWaitingForSessionLost:1511->BaseTestSuiteTest.executeTestMethodFailsAssertion:67 No assertion failure, expecting assertionFailure with message: Timed out waiting for session to be lost
ConfigTestSuiteTest.test_27_configurationNotRetainedOnRestart:1613->BaseTestSuiteTest.executeTestMethodFailsAssertion:73 expected:<[Received About announcement did not contain expected DeviceName expected:<[newD]eviceName> but was:<[d]]eviceName>> but was:<[Value for DeviceName retrieved from GetAboutData() does not match expected value expected:<deviceName> but was:<newD]eviceName>>
ConfigTestSuiteTest.testConfig_v1_33FactoryResetNoUpdateConfiguratins:1752
mockServiceHelper.waitForNextDeviceAnnouncement(
<any>,
<any>,
<any>
);
Wanted 3 times:
-> at org.alljoyn.validation.testing.suites.config.ConfigTestSuiteTest.testConfig_v1_33FactoryResetNoUpdateConfiguratins(ConfigTestSuiteTest.java:1752)
But was 4 times. Undesired invocation:
-> at org.alljoyn.validation.testing.suites.config.ConfigTestSuite.waitForNextDeviceAnnouncement(ConfigTestSuite.java:181)
ConfigTestSuiteTest.testConfig_v1_35FactoryResetResetsPasscode:1830
mockServiceHelper.waitForNextDeviceAnnouncement(
<any>,
<any>,
<any>
);
Wanted 4 times:
-> at org.alljoyn.validation.testing.suites.config.ConfigTestSuiteTest.testConfig_v1_35FactoryResetResetsPasscode(ConfigTestSuiteTest.java:1830)
But was 5 times. Undesired invocation:
-> at org.alljoyn.validation.testing.suites.config.ConfigTestSuite.waitForNextDeviceAnnouncement(ConfigTestSuite.java:181)
ConfigTestSuiteManagerTest.getApplicableTests:86->validateValidationTestGroup:97->validateValidationTestItems:107 expected:<27> but was:<25>
Tests in error:
ConfigTestSuiteTest.test_27_timedOutWaitingForSessionLost:1587->BaseTestSuiteTest.executeTestMethodFailsAssertion:66->executeTestMethod:2394 » NullPointer
Tests run: 674, Failures: 5, Errors: 1, Skipped: 14
我确保我拥有正确的Maven和Java版本。我也试过14.12并遇到同样的问题,所以我认为我的设置是错误的。任何人都可以帮我编译吗?
答案 0 :(得分:0)
我找到了解决方案。还有另一份文件:https://wiki.allseenalliance.org/_media/compliance/allseen_self_certification_program_developer_guide_v5.doc的AllSeen Alliance自我认证用户指南。
它将最后一步更新为:
$ mvn clean install –Dmaven.test.skip=true -Dandroid.sdk.path=$ANDROID_SDK
解决了我的问题。所以我遵循的步骤是
$ git clone https://git.allseenalliance.org/gerrit/compliance/tests
Copy the libraries listed in the README.txt in $VAL_DIR/java/components/validation-dependencies/libs to $VAL_DIR/java/components/validation-dependencies/libs
$ cd tests/java/components/validation-base/HEAD/
$ mvn clean install
$ cd ../../validation-dependencies/HEAD/
$ mvn clean install
$ cd ../../validation-framework/HEAD/
$ mvn clean install
$ cd ../../validation-tests/HEAD/
$ mvn clean install -Dmaven.test.skip=true -Dandroid.sdk.path=$ANDROID_SDK