摘要:
public class fanwe_login_database { //读取数据库的方法 public static Object[][] getTestData(String tablename) throws Exception { //声明MySQL的数据驱动 String diver = 阅读全文
posted @ 2021-08-16 16:35
韩伊
阅读(92)
评论(0)
推荐(0)
摘要:
import com.cxy_fanwe.common.test_fanwe_qiantai;import org.apache.http.Header;import org.apache.http.client.methods.CloseableHttpResponse;import org.ap 阅读全文
posted @ 2021-08-16 14:44
韩伊
阅读(116)
评论(0)
推荐(0)
摘要:
1.get请求 [ { "description": "模拟一个没有参数的get请求", "request": { "uri": "/getdemo", "method": "get" }, "response": { "text": "这是一个没有参数的get请求" } }, { "descrip 阅读全文
posted @ 2021-08-16 14:40
韩伊
阅读(282)
评论(0)
推荐(0)
摘要:
1.mock是什么?mock测试就是在测试过程中,对于某些不容易构造或者不容易获取的对象,用一个虚拟的对象来创建以便测试的测试方法。在具体的测试过程中,我们经常会碰到需要模拟数据或者接口的情况,因为环境问题或者系统复杂度的问题,我们需要使用 Mock 方式进行数据的模拟 2 .mock应用场景 对象 阅读全文
posted @ 2021-08-16 11:29
韩伊
阅读(813)
评论(0)
推荐(0)
摘要:
public class Httpclient_post { private ResourceBundle bundle; private String url; private BasicCookieStore store; //方法执行前先读取resource文件夹下的application文件 阅读全文
posted @ 2021-08-16 11:07
韩伊
阅读(1211)
评论(0)
推荐(0)