header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
December 04, 2008, 09:38:26 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
how to get number of rows from DataSource result?
Welcome, Guest. Please login or register.
December 04, 2008, 09:38:26 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  how to get number of rows from DataSource result?
« previous next »
Pages: [1] Print
Author Topic: how to get number of rows from DataSource result?  (Read 327 times)
MA0815
Newbie
*
Posts: 1


« on: May 30, 2008, 09:30:27 am »

For testing it would be useful to get the number of rows from a JDBC Data Source SQL Query statement result. In GUI it is shown in the message e.g. "Got 3 rows in 2ms". This value should be reused in an XPath Assertion later. How I can access the desired attribute?

br,
maria aschauer
 
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,506


« Reply #1 on: May 30, 2008, 09:49:48 am »

Hi,

hmm.. you could get the current row number with

log.info( testRunner.testCase.testSteps["DataSource"].currentRow )

after running through all rows, this should return the actual number of rows processed, which isn't entirely correct.. we'll add a rowCount attribute as well..

regards!

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header