2

我似乎无法从文档http://origen-sdk.org/origen/guides/program/flowapi/中找到答案

从 SmartTest 7.1.3 及更高版本的 Advantest 开始,我们可以选择设置 Group 节点测试流组件的“Group Bypass”属性。

{
  run_and_branch(TestA)
  then
  {
  }
  else
  {
    if @Alarm then
    {
      binout;
    }
    else
    {
    }
  }
  run_and_branch(TestB)
  then
  {
  }
  else
  {
    if @Alarm then
    {
      binout;
    }
    else
    {
    }
  }
}, groupbypass, open,"DataCollectionTests", ""

我尝试在我的组定义中使用 if_flag:、continue: 和 if_enable 属性,但我得到了一个

if @GROUPBYPASS == 1 then
{
  .
  .
  .
}, open,"DataCollectionTests", ""

而是在流程中。连接到这个属性的正确方法是什么?

4

1 回答 1

1

目前不支持此属性,如果您想添加它,请在此处打开一张描述它的票:https ://github.com/Origen-SDK/origen_testers/issues

同时,您可以使用render允许您显式定义要注入流的代码的方法来生成它。

例如:

render '{'

# Your existing code to be wrapped in the group here, e.g.
test :testA

render '}, groupbypass, open,"DataCollectionTests", ""'

您可以在界面中为此创建自己的辅助方法:

def group_bypass(name)
  render '{'
  yield
  render "}, groupbypass, open,\"#{name}\", \"\""
end

然后在您的流程中:

group_bypass "DataCollectionTests" do

  # Your existing code to be wrapped in the group here, e.g.
  test :testA

end 
于 2018-03-23T09:08:35.733 回答