The most recent content from our members.
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…
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":…
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…
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…
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 =…
Need to store request/response of a testcase in a txt file at a location(path defined in data source) through groovy script.
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?
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…
It looks like you're new here. Sign in or register to get started.