Java Code Examples for android.test.TouchUtils

The following examples show how to use android.test.TouchUtils. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: views-widgets-samples   Source File: SampleTests.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Test that swiping on the empty view triggers a refresh.
 */
public void testSwipingEmptyView() {
    // Given a SwipeRefreshLayout which is displaying the empty view

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 2
Source Project: views-widgets-samples   Source File: SampleTests.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Test that swiping on the populated list triggers a refresh.
 */
public void testSwipingListView() {
    // Given a SwipeRefreshLayout which is displaying a populated list
    populateList();

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync()
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 3
Source Project: views-widgets-samples   Source File: SampleTests.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Test that swiping on the populated list triggers a refresh.
 */
public void testSwipingListView() {
    // Given a SwipeRefreshLayout which is displaying a populated list

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync()
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 4
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("org.apache.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);

        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        addAllTargetView("TC_");

        Thread.sleep(3000);
    }
 
Example 5
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("org.apache.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        addAllTargetView("TC_");

        Thread.sleep(3000);
    }
 
Example 6
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("org.apache.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        addAllTargetView("TC_");

        Thread.sleep(3000);
    }
 
Example 7
/**
 *
 */
public void setUpToFindComponet(String target, InstrumentationTestCase test){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
            count ++;
        }
        else{
            break;
        }

    }
}
 
Example 8
/**
 *
 */
public void setUpToFindComponet(String target, InstrumentationTestCase test){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
            count ++;
        }
        else{
            targetComponetNotFound = true;
        }

    }
}
 
Example 9
/**
 *
 */
public void setUpToFindComponet(String target, InstrumentationTestCase test){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(test, WXPageActivity.wxPageActivityInstance );
            mViewGroup = (ViewGroup) WXPageActivity.wxPageActivityInstance.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
            count ++;
        }
        else{
            break;
        }

    }
}
 
Example 10
Source Project: incubator-weex-playground   Source File: TestFlow.java    License: Apache License 2.0 6 votes vote down vote up
private void findChildCase(final WXTextView inputView ){
        // handle if the view is INVISIBLE then scrollToBottom
//        int maxStep = 10;
        int scrollCount = 0;
        if(inputView.getVisibility() == View.INVISIBLE){
            while(scrollCount <maxStep){
                TouchUtils.dragQuarterScreenUp(this, this.getActivity());
                sleep(1000);
                scrollCount ++;
            }
        }
//        int topCount = 10;
        if(inputView.getVisibility() == View.INVISIBLE){
            while(topCount>0 && (inputView.getVisibility() == View.INVISIBLE)){
                TouchUtils.dragQuarterScreenDown(this, this.getActivity());
                sleep(1000);
                topCount--;
            }
        }

    }
 
Example 11
Source Project: incubator-weex-playground   Source File: TestFlow.java    License: Apache License 2.0 6 votes vote down vote up
/**
 *
 */
public void setUpToFindComponet(String targert){
    int max = 60;
    int count = 0;
    while(mCaseListIndexView.size() == 0){

        if (count < max){
            TouchUtils.dragQuarterScreenUp(this, this.getActivity());
            mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
            mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, targert);
            count ++;
        }
        else{
            break;
        }

    }
}
 
Example 12
Source Project: user-interface-samples   Source File: SampleTests.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Test that the floating shape can be dragged and that it's raised while dragging.
 */
public void testDrag() {
    final float initialX = mFloatingShape.getX();
    // Drag the shape to the left edge.
    TouchUtils.dragViewToX(this,
            mFloatingShape,
            Gravity.CENTER,
            0);

    // Check that the view is dragging and that it's been raised.
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync().
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            // Check that the view has moved.
            float deltaX = mFloatingShape.getX() - initialX;
            assertTrue(Math.abs(deltaX) > 0f);

            // Check that the view is raised.
            assertTrue(mFloatingShape.getZ() > 0f);
        }
    });
}
 
Example 13
Source Project: WeexOne   Source File: WeexUiTestCaseTcTextStyleOwn.java    License: MIT License 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);

        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        Thread.sleep(3000);
    }
 
Example 14
Source Project: WeexOne   Source File: WeexUiTestCaseTcTextStyleColumn.java    License: MIT License 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);

        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        Thread.sleep(3000);
    }
 
Example 15
Source Project: WeexOne   Source File: WeexUiTestCaseTcTextStyleRow.java    License: MIT License 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        Thread.sleep(3000);
    }
 
