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

yxchun

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

公告

2021年11月27日

testng 接口测试,读取Excel表格数据,做数据驱动1(按照顺序读取Excel数据)

摘要: 1、测试类 public class TestRegister { @Test(dataProvider="datas") public void test1(String username,String pwd){ String url = "https://10.1.30.18:8443/dem 阅读全文

posted @ 2021-11-27 17:11 yxchun 阅读(334) 评论(0) 推荐(0)

Workbook读取Excel数据

摘要: //讀取Excel /* *startRow 开始列 *endRow 结束列 * startCell 开始行 * endCell 结束行 */ public static Object[] [] readExcel(String url,int startRow,int endRow,int sta 阅读全文

posted @ 2021-11-27 17:04 yxchun 阅读(1593) 评论(0) 推荐(0)

遍历 Object[] [] 数组的值

摘要: Object[] [] datas = readExcel1("C:\\Users\\liao\\Desktop\\register.xls"); for(Object[] data:datas){ for(Object obj:data){ System.out.println(obj); } } 阅读全文

posted @ 2021-11-27 16:45 yxchun 阅读(250) 评论(0) 推荐(0)

HttpClient发送Post与Get请求

摘要: 发送Post请求 public class PostDemo { public static void main(String[] args) throws IOException { //请求URL String url = ""; //请求方式 HttpPost post = new HttpP 阅读全文

posted @ 2021-11-27 13:24 yxchun 阅读(205) 评论(0) 推荐(0)

通过maven命令将jar包放入本地仓库下

摘要: mvn install:install-file -Dfile=C:\Users\liao\Desktop\httpclient-4.5.13.jar -DgroupId=org.apache.httpcomponents -DartifactId=httpclient -Dversion=4.5. 阅读全文

posted @ 2021-11-27 10:14 yxchun 阅读(81) 评论(0) 推荐(0)

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