因为喜欢,所以热爱;因为热爱,所以投入;因为投入,所以执着。

小红书测试负责人

  • 看看你的 gatling.bat 里面这一句,你的.jar 包是否在它的 classpath 里面?
    set GATLING_CLASSPATH="%GATLING_HOME%"\lib*;"%GATLING_HOME%"\user-files;%COMMON_CLASSPATH%

  • 谢谢支持!下来我们会把 docker image 发布出来,方便大家部署和分享!

  • 谢谢@cpfordream,后续我们会逐步把文档和教程补上来!

  • hydra Jasmine testcase 例子 (参见https://github.com/RedQA/hydra/blob/master/js/test.js):
    === 代码例子如下:

    //describe refer to a testsuite... 
    describe("This is the suite: Just test a simple API with get method and expect return status= 0 ", function() {
      var appKey = "fc8d52972b64e3bb" ;
      // it refer to a testcase... 
      it("This is another case: test simple rest api", function(){
        var restfulUtils = new RestfulUtils();
        var url = "http://api.jisuapi.com/iqa/query?appkey=" + appKey + "&question=上海人口" ;
        restfulUtils.setServerURL(url);
        restfulUtils.setHttpMethod("get");
        restfulUtils.execute();
        var jsonObj = JSON.parse(restfulUtils.getResponseBody());
        expect(jsonObj.status).toBe('0');
        caseResult.setResultMsg(jsonObj.result.content);
      });
    });
    

    === 测试执行

    hydra 是通过 control 文件来配置 testsuite。 control 的示例在 js/feature 目录下。 在 hydra 目录下可直接运行./runTest.sh feature/test.control 来启动。 对应的结果展现为统一的报告。

  • py 这类的脚本语言也有一些规则能扫出来,比如构造函数不能有返回。比如一些循环引用等等。

  • 写的很详细,赞👍 🍻

  • @zzy3265025 该招聘仍旧有效,长期有效,欢迎把简历砸过来!

因为喜欢,所以热爱;因为热爱,所以投入;因为投入,所以执着。

小红书测试负责人