fitnesse

Replacing a method call in a class at runtime

强颜欢笑 提交于 2019-12-06 08:15:37
问题 The problem I'm using fitnesse for running some automated tests. There is a class called TableTable, which if enhanced would allow me to do some cool things. What I need to do is change what the method appendInstructions() of this class does. Because fitnesse explicitly looks for TableTable class, I cannot simply create a child class of TableTable with my required enhancements - I cannot make fitnesse find and use my custom child class. My current solution The temporary solution I've adopted

Fitnesse: how to initialize/tearDown suite (not individual test)

别等时光非礼了梦想. 提交于 2019-12-06 07:41:55
问题 I have a basic question: When using JUnit, in your test suite (the class that holds your tests) you can declare suite-level initialization and cleanUp behaviour using @BeforeClass and @AfterClass. The methods thusly annotated are called before the suite begins and after the suite finishes all its tests respectivelly. This differs from the methods inside the suite which are annotated with @Before and @After which are called before each test is launched and after each finishes respectivelly. I

How to include all ancestral SetUp pages in FitNesse subwikis?

断了今生、忘了曾经 提交于 2019-12-05 10:21:50
I have a SetUp page at the root level which works fine. However, when I add a subwiki in FitNesse and I want to put a SetUp page at the level of the subwiki. This gets included but then the root level SetUp doesn't. For example, with the following structure: Foo suite SetUp TestPage Bar suite SetUp NestedTestPage How do I get FitNesse to include both SetUp pages in NestedTestPage? There is only one way I know of that you could do this. If you included the parent manually into the child. So then in your FooSuite.BarSuite.SetUp you had the following line: !include .FrontPage.FooSuite.SetUp This

FitNesse configuration files

泄露秘密 提交于 2019-12-05 08:33:05
I'm using FitNesse as a functional testing framework. I'm running into trouble when FitNesse runs code that needs configuration. If I need to get a connection string from the configuration file, I can get it to work by adding it to the FitServer.exe.config. However, I don't like that solution. I would like FitNesse to load my own configuration file, namely TheNameOfMyApp.dll.config. Is this possible? Sure, easy to do. I'm assuming you're using the dotnet or dotnet2 test runner. I'm using the dotnet2 test runner, and here's how I've got it set up: First, when you !define your COMMAND_PATTERN,

Delphi: TTcpServer, connection reset when reading

北城余情 提交于 2019-12-04 22:23:21
I'm trying to implement a Fitnesse Slim server for delphi, but have some problems with the communication. Fitnesse will start my process, and give me a portnumber as a commandline argument. Then I'm supposed to create a socket at the given portnumber, and Fitnesse will connect to that port. I'm using a TTcpServer for the job: TcpServer1.LocalPort := ParamStr(ParamCount); TcpServer1.Active := true; In the OnAccepted( )-event, I send the protocol version to use, as specified in the spec. procedure TForm1.TcpServer1Accept(Sender: TObject; ClientSocket: TCustomIpClient); var s: ansistring; begin

Replacing a method call in a class at runtime

点点圈 提交于 2019-12-04 13:28:59
The problem I'm using fitnesse for running some automated tests. There is a class called TableTable, which if enhanced would allow me to do some cool things. What I need to do is change what the method appendInstructions() of this class does. Because fitnesse explicitly looks for TableTable class, I cannot simply create a child class of TableTable with my required enhancements - I cannot make fitnesse find and use my custom child class. My current solution The temporary solution I've adopted is I've borrowed the source code of TableTable, added it to my source tree under the same package as it

Fitnesse maven-classpath-plugin conflicting with Guava jar

核能气质少年 提交于 2019-12-04 05:48:53
问题 I am trying to setup Fitnesse in my project but I am facing some issues with Guava jars This is how my pom.xml looks like: <dependencies> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>23.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.fitnesse/fitnesse --> <dependency> <groupId>org.fitnesse</groupId> <artifactId>fitnesse</artifactId> <version>20161106</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org

How do I setup FitNesse for use with .NET?

浪尽此生 提交于 2019-12-03 19:03:32
问题 I'm trying to get started with FitNesse for .NET on Windows Vista. In all tutorials I find on the web I'm told to execute the run.bat file, but all i get when downloading the latest release is a .jar-file. When i run this, the filestructure is unpacked and I can reach the fitnesse server by browsing to http://localhost. Now, when I'm trying to set up a test project, according to all documentation I find I'm supposed define the path to fitsharp.dll but I can't find this file anywhere in the

Error java.lang.RuntimeException: Stub! in Android with Fitnesse testing

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a test fixture using Fitnesse framework, and I want to test a function which retrieves data from a server (RESTFUL service). My test case is very simple: public class FriendListActivityFixture extends ColumnFixture { public int URL; public String test() { JSONArray array = JsonHelper.getJsonArrayFromUrl("http://107.22.209.62/android/get_users.php"); return array.toString(); } } public static JSONArray getJsonArrayFromUrl(String url) { InputStream input = null; String result = ""; JSONArray jsonArray = null; try {

Parse Fitnesse RESTFul XML output into TFS Test format

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm integrating a Fitnesse Acceptance test suite into a TFS based CI process. I can run the Fitnesse Test suite in a RESTful manner ( http://fitnesse.org/FitNesse.UserGuide.RestfulTests ): http://myfitnesseserver/MyTestSuite?suite&format=xml and get back an XML document of test results. I'd like to transform that into a format that TFS can interpret as number of tests passed / failed. Any pointers? Thanks 回答1: I have a similar goal at work, so I created a generic command-line Fitnesse test runner that executes a test or suite as a web