-
Show error message if date is null or greater then 7 days
Hi, I am new to parasoft and trying to understand my requirement. I have two scenarios where if date is null or greater then 7 days then it should show error message as:invalid dates. I can see my message if date is passed but not without. Can any one help me on this issue please? Below is my requirement flow:- Assets:-…
-
Need example for /v6/tools/messageResponders with Multiple Responses
Can you post an example or two for /v6/tools/messageResponders with Multiple Responses? Thanks. JT
-
How can i customize status codes in parasoft
Hi, I want to display custom status code based on my response. i always gets status as 200 OK but i want to change on some conditions. ex: if passing date is greater then current date then display status = 400 and message = Bad Request. * Can i do this in parasoft? (Yes - how) or * Can i do this using groovy? (Yes - how)…
-
Can we implement validation rules using Parasoft?
Hi, I want to know if we can implement validation rules in Parasoft without writing code. ex: My response should look if my date > current date then i can throw some custom error messages in response? or do we have any Parasoft methods that can be used for this kind of work?
-
Virtualizer - asking to download JSON file instead of showing contents
Hi, Question : I have virtualize Rest API, working perfect with postman/chrome but ones try URI under IE 11, instead of showing JSON on screen asks me to OPEN or Download file. If i click on OPEN, nothing happens. Thanks,
-
Return Status based on the response
Is there a way to return the status code based on the response from the Groovy script of Response tab.
-
DataRepository
How to insert data in data repository using groovy script through pva.
-
Virtual Service Response Scripting
Hi, I have wrote a Java code to generate a response, when tested in the Java Perspective in Parasoft tool code is executed without any errors got a valid output. When i loaded the same to the "Virtual Service" ---> Response section and tested in local Server getting below error. Could someone correct the code. Attached the…
-
How to enforce all JSON values of a request payload at once.
Hi guys. I want to create a responder that will fail if any of the fields or values that come in a request is different from what was defined as the Request Template. How can I achieve this? I have been trying using HTTP Simple Mock and JSON Assertors but I couldn`t get this behavior yet.
-
How to update the CSV present in the Virtual Asset
In the 'Incoming Request -> Extension Tool' Groovy script, with the below statement I am able to update the CSV file which is present in my local machine. File file = new File('C:/Users/filepath/Thirdparty.csv') file.append(value+'\n') But with the below statement CSV file which is present in the Virtual Asset is not…
-
DB Tool Oracle DB Connection Issue
Hi Team, I have added "DB Tool" Output on Incoming Request and have given the "Driver", URL, and UserName and Password. When deployed the Virtual Service to Parasoft server and tested, getting the following error. Please help me with this issue. I have added class path in Parasoft tool in Parasoft-->Preferences-->JDBC…
-
java.io.IOException: Server returned HTTP response code: 403
Hi All, Can somebody help me on this issue, I can see Title error. when i use update script for version information like update --version, update --help is working and --updatesite also working. FYI., below URL(http://.......artifacts.xml) is accessible using chrome/IE Full error msg E:\Program…
-
How can we validate token for customer
Hi, I am new to parasoft virtualize and wanted to know if we can validate token for particular customer? I want to see if token is matching with customer otherwise throws error message.
-
How to read the values/content from FILE datasource
How to read the values/content from FILE datasource and use in Response tab groovy scripting? I was able to successfully read the values from EXCEL datasource using the below step in Response tab Groovy script. variable = context.getValues("data source name", "column name") I tried to use the below steps to read the values…
-
JSON Assertion Handling
Hi, I have added an assertion to Virtual Service and when i deployed and ran a test could notice that Assertion is failing but Virtual Service is responding with a proper response instead of an error response saying Assertion failed. Could someone please help me with this issue, i have gone through the user manual and i…
-
Protocol Support
What kind of protocols it supports. We have queries specific to below protocols. ISO8583 - Service Virtulization. Can we use same for performance testing for 70TPS. Please Suggest if anyone knows this.
-
VirtualService with Excel Data Source
Hi Team, We are using Parasoft 9.10.8.20191027 version in our project. I have created a Virtual Service with Excel Data Source and when tested its throwing error as below when tested. We have used same data and created a Virtual Service with "In Project Spread Sheet" and when tested its working perfectly. Please help us…
-
Header correlation using Reg Expressions
I need to send response based on the incoming request header, response will be different based on the first letter of the header value I tried correlating headers in my responder and used values as: A*, B* and C* but I found that the only Regular expression allowed is for any header "[*]", seems I cannot use my own, is…
-
Changing the mediator endpoint to local host endpoint is not working.
Hi Team, SOAPUI call --> service visualize --> route to actual endpoint-->sends the response. SOAPUI steps:(This is a direct call to service visualize) 1. imported the service wsdl. 2.added the respective request. 3. created a message proxy with the actual endpoint. 4. copied the proxy endpoint to SOAPUI and executed. 5.…
-
Error in creating a new VirtualAssets .
Hi Team, I have been using parasoft for more than 6 months and it's great to work. I have created 50+ virtual assets. Now after couple of months i am trying to create a new assets which is not allowing me to create it. Could you please help me in getting this issue resolved. Thanks Senthil. M
-
Updating the embedded server Data Repository
If I am using a Data Repository using "Embedded Server" with previously recorded traffic, is there a way to update that repository with more data without doing another recording or one record at a time?
-
SSL Proxy Setup Error
Disclaimer: I have mistakenly posted the exact same question below a few days ago on the SOATest forum. But since we couldn't reach a solution as recommended by Benken I'm posting this here. Here's the link to our discussion so far: https://forums.parasoft.com/discussion/4687/virtualize-enable-ssl-proxy#latest Hey…
-
Multiple Response
Hi Team, I have a requirement where i need to set multiple condition for a single response. How do I write multiple condition? I do not have access to Data Source Correlation. In the attached image, it has 2 login id but needs to send the same response, When I add the condition 1 after another, it does not work. Could u…
-
Scripting Issue: Trying to get a particular value in a column
I have a script where I generate a key based on the request. This key is a value listed in the first column in a table, and the script should return the value of the corresponding value next to the key value. Ex: In column 1 my key is A and I need to return the value next to it BC. So far my script results in an error when…
-
Documentation on "em" Schema
I'm interested in doing some custom reporting on traffic going through our message proxies. I have noticed items of interest in the em.em_event_message and other tables. Is there any available documentation on report queries for this schema?
-
Jars for Groovy scripting
Hi, We are trying to customize a responder where we are using groovy scripting for which we need some jars to be added to parasoft virtualize. Could you please help us where we need to add jars for that. We are getting error org/apache/ivy/core/settings/IvySettings
-
Create DB of all virtual assets created
I would like to create a database of all virtual assets created and would like to automate it. Please suggest best way to do it.
-
Set up service to use virtual asset only if test servers are down
How can I set up my service to use test servers first, and hit virtual asset only if the test servers are down
-
How to get the request url/parameter values in Response tab
Is there a way to get the request url/parameter values in the Response tab and perform validations using Groovy script. I am able to get the values and perform validations on the Responder correlation Custom tab.
-
JSON output response based on the dynamic date ranges in the request
Requirement: Each calendar day will have a different json response, for 90 days. Based on the to and from dates given in the request I have to pick the response, combine and send the result. * How to and where to save all the responses. * For different date ranges how to combine the responses. * Some dates are having no…
-
Dynamically create proxies, record traffic, and create assets using the REST API
I was recently at a customer engagement and they had the following requirement: We would like to create proxies on the fly, record traffic, create the asset, then delete the proxy. Parasoft has a powerful REST API that can easily facilitate this. This script does the following 1. Creates a new Proxy in record mode 2. Grabs…
-
Extract Value from Database and return in the HTTP Response Header
What steps would I use to extract a value from a database and then return that value in the HTTP response header? In my example, I would get a value for "group": select group from groups; Then I want to return an HTTP header: X-Group: Thanks, JT
-
Groovy script not working in Response Tab
I am trying to validate one of the field from request. Using Groovy script in the response tab for the validation of the request. import com.parasoft.api.CorrelationScriptingHookConstants. def correlateOperation( context) { requestUrl = context.get(CorrelationScriptingHookConstants.REQUEST.URL) return requestUrl; } With…
-
Include tools results into the responder correlation
I have a responder with a DB tool attached to the incoming request, the query used on it is looking for a record in DB using some values extracted from the incoming request by using an XML Data Bank. At response side I need to select my response (I'm using Multiple Responses) based on the incoming request (I'm filtering…
-
How to validate the date given in the request
Below is request URL http://localhost:9080/accountsdetails?startTime=2019-09-27 I want to validate startTime whether it is older than 7 days from the current date or not. If it is older I want to return error message or with some responder.
-
Using Extension Tool to capture the request code
I have an instance where I need to capture the incoming request, and find part of the code marked by an unique identifier and return it as my request for my responders. How can I code this effectively? Here is the code I have so far that I got from another application, but not sure if it works in Virtualize: function…
-
Help with XPath Substring
I am trying to get a part of a string up to the point where there is a blank space in the string. However, Virtualize is saying that it does not recognize what the .indexOf() function is. Can someone guide me as to what could be the issue and how to get the sub-string properly in Virtualize? The XPath code is am trying to…
-
SOAtest and Virtualize 9.10.8 are now available
The latest releases of Parasoft SOAtest, Virtualize, and CTP are out! There's a bunch of new features including: Test impact analysis for API testing * You can now leverage test impact analysis (TIA) functionality for API tests in SOAtest. Designed for use in your automated test execution environment, TIA analyzes the…
-
Moved: Kubernetes / Kubectl support
This discussion has been moved.
-
Using {variables} in XPath Responder Correlation
Is it possible to use Responder Suite {variables] in the XPath Request Body correlation? e.g. /:Envelope/:Body/:someRequest/:someNode/*:color/text()="{color}"
-
Scripting with a value in a XML Databank chained to Request
I am trying to access a value stored in a XML data bank that is chained to the incoming request. In my extension tool, I chained a XML data bank to see if I can successfully pass the value to the tool. my code: function f(input, context){ var id = context.getValue("Generated Data Source","traceId"); return id; } My issue…
-
Regular Expression for sending conditional response..
Hi Team, Below is the incoming request, I need to identify the postcode number and send the valid response. lt;PostCode>2009</PostCode> <Country>AU</Country> <AddressSince>2017-09-01</AddressSince> </Address> </AddressList> <ContactDetail> <TelephoneNumber></TelephoneNumber> <MobileNumber>0413278999</MobileNumber>…
-
How to Parameterize a URL
I am trying to find the preferred way to parameterize / correlate values in a URL The type of URL's I am dealing with are in this format: basepath.com/{ParamName}/ How do I store the values for ParamName ** and be able to hit it when the user provides a url like: basepath.com/12234**/ with **12234 **being the ParamName's…
-
Customer Webinar: Introducing Parasoft Selenic – Making Selenium Smarter
Are you using Selenium to test your UIs? Parasoft just released a new product, Parasoft Selenic, addressing the common UI testing challenges of maintainability, stability, and long execution times. We will be hosting a customer webinar Oct 22, 2019 10:00 AM PST to discuss how our powerful new technology can empower your…
-
How do I create a Rest VirtualAssets?
Hi All, I would like to create a Rest VirtualAssets which is of JSON (Req/Res), If I give the below EndPoint, https://fraud.esm-n.npe.integration.cld/api/fraud/v1/assess-app it throws an error, So I partially gave the End Point "/api/fraud/v1/assess-app" and it got created. but in the message responder correlation, I am…
-
Moved: What's the different between SOATest & NewRelic Synthetic?
This discussion has been moved.
-
Mocking a test
Hi, I'm new to SOA Virt. I'm trying to follow this "https://docs.parasoft.com/display/SOAVIRT9106/HTTP+Simple+Mocking+Tool+1.0", at UI Installation, step 3: where is HTTPSimpleMockingTool.jar? Is that something I downloaded? I appreciate any support. -Simon
-
Is it possible to do service visualization the OTP generation system ans consume it for testing
s it possible to do service visualization the OTP generation system and consume the data for testing or development ? will my system accept the OTP generated from my Virtual services ?
-
How to Increase Proxy Header Size
Hello, I'm testing out my application UI, and I'm routing the request through a proxy in my Virtualize server. The header of my request is over 8 KB (it's around 9 KB), and I've noticed that proxies do not allow their headers to be more than 8 KB. I tried two things to try and solve this problem I have: 1) I added HTTP…
-
Virtualize : Forward Traffic on condition
I have a responder where it forward the incoming request through an internal routing to another responder. But I wanted to forward traffic only when specific criteria matches. I used Data source correlation and also tried using responder correlation but no luck. It just ignores the condition and forwarding the incoming…