-
How to activate a Community Edition License.
Description: How to activate a Community Edition License. Solution: 1) Navigate to your Preferences or Click here to edit license preferences 2a) If you Navigated to Parasoft-> Preferences you need to navigate to the license page 2b) If you Click on Activate License you should see the following window pop up 3) Once you…
-
Set Active Environment Using a Tool
is it possible to set the active environment using something like an extension tool? I'd like to have multiple environments to set the value of endpoints and I would like to set the active environment based on a value from a Data Source. Can this be done, and if so is it thread safe.... meaning would the active environment…
-
Features Request
The following features would be very useful IMO: Message Proxy component: * make the columns sortable * allow the connections to be moved up or down * allow a copy/paste feature to create new connections Datasource Table component: - make the columns sortable - allow rows to be moved up or down JT
-
How to halt flow using an Extension Tool
I am doing some custom processing in a Message Responder using an Extension Tool. I need to be able to interrupt the current flow and return HTTP 500 so that the Message Proxy will move to the secondary connection. What's the best way to do this? Should I be using a different type of tool? Thanks JT
-
Rewrite Request Body
What's the best way to intercept a request and change a value in the body ? For example, the JSON payload of my request is { "id": "abc" } and I want to modify it as such: { "id": "xyz" } and then continue processing the request.
-
Dynamic Data Element
Hi Everyone, We're building a new service and one of the requirement for this is to have a dynamic Data Element request looks like this: response should look like this: The bolded items per payload are always changing. pretty much that's the primary key being passed from the request. is there a way to do this in Parasoft…
-
Service virtualization
I just started with parasoft service virtualization and created my first virtual asset and proxy in server and linked asset with proxy, when i hit that proxy URL on browser i get my reponse but when i use it in Node project i get CORS error because response from parasoft proxy does not have response header values like…
-
simulator for file transfer, flat files Parasoft Virtualize
can we simulate file transfer , flat files in Parasoft Virtualize . need info regarding same
-
Using Atomic Variables to Better Handle Updating During Concurrency
The following forum post goes into detail on creating scripts to better handle changing values during performance tests with multiple hits in parallel. We will do this with the use of Atomic variables and in the case of this forum post example, specifically AtomicLong. AtomicLongs and the other Atomic variables are part of…
-
Working Functionality in Local is not working in CTP - VIRTUALIZE
Hi Team The below framework works in local deployment. But when I deploy the same into CTP its not working Application sent request to STUB (Working) --> STUB stores the Request using Write file in CTP (working) --> STUB forward that request to live endpoint to get actual response using incoming request-SOAP client/Forward…
-
HTTP Response Code
Can someone share an example of how to capture the HTTP response code from a request to a virtual asset message responder? Ideally I would like to get that value and then insert it into a database using a DB Tool. I have successfully added a DB Tool to the Incoming Request and captured static data, however I am not sure…
-
How can we parameterize a dynamic URL parameter (not q Parameter)
Here is the path: /eosservices/SOHServices/api/v1/group/SOH/customers/id (dynamic value)/locations?q=customerNumberTypeCode==CDF;statementofHealthReportingLocationID==86A&limit=2 I want to parameterize the "ID" parameter which is going to be dynamic and unique.. i should be able to read the dynamic value from the incoming…
-
Docker image of Parasoft
Hi wanted to know the steps how to create docker image of Parasoft .
-
Cannot instantiate class: com.ibm.mq.jms.context.WMQInitialContextFactory
We are trying to use JNDI connections in queue browser by specifying connectionFactory= com.sun.jndi.fscontext.RefFSContextFactory in parasoft Virtualise queue browser but I am getting error as below for I am using com.ibm.mq.allclient-9.1.5.0.jar as well as fscontext-4.2.jar Cannot instantiate class:…
-
IBM websphere mq - Message selector
I have configured the IBM websphere mq in my virtual asset. But now my requirement is that listener will fetch the request from the queue if certain condition is matched. There is an field named as Message selector where we can define conditions.but I want to know the exact format / syntax to put my conditon in that field.…
-
How to add to traffic file into one and use that to create virtual asset
Hi team, Can anyone help me to merge two traffic files into one. traffic files are attached. thanks Nihar Arisal
-
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…
-
Xml json request type in Virtualize
Hi i am new to Virtualise , how to handle request type as either xml or json using one message responder in Parasoft Virtualise . what should i set so that message responder can recognise request type as xml or json both kind of request types in single responder
-
How to add java project to classpath
Hi, I'm new to Parasoft and while exploring it i encountered the below line in [Extensibility and Scripting basics] : If your Java class is from a Java project in your Eclipse workspace, add the Java project to the classpath. Can anyone tell me how to add java project to classpath. And also when i select 'Scripted' option…
-
Groovy Scritping not allowed in Community Edition ?
Hello, While creating a response for a request in virtualiser , I saw an scripting and when clicked bydefault groovy language was selected and an editor appeared on my screen.But I couldn't type anything there ,is this feature only for paid license?If not then any tutorial on the correct approach to use it.
-
How to create a Custom Response using Scripting option in Parasoft?
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…
-
Any video related to how to use java code to read incoming request
Hello, Is there any video related to how to use a java code to read incoming request and produce a response according to it?
-
Binding error
Receiving "Make sure the binding is configured with the same version as the expected messages.The envelope version of the incoming message does not match that of the encoder" error when I point the service to virtual asset. Is there any configuration setting that needs to be done ?
-
Virtualize: Multiple Responder stub: Configure failover
Hi, Currently I am involved in creating a static stub using Multiple Responders in Parasoft Virtualize. I wonder how I can configure a failover mechanism for sending a dedicated response message when the correlation settings do not match (e.g. a 404 fault). It is just like sending the default message in SOAPUI, when search…
-
Limiting and Rolling Virtualize Logs
This forum post will go over the process for creating, limiting, and rolling logs for the Virtualize WAR installation. The purpose of these changes is to avoid the issue of running out of HDD space. Sections: 1. Configuring a Virtualize logging configuration file with file output 2. Configuring a Virtualize logging…
-
Parasoft virtualize groovy scripting example to read the json element
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:…
-
Getting tsts to execute on a mac
Hey Parasoft, I had to reinstall eclipse (from 09-2019 to 03-2020) on my mac. But when I try to execute a tst, it failing right away with no text to explain why. What can I do to fix this? Thanks, Bryan Cox
-
DataRepositoryServer for Mac
Hey Parasoft, I have a mac what do I need to run that is equivalant to the server.bat that is in the DataRepositoryServer file? Thanks in advance, Bryan
-
Multiple Responses
Hi All, I am New to Parasoft, and trying to stub and virtulize few Operations. I have created 3 response and based on my Incoming request it has to pick the right response. for Eg. 1. If my incoming request is of Reffer it has to pick the Reffer Response. 2.If my incoming request is of Approve it has to pick the Approve…
-
Traversing through json elements using JsonOutput
Requirement: I need to read a json from a file, traverse through the JSON elements and modify multiple values. I am using JsonSlurper to parse the text and traverse through the elements and able to modify the values. My request json contains multiple json arrays and json objects and elements. Issue: I have 2 unique…
-
Writing console output to a file
I am using the command virtualizecli -startServer >virtualizelogs.txt to write the logs to a file. But after executing the call to the server/virtual asset, I don't see that file is getting updated with the Application.showMessage statements.
-
Is there a way to import JSONObject in Groovy
I need to convert string to json object using Groovy. But when I try to add the statement import org.json.simple.JSONObject I get the compiler error saying unable to resolve the class. Please provide some guidance.
-
Is there a log file to find the Hit Count ?
Hi Team, I need to prepare a desk, to show the Hit Count happened over the period for the given services, Currently I can find them under Monitoring tab, which shows the per day Hit Count. Is there a log file where I can get the previous Hit Count details ? Thanks Senthil. M
-
Correlation / Extract Element Regardless of Order in the Request
Is it possible to do a responder correlation based on a particular element and its value, regardless of its position in the Request body? The case I am working with is where the user sends a request with the same elements, however the order randomizes each time. For example, if I am checking for the value of "Status" which…
-
Validate IDs and throw error if invalid ID.
Hi, I have a requirement where i need to validate IDs and throw error if invalid. I have created data source and added available IDs. I have created one request and assigned data source to it. I am passing two parameters in my responder. I tried to execute but i am not successful in throwing error. ex:- Created Data Source…
-
parasoft virtualize server - start/stop
I'm new to parasoft virtualize but I follow the mechanical steps to create the virual asset. After closing the parasoft IDE and opening again, double clicking the URL of the virutal asset does not open the full window of the GET request in the Editor view. The i noticed server was not started. I started virualize server.…
-
Returning only 500 Internal Service Error instead of 200 with response
Is there a way to set up my mock to only return a 500 error if we enter in a unique value correlated to this? For example right now we have our mock set up to look for "JORDANS_CATEGORY" and this would return a valid response (200) that is set up in our traffic file. Is there a way to return only a HTTP status code instead…
-
Can we throw custom http status code and message using groovy?
Hi, I am looking to see if i can use groovy code to handle custom error messages like below? There is a logic in my groovy code where it throws invalid date range if If my date is greater then 90 days. I don't have logic where it also change custom status code/message. I want to see if i can throw status code = 405 and…
-
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…
-
Help with Regular Expression Criteria
I have a MQ responder I am trying to move from one tool to Virtualize. This responder has two main types of criteria, one is in the form of regular expressions, and the other is just plain text. I need help on how to create the criteria to match with the responder / how to handle these responders with these criteria. An…
-
Custom status code is not showing and always shows 200 OK.
Hi, i have a scenario where i need to validate account ID and display error message as "Invalid account ID" if account ID is invalid. I am able to validate and display message but i am not able to display my custom status code as 400. It always shows 200 OK. Can you help me on what changes i need to make this work? Thank…
-
How can I get values from REST path and return it as a string in the response?
For example, I have somehost.com/restapi/v1/value1 and I want it to return value1. I set up REST URL Data Bank and set "Path - 0" to value1. In one of the attribute in the response, I use this Groovy script... import com.parasoft.api.*; boolean customAssertion(Object input, ScriptingContext context) { String value =…
-
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…