Rahul Sharma (Editor)

JXL (API)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Alex Lynch

Written in
  
Java

License
  
GNU GPL v2

Stable release
  
2.6.12

Operating system
  
Cross-platform

Type
  
API to access Microsoft Excel format

JXL API (a.k.a. Java Excel API) is the most widely used API for executing Selenium data-driven tests, which allows users to read, write, create, and modify sheets in an Excel(.xls) workbook at runtime. It is not supported for .xlsx format.

Contents

Microsoft Excel Support

JXL API supports Excel documents with versions Excel 95, 97, 2000, XP, and 2003. These documents hold the extenstion .xls.

Usage

JXL API is widely used with Selenium.

Example

Sample code to write to an Excel file might look like as follows:

References

JXL (API) Wikipedia