weexteam/weex_devtools_android

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

Summary

Maintainability
A
1 hr
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_Switch_Switch_Checked extends TestFlow {
    public AG_Switch_Switch_Checked() {
        super(WXPageActivity.class);
    }

    @Before
    public void setUp() throws InterruptedException {
        super.setUp();
        HashMap testMap = new <String, Object> HashMap();
        testMap.put("testComponet", "AG_Switch");
        testMap.put("testChildCaseInit", "AG_Switch_Switch_Checked");
        testMap.put("step1",new HashMap(){
            {
                put("click", "true");
                put("screenshot", "AG_Switch_Switch_Checked_01_true");
            }
        });
        testMap.put("step2",new HashMap(){
            {
                put("click", "false");
                put("screenshot", "AG_Switch_Switch_Checked_02_false");
            }
        });
        super.setTestMap(testMap);
    }

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

}