Renaming virt services
Bit of an odd question but is there any way to rename/shorten the virt service? I am using composite projects and when I try renaming the file, it completely removes the virt action from the API. This is how long the file name is: %2FCountries%2F%7BCountryCode%7D%2FCenters%2F%7BOrganizationNumber%7D%2FServiceDate%2F%7BServiceDate%7D%2FViewType%2F%7BViewType%7D%2FPreloadSummary.xml and we aren't able to have filenames this long in ADO Cloud.14Views0likes0CommentsConfigure JMS for Websphere IBM MQ 9
Hello everyone, I´am trying to configure JMS for get connected to Websphere IBM MQ. The help does not give any clue how to connect to a remote queuemanager. It only points to a local installation, which I do not have and therefore I am missing the config-values/syntax of the values. I have to set: 1. Initial Context Class: 2. Provicer URL: 3. Connection Factory JNDI Name: I have tried it with: 1. initial.context.class.name=com.sun.jndi.fscontext.RefFSContextFactory 2. tcp://host:port/channel-name 3. connection.factory.name.template=com.ibm.mq.jms.MQQueueConnectionFactory When I test my JMS-Configuration I am getting an error like this: "Could not establish a JMS connection: javax.naming.InvalidNameException: tcp://XXX:2110/XXX [Root exception is java.net.MalformedURLException: unknown protocol: tcp]" Would be glad, if someone has an example for Webspere IBM MQ Regards, Florian567Views1like3CommentsService virtualization : Is it possible to use regular expression in resource path
We are using Ready API for service virtualization, is it possible to use regular expression in resource path, Ex : Get /services/data/v11.0/query Incoming request to the service will be http://{host}:{port}/services/data/v11.0/query?q=query parameter In the above v11.0 is dynamic and for few environments we get v10.0, so we would like to know is there any way to use regular expression in resource path? We tried using /services/data but this did not work.Solved372Views0likes2CommentsGroovy script for dynamic response in Readyapi
Our scope of need is to get a dynamic response if the user hits the API request incorrectly and they need to get different response. I have created in readyapi rest, soap, and jdbc protocols with static responses when the user wants to access the response, but when the user requests with payload incorrectly example ( wrong I'd -xxxxx) , they receive the same response from readyAPI. I would like to create script to handle dynamic response; could you please share an example?Solved207Views0likes3CommentsScripting in ReadyAPI Virtualization for Dynamic Mocks
Hey Everyone. I wanted to make a post about scripting in ReadyAPI Virtualization for the purpose of creating dynamic mocks. Scripted samples always help when I'm trying to achieve something, so I hope that these scripts will help guide you with dynamic mocks. I've primarily used two resources to learn how to work with dynamic mocks. The first is a support document for SoapUI OS. This page has a comprehensive overview on working with mock services and provides examples on how to accomplish various tasks when working with the virtual service scripts. https://www.soapui.org/docs/soap-mocking/creating-dynamic-mockservices/ The second resource that I've found to be useful is our documentation on Virtual service scripting. I find that this page is better than the previous one above at explaining the scripting objects that ReadyAPI uses. here: https://support.smartbear.com/readyapi/docs/virtualization/configure/scripting.html My intent here is to provide some scripted samples that I've worked on. I'd also like to hear if anyone has requests on scripted tasks with virtual services in ReadyAPI.736Views0likes2CommentsCan we modify the incoming request to a virtual service and route to a live API
I have couple of questions. 1. Is there anyway to modify incoming POST API request for a virtual service before routing to actual live API endpoint. 2. Also can we capture the response returned from the routed API , modify the same and manipulate the virtual service to return an updated virtual response.190Views0likes0CommentsIs there a way to store a global or project property inside a virtualized service response script?
I have a virtualized service that is running a script for it's response. Is there a way that I can store properties in that script so that they would be accessible inside groovy scripts inside the testing portion of the project instead of the virtualization portion? The issue I was running into was that testRunner is not accessible there. Normally that is what I would use to save properties.Solved586Views0likes9Comments