Example 16
Source Project: WeexOne   Source File: WeexUiTestCaseTcTextType.java    License: MIT License 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        Thread.sleep(2000);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        Thread.sleep(3000);
    }
 
Example 17
Source Project: weex   Source File: WeexUiTestCaseTcTextStyleOwn.java    License: Apache License 2.0 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);


        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");        Thread.sleep(3000);
    }
 
Example 18
Source Project: weex   Source File: WeexUiTestCaseTcTextStyleColumn.java    License: Apache License 2.0 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);

        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");
        Thread.sleep(1000);
    }
 
Example 19
Source Project: weex   Source File: WeexUiTestCaseTcTextStyleRow.java    License: Apache License 2.0 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);


        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");        Thread.sleep(3000);
    }
 
Example 20
Source Project: weex   Source File: WeexUiTestCaseTcTextType.java    License: Apache License 2.0 6 votes vote down vote up
public void setUp() throws Exception{

        Log.e("TestScript_Guide", "setUp  test!!");
        setActivityInitialTouchMode(false);
        weappApplication = new WeappJsBaseTestCase();
        mInstrumentation = getInstrumentation();

        Intent intent = new Intent();
        intent.putExtra("bundleUrl", Constants.BUNDLE_URL);
        launchActivityWithIntent("com.alibaba.weex", WXPageActivity.class, intent);
        waTestPageActivity = getActivity();
//        waTestPageActivity.getIntent().getData().toString();
        Log.e(TAG,"activity1=" + waTestPageActivity.toString() );
        Thread.sleep(3000);

        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        setViewGroup(mViewGroup);
        TouchUtils.scrollToBottom(this, waTestPageActivity, mViewGroup);

mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, "TC_");        Thread.sleep(3000);
    }
 
Example 21
Source Project: android-ElevationDrag   Source File: SampleTests.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Test that the floating shape can be dragged and that it's raised while dragging.
 */
public void testDrag() {
    final float initialX = mFloatingShape.getX();
    // Drag the shape to the left edge.
    TouchUtils.dragViewToX(this,
            mFloatingShape,
            Gravity.CENTER,
            0);

    // Check that the view is dragging and that it's been raised.
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync().
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            // Check that the view has moved.
            float deltaX = mFloatingShape.getX() - initialX;
            assertTrue(Math.abs(deltaX) > 0f);

            // Check that the view is raised.
            assertTrue(mFloatingShape.getZ() > 0f);
        }
    });
}
 
Example 22
/**
 * Test that swiping on the empty view triggers a refresh.
 */
public void testSwipingEmptyView() {
    // Given a SwipeRefreshLayout which is displaying the empty view

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 23
/**
 * Test that swiping on the populated list triggers a refresh.
 */
public void testSwipingListView() {
    // Given a SwipeRefreshLayout which is displaying a populated list
    populateList();

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync()
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 24
/**
 * Test that swiping on the populated list triggers a refresh.
 */
public void testSwipingListView() {
    // Given a SwipeRefreshLayout which is displaying a populated list

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.TOP | Gravity.CENTER_HORIZONTAL,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync()
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 25
/**
 * Test that swiping on the populated list triggers a refresh.
 */
public void testSwipingListView() {
    // Given a SwipeRefreshLayout which is displaying a populated list

    // When the swipe refresh layout is dragged
    TouchUtils.dragViewBy(this,
            mSwipeRefreshLayout,
            Gravity.CENTER,
            0,
            Math.round(mSwipeRefreshLayout.getHeight() * 0.4f));

    // Then the SwipeRefreshLayout should be refreshing
    // We need to use runOnMainSync here as fake dragging uses waitForIdleSync()
    getInstrumentation().runOnMainSync(new Runnable() {
        @Override
        public void run() {
            assertTrue(mSwipeRefreshLayout.isRefreshing());
        }
    });
}
 
Example 26
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}
 
Example 27
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}
 
Example 28
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}
 
Example 29
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}
 
Example 30
public void addAllTargetView(String target){
    int max = 6;
    int count =0 ;
    while (count < max){
        TouchUtils.dragQuarterScreenUp(this, this.getActivity());
        mViewGroup = (ViewGroup) waTestPageActivity.findViewById(R.id.container);
        mCaseListIndexView = ViewUtil.findViewWithText(mViewGroup, target);
        mCaseListIndexView.addAll(mCaseListIndexView);
        count ++;
    }
}