[英]How to set multiple headers in fitnesse?
I have a requirement to set more than one header while testing REST
calls using Fitnesse
Client. 我需要在使用Fitnesse
Client测试REST
调用时设置多个标头。
Tried with 试过
|setHeader|!-myheader1 : value1-!!-myheader2:value2-!|
|setHeader|!-myheader1 : value1-!\n\r!-myheader2:value2-!|
|setHeader|!-myheader1 : value1\n\rmyheader2:value2-!|
All of these are not working.. 所有这些都不起作用..
References used : 使用的参考文献:
http://smartrics.blogspot.in/2008/08/get-fitnesse-with-some-rest.html http://smartrics.blogspot.in/2008/08/get-fitnesse-with-some-rest.html
http://tlotd.wordpress.com/2012/07/16/fitnesse-with-restfixture/ http://tlotd.wordpress.com/2012/07/16/fitnesse-with-restfixture/
Could anyone please tell me the correct way to pass two headers in fitnesse client ? 有谁能告诉我在fitnesse客户端传递两个标题的正确方法?
RestFixture supports the ability to set multiple headers, one per line, as following: RestFixture支持设置多个标题的功能,每行一个,如下所示:
| setHeaders | !- name1 : value 1
name2 : value2 -! |
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.