fitnesse

How can I expire all my sessions in Tomcat?

余生长醉 提交于 2019-11-29 12:49:50
问题 I would like to expire all my sessions in Tomcat. We test our product under Fitnesse and some sessions remain and the end of the session causes dependency between the tests. I do it by hand with the following code, but some sessions remain (I can check it with the http://localhost:8080/manager/html/list url) public static void expireAllSessions() { String[] applications = { "a", "b", "c", "d", "e" }; for (String application : applications) { try { expireAllSessions(application); } catch

Parse Fitnesse RESTFul XML output into TFS Test format

谁都会走 提交于 2019-11-29 00:16:56
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 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 request, parses the resulting XML and transforms it using the

How do I add fitnesse pages to version-control?

て烟熏妆下的殇ゞ 提交于 2019-11-28 16:42:37
问题 What is the recommended practice? Should I add the my sub-folder under the fitnesse folder to version control? Context: working on a single developer rails pet project. I've my rails project under version-control (Subversion) however my fitnesse wiki pages lie under the fitnesse program folder. Fitnesse seems to have its own version-control... (I see numbered zips along with each of my wiki pages) Is it reliable? Where does it store the revisions? 回答1: Use the -d switch ( which is

Parse Fitnesse RESTFul XML output into TFS Test format

≯℡__Kan透↙ 提交于 2019-11-27 15:25:45
问题 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

接口测试基础

强颜欢笑 提交于 2019-11-26 23:46:44
1. 接口 测试 的流程一般是怎么样的?    小刀: 接口 测试 的流程其实和 功能 测试 的流程类似,因为 接口 测试 依赖的主要对象也是需求说明书,所以,最初的流程就是参与需求讨论,评审需求。   需求确定以后,开发会根据需求进行 接口 设计,会产出 接口 定义,在开发设计过程中,有能力的话,可以给出一些针对设计的建议,提高可测性,针对需求及设计,进行 测试 计划, 测试 设计,然后还需要和配管确定 测试 环境相关的事情。   在开发完成 接口 定义之后,就根据需求文档及 接口 定义进行 测试 用例设计, 测试 用例设计主要从业务场景,功能,以及异常 测试 几个方面考虑。    测试 用例设计完成后,针对 测试 用例进行评审,然后,如果开发代码部分可测时,即可进入 测试 了,因为是部分可测,可能会使用到mock方法。   已有 测试 代码时,就要进行 测试 代码的持续集成了,我们是使用hudson来进行持续集成的   在项目结束后,会对每个项目进行总结。 2. 接口 可以分下面几种: 1)系统与系统之间的调用,比如银行会提供 接口 供电子商务网站调用,或者说,支付宝会提供 接口 给淘宝调用   2)上层服务对下层服务的调用,比如service层会调用DAO层的 接口 ,而应用层又会调用服务层提供的 接口 ,一般会通过   3)服务之间的调用,比如注册用户时

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

杀马特。学长 韩版系。学妹 提交于 2019-11-26 08:32:33
问题 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