Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2015

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] Help required working Excel reports in QF-Test version 3.5.5-p1 -- >Jython scripting

  • Subject: [QF-Test] Help required working Excel reports in QF-Test version 3.5.5-p1 -- >Jython scripting
  • From: Hema Nagaraj <hema.nagaraj@?.com>
  • Date: Mon, 27 Jul 2015 13:56:59 +0000


Please help me in writing Jython script to find SUM of range of cells in Excel

Where testfile is the File name , here I have given dummy path, “Deal Audit” is the sheet name.

I have worked earlier on excel for verifying cell data, but finding difficulty in this scenario.


Scenario: Trying to add a range of rows ranging from R9 to R20 in excel and store Total in Variable “TValue”


Below is the script :


from jxl import *

from java.io import File

testFile = "<Path><xls file>"

workbook = Workbook.getWorkbook(File(testFile))

sheet = workbook.getSheet("Deal Audit")

Rvalue = sheet.range(R9:R20)

rc.logMessage(str(RValue), dontcompactify=True, report=True, nowrap=False)


TValue = workbook.worksheetfunction.sum(Rvalue)

rc.logMessage(str(TValue), dontcompactify=True, report=True, nowrap=False)





Videos Downloads Documentation Buy Free Trial