在Rally上的TestFolder下定义的TestCase不会被pyral更新

问题描述 投票:0回答:1

我无法使用pyral更新在Rally上定义的testCase

下面是我正在使用的代码段:

# Get the testcase that needs to be updated
query_criteria = 'FormattedID = "%s"' % tc
rally_response = rally_obj.get('TestCase', fetch=True, query=query_criteria)

target_project = rally.getProject()
testcase_fields = {
         "Project"     : target_project.ref,
         "Workspace"   : "workspace/59461540411",
         "Name"        : "test",
         "Method"      : "Automated",
         "Type"        : "Acceptance",
         "Notes"       : "netsim testing",
         "Description" : "description changing",
         #"TestCase"    : "testcase/360978196712"
        }

testcase_response = rally.put('TestCase', testcase_fields)

testcase_response的状态代码为“ 200”

,但测试用例未更新。

怎么了?

我无法使用pyral更新在Rally上定义的testCase下面是我正在使用的代码段:#获取需要更新的测试用例query_criteria ='FormattedID =“%s”'%tc ...] >

python rally pyral
1个回答
0
投票

您正在混合两个功能:

  • rally.put:创建一个新的工作项
© www.soinside.com 2019 - 2024. All rights reserved.