• 闲聊测试工程师 at 2017年08月02日

    你们 58 招测试都只要本科😡

  • 你说你的代码能力够了,真的够了?去阿里面试下呗

  • 京东还招大专啊?
    第一次听说三五原则


  • 测试结果也有了,但是 allure 里面啥都没,这是为啥?

  • 我按照文档里的 mvn clean test 执行了,然后该怎么做呢

  • 哪项目呢,要创建自由项目还是 maven 的,项目里要怎么配置啊

  • 测接口,我把你给的这个 pom 里的内容全部复制到我的 pom 里 报错了 ide 里

  • 具体的安装用法怎么搞?

  • 但是这个 pom 里得内容加在哪,我的项目里已经有个 pom 了

  • 然后呢,怎么去运行,生成报告

  • 怎么和 junit 一起用,都是 testng 的

  • 需求阶段一般就依赖于强大的 pd,但是 pd 一般都坑
    这话说的真好啊,我们的产品经理自己就是个逻辑混乱的人

  • 你把手机设置为常亮呗

  • 没遇到

  • python 脚本报错,求指点 at 2017年07月12日

    这个只需要两个方法啊,if 判断元素是否存在,然后调用截图操作,else 就操作你别的代码啊

  • python 脚本报错,求指点 at 2017年07月12日

    程序都不会执行了

  • python 脚本报错,求指点 at 2017年07月12日

    exit() 是退出 python 编辑吧

  • 谢谢大神👍

  • junit 参数化测试的问题 at 2017年07月11日

    非常感谢,谢谢大神

  • junit 参数化测试的问题 at 2017年07月11日
    RunWith(Parameterized.class)
    public class ResultParamTest {
        private int actCode;
        private String actMessage;
        private int expCode;
        private String expMessage;
    
        public ResultParamTest(int expCode, int actCode, String expMessage, String actMessage) {
            this.expCode = expCode;
            this.actCode = actCode;
            this.expMessage = expMessage;
            this.actMessage = actMessage;
        }
    
        @Parameterized.Parameters
        public static Collection prepareData() throws IOException {
            ResultParam resultParam = new ResultParam("test_case.xlsx", 0);
            ArrayList<Integer> a = resultParam.expCode();
            ArrayList<Integer> b = resultParam.actCode();
            ArrayList<String> c = resultParam.expMessage();
            ArrayList<String> d = resultParam.actMessage();
            Object[][] objects = {{a.get(0), b.get(0), c.get(0), d.get(0)}, {a.get(1), b.get(1), c.get(1), d.get(1)},........{}....{}};
            return Arrays.asList(objects);
        }
    
        @Test
        public void testResultParam() throws IOException {
            Assert.assertEquals(expCode, actCode);
            Assert.assertEquals(expMessage, actMessage);
        }
    }
    

    求大神告诉下,我要怎么把 a,b,c,d 这些值给赋值到 objects 这个二维数组里去,实在找不到方法了

  • junit 参数化测试的问题 at 2017年07月11日
    @RunWith(Parameterized.class)
    public class ResultParamTest {
        private int actCode;
        private String actMessage;
        private int expCode;
        private String expMessage;
    
        public ResultParamTest(int expCode, int actCode, String expMessage, String actMessage) {
            this.expCode = expCode;
            this.actCode = actCode;
            this.expMessage = expMessage;
            this.actMessage = actMessage;
        }
    
        @Parameterized.Parameters
        public static Collection prepareData() throws IOException {
            ResultParam resultParam = new ResultParam("test_case.xlsx", 0);
            ArrayList<Integer> a = resultParam.expCode();
            ArrayList<Integer> b = resultParam.actCode();
            ArrayList<String> c = resultParam.expMessage();
            ArrayList<String> d = resultParam.actMessage();
            Object[][] objects = {{a.get(0), b.get(0), c.get(0), d.get(0)}, {a.get(1), b.get(1), c.get(1), d.get(1)},........{}....{}};
            return Arrays.asList(objects);
        }
    
        @Test
        public void testResultParam() throws IOException {
            Assert.assertEquals(expCode, actCode);
            Assert.assertEquals(expMessage, actMessage);
        }
    }
    

    求大神告诉下,我要怎么把 a,b,c,d 这些值给赋值到 objects 这个二维数组里去,实在找不到方法了

  • 说说我这一身病 at 2017年06月28日

    23 岁的我看着瑟瑟发抖

  • done at 2017年06月23日

    那也不一定,文件名是一个,导入的时候,文件里还有类

  • done at 2017年06月23日

    鼠标移上去,看看 ide 报的啥啊 还有你 ReadConfig 里写的啥

  • 👍 收藏了