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.
Discussion List
Scripting Issue: Trying to get value in adjacent cell in Table Data Source
I have a script which is using a table data source within Virtualize. In that table there are two columns, num and ID. The value of num is extracted from the request via XML databank and is stored as a variable in the responder suite, titled key. Key = num I have another variable that stored the ID value in a variable…
Conditionally extract json response using Extension tool
I want to extract content for all titles having Red color from given Json response so I can send it in next Request. eg. response:- { "titles":[ { "name": "T1", "color": "Red" }, { "name": "T2", "color": "Green" }, { "name": "T2", "color": "Red" } ], "content":[ "T1": "Some description 1", "T2": "Some description 2", "T3":…
Groovy script unable to establish Oracle DB Connection
Hi Team, When tested the Virtual Service in local host with the below Script in the Response tab ---> Input Mode: Scripted---> Language: Groovy getting below error in the when monitored the logs. Error Message: com.parasoft.api.UserMethodException: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver Please…
Groovy - Asserting that all JSON response elements have content
I have a test scenario with hundreds of response elements and I am trying to script an assertion to ensure that none of the elements returned as null. There must be an easy way to use a wildcard to search the entire response body for a null field, but I can't figure out how to do it. Can anyone suggest a better solution to…
How can I store a variable in a data source using groovy
I'm trying to store a Header in a Data Sorce using groovy but I'm not able to do it. I'm using: import parasoft.com.*; String grabHeaderValue (input, context) { String headers = input.toString(); int dateIndex = headers.indexOf("Date:"); int endIndex = headers.indexOf('\n', dateIndex); String desiredHeader =…
How to store request/response in Parasoft to a file through Groovy Script?
Need to store request/response of a testcase in a txt file at a location(path defined in data source) through groovy script.
Wait in soatest environment
Between my test case execution i want to insert some wait time. how can this be accomplished. i have tried sleep call in extension tool, but is there any build in feature?
groovy autocomplete and calling other groovy scripts
hi is there any way to use the autocomplete (ctrl+space) functionality for the language groovy in external tools? i would like to be able to e.g. see the available methods and attributes of used java classes or my own groovy classes while i code. and is there a guide on how to setup SOAtest (9.10) so i can import groovy…