hemy 发表于 2006-5-28 10:04:11

TestManager里Test Case的State有什么作用的?

在TestManager里Test Case的State有好几个状态的,都不知道是做什么用的,有谁知道,能解释一下吗?

ilovejolly 发表于 2006-5-29 11:38:14

不明

slide 发表于 2006-5-29 13:19:40

去imb网站上找了个答案,按它的意思是如果出现了非法的状态转换,会给出错误提示。
例如:pass之后可以Unattempted ,但不应出现其他的状态。fail之后,必须修改,不能Unattempted,包含了一些默认的操作规则吧,通过对于state的审查,自动提示一些潜在的问题,避免出现问题发现不了,实际过程中不知道效果如何。


Problem
The warning, “Requested test case state transition in not allowed in state transition rules. Do you still want to promote the test case results?" is being caused by test case states added for IBM Rational(R) version 2003.06.13

Solution
User is getting the warning during test cast promotion in TestManager. The reason for this is a new feature has been added in Test Manager version 2003.06.13 that has test cases themselves all having states. Each of these states can only change to certain other states. When you run a test case, the result may be a state that is considered an invalid state transition, for example a test case previously being set to pass and then having the test case fail. This will result in the state transition warning during promotion.

The way to prevent this warning from appearing is to put the test case in a state that won't cause the warning before running the test case. In the previous example, set the test case is set to Unattempted so failing would not cause the warning. Here is the list of valid transition states:
Current State                                                                   May transition to
Unattempted                                                                  Attempted, Blocked, Deferred, Pass, Fail
Attempted                                                                        Deferred, Pass, Fail, PermFail, attempted
Blocked                                                                           Unattempted, Pass, Fail, Deferred
PermFail                                                                            Unattempted
Deferred                                                                           Unattempted
Pass                                                                                  Unattempted
Fail                                                                                    Attempted, Pass, PermFail, Fail

Documentation number SY24-6181-00 goes over test case states and transition states in more details.

hemy 发表于 2006-5-30 10:16:57

谢谢 slide.
不过现在还有点疑问,我在试验的时候,pass 和 fai 可以自动设置上去,不知道其他的状态也是自动设置的,还是要人为更新上去的?
页: [1]
查看完整版本: TestManager里Test Case的State有什么作用的?