Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to access xlrd and xlwt

Options
rv27783
rv27783 Posts: 3

Hello team,
I am new in soa test.

I want to use xlrd and xlwt into soa test.
Not sure how to get configure so that I can use them into soa test case.
Currently I am getting error when I write
import xlrd

Thanks
RK

Tagged:

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,232 ✭✭✭
    edited May 2017
    Options

    Are you asking about how to import Python modules? We do not ship any but you can install them yourself then configure the embedded Jython interpreter to use them.

    First, install and configure core Python modules:
    1. Install Jython on your system. The version must match the embedded Jython (2.5.2 in this case).
    2. Click "Parasoft -> Preferences -> Scripting" then point "Jython Home" to your Jython installation (C:\jython2.5.2) and click OK.
    3. Restart SOAtest (click File -> Restart).

    By configuring the Jython home, the embedded Jython interpreter now has access to all Python modules from that Jython installation. Additional Python modules (like the ones you are asking about) can similarly be configured in preferences in the
    "Jython Path" field (click "Parasoft -> Preferences -> Scripting"). The "Jython Path" field accepts a list of directories which is used by Jython to search for additional Python modules. You must restart the tool after changing "Jython Home" or "Jython Path".

Tagged