weexteam/weex_devtools_android

View on GitHub
playground/app/src/androidTest/java/com/alibaba/weex/uitest/TC_AG/AG_Text_Text_Text_Align.java

Summary

Maintainability
A
2 hrs
Test Coverage
package com.alibaba.weex.uitest.TC_AG;
import com.alibaba.weex.WXPageActivity;
import com.alibaba.weex.util.TestFlow;
import java.util.HashMap;
import org.junit.Before;
import org.junit.Test;

public class AG_Text_Text_Text_Align extends TestFlow {
    public AG_Text_Text_Text_Align() {
        super(WXPageActivity.class);
    }

    @Before
    public void setUp() throws InterruptedException {
        super.setUp();
        HashMap testMap = new <String, Object> HashMap();
        testMap.put("testComponet", "AG_Text");
        testMap.put("testChildCaseInit", "AG_Text_Text_Text_Align");
        testMap.put("step1",new HashMap(){
            {
                put("click", "left");
                put("screenshot", "AG_Text_Text_Text_Align_01_left");
            }
        });
        testMap.put("step2",new HashMap(){
            {
                put("click", "center");
                put("screenshot", "AG_Text_Text_Text_Align_02_center");
            }
        });
        testMap.put("step3",new HashMap(){
            {
                put("click", "right");
                put("screenshot", "AG_Text_Text_Text_Align_03_right");
            }
        });
        super.setTestMap(testMap);
    }

    @Test
    public void doTest(){
        super.testByTestMap();
    }

}