首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在HP ALM中更新测试运行的环境值

如何在HP ALM中更新测试运行的环境值
EN

Stack Overflow用户
提问于 2021-04-02 17:04:28
回答 1查看 55关注 0票数 0

我正在用Java做一个使用REST assured的hp-alm的API自动化。我尝试将Environment作为SIT/UAT/DEV更新到run实例,但出现错误。网址:https://alm.srv.westpac.com.au/qcbin/rest/domains/Test/projects/AVPL/test-instances/13061状态码: 500正文:

代码语言:javascript
复制
<Entity Type='test-instance'>
 <Fields>
  <Field Name='status'><Value>Not Completed</Value></Field>
  <Field Name='environment'><Value>0</Value></Field>
  </Fields>
</Entity>


Error:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
    <title>environment with id &#x27;1&#x27; does not exist</title>
    <link rel="stylesheet" type="text/css" href="/qcbin/rest-exception/rest-exception.css" />
    <script type="text/javascript" src="/qcbin/rest-exception/rest-exception.js"></script>
</head>

<body>
    <div id="banner">
        <img src="/qcbin/rest-exception/hp-logo.png" id="banner-logo"/>
        <h3 id="banner-title">HP Application Lifecycle Management</h3>
    </div>

    <div id="content-holder">
        <h1>environment with id &#x27;1&#x27; does not exist</h1>
        <div>
            <tr>
                <td><a id="exception-id-title">Exception Id:</a></td>
                <td>qccore.general-error</td>
            </tr>
        </div>
        <a id="more-details-label" style="display:none" href="#" onClick="javascript:toggleDetails()">
            <h3>Show Details</h3>
        </a>
        <div id="details-holder" style="display:none">
            <div style="display:none">
                <h4>Exception Properties:</h4>
                <div></div>
            </div>
            <div style="display:none">
                <h4>Stack Trace:</h4>
                <div></div>
            </div>
        </div>
    </div>
</body>

</html>

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-07 12:28:55

能够使用不同的字段名称更新环境值

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66916945

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档