在 dwl Mule 中导入 Class 路径位置
Import Class Path Location in dwl Mule
在 Munit 中,我正在使用 Response 资产进行验证,不确定如何在 dwl 中导入多级文件夹路径
,如果我有多个文件夹路径,如 sample_data/response/address.dwl
它不起作用(import sample_data/response::address
不喜欢 /
也 .
),在保持单个文件夹后跟文件名工作 import sample_data::address
.
不确定,dwl 导入时多级文件夹的语法?
在 RunTime 4.3 和 4.2.2 中都试过吗?请有任何想法。谢谢。
<munit:validation >
<munit-tools:assert doc:name="Assert payload" doc:id="9df23ba1-befd-4da9-b8aa-a95b5b59efff" message="The payload does not match">
<munit-tools:that ><![CDATA[#[%dw 2.0
import sample_data::address
// how to import multiple folder path sample_data/response::address???
---
address::main({payload: payload})]]]></munit-tools:that>
</munit-tools:assert>
</munit:validation>
提前致谢。
让我知道问题是否需要详细信息。谢谢。
试试下面的代码。
<munit:validation >
<munit-tools:assert doc:name="Assert payload" doc:id="9df23ba1-befd-4da9-b8aa-a95b5b59efff" message="The payload does not match">
<munit-tools:that ><![CDATA[#[%dw 2.0
import sample_data::response::address
// how to import multiple folder path sample_data/response::address???
---
address::main({payload: payload})]]]></munit-tools:that>
</munit-tools:assert>
</munit:validation>
在 Munit 中,我正在使用 Response 资产进行验证,不确定如何在 dwl 中导入多级文件夹路径
,如果我有多个文件夹路径,如 sample_data/response/address.dwl
它不起作用(import sample_data/response::address
不喜欢 /
也 .
),在保持单个文件夹后跟文件名工作 import sample_data::address
.
不确定,dwl 导入时多级文件夹的语法?
在 RunTime 4.3 和 4.2.2 中都试过吗?请有任何想法。谢谢。
<munit:validation >
<munit-tools:assert doc:name="Assert payload" doc:id="9df23ba1-befd-4da9-b8aa-a95b5b59efff" message="The payload does not match">
<munit-tools:that ><![CDATA[#[%dw 2.0
import sample_data::address
// how to import multiple folder path sample_data/response::address???
---
address::main({payload: payload})]]]></munit-tools:that>
</munit-tools:assert>
</munit:validation>
提前致谢。 让我知道问题是否需要详细信息。谢谢。
试试下面的代码。
<munit:validation >
<munit-tools:assert doc:name="Assert payload" doc:id="9df23ba1-befd-4da9-b8aa-a95b5b59efff" message="The payload does not match">
<munit-tools:that ><![CDATA[#[%dw 2.0
import sample_data::response::address
// how to import multiple folder path sample_data/response::address???
---
address::main({payload: payload})]]]></munit-tools:that>
</munit-tools:assert>
</munit:validation>