-
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…
-
Pass Javascript result into variables in Parasoft
Hi Team, i have created variable called "test" in Responder suite as a Integer. Scenario 1: If I use the below Javascript I am able to pass the result for every hit by configuring tag value into response fields ${test} function number(input, context) { var text = ""; var possible = "0123456789"; for (var i=0; i<5; i++)…
-
Export Events from Message Proxy
Is there a way to generate a report that shows the status of requests sent to the message proxy? Specifically, I would like to be able to capture statistics that show which requests were served by a Virtual Asset and which requests were passed to the secondary connection. I know this information is available in the Event…
-
server.bat for local data repository does not work if path has spaces
When trying to setup a local datarepo using the included DataRepositoryServer.zip files, I get an error when trying to execute the server.bat. It appears as though the script is not setup to handle paths with spaces.
-
root elements not populated when generating data
I pulled down the google api yaml for books from this location, to practice working with data repositories and am running into some issues. This is the first. google api yaml - https://api.apis.guru/v2/specs/googleapis.com/books/v1/swagger.yaml api endpoint used - /users/{userId}/bookshelves/{shelf}/volumes - GET When I…
-
Guidelines for creating a data repository from a definition file
I found the section for information on the data repository, but did not happen to find any info on how to create/populate the repo based on a definition file such as a swagger. Is this possible?
-
how to save the result of extension tool into variables in Parasoft
Hi Team I have a JAVA script which generates some numbers once executed using Extension tool. Now I wanted to save the result into some variables/data source. So that I can use those variables in multiple locations. Note: the same JAVA script I need it for 20-30 times in single response generation. Instead of giving every…
-
Could not find a valid Message Responder to respond to this request.
Hi Team, I have deployed calculator wsdl in PARASOFT Virtualize successfully,But i am getting the below error message while calling the deployed endpoint? Wsdl :http://soaptest.parasoft.com/calculator-02.wsdl http://localhost:9080/glue/calculator/add/2/ error message: Could not find a valid Message Responder to respond to…
-
Populating Responder payloads with ALL possible enumerations
When populating a responder payload, is it possible to populate x number of instances, for a particular portion (array) within the dataset, to include all possible enumerations or is this a manual process? Say an address response allows all 50 states, along with other basic address info like street name and city. is it…