导入org.apache.poi.xssf 读取excel

POI 操作 excel  用XSSF 方式时,如果不能自动导入 org.apache.poi.xssf 对应jar 包,则可以Apache 官网进行下载,自行导入。

step1: 访问 http://poi.apache.org/download.html

step2: 搜索 poi-bin 进行定位,下载如包 poi-bin-3.16-20170419.zip

           http://apache.fayea.com/poi/release/bin/poi-bin-3.16-20170419.zip 
           http://mirror.bit.edu.cn/apache/poi/release/bin/poi-bin-3.16-20170419.zip
           http://mirrors.tuna.tsinghua.edu.cn/apache/poi/release/bin/poi-bin-3.16-20170419.zip

step3:解压后有对应 poi-ooxml-3.16.jar .该jar文件中有 org.apache.poi.xssf包

step4:在项目的build path中,导入该包。

ps:可以将poi-bin-3.16-20170419文件夹根目录下的jar包、  poi-bin-3.16-20170419lib  下jar包、 poi-bin-3.16-20170419ooxml-lib 下jar 包都导入。

利用excel数据驱动信息,详见:http://www.yiibai.com/selenium/selenium_parameterizing_using_excel.html

原文地址:https://www.cnblogs.com/ericazy/p/7347154.html