• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

yxchun

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2021年11月28日

testng 接口测试,读取Excel表格数据中json数据,做数据驱动

摘要: public class TestRegister { //fastjson解析数据 @Test(dataProvider="datas3") public void test4(String paramter){ String url = "https://10.1.30.18:8443/demo 阅读全文

posted @ 2021-11-28 11:01 yxchun 阅读(310) 评论(0) 推荐(0)

解析json数据,将json转为实体类

摘要: public class TestFASTJSON { public static void jsonToT(){ String param = "{\"username\":\"17788332570\",\"pwd\":\"123456\"}"; RegisterParam registerPa 阅读全文

posted @ 2021-11-28 10:50 yxchun 阅读(501) 评论(0) 推荐(0)

解析json数据,将json转为Map

摘要: public static void jsonToMap(){ String param = "{\"username\":\"17788332570\",\"pwd\":\"123456\"}"; Map<String,String> params = (Map<String, String>) 阅读全文

posted @ 2021-11-28 10:49 yxchun 阅读(509) 评论(0) 推荐(0)

testng 接口测试,读取Excel表格数据,做数据驱动2(读取某些固定列数据)

摘要: testng public class TestRegister { @Test(dataProvider="datas") public void test1(String,url,String username,String pwd){ Map<String, String> params = 阅读全文

posted @ 2021-11-28 10:16 yxchun 阅读(110) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3