简体   繁体   English

我们如何获得Slim / Fitnesse中的断言结果

[英]How can we get the results of assertion in Slim/Fitnesse

We have a fitnesse / slim table where in the fourth instruction is my assertion for the test case.is there a way we can get the result of this particular method as Pass or Fail. 我们有一张fitnesse / slim表,在第四条指令中是我对测试用例的断言。有没有一种方法可以获取此特定方法的结果(通过或失败)。 For example 例如

!|Fixture|
|method1|method2|method3|**method4**|
|res    |res2   |res3   |**TCresult**|

For example here i want to know if method4 passed or failed.We have a different reporting system which cannot be done away with and every test case result needs to be validated.Also one test script have more that one test case in it.So we want the pass or fail of those methods which validate test cases. 例如在这里我想知道method4是通过还是失败。我们有一个不同的报告系统,它不能被取消,并且每个测试用例的结果都需要验证。而且一个测试脚本中要包含一个以上的测试用例。想要验证测试用例的那些方法的通过或失败。

script given test page Testpage and Test System setup is !define TEST_SYSTEM {slim} !path lib/*.jar and Setup content is 给出测试页Testpage和Test System设置的脚本是!define TEST_SYSTEM {slim}!path lib / *。jar,安装内容是
!|import| !|导入| |fitnesse.slim.test| | fitnesse.slim.test |

!|Scenario|Stop Test| !|场景|停止测试| |start|ConstructorThrows|stop test| |开始|构造函数抛出|停止测试|

!|Scenario|Not Executed|MESSAGE | !|方案|未执行|消息| |check|echo|@MESSAGE|cannot fail @MESSAGE| | check | echo | @MESSAGE |不能失败@MESSAGE |

and Test content is !|Script| 测试内容为!|脚本| |Stop Test| |停止测试| |Not Executed and should be ignored| |未执行,应忽略| !|Script| !|脚本| |Not Executed and should be ignored as well| |未执行,也应忽略| when page Testpage is tested and HTML is extracted then \\d assertions pass, 0 fail, 0 are ignored 1 exceptions thrown and cell Stop Test has result error and cell Not Executed and should be ignored has result ignore and cell Not Executed and should be ignored as well has result ignore and cell Test not run has result ignore show Symbol $HTML_Input show Symbol $HTML_Result get collapsed executon log for page Testpage 当测试页面Testpage并提取HTML时,通过\\ d断言,0失败,0被忽略1引发的异常,单元格Stop Test出现结果错误,单元格未执行,应被忽略,结果忽略,单元格未执行,应被忽略以及有结果忽略和单元格测试未运行有结果忽略显示符号$ HTML_Input显示符号$ HTML_Result折叠了页面Testpage的执行日志

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM