Ireneusz Szmigiel ✭✭
- Ireneusz Szmigiel
- Last Active
- Members, Staff
you can start with simple script:
from com.parasoft.api import * import socket def my_ip(): s = socket.gethostbyname(socket.gethostname()) Application.showMessage("My IP: " + str(s))
could you post 1507098107606.log file?1
yes, wildcards are supported in data source, however it is rather used to correlate appropriate data from request to prepare response.
To match any value for the incoming parameter, you can use the criteria expression [ * ], which matches any input. Alternatively, you can use the expression , which means no criteria and therefore trivially evaluates to true. Virtualize supports [ * ] because its meaning is more obvious. Note that the empty expression — which would be represented in the table of parameter criteria as an empty table cell — does not match any input. Rather, it matches an input that is a zero-length string.
You can find a lot of examples in Virtualize manual/help.
Look for Criteria Expressions for Matching Values
Edit: As i see there is a small problem with showing criteria expression on forum.
You should use
first question: Do you have any WADL, Swagger, or RAML definition which can be used to create project automatically?
second question: do you know sequences of REST APi calls for your project?
I would recommend to take a look into section "Testing RESTful Services" in SOAtest User Manual/Help system, first.
It's hard to recommend how you should set up Test Suite without knowing what do you want to achieve in the future.1