且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从外部Python脚本将测试用例结果添加到Quality Center Run

更新时间:2023-02-07 17:38:05

经过大量Google搜索后找到了答案:)

Found the answer after a lot of Google Search :)

简单->只需执行以下操作:

Simple -> Just do this:

step1.SetField("ST_ACTUAL", "my actual result") # Wohhooooo!!!!

如果以上代码无法正常工作,请尝试执行以下操作:-

If the above code fails to work, try to do the following:-

(OPTIONAL) Set your win32 com as follows- (Making ''Late Binding'')
# http://oreilly.com/catalog/pythonwin32/chapter/ch12.html
    a. Start PythonWin, and from the Tools menu, select the item COM Makepy utility.
    b. Using Windows Explorer, locate the client subdirectory (OTA COM Type Library)
       under the main win32com directory and double-click the file makepy.py.

谢谢大家...