Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jython in parasoft SOA

I'm using jython scripting with a datasource. Datasource columns are MR1, MR2, MR3.

Here is my script.

x=float(context.getValue("datasource", "MR1"))
y=float(context.getValue("datasource", "MR2"))
z=float(context.getValue("datasource", "MR3"))
input1 = ((1+x/float(100))*(1+y/float(100))*(1+y/float(100)))-1
return SOAPUtil.getXMLFromString([str(input1)])

I'm using x, y and z as variables.. there are many columns maybe more than 50 for each column I cant declare a variable like x, y and z for each column... So, what I'm trying to do is get the column count and iterate the column and row through FOR loop.

I checked the help contents and there is no columncount method for this tool.

Can you please help me with this script.

Thank you.

like image 276
Webservices qa Avatar asked Jan 27 '26 00:01

Webservices qa


1 Answers

In java with selenium automation also, we do NOT have column count. navigation takes place with rowcount and rowdata ONLY. But we have getLastColumnNum. However with jython i'm not very sure as i have just started working with it...please try something equivalent-maybe like lastcolumn....

like image 64
Jayanth R Avatar answered Jan 29 '26 12:01

Jayanth R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!