.xlsx files are getting corrupted when running through Ant | Selenium Forum
M
Posted on 06/01/2016
Hi Ashish,

I have implemented DDF , it is working fine without ant.
when I run it through ant although script works fine and XSLT_Reports generated properly but every time my .xlsx file got corrupted.

if I removes Saxion jar from jars folder and run it through ant it doesnt corrupt anything.
so according to me the prbm is with saxion..

please help...

Find the attached code

Thanks

M
Replied on 06/01/2016

please check all the poi api jar files.

xlsx files get corrupted mostly because of a missing jar file.

http://www.apache.org/dyn/closer.lua/poi/release/bin/poi-bin-3.13-20150929.tar.gz


M
Replied on 06/01/2016

I am using following jars:

Responsive image

M
Replied on 06/01/2016

i tried your project it ran without any problem and then i opened your xlsx file they all opened.

problem seem to be in jar files please delete all the jar files and download them again. selenium/poi api/testng/junit/log4j etc


M
Replied on 08/01/2016

Thanks Ashish , Issue got resolve now.
saxon-dom-8.7 was missing.


Appreciate you help.Responsive image