cancel
Showing results for 
Search instead for 
Did you mean: 

How to read datasource in ServiceV response dispatch script

Senior Member

How to read datasource in ServiceV response dispatch script

Hi,

 

I'm ReadyAPI ServiceV Pro user. I'm trying to understand how to read values from an external datasource file in the mock response using script dispatch option in ServiceV. I could load the datasource in the 'DataSources' tab to start with. I'll appreciate your reply.

 

PS: I could read from properties file using "context.expand" function

 

Thanks, Rajesh

2 REPLIES
Community Hero

Re: How to read datasource in ServiceV response dispatch script

Hi Rajesh,

 

Does the https://support.smartbear.com/readyapi/docs/servicev/configure/datasources.html#refer-to-data-in-res... help topic ("Referring in Scripts" paragraph) help?

If it does not help, can you post a relevant code snippet here?

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Occasional Contributor

Re: How to read datasource in ServiceV response dispatch script

Hi!

I'm trying the same, did you get some clearity in how to do it, that you can share?

2018 NEWS
Top Kudoed Authors