hi , I'm just started to with service Virtualization in Devtest8.4. Looking to redirect the request to actual service if it is not matching with recorded transactions.
Please help me.
Please help me for getting dynamic response from virtual service.
I have virtualized service and mentioned 2 response in it. However when I m accessing it through soapui I m getting only one response.
Please help me for this scenario.
I was tagged in this thread but dont recpognise the product or content? was there soemtthing specific you needed me for?
Exactly the same as Pete, Lisa should show as Nolio if I’m not wrong… or RA.
We are not in that area.
Principal Support Engineer, Customer Support
CA Srl | Basiglio | Via F.Sforza 3, Milano 3 City | Basiglio MI | 20080
Office: +39 02 90464433 | Mobile: +39 335 7375040 | Filippo.Casati@ca.com
<mailto:Filippo.Casati@ca.com>[Description: CA]<http://www.ca.com/us/default.aspx>[Description: Twitter]<http://twitter.com/CAInc>[Description: Slideshare]<http://www.slideshare.net/cainc>[Description: Facebook]<https://www.facebook.com/CATechnologies>[Description: YouTube]<http://www.youtube.com/user/catechnologies>[Description: LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Description: Google]<https://plus.google.com/CATechnologies>[Description: Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>
CA s.r.l., società a socio unico, sede legale in via Francesco Sforza 3, 20080 Basiglio, fraz. Milanotre City (MI) codice fiscale, partita IVA e numero di iscrizione al Registro delle Imprese di Milano 04200340158, iscritta nel Repertorio Economico Amministrativo al n. 996554, capitale sociale € 8.000.000,00 i.v., soggetta all'attività di direzione e coordinamento di CA Computer Associates European Holding GmbH.
Could you add a little more info to you topic. the title says one thing, but your text says something different.
for the response to the question in the text, did you mark the VSI as Allow Duplicate Specific transactions.
(send two responses for one request)
for the response to the title, did you set a live invocation method on the image response selection step in the vsm?
(Redirect request to actual service if it is not matching with recorded transactions)
I believe that step will be invoked if there is no match in the VSI transactions list
Hi Peter and Filippo , Please ignore the chain. Sorry for trouble.
yes I'm looking or both the scenarios.Ca you please share the detils that will be really helpful for me...
1 . for the response to the question in the text, did you mark the VSI as Allow Duplicate Specific transactions.
2 . for the response to the title, did you set a live invocation method on the image response selection step in the vsm?
I'm looking for below 2 scenarios , can anyone please help me with the steps?
1) Send two responses for one request for HTTP's protocol.
2) Redirest request to actual service if it is not matching with recorded transaction.
Please guide me with correct steps
for item 2, I think you will need to add a step to the VSM, Http Live Invocation step. add this after the response selection step.
then on the response selection step, add an assertion to skip the live invocation step if the results of the response selection does NOT contain 'not found' in the response.
Thank you your intrest in this matter. This helped me a lot.
can you please help me in'Send two responses for one request for HTTP's protocol' scenario.
Can you explain your use case for 'Send two responses for one request for HTTP's protocol' please?
Is your response chunked? Do you have a 202/206 response followed by a 200 response? Are the responses completely separate, or multiple body segments in a single message? Do you actually want to have one response to a request, but that response has to cycle around multiple responses? There are different techniques for each of these use cases.
Thank you Rick for your intrest in this matter. Below us my requirement.
I have 2 response in vsi for single request i.e Response 1 and Response 2. and I want the response based on conditions such as if condition 1 >> Response 1 and Condition 2 >> Response2 for one request.
Is your condition is based on the request parameters? How are you configuring multiple responses?
From what you're describing, look at the first screenshot that Udhaya sent. The green box shows different conditions in the request message, and a specific response is selected for each different combination of request conditions in the list shown here.
This is core DevTest functionality, and should be covered in the training courses.
Hi Rick and Udya,
Thank you for your comments. howevere if you check with second screen print(green circle)where 2 responses are added for one request.
please help me to implement if i add 2 response for one set of data and I need scenond respone which have added in respone.
Your help is really appriciated.
Your latest post doesn't match your previous statement of "I have 2 response in vsi for single request i.e Response 1 and Response 2. and I want the response based on conditions such as if condition 1 >> Response 1 and Condition 2 >> Response2 for one request.".
If you want to respond differently, depending on what you call "conditions", I believe you want to trigger one response to your request (the different responses would be selected by DevTest when it sees different "conditions" in the request that you speak of), which is what my previous response covers.
If you want to have both responses sent when you receive one request, you want to investigate more about what you said "howevere if you check with second screen print(green circle)where 2 responses are added for one request.". Please share your exact use case.
Thank you for respone.
as i mentioed in my latest post , i am looking for second scenario. i .e where 2 responses are added for one request.".
You will need to edit your VSM file. There are a couple of things you could try, depending on your exact use case.
You could try adding a step to send a message to your app, after the Respond step, if the second response is quite static.
You could try adding an extra VSI Response Selection and Response step after your current Response step, if the second response needs correlation against the request message. I don't know off-hand when the lisa_vse_request property is removed in the VSM file, so you might need to copy that property to another one of your choice before your first VSI Response Selection.
Retrieving data ...