包导入不正确

时间:2015-06-04 11:49:50

标签: android automated-tests android-gradle packages

我正在尝试使用自动化UI测试,因此遵循this,我发现谷歌代码片段显示不同的软件包导入然后是我的奇怪的事情。

与UiObject类一样,谷歌导入了这个

var intent1 = Ti.Android.createIntent({
    flags : Ti.Android.FLAG_ACTIVITY_CLEAR_TOP | Ti.Android.FLAG_ACTIVITY_SINGLE_TOP,
    className : 'co.ntime.audioPlayer.AudioplayerActivity',
    action : 1
});
intent1.putExtra('button', 'my first activity');
var pending1 = Ti.Android.createPendingIntent({
    activity : Ti.Android.currentActivity,
    intent : intent1,
    type : Ti.Android.PENDING_INTENT_FOR_ACTIVITY,
    flags : Ti.Android.FLAG_ACTIVITY_NEW_TASK
});
Ti.Android.currentActivity.addEventListener('newintent', function(e) {
    Ti.API.info('caught intent!');
     var page1 = Alloy.createController('page1').getView();
     $.index.open();
     $.index.add(page1);
     anAudioPlayer.pause();
});

但是,在我的代码中

android.support.test.uiautomator.UiObject

这导致了一些不明身份的方法。我不知道,我做错了什么,请帮助我。

我的build.gradle

com.android.uiautomator.core.UiObject

0 个答案:

没有答案
相关问题