The most recent content from our members.
Hi all, Using scripting how to iterate the testcase for performing validations for Assertion for error codes , my requirement is I would be creating a custom assertion code using groovy where it will be fetching the errors codes from writable datasource ( where we will be storing 10-20 api error codes) . Now once the rest…
Hi Team, I am trying to perform the Custom Assertion by using below code with Extension tool by keeping it as a separate Teststep import com.parasoft.api.*; public class Comparison { //Compares a value from a database data source to a value returned in a SOAP response public boolean compareToDatabase(Object input,…
I have an extension tool test in my scenario that calls a Windows command file (.bat). This is a very simple command that returns the userid of the person logged into the computer. This is put into a databank that I want to pass into the Groovy script to build the file path for a PDF file the web application creates and…
I want to use variable in groovy script which I have defined in json data bank's custom column name section.
Looking for some guidance please as I am new to Parasoft. I have searched this forum for every search I could think of and googled searches as well. I have a requirement to increment a counter that will be used in a virtual service. Each time I increment I want to save to new counter value back to the data repository,…
Im trying to take the values from data bank into script but getting error can anyone help me out.
I am using a groovy script in which I want a to enter a parameter in the method at the runtime. For e.g. : def userId(String input) { //my method } How can I derive the input variable while I try to run the API test case
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…
Hi , I am new to Parasoft. I want knowledge on how to create a "Custome Response" using Scripting. I see the tool is having an option "Scripted" in the Response Tab--> Input Mode to generate a Response by writing code using Java or a Groovy or some other language mentioned. If someone can provide me a small example or a…
I am using multiple responses in JSON responder where the response is mapped one to one. Now I am in need of dynamic value in response like timestamp, value based on the random number and etc. It is should be based on input values. I tried varies example to get input string values in Groovy scripts without much success Ex:…
It looks like you're new here. Sign in or register to get started.