Message Boards

Test a WebService with parameters come from a LocalService

Elvis Silva, modified 3 Years ago.

Test a WebService with parameters come from a LocalService

New Member Posts: 3 Join Date: 6/18/20 Recent Posts

Hi,

I have to create a test unit to a webservice which most parameters come from a database table (LocalService) and Configuration dictionary. Is possible to do this?. 

I tried it using testIntegration with Arquillian (from this post) but the data I got are real and fake generated values mixed both of them. May this be configured somewhere?

The way I am doing this test unit using parameters from LocalService is natural or do I have to use constants values?. I try to avoid having the same data in two places.

Thanks you all,