簡體   English   中英

Polarion OpenAPI:setTestSteps

[英]Polarion OpenAPI: setTestSteps

我正在嘗試編寫一個腳本,從我已有的其他值中設置 testSteps 表中的一些字段,但我無法弄清楚格式。 當我做一個workItem.getTestCase().getTestSteps(); 在我回來的項目上

keys:[step, description, classification, sampleParameters, duration, instructions, expectedResult, notes, labLocation, sampleDesc];steps:[{values=[text/html:
 1, text/html:
, text/html:
, text/html:
, text/html:
, text/html:
, text/html:
, text/html:
, text/html:
, text/html:
]}];

我怎么說,將 step 的第一個 testSteps 值從 1 更改為 3,然后將其設置回來?

TestSteps 基本上是文本對象的二維數組。 看起來,您正在為 Steps 使用自定義配置,Polarion 向您發送了 teststep-field 的第一行,其中第一個元素(“step”)預填充為“1”,其他字段(很可能)為空。 可以使用".getContent()"方法顯示文本對象。

為了設置 Teststeps,您需要構建這個嵌套的列表列表(對於每個步驟,您需要一個具有相同數量(在您的示例中為 9)的 Textobjects 的列表,第一個元素是一個數字)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM