How to call a WCF service from FitNesse

☆樱花仙子☆ 提交于 2019-12-06 13:24:07

Anything you can do with a config in WCF can also be done programmatically. Could you create the endpoints in code and then compile it?

I had to place my app.config file in the dotnet directory of FitNesse. I also had to add a path to that config file in my FitNesse page, like this.

!path C:\fitnesse20090214\fitnesse\dotnet\app.config

A similar approach that I have working is to make a copy of the app.config for the testrunner.
So I make a copy of app.config as FitServer.exe.config (and TestRunner.exe.config) as a post build step in my fixture project.
As the previous post indicates, the config file needs to be in the same directory as the runner.

This worked with the 1.6 version of the fitnesse .Net runners as well as the latest 20090214 release.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